old mode 100644
new mode 100755
| | |
| | | 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.*; |
| | | |
| | | |
| | | @RestController |
| | |
| | | * @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, |
| | | @RequestHeader(value = "user-name") String userName) { |
| | | |
| | | 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"); |
| | | |
| | | |
| | | 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); |
| | | } |
| | | } |