wkyy 3 lat temu
rodzic
commit
1f9f0d4d3c

+ 1 - 1
common/src/main/java/com/jpsoft/shinestar/modules/base/service/impl/BusinessOutServiceImpl.java

@@ -459,7 +459,7 @@ public class BusinessOutServiceImpl implements BusinessOutService {
             insert(businessOut);
         }
 
-        if (draft == "1") {
+        if ("1".equals(draft)) {
             String procinstId = procinstService.addProcinst(businessOut.getId(), null, "出差", formId, personPopedom, null);
 
             businessOut.setProcinstId(procinstId);

+ 1 - 1
common/src/main/java/com/jpsoft/shinestar/modules/base/service/impl/CustomerDiningRecordServiceImpl.java

@@ -137,7 +137,7 @@ public class CustomerDiningRecordServiceImpl implements CustomerDiningRecordServ
             insert(customerDiningRecord);
         }
 
-        if (draft == "1") {
+        if ("1".equals(draft)) {
             String procinstId = procinstService.addProcinst(customerDiningRecord.getId(), null, "接待进餐", formId, personPopedom, null);
 
             customerDiningRecord.setProcinstId(procinstId);

+ 1 - 1
common/src/main/java/com/jpsoft/shinestar/modules/base/service/impl/WorkOverServiceImpl.java

@@ -433,7 +433,7 @@ public class WorkOverServiceImpl implements WorkOverService {
 			}
 		}
 
-		if (draft == "1") {
+		if ("1".equals(draft)) {
 			//非上级安排的需要加入审核流程
 			if (!"3".equals(type)) {
 

+ 1 - 1
common/src/main/java/com/jpsoft/shinestar/modules/business/service/impl/AdjustShiftServiceImpl.java

@@ -207,7 +207,7 @@ public class AdjustShiftServiceImpl implements AdjustShiftService {
 
 
 
-            if (draft == "1") {
+            if ("1".equals(draft)) {
                 // String procinstId = ((ProcinstService)AopContext.currentProxy()).addProcinst(adjustShift.getId(),"调班",formId,personPopedom);
 
                 String procinstId = procinstService.addProcinst(adjustShift.getId(), null, "调班", formId, personPopedom, null);

+ 1 - 1
common/src/main/java/com/jpsoft/shinestar/modules/business/service/impl/CarryThingsOutFactoryServiceImpl.java

@@ -128,7 +128,7 @@ public class CarryThingsOutFactoryServiceImpl implements CarryThingsOutFactorySe
 			insert(carryThingsOutFactory);
 		}
 
-		if (draft == "1") {
+		if ("1".equals(draft)) {
 			String procinstId = procinstService.addProcinst(carryThingsOutFactory.getId(), null, "携物出厂", formId, personPopedom, null);
 
 			carryThingsOutFactory.setProcinstId(procinstId);

+ 1 - 1
common/src/main/java/com/jpsoft/shinestar/modules/business/service/impl/RequestForLeaveInfoServiceImpl.java

@@ -577,7 +577,7 @@ public class RequestForLeaveInfoServiceImpl implements RequestForLeaveInfoServic
 
 			String ide = requestForLeaveInfo.getId();
 
-			if (draft == "1") {
+			if ("1".equals(draft)) {
 			String procinstId = procinstService.addProcinst(ide,days,"请假",formId,personPopedom,activity);
 
 

+ 2 - 2
common/src/main/java/com/jpsoft/shinestar/modules/business/service/impl/SupplementWorkServiceImpl.java

@@ -156,7 +156,7 @@ public class SupplementWorkServiceImpl implements SupplementWorkService {
 		workScheduleAttendance.setSupplementWorkPersonId(supplementWorkPerson.getId());
 		workScheduleAttendanceService.update(workScheduleAttendance);
 
-		if (draft == "1") {
+		if ("1".equals(draft)) {
 			//创建审核流程id
 			String procinstId = procinstService.addProcinst(supplementWork.getId(), null, "补卡", formId, personPopedom, null);
 
@@ -256,7 +256,7 @@ public class SupplementWorkServiceImpl implements SupplementWorkService {
 			insert(supplementWork);
 		}
 
-		if (draft == "1") {
+		if ("1".equals(draft)) {
 			//创建审核流程id
 			String procinstId = procinstService.addProcinst(supplementWork.getId(), null, "补卡", formId, personPopedom, null);