|
@@ -117,7 +117,7 @@ public class LhyxCtl extends BaseWebCtl {
|
|
|
list.add(cb.like(root.get("zcdz").as(String.class), "%" + bgdd + "%"));
|
|
|
}
|
|
|
// 经营人只能查看自己企业下的数据,非经营人只能查看自己所在地的数据
|
|
|
- if(isJyr()){
|
|
|
+ if (isJyr()) {
|
|
|
list.add(cb.like(root.get("jyrid").as(String.class), "%" + securityMgr.getCurrUser().getSsjyr().getId() + "%"));
|
|
|
}
|
|
|
list.add(cb.notEqual(root.get("recordStatus").as(Integer.class), BaseEntity.RECORD_STATE_DELETE));
|
|
@@ -158,8 +158,6 @@ public class LhyxCtl extends BaseWebCtl {
|
|
|
return "gkjygl/gklhxkgl/gkjylhyx/lhyxmain";
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-
|
|
|
// 新增
|
|
|
@RequestMapping(value = "/add")
|
|
|
public String add(Model model) {
|
|
@@ -309,8 +307,7 @@ public class LhyxCtl extends BaseWebCtl {
|
|
|
}
|
|
|
}
|
|
|
// rtx提醒
|
|
|
- // rtxSend(lhyxEntity.getSzgq().getId(), Constants.ROLE_CLSC,
|
|
|
- // "你有一条许可证变更待办事务,请及时处理!");
|
|
|
+ rtxSend("", Constants.ROLE_KS, "你有一条理货延续待办事务,请及时处理!");
|
|
|
} catch (Exception e) {
|
|
|
wr.setSuccess(false);
|
|
|
wr.setMessage("操作失败!");
|
|
@@ -321,7 +318,7 @@ public class LhyxCtl extends BaseWebCtl {
|
|
|
|
|
|
@RequestMapping(value = "/submitAudit")
|
|
|
@ResponseBody
|
|
|
- public WebJsonResult submitAudit(LhyxEntity code, String accid) {
|
|
|
+ public WebJsonResult submitAudit(LhyxEntity code, String accid) {
|
|
|
WebJsonResult wr = success();
|
|
|
LhyxEntity lhyxEntity = new LhyxEntity();
|
|
|
try {
|
|
@@ -350,8 +347,7 @@ public class LhyxCtl extends BaseWebCtl {
|
|
|
}
|
|
|
lhyxService.changeAudit(null, lhyxEntity, true);
|
|
|
// rtx提醒
|
|
|
- // rtxSend(lhyxEntity.getSzgq().getId(), Constants.ROLE_CLSC,
|
|
|
- // "你有一条许可证变更待办事务,请及时处理!");
|
|
|
+ rtxSend("", Constants.ROLE_KS, "你有一条理货延续待办事务,请及时处理!");
|
|
|
} catch (Exception e) {
|
|
|
wr.setSuccess(false);
|
|
|
wr.setMessage("操作失败!");
|
|
@@ -443,13 +439,17 @@ public class LhyxCtl extends BaseWebCtl {
|
|
|
public WebJsonResult audit(String shyj, String id, boolean flag) {
|
|
|
WebJsonResult wr = success();
|
|
|
LhyxEntity entity = new LhyxEntity();
|
|
|
+ String role = "";
|
|
|
try {
|
|
|
entity = lhyxService.findOne(id);
|
|
|
List<TaskInfoEntity> list = taskInfoService.findByBusIdAndBusKeyAndRecordStatus(id, LhyxEntity.PROCESS_DEFINITION_KEY);
|
|
|
if (list != null & list.size() > 0) {
|
|
|
TaskInfoEntity taskinfo = list.get(0);
|
|
|
-
|
|
|
- lhyxService.save(entity);
|
|
|
+ if ("kssc".equals(taskinfo.getTaskKey())) {
|
|
|
+ role = Constants.ROLE_FGLD;
|
|
|
+ } else if ("fgldsp".equals(taskinfo.getTaskKey())) {
|
|
|
+ role = Constants.ROLE_LD;
|
|
|
+ }
|
|
|
}
|
|
|
} catch (Exception e) {
|
|
|
wr.setSuccess(false);
|
|
@@ -465,8 +465,7 @@ public class LhyxCtl extends BaseWebCtl {
|
|
|
|
|
|
} else {
|
|
|
// rtx提醒
|
|
|
- // rtxSend(entity.getSzgq().getId(), role,
|
|
|
- // "你有一条许可证变更待办事务,请及时处理!");
|
|
|
+ rtxSend("", role, "你有一条理货延续待办事务,请及时处理!");
|
|
|
}
|
|
|
wr.setAttr("jflag", jflag);
|
|
|
} catch (Exception e) {
|