|
@@ -321,6 +321,7 @@ public class XkzzxCtl extends BaseWebCtl {
|
|
|
List<Predicate> list = new ArrayList<Predicate>();
|
|
|
list.add(cb.like(root.get("gkjyr").as(String.class), "%" + jyrid + "%"));
|
|
|
list.add(cb.notEqual(root.get("recordStatus").as(Integer.class), BaseEntity.RECORD_STATE_DELETE));
|
|
|
+ list.add(cb.equal(root.get("sfyx").as(Integer.class), BaseEntity.RECORD_STATE_VALID));
|
|
|
return cb.and(list.toArray(new Predicate[] {}));
|
|
|
}
|
|
|
};
|
|
@@ -873,7 +874,7 @@ public class XkzzxCtl extends BaseWebCtl {
|
|
|
|
|
|
// 查看
|
|
|
@RequestMapping(value = "/viewmain")
|
|
|
- public String viewmain(Model model, String id, String flag, String opflag, String path, String path2,String type) {
|
|
|
+ public String viewmain(Model model, String id, String flag, String opflag, String path, String path2, String type) {
|
|
|
model.addAttribute("path", path);
|
|
|
model.addAttribute("type", type);
|
|
|
model.addAttribute("path2", path2);
|
|
@@ -1086,7 +1087,7 @@ public class XkzzxCtl extends BaseWebCtl {
|
|
|
// 编辑
|
|
|
@RequestMapping(value = "/editmain")
|
|
|
@RequiresPermissions("gkjyxkzx:edit")
|
|
|
- public String editmain(Model model, String id, String flag, String path,String type) {
|
|
|
+ public String editmain(Model model, String id, String flag, String path, String type) {
|
|
|
model.addAttribute("flag", flag);
|
|
|
model.addAttribute("path", path);
|
|
|
model.addAttribute("type", type);
|
|
@@ -1653,6 +1654,8 @@ public class XkzzxCtl extends BaseWebCtl {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+ // rtx提醒
|
|
|
+ rtxSend(xkzzxEntity.getSzgq().getId(), Constants.ROLE_CLSC, "你有一条许可证注销待办事务,请及时处理!");
|
|
|
} catch (Exception e) {
|
|
|
wr.setSuccess(false);
|
|
|
wr.setMessage("操作失败!");
|
|
@@ -1700,6 +1703,8 @@ public class XkzzxCtl extends BaseWebCtl {
|
|
|
xkzzxService.claim(code.getId(), SecUtils.getCurrUser().getId().toString());
|
|
|
}
|
|
|
xkzzxService.changeAudit(null, xkzzxEntity, true);
|
|
|
+ // rtx提醒
|
|
|
+ rtxSend(xkzzxEntity.getSzgq().getId(), Constants.ROLE_CLSC, "你有一条许可证注销待办事务,请及时处理!");
|
|
|
} catch (Exception e) {
|
|
|
wr.setSuccess(false);
|
|
|
wr.setMessage("操作失败!");
|
|
@@ -1922,6 +1927,7 @@ public class XkzzxCtl extends BaseWebCtl {
|
|
|
WebJsonResult wr = success();
|
|
|
UserEntity user = securityMgr.getCurrUser();
|
|
|
XkzzxEntity entity = null;
|
|
|
+ String role = "";
|
|
|
try {
|
|
|
entity = xkzzxService.findOne(id);
|
|
|
Date today = new Date();
|
|
@@ -1932,14 +1938,17 @@ public class XkzzxCtl extends BaseWebCtl {
|
|
|
entity.setClscyj(StringUtils.isEmpty(shyj) ? "" : shyj);
|
|
|
entity.setClscjbr(user.getName());
|
|
|
entity.setClscrq(today);
|
|
|
+ role = Constants.ROLE_HC;
|
|
|
} else if ("核查".equals(taskinfo.getCurrName())) {
|
|
|
entity.setHcyj(StringUtils.isEmpty(shyj) ? "" : shyj);
|
|
|
entity.setHcjbr(user.getName());
|
|
|
entity.setHcjbrq(today);
|
|
|
+ role = Constants.ROLE_FH;
|
|
|
} else if ("复核".equals(taskinfo.getCurrName())) {
|
|
|
entity.setFhyj(StringUtils.isEmpty(shyj) ? "" : shyj);
|
|
|
entity.setFhjbr(user.getName());
|
|
|
entity.setFhrq(today);
|
|
|
+ role = Constants.ROLE_SP;
|
|
|
} else if ("审批".equals(taskinfo.getCurrName())) {
|
|
|
entity.setSpyj(StringUtils.isEmpty(shyj) ? "" : shyj);
|
|
|
entity.setSpjbr(user.getName());
|
|
@@ -1957,6 +1966,10 @@ public class XkzzxCtl extends BaseWebCtl {
|
|
|
xkzzxService.claim(id, SecUtils.getCurrUser().getId().toString());
|
|
|
}
|
|
|
boolean jflag = xkzzxService.changeAudit(shyj, entity, flag);
|
|
|
+ if (!jflag) {
|
|
|
+ // rtx提醒
|
|
|
+ rtxSend(entity.getSzgq().getId(), role, "你有一条许可证注销待办事务,请及时处理!");
|
|
|
+ }
|
|
|
wr.setAttr("jflag", jflag);
|
|
|
} catch (Exception e) {
|
|
|
wr.setSuccess(false);
|