|
@@ -17,6 +17,7 @@ import org.springframework.stereotype.Controller;
|
|
|
import org.springframework.ui.ModelMap;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
+import java.util.Date;
|
|
|
import java.util.List;
|
|
|
|
|
|
@Controller
|
|
@@ -56,10 +57,14 @@ public class RlzyApplyPrintController extends BaseController {
|
|
|
@ResponseBody
|
|
|
public AjaxResult addSave(RlzyApply rlzyApply)
|
|
|
{
|
|
|
- rlzyApply.setCreateTime(DateUtils.getNowDate());
|
|
|
+ Date nowTime = DateUtils.getNowDate();
|
|
|
+ Date later5 = DateUtils.later5();
|
|
|
+ rlzyApply.setCreateTime(nowTime);
|
|
|
rlzyApply.setIszprint("0");
|
|
|
rlzyApply.setIsfprint("0");
|
|
|
rlzyApply.setStatus("0");
|
|
|
+ rlzyApply.setOpeningDate(nowTime);
|
|
|
+ rlzyApply.setEfficaciousDate(later5);
|
|
|
return toAjax(rlzyApplyService.insert(rlzyApply));
|
|
|
}
|
|
|
@GetMapping("/{idcard}")
|
|
@@ -109,9 +114,9 @@ public class RlzyApplyPrintController extends BaseController {
|
|
|
public AjaxResult updateApply(Long applyId ,String type){
|
|
|
RlzyApply build = null;
|
|
|
if("zhengben".equals(type)){
|
|
|
- build = RlzyApply.builder().iszprint("1").id(applyId).build();
|
|
|
+ build = RlzyApply.builder().iszprint("1").zprintTime(DateUtils.getNowDate()).id(applyId).build();
|
|
|
}else if("fuben".equals(type)){
|
|
|
- build = RlzyApply.builder().isfprint("1").id(applyId).build();
|
|
|
+ build = RlzyApply.builder().isfprint("1").fprintTime(DateUtils.getNowDate()).id(applyId).build();
|
|
|
}
|
|
|
return AjaxResult.success(rlzyApplyService.updateById(build));
|
|
|
}
|