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