|
@@ -95,6 +95,10 @@ public class UnifiedSettlementProgrammeServiceImpl implements UnifiedSettlementP
|
|
|
@Override
|
|
|
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();
|
|
|
BeanUtils.copyProperties(param, entity);
|
|
@@ -179,6 +183,9 @@ public class UnifiedSettlementProgrammeServiceImpl implements UnifiedSettlementP
|
|
|
if (null == param.getId()) {
|
|
|
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());
|
|
|
BeanUtils.copyProperties(param, entity);
|