|
@@ -133,13 +133,13 @@ public class StudentInsuranceController {
|
|
@ApiImplicitParam(name = "startTime",value = "生效时间", required = false, paramType = "form"),
|
|
@ApiImplicitParam(name = "startTime",value = "生效时间", required = false, paramType = "form"),
|
|
@ApiImplicitParam(name = "endTime",value = "失效时间", required = false, paramType = "form")
|
|
@ApiImplicitParam(name = "endTime",value = "失效时间", required = false, paramType = "form")
|
|
})
|
|
})
|
|
- public MessageResult<StudentApplication> save(
|
|
|
|
|
|
+ public MessageResult<String> save(
|
|
String insuredId,String insuredName,String insuredSex,String insuredSchoolId,String insuredSchoolName,String companyId,String companyName,String insuredCard,Boolean haveMedicare,
|
|
String insuredId,String insuredName,String insuredSex,String insuredSchoolId,String insuredSchoolName,String companyId,String companyName,String insuredCard,Boolean haveMedicare,
|
|
String attachId,String attachName,String relationship,String attachTel,
|
|
String attachId,String attachName,String relationship,String attachTel,
|
|
String definitionId,String definitionName,
|
|
String definitionId,String definitionName,
|
|
- Date startTime,Date endTime,
|
|
|
|
|
|
+ String startTime,String endTime,
|
|
@RequestAttribute String subject){
|
|
@RequestAttribute String subject){
|
|
- MessageResult<StudentApplication> msgResult = new MessageResult<>();
|
|
|
|
|
|
+ MessageResult<String> msgResult = new MessageResult<>();
|
|
SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMddHHmmssSSS");
|
|
SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMddHHmmssSSS");
|
|
|
|
|
|
try {
|
|
try {
|
|
@@ -167,8 +167,8 @@ public class StudentInsuranceController {
|
|
}else{
|
|
}else{
|
|
studentApplication.setHaveAttach(false);
|
|
studentApplication.setHaveAttach(false);
|
|
}
|
|
}
|
|
- studentApplication.setStartTime(startTime);
|
|
|
|
- studentApplication.setEndTime(endTime);
|
|
|
|
|
|
+ studentApplication.setStartTime(sdf.parse(startTime));
|
|
|
|
+ studentApplication.setEndTime(sdf.parse(endTime));
|
|
studentApplication.setDelFlag(false);
|
|
studentApplication.setDelFlag(false);
|
|
studentApplication.setCreateBy(subject);
|
|
studentApplication.setCreateBy(subject);
|
|
studentApplication.setCreateTime(new Date());
|
|
studentApplication.setCreateTime(new Date());
|
|
@@ -187,16 +187,21 @@ public class StudentInsuranceController {
|
|
studentApplicationRecord.setCreateTime(new Date());
|
|
studentApplicationRecord.setCreateTime(new Date());
|
|
studentApplicationRecordService.insert(studentApplicationRecord);
|
|
studentApplicationRecordService.insert(studentApplicationRecord);
|
|
|
|
|
|
|
|
+
|
|
|
|
+ msgResult.setCode(200);
|
|
msgResult.setResult(true);
|
|
msgResult.setResult(true);
|
|
- msgResult.setData(studentApplication);
|
|
|
|
- } else {
|
|
|
|
|
|
+ msgResult.setData(studentApplication.getId());
|
|
|
|
+ msgResult.setMessage("成功");
|
|
|
|
+ } /*else {
|
|
|
|
+ msgResult.setCode(400);
|
|
msgResult.setResult(false);
|
|
msgResult.setResult(false);
|
|
msgResult.setMessage("数据库添加失败");
|
|
msgResult.setMessage("数据库添加失败");
|
|
- }
|
|
|
|
|
|
+ }*/
|
|
}
|
|
}
|
|
catch(Exception ex){
|
|
catch(Exception ex){
|
|
logger.error(ex.getMessage(),ex);
|
|
logger.error(ex.getMessage(),ex);
|
|
|
|
|
|
|
|
+ msgResult.setCode(500);
|
|
msgResult.setResult(false);
|
|
msgResult.setResult(false);
|
|
msgResult.setMessage(ex.getMessage());
|
|
msgResult.setMessage(ex.getMessage());
|
|
}
|
|
}
|