|
|
|
@ -19,6 +19,7 @@ import org.springframework.http.HttpStatus;
|
|
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
|
|
|
|
import java.math.BigDecimal;
|
|
|
|
|
import java.util.Date;
|
|
|
|
|
import java.util.List;
|
|
|
|
|
import java.util.Map;
|
|
|
|
|
|
|
|
|
@ -351,4 +352,20 @@ public class CaseController {
|
|
|
|
|
synthesisPlanClientMapper.updateByPrimaryKey(synthesisPlanClient);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@PostMapping("getPlanReportTime")
|
|
|
|
|
@ApiOperation("生成规划报告时间")
|
|
|
|
|
@AnonymousAccess
|
|
|
|
|
public void countCaseTime(@RequestParam String caseId,
|
|
|
|
|
@RequestParam String userId) {
|
|
|
|
|
SynthesisPlanClientExample example =new SynthesisPlanClientExample();
|
|
|
|
|
example.createCriteria().andCaseidEqualTo(caseId).andUseridEqualTo(userId);
|
|
|
|
|
List<SynthesisPlanClient> synthesisPlanClients = synthesisPlanClientMapper.selectByExample(example);
|
|
|
|
|
if (!synthesisPlanClients.isEmpty()) {
|
|
|
|
|
SynthesisPlanClient synthesisPlanClient = synthesisPlanClients.get(0);
|
|
|
|
|
synthesisPlanClient.setCreateTime(new Date());
|
|
|
|
|
synthesisPlanClientMapper.updateByPrimaryKey(synthesisPlanClient);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|