Browse Source

优化-运营商结算 结算方案优化

zhouxin 1 year ago
parent
commit
9ea865867f

+ 1 - 0
superdesk-uniorder-dao/src/main/resources/mappers/unified/settlement/UnifiedSettlementProgrammeMapperEx.xml

@@ -12,6 +12,7 @@
             t.settlement_rule settlementRule,
             t.settlement_rule settlementRule,
             t.remark,
             t.remark,
             t.enabled,
             t.enabled,
+            t.is_default isDefault,
             t1.fullname updateUser,
             t1.fullname updateUser,
             t.update_time updateTime
             t.update_time updateTime
         FROM unified_settlement_programme t
         FROM unified_settlement_programme t

+ 3 - 0
superdesk-uniorder-dto/src/main/java/cn/superdesk/uniorder/dto/vo/operationCenter/customer/settlement/UnifiedSettlementVo.java

@@ -26,4 +26,7 @@ public class UnifiedSettlementVo implements Serializable {
     private String updateTime;
     private String updateTime;
 
 
     private String updateUser;
     private String updateUser;
+
+    private Integer isDefault;//是否默认
+
 }
 }

+ 7 - 0
superdesk-uniorder-service/src/main/java/cn/superdesk/uniorder/service/unified/settlement/impl/UnifiedSettlementProgrammeServiceImpl.java

@@ -95,6 +95,10 @@ public class UnifiedSettlementProgrammeServiceImpl implements UnifiedSettlementP
     @Override
     @Override
     public R<String> saveUnifiedSettlement(UnifiedSettlementParam param, Long sysUserId) {
     public R<String> saveUnifiedSettlement(UnifiedSettlementParam param, Long sysUserId) {
         //校验
         //校验
+        if (null == param.getCustomerId() || null == param.getType()) {
+            return new R<>("500", "客户id和类型不能为空", false);
+        }
+
 
 
         UnifiedSettlementProgramme entity = new UnifiedSettlementProgramme();
         UnifiedSettlementProgramme entity = new UnifiedSettlementProgramme();
         BeanUtils.copyProperties(param, entity);
         BeanUtils.copyProperties(param, entity);
@@ -179,6 +183,9 @@ public class UnifiedSettlementProgrammeServiceImpl implements UnifiedSettlementP
         if (null == param.getId()) {
         if (null == param.getId()) {
             return new R<>("500", "id不能为空", false);
             return new R<>("500", "id不能为空", false);
         }
         }
+        if (null == param.getCustomerId() || null == param.getType()) {
+            return new R<>("500", "客户id和类型不能为空", false);
+        }
 
 
         UnifiedSettlementProgramme entity = unifiedSettlementProgrammeMapper.selectByPrimaryKey(param.getId());
         UnifiedSettlementProgramme entity = unifiedSettlementProgrammeMapper.selectByPrimaryKey(param.getId());
         BeanUtils.copyProperties(param, entity);
         BeanUtils.copyProperties(param, entity);

+ 2 - 2
superdesk-uniorder-web/src/main/java/cn/superdesk/uniorder/controller/operationCenter/base/OperationCenterBaseController.java

@@ -42,7 +42,7 @@ public class OperationCenterBaseController {
         return result;
         return result;
     }
     }
     /**
     /**
-     *订单类型
+     *订单类型(更换名称)->业务类型
      */
      */
     @PostMapping("/orderType")
     @PostMapping("/orderType")
     @ResponseBody
     @ResponseBody
@@ -54,7 +54,7 @@ public class OperationCenterBaseController {
     }
     }
 
 
     /**
     /**
-     *业务类型
+     *业务类型(更换名称)->订单类型
      */
      */
     @PostMapping("/orderBizType")
     @PostMapping("/orderBizType")
     @ResponseBody
     @ResponseBody