|
@@ -9,14 +9,8 @@ import com.jpsoft.shinestar.config.WxConfig;
|
|
|
import com.jpsoft.shinestar.modules.base.entity.*;
|
|
|
import com.jpsoft.shinestar.modules.base.service.*;
|
|
|
import com.jpsoft.shinestar.modules.business.dto.ExaminePersonDTO;
|
|
|
-import com.jpsoft.shinestar.modules.business.entity.AdjustShift;
|
|
|
-import com.jpsoft.shinestar.modules.business.entity.CarryThingsOutFactory;
|
|
|
-import com.jpsoft.shinestar.modules.business.entity.RequestForLeaveInfo;
|
|
|
-import com.jpsoft.shinestar.modules.business.entity.SupplementWork;
|
|
|
-import com.jpsoft.shinestar.modules.business.service.AdjustShiftService;
|
|
|
-import com.jpsoft.shinestar.modules.business.service.CarryThingsOutFactoryService;
|
|
|
-import com.jpsoft.shinestar.modules.business.service.RequestForLeaveInfoService;
|
|
|
-import com.jpsoft.shinestar.modules.business.service.SupplementWorkService;
|
|
|
+import com.jpsoft.shinestar.modules.business.entity.*;
|
|
|
+import com.jpsoft.shinestar.modules.business.service.*;
|
|
|
import com.jpsoft.shinestar.modules.common.utils.JwtUtil2;
|
|
|
import com.jpsoft.shinestar.modules.common.utils.TypeNameUtil;
|
|
|
import com.jpsoft.shinestar.modules.common.utils.WechatMessageUtil;
|
|
@@ -95,6 +89,9 @@ public class ProcinstServiceImpl implements ProcinstService {
|
|
|
@Autowired
|
|
|
private ProcessTemplateService processTemplateService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private YearRequestForLeaveInfoService yearRequestForLeaveInfoService;
|
|
|
+
|
|
|
@Override
|
|
|
public Procinst get(String id) {
|
|
|
// TODO Auto-generated method stub
|
|
@@ -332,5 +329,13 @@ public class ProcinstServiceImpl implements ProcinstService {
|
|
|
customerDiningRecord.setUpdateTime(new Date());
|
|
|
customerDiningRecordService.update(customerDiningRecord);
|
|
|
}
|
|
|
+
|
|
|
+ //年假
|
|
|
+ if ("11".equals(procinst.getType())) {
|
|
|
+ YearRequestForLeaveInfo yearRequestForLeaveInfo = yearRequestForLeaveInfoService.get(procinst.getBusinessKey());
|
|
|
+ yearRequestForLeaveInfo.setStatus(6);
|
|
|
+ yearRequestForLeaveInfo.setUpdateTime(new Date());
|
|
|
+ yearRequestForLeaveInfoService.update(yearRequestForLeaveInfo);
|
|
|
+ }
|
|
|
}
|
|
|
}
|