Commit 1474b5c5 by 吴迪

【修改】医疗发布时间如果为空就默认给当前系统时间

parent d1eaf886
...@@ -68,6 +68,9 @@ public class MedicalController extends AbstractController { ...@@ -68,6 +68,9 @@ public class MedicalController extends AbstractController {
medical.setInputDate(new Date()); medical.setInputDate(new Date());
medical.setEditor(username); medical.setEditor(username);
medical.setLasteditor(username); medical.setLasteditor(username);
if(medical.getReleasetime()==null) {
medical.setReleasetime(new Date());
}
medicalService.save(medical); medicalService.save(medical);
return R.ok("新增成功!"); return R.ok("新增成功!");
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment