|
|
@@ -5,6 +5,7 @@ import com.kym.common.R;
|
|
|
import com.kym.entity.admin.InvestorInfo;
|
|
|
import com.kym.entity.admin.queryParams.CommonQueryParam;
|
|
|
import com.kym.service.admin.InvestorInfoService;
|
|
|
+import com.kym.service.cache.KymCache;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
/**
|
|
|
@@ -34,6 +35,7 @@ public class InvestorInfoController {
|
|
|
@PostMapping("/create")
|
|
|
R<?> create(@RequestBody InvestorInfo investorInfo) {
|
|
|
investorInfo.setId(null);
|
|
|
+ investorInfo.setStationName(KymCache.INSTANCE.getStationNameById(investorInfo.getStationId()));
|
|
|
return R.success(investorInfoService.save(investorInfo));
|
|
|
}
|
|
|
|
|
|
@@ -44,6 +46,7 @@ public class InvestorInfoController {
|
|
|
*/
|
|
|
@PostMapping("/update")
|
|
|
R<?> update(@RequestBody InvestorInfo investorInfo) {
|
|
|
+ investorInfo.setStationName(KymCache.INSTANCE.getStationNameById(investorInfo.getStationId()));
|
|
|
return R.success(investorInfoService.updateById(investorInfo));
|
|
|
}
|
|
|
|