|
|
@@ -2,6 +2,7 @@ package com.kym.admin.controller;
|
|
|
|
|
|
import cn.dev33.satoken.annotation.SaCheckPermission;
|
|
|
import com.kym.common.R;
|
|
|
+import com.kym.common.utils.CommUtil;
|
|
|
import com.kym.entity.admin.InvestorInfo;
|
|
|
import com.kym.entity.admin.queryParams.CommonQueryParam;
|
|
|
import com.kym.service.admin.InvestorInfoService;
|
|
|
@@ -36,6 +37,7 @@ public class InvestorInfoController {
|
|
|
R<?> create(@RequestBody InvestorInfo investorInfo) {
|
|
|
investorInfo.setId(null);
|
|
|
investorInfo.setStationName(KymCache.INSTANCE.getStationNameById(investorInfo.getStationId()));
|
|
|
+ CommUtil.asserts(investorInfo.getAdminUserId() == null, "请选择关联客户");
|
|
|
return R.success(investorInfoService.save(investorInfo));
|
|
|
}
|
|
|
|
|
|
@@ -47,6 +49,7 @@ public class InvestorInfoController {
|
|
|
@PostMapping("/update")
|
|
|
R<?> update(@RequestBody InvestorInfo investorInfo) {
|
|
|
investorInfo.setStationName(KymCache.INSTANCE.getStationNameById(investorInfo.getStationId()));
|
|
|
+ CommUtil.asserts(investorInfo.getAdminUserId() == null, "请选择关联客户");
|
|
|
return R.success(investorInfoService.updateById(investorInfo));
|
|
|
}
|
|
|
|