PayFeeDetailApi.java 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. package com.java110.fee.api;
  2. import com.alibaba.fastjson.JSONObject;
  3. import com.java110.fee.bmo.payFeeDetail.IImportPayFeeBMODetail;
  4. import com.java110.utils.util.Assert;
  5. import org.springframework.beans.factory.annotation.Autowired;
  6. import org.springframework.http.ResponseEntity;
  7. import org.springframework.web.bind.annotation.RequestBody;
  8. import org.springframework.web.bind.annotation.RequestMapping;
  9. import org.springframework.web.bind.annotation.RequestMethod;
  10. import org.springframework.web.bind.annotation.RestController;
  11. @RestController
  12. @RequestMapping(value = "/payFeeDetail")
  13. public class PayFeeDetailApi {
  14. @Autowired
  15. private IImportPayFeeBMODetail importPayFeeDetailImpl;
  16. /**
  17. * 微信保存消息模板
  18. *
  19. * @param reqJsonStr
  20. * @return
  21. * @serviceCode /payFeeDetail/importPayFeeDetail
  22. * @path /app/payFeeDetail/importPayFeeDetail
  23. */
  24. @RequestMapping(value = "/importPayFeeDetail", method = RequestMethod.POST)
  25. public ResponseEntity<String> saveImportFeeDetail(@RequestBody String reqJsonStr) {
  26. JSONObject reqJson = JSONObject.parseObject(reqJsonStr);
  27. Assert.hasKeyAndValue(reqJson, "communityId", "请求报文中未包含小区信息");
  28. Assert.hasKeyAndValue(reqJson, "objType", "请求报文中未包含费用对象");
  29. Assert.hasKeyAndValue(reqJson, "batchId", "请求报文中未包含批次");
  30. return importPayFeeDetailImpl.importPayFeeDetail(reqJson);
  31. }
  32. }