|
|
@@ -37,7 +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, "请选择关联客户");
|
|
|
+ CommUtil.asserts(investorInfo.getAdminUserId() != null, "请选择关联客户");
|
|
|
return R.success(investorInfoService.save(investorInfo));
|
|
|
}
|
|
|
|
|
|
@@ -49,7 +49,7 @@ public class InvestorInfoController {
|
|
|
@PostMapping("/update")
|
|
|
R<?> update(@RequestBody InvestorInfo investorInfo) {
|
|
|
investorInfo.setStationName(KymCache.INSTANCE.getStationNameById(investorInfo.getStationId()));
|
|
|
- CommUtil.asserts(investorInfo.getAdminUserId() == null, "请选择关联客户");
|
|
|
+ CommUtil.asserts(investorInfo.getAdminUserId() != null, "请选择关联客户");
|
|
|
return R.success(investorInfoService.updateById(investorInfo));
|
|
|
}
|
|
|
|