|
|
|
@ -103,6 +103,7 @@ public class SynthesisPlanController {
|
|
|
|
|
synthesisPlanClient.setGetTime(new Date());
|
|
|
|
|
synthesisPlanClient.setUserid(userId);
|
|
|
|
|
synthesisPlanClient.setSchoolId(schoolId);
|
|
|
|
|
synthesisPlanClient.setSubmitStatus(null);
|
|
|
|
|
int i = synthesisPlanClientMapper.insert(synthesisPlanClient);
|
|
|
|
|
|
|
|
|
|
//判断用户领取的时候判断资产负载表 总净值大于600W 潜在客户+1
|
|
|
|
@ -260,6 +261,11 @@ public class SynthesisPlanController {
|
|
|
|
|
@ApiOperation("已有客户、规划报告删除")
|
|
|
|
|
@PostMapping("deletePlanningReport")
|
|
|
|
|
public ResultEntity deletePlanningReport(@RequestParam String stuClientId) {
|
|
|
|
|
SynthesisPlanClient client = synthesisPlanClientMapper.selectByPrimaryKey(stuClientId);
|
|
|
|
|
String submitStatus = client.getSubmitStatus();
|
|
|
|
|
if("未审核".equals(submitStatus) || "已审核".equals(submitStatus)){
|
|
|
|
|
return new ResultEntity<>(HttpStatus.BAD_REQUEST, "该状态下无法删除!");
|
|
|
|
|
}
|
|
|
|
|
int i = synthesisPlanClientMapper.deleteByPrimaryKey(stuClientId);
|
|
|
|
|
if (i == 1) {
|
|
|
|
|
return new ResultEntity<>(HttpStatus.OK, "删除成功!");
|
|
|
|
|