|
@@ -42,6 +42,49 @@ public class TWorklicenseCertificateController extends BaseController
|
|
|
{
|
|
|
startPage();
|
|
|
List<TWorklicenseCertificate> list = tWorklicenseCertificateService.selectTWorklicenseCertificateList(tWorklicenseCertificate);
|
|
|
+ for (TWorklicenseCertificate worklicenseCertificate : list) {
|
|
|
+ String cracking = worklicenseCertificate.getCracking();
|
|
|
+ String hotarea = worklicenseCertificate.getHotarea();
|
|
|
+ String coldarea = worklicenseCertificate.getColdarea();
|
|
|
+ String aromatic = worklicenseCertificate.getAromatic();
|
|
|
+ // 是否高亮
|
|
|
+ worklicenseCertificate.setIsHighlight(0);
|
|
|
+ // 岗位-作业证书矩阵
|
|
|
+ // 裂解(裂解/SUB)岗位:特种设备管理(压力容器/管道操作证书);危险化学品作业-裂解(裂化)工艺;锅炉操作证。
|
|
|
+ // 热区(压缩)岗位:特种设备管理(压力容器/管道操作证书);危险化学品作业-加氢工艺。
|
|
|
+ // 冷区(分离)岗位:特种设备管理(压力容器/管道操作证书);危险化学品作业-加氢工艺;特种作业-制冷与空调(指定人员)。
|
|
|
+ // 芳烃(PGU&AEU)岗位:特种设备管理(压力容器/管道操作证书);危险化学品作业-加氢工艺。
|
|
|
+ if ("1".equals(cracking)) {
|
|
|
+ if (worklicenseCertificate.getContainer() == null
|
|
|
+ || worklicenseCertificate.getPipe() == null
|
|
|
+ || worklicenseCertificate.getCrackingid() == null
|
|
|
+ || worklicenseCertificate.getBoilerid() == null) {
|
|
|
+ worklicenseCertificate.setIsHighlight(1);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if ("1".equals(hotarea)) {
|
|
|
+ if (worklicenseCertificate.getContainer() == null
|
|
|
+ || worklicenseCertificate.getPipe() == null
|
|
|
+ || worklicenseCertificate.getCrackingid() == null) {
|
|
|
+ worklicenseCertificate.setIsHighlight(1);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if ("1".equals(coldarea)) {
|
|
|
+ if (worklicenseCertificate.getContainer() == null
|
|
|
+ || worklicenseCertificate.getPipe() == null
|
|
|
+ || worklicenseCertificate.getCrackingid() == null
|
|
|
+ || worklicenseCertificate.getRefrigeration() == null) {
|
|
|
+ worklicenseCertificate.setIsHighlight(1);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if ("1".equals(aromatic)) {
|
|
|
+ if (worklicenseCertificate.getContainer() == null
|
|
|
+ || worklicenseCertificate.getPipe() == null
|
|
|
+ || worklicenseCertificate.getCrackingid() == null) {
|
|
|
+ worklicenseCertificate.setIsHighlight(1);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
return getDataTable(list);
|
|
|
}
|
|
|
|