|
@@ -117,16 +117,51 @@ public class TApproveReserveInvoiceController extends BaseController {
|
|
long bussniseeKey = tApproveReserveInvoice.getId();
|
|
long bussniseeKey = tApproveReserveInvoice.getId();
|
|
String[] ids;
|
|
String[] ids;
|
|
ids = tApproveReserveInvoice.getInvoiceId().split(",");
|
|
ids = tApproveReserveInvoice.getInvoiceId().split(",");
|
|
|
|
+ String devSupId = "";
|
|
for (String id : ids) {
|
|
for (String id : ids) {
|
|
TInvoiceBookingworkticket invoice = workService.getById(id);
|
|
TInvoiceBookingworkticket invoice = workService.getById(id);
|
|
invoice.setStatus(1L);
|
|
invoice.setStatus(1L);
|
|
workService.updateById(invoice);
|
|
workService.updateById(invoice);
|
|
|
|
+ switch (invoice.getWorkArea()){
|
|
|
|
+ case "310裂解区":
|
|
|
|
+ case "700开关锅炉":
|
|
|
|
+ case "320裂解区":
|
|
|
|
+ case "250管廊-700":
|
|
|
|
+ devSupId="20253,20257";
|
|
|
|
+ break;
|
|
|
|
+ case "330压缩区":
|
|
|
|
+ case "废水处理":
|
|
|
|
+ case "600废碱":
|
|
|
|
+ case "250管廊-600":
|
|
|
|
+ devSupId="20249,20317";
|
|
|
|
+ break;
|
|
|
|
+ case "380分离区":
|
|
|
|
+ case "360分离区":
|
|
|
|
+ case "350分离区":
|
|
|
|
+ case "340分离区":
|
|
|
|
+ devSupId="20252";
|
|
|
|
+ break;
|
|
|
|
+ case "400汽油加氢":
|
|
|
|
+ case "250管廊-400":
|
|
|
|
+ devSupId="20248";
|
|
|
|
+ break;
|
|
|
|
+ case "500芳烃抽提":
|
|
|
|
+ case "250管廊-500":
|
|
|
|
+ devSupId="20244";
|
|
|
|
+ break;
|
|
|
|
+ case "D301控制楼":
|
|
|
|
+ case " D201变电所":
|
|
|
|
+ case " 维修厂房":
|
|
|
|
+ case "危废车库":
|
|
|
|
+ devSupId="20332,20250,20276";
|
|
|
|
+ break;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
//开始工作流、监听
|
|
//开始工作流、监听
|
|
Map<String, Object> variables = new HashMap<>();
|
|
Map<String, Object> variables = new HashMap<>();
|
|
variables.put("applyUser", userid.toString());
|
|
variables.put("applyUser", userid.toString());
|
|
variables.put("yhzgusers", tApproveReserveInvoice.getUserSupId());//用户主管
|
|
variables.put("yhzgusers", tApproveReserveInvoice.getUserSupId());//用户主管
|
|
- variables.put("zzzgusers", tApproveReserveInvoice.getDevSupId());//装置主管
|
|
|
|
|
|
+ variables.put("zzzgusers", devSupId);//装置主管
|
|
if ("1".equals(tApproveReserveInvoice.getIsToday())) {
|
|
if ("1".equals(tApproveReserveInvoice.getIsToday())) {
|
|
variables.put("zzgcsusers", tApproveReserveInvoice.getDevEngineerId());//装置工程师
|
|
variables.put("zzgcsusers", tApproveReserveInvoice.getDevEngineerId());//装置工程师
|
|
variables.put("zzgcsTaskCreateListener",new ZzgcsTaskCreateListener());//装置工程师监听发送邮件
|
|
variables.put("zzgcsTaskCreateListener",new ZzgcsTaskCreateListener());//装置工程师监听发送邮件
|