Browse Source

结算单提交方式修改

wangyf 4 days ago
parent
commit
a13735f26e

+ 3 - 3
src/main/java/com/inkasso/factoring/settlement/service/Impl/SettlementManagementServiceImpl.java

@@ -172,9 +172,9 @@ public class SettlementManagementServiceImpl extends ServiceImpl<SettlementBasic
 
     @Override
     @Transactional(rollbackFor = Exception.class)
-    public void add(SettlementBasicInfo settlementBasicInfo, HttpServletRequest request) throws Exception {
+    public void add(SettlementBasicInfo settlementBasicInfo) throws Exception {
         //保存结算单相关信息
-        SettlementBasicInfo saveSettlementBasicInfo = addSettlement(settlementBasicInfo, request);
+        SettlementBasicInfo saveSettlementBasicInfo = addSettlement(settlementBasicInfo);
         //调用B端 新增结算单
         if (settlementBasicInfo.getSubmit()) {
             ResponseEntity<String> response = restTemplate.postForEntity(addBillBasicInformation,
@@ -709,7 +709,7 @@ public class SettlementManagementServiceImpl extends ServiceImpl<SettlementBasic
     }
 
 
-    private SettlementBasicInfo addSettlement(SettlementBasicInfo settlementBasicInfo, HttpServletRequest request) {
+    private SettlementBasicInfo addSettlement(SettlementBasicInfo settlementBasicInfo) {
         if (settlementBasicInfo.getBusinessNumber() == null) {
             throw new ValidatorException(CodeUtil.FAIL, "请锁定业务编号后保存");
         }

+ 1 - 2
src/main/java/com/inkasso/factoring/settlement/service/SettlementManagementService.java

@@ -18,9 +18,8 @@ public interface SettlementManagementService {
      * 添加结算单
      *
      * @param settlementBasicInfo
-     * @param request
      */
-    void add(SettlementBasicInfo settlementBasicInfo, HttpServletRequest request) throws Exception;
+    void add(SettlementBasicInfo settlementBasicInfo) throws Exception;
 
     /**
      * 查看详情

+ 3 - 4
src/main/java/com/inkasso/factoring/settlement/web/SettlementController.java

@@ -68,15 +68,14 @@ public class SettlementController {
      * 2.0
      *
      * @param settlementBasicInfo
-     * @param request
      * @return
      * @throws Exception
      */
     @ResponseBody
     @RequestMapping("addBillBasicInformation")
 //    @OperationLog(operationModule = "结算单",operationType = OperationTypeEnum.INSERT,description = "新建结算单")
-    public Object add(SettlementBasicInfo settlementBasicInfo, HttpServletRequest request) throws Exception {
-        settlementManagementService.add(settlementBasicInfo, request);
+    public Object add(@RequestBody SettlementBasicInfo settlementBasicInfo) throws Exception {
+        settlementManagementService.add(settlementBasicInfo);
         return new SuccessResponseData("添加成功");
     }
     /**
@@ -305,7 +304,7 @@ public class SettlementController {
     @ResponseBody
     @RequestMapping("updateBill")
 //    @OperationLog(operationModule = "结算单",operationType = OperationTypeEnum.INSERT,description = "修改结算")
-    public Object updateBill(SettlementBasicInfo settlementBasicInfo){
+    public Object updateBill(@RequestBody SettlementBasicInfo settlementBasicInfo){
         settlementManagementService.updateBill(settlementBasicInfo);
         return new SuccessResponseData("修改成功");
     }