|
@@ -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);
|