old mode 100644
new mode 100755
| | |
| | | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.java110.dto.payFeeAudit.PayFeeAuditDto; |
| | | import com.java110.dto.user.UserDto; |
| | | import com.java110.fee.bmo.payFeeAudit.IDeletePayFeeAuditBMO; |
| | | import com.java110.fee.bmo.payFeeAudit.IGetPayFeeAuditBMO; |
| | | import com.java110.fee.bmo.payFeeAudit.ISavePayFeeAuditBMO; |
| | | import com.java110.fee.bmo.payFeeAudit.IUpdatePayFeeAuditBMO; |
| | | import com.java110.intf.user.IUserV1InnerServiceSMO; |
| | | import com.java110.po.payFeeAudit.PayFeeAuditPo; |
| | | import com.java110.utils.util.Assert; |
| | | import com.java110.utils.util.BeanConvertUtil; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.http.ResponseEntity; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RequestMethod; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.List; |
| | | |
| | | |
| | | @RestController |
| | |
| | | @Autowired |
| | | private IGetPayFeeAuditBMO getPayFeeAuditBMOImpl; |
| | | |
| | | @Autowired |
| | | private IUserV1InnerServiceSMO userV1InnerServiceSMOImpl; |
| | | |
| | | /** |
| | | * 微信保存消息模板 |
| | | * |
| | |
| | | * @path /app/payFeeAudit/savePayFeeAudit |
| | | */ |
| | | @RequestMapping(value = "/savePayFeeAudit", method = RequestMethod.POST) |
| | | public ResponseEntity<String> savePayFeeAudit(@RequestBody JSONObject reqJson) { |
| | | public ResponseEntity<String> savePayFeeAudit(@RequestBody JSONObject reqJson, |
| | | @RequestHeader(value = "user-id") String userId){ |
| | | |
| | | |
| | | Assert.hasKeyAndValue(reqJson, "communityId", "请求报文中未包含communityId"); |
| | | Assert.hasKeyAndValue(reqJson, "feeId", "请求报文中未包含feeId"); |
| | | Assert.hasKeyAndValue(reqJson, "auditUserId", "请求报文中未包含auditUserId"); |
| | | Assert.hasKeyAndValue(reqJson, "auditUserName", "请求报文中未包含auditUserName"); |
| | | Assert.hasKeyAndValue(reqJson, "feeDetailId", "请求报文中未包含缴费ID"); |
| | | Assert.hasKeyAndValue(reqJson, "state", "请求报文中未包含state"); |
| | | UserDto userDto = new UserDto(); |
| | | userDto.setUserId(userId); |
| | | List<UserDto> userDtos = userV1InnerServiceSMOImpl.queryUsers(userDto); |
| | | |
| | | Assert.listOnlyOne(userDtos,"未包含用户"); |
| | | |
| | | |
| | | String userName = userDtos.get(0).getName(); |
| | | |
| | | PayFeeAuditPo payFeeAuditPo = BeanConvertUtil.covertBean(reqJson, PayFeeAuditPo.class); |
| | | payFeeAuditPo.setAuditUserId(userId); |
| | | payFeeAuditPo.setAuditUserName(userName); |
| | | return savePayFeeAuditBMOImpl.save(payFeeAuditPo); |
| | | } |
| | | |
| | |
| | | */ |
| | | @RequestMapping(value = "/queryPayFeeAudit", method = RequestMethod.GET) |
| | | public ResponseEntity<String> queryPayFeeAudit(@RequestParam(value = "communityId") String communityId, |
| | | @RequestParam(value = "payObjType", required = false) String payObjType, |
| | | @RequestParam(value = "payerObjId", required = false) String payerObjId, |
| | | @RequestParam(value = "state", required = false) String state, |
| | | @RequestParam(value = "page") int page, |
| | | @RequestParam(value = "row") int row) { |
| | | |
| | | PayFeeAuditDto payFeeAuditDto = new PayFeeAuditDto(); |
| | | payFeeAuditDto.setPage(page); |
| | | payFeeAuditDto.setRow(row); |
| | | payFeeAuditDto.setCommunityId(communityId); |
| | | payFeeAuditDto.setState(state); |
| | | payFeeAuditDto.setPayerObjType(payObjType); |
| | | payFeeAuditDto.setPayerObjId(payerObjId); |
| | | return getPayFeeAuditBMOImpl.get(payFeeAuditDto); |
| | | } |
| | | } |