|
@@ -70,7 +70,6 @@ import com.jtgh.yjpt.entity.ireport.aqsp.WxhwzysqVo;
|
|
|
import com.jtgh.yjpt.entity.jlrxxgl.GlzdxxEntity;
|
|
|
import com.jtgh.yjpt.entity.jyr.JyrEntity;
|
|
|
import com.jtgh.yjpt.entity.jyrxxgl.RyjbxxEntity;
|
|
|
-import com.jtgh.yjpt.entity.task.Gztx;
|
|
|
import com.jtgh.yjpt.entity.yjgl.YjyaEntity;
|
|
|
import com.jtgh.yjpt.entity.yjzyxxgl.YjwzFlxxEntity;
|
|
|
import com.jtgh.yjpt.entity.zyfzhz.GkwxhwzyfzhzEntity;
|
|
@@ -83,7 +82,6 @@ import com.jtgh.yjpt.service.common.CodeService;
|
|
|
import com.jtgh.yjpt.service.jlrxxgl.GlzdxxService;
|
|
|
import com.jtgh.yjpt.service.jyr.JyrService;
|
|
|
import com.jtgh.yjpt.service.jyrxxgl.RyjbxxService;
|
|
|
-import com.jtgh.yjpt.service.task.TaskService;
|
|
|
import com.jtgh.yjpt.service.yjgl.YjyaService;
|
|
|
import com.jtgh.yjpt.service.yjzyxxgl.YjwzFlxxService;
|
|
|
import com.jtgh.yjpt.service.zyfzndjy.GkfzzbService;
|
|
@@ -125,8 +123,7 @@ public class GkwxhwzyfzblhhzController extends BaseController {
|
|
|
private YjwzFlxxService wzService;
|
|
|
@Autowired
|
|
|
private AccessoryService accessoryService;
|
|
|
- @Autowired
|
|
|
- private TaskService taskService;
|
|
|
+
|
|
|
|
|
|
/**
|
|
|
* 企业界面的查询
|
|
@@ -187,7 +184,7 @@ public class GkwxhwzyfzblhhzController extends BaseController {
|
|
|
//“默认”状态,此状态企业查看全部
|
|
|
if(!lcStatus.equals("default")){
|
|
|
list = Utils.setWorkflowSpec(list, cb, query, root,
|
|
|
- lcStatus);
|
|
|
+ lcStatus,GkwxhwzyfzblhhzEntity.PROCESS_DEFINITION_KEY);
|
|
|
}
|
|
|
return cb.and(list.toArray(new Predicate[] {}));
|
|
|
}
|
|
@@ -272,7 +269,7 @@ public class GkwxhwzyfzblhhzController extends BaseController {
|
|
|
"%" + fddbr + "%"));
|
|
|
}
|
|
|
list = Utils.setWorkflowSpec(list, cb, query, root,
|
|
|
- lcStatus);
|
|
|
+ lcStatus,GkwxhwzyfzblhhzEntity.PROCESS_DEFINITION_KEY);
|
|
|
return cb.and(list.toArray(new Predicate[] {}));
|
|
|
}
|
|
|
};
|
|
@@ -361,7 +358,7 @@ public class GkwxhwzyfzblhhzController extends BaseController {
|
|
|
Long.parseLong(param.get(5))));
|
|
|
}
|
|
|
list = Utils.setWorkflowSpec(list, cb, query, root,
|
|
|
- param.get(6));
|
|
|
+ param.get(6),GkwxhwzyfzblhhzEntity.PROCESS_DEFINITION_KEY);
|
|
|
return cb.and(list.toArray(new Predicate[] {}));
|
|
|
}
|
|
|
};
|
|
@@ -779,20 +776,35 @@ public class GkwxhwzyfzblhhzController extends BaseController {
|
|
|
@Log(Type.DELETE)
|
|
|
public BusinessContext logicDelete(List<GkwxhwzyfzblhhzEntity> entities) {
|
|
|
try {
|
|
|
- BusinessContext bc = createBusinessContext();
|
|
|
- gkwxhwzyfzblhhzService.logicDelete(entities);
|
|
|
|
|
|
- //判断附证申请实例是不是退回状态,如果是,除了删除附证申请数据还要将工作工作提醒中的对应提醒也删除掉:
|
|
|
- //edit by xuhao 2016-09-06
|
|
|
- for(GkwxhwzyfzblhhzEntity entity : entities){
|
|
|
- if(entity.getRecordStatus()==4){
|
|
|
- List<Gztx> gztxList = taskService.findGztxByBYZD2(entity.getId().toString());//更具BYZD2找到实例
|
|
|
- for(Gztx gztx : gztxList ){
|
|
|
- gztx.setTxzt(Constants.NO);
|
|
|
- taskService.saveGztx(gztx);//将工作提醒置关闭掉(即删除)
|
|
|
- }
|
|
|
+ //删除退回的申请及关联代办
|
|
|
+// for(GkwxhwzyfzblhhzEntity entity : entities){
|
|
|
+// if(entity.getRecordStatus()==BaseEntity.RECORD_STATE_REJECT){
|
|
|
+// List<TaskInfoEntity> taskList = taskService.findByBusIdAndBusKeyAndRecordStatus(entity.getId().toString(), GkwxhwzyfzblhhzEntity.PROCESS_DEFINITION_KEY);
|
|
|
+// if(taskList != null){
|
|
|
+// for(TaskInfoEntity task: taskList){
|
|
|
+// taskServiceWorkflow.deleteTask(task.getTaskId());
|
|
|
+// }
|
|
|
+// }
|
|
|
+//
|
|
|
+// }
|
|
|
+// }
|
|
|
+ for(GkwxhwzyfzblhhzEntity entity :entities){
|
|
|
+ if(entity.getRecordStatus()==BaseEntity.RECORD_STATE_REJECT){
|
|
|
+ String business_key_ = GkwxhwzyfzblhhzEntity.PROCESS_DEFINITION_KEY + "-" +entity.getId();
|
|
|
+ //String sql="delete from ACT_RU_TASK where PROC_INST_ID_ in (SELECT PROC_INST_ID_ FROM ACT_RU_EXECUTION WHERE BUSINESS_KEY_='"+business_key_+"' )";
|
|
|
+// String sql="update ACT_RU_TASK set ASSIGNEE_='' where PROC_INST_ID_ in (SELECT PROC_INST_ID_ FROM ACT_RU_EXECUTION WHERE BUSINESS_KEY_='"+business_key_+"' )";
|
|
|
+// jdbcTemplate.update(sql);
|
|
|
+ gkwxhwzyfzblhhzService.Del_FZSQ_TuiHui_WaitHandle(business_key_);
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ BusinessContext bc = createBusinessContext();
|
|
|
+ gkwxhwzyfzblhhzService.logicDelete(entities);
|
|
|
+
|
|
|
+ //
|
|
|
|
|
|
|
|
|
// 制度list删除
|