|
@@ -3023,8 +3023,17 @@ public class ApsProcessOperationProcessEquServiceImpl extends ServiceImpl<ApsPro
|
|
|
|
|
|
@Override
|
|
|
public R workDeliveryOffset(WorkDeliveryOffsetReq req) {
|
|
|
+ SysUserVo currentUser = CXCommonUtils.getCurrentUser();
|
|
|
+ String tenantId = "";
|
|
|
+ if (currentUser == null) {
|
|
|
+ currentUser = new SysUserVo();
|
|
|
+ currentUser.setId("0");
|
|
|
+ currentUser.setName("定时任务操作");
|
|
|
+ }else {
|
|
|
+ tenantId = CXCommonUtils.getCurrentUserFactoryId(currentUser);
|
|
|
+ }
|
|
|
//查询所有没有交期偏差的生产卡片
|
|
|
- List<ProductCardVo> list = this.baseMapper.selectProductionCards();
|
|
|
+ List<ProductCardVo> list = this.baseMapper.selectProductionCards(tenantId);
|
|
|
if (list.isEmpty()) {
|
|
|
log.info("没有查询到需要计算的卡片信息");
|
|
|
return R.ok();
|
|
@@ -3054,12 +3063,7 @@ public class ApsProcessOperationProcessEquServiceImpl extends ServiceImpl<ApsPro
|
|
|
Integer::max
|
|
|
)));
|
|
|
|
|
|
- SysUserVo currentUser = CXCommonUtils.getCurrentUser();
|
|
|
- if (currentUser == null) {
|
|
|
- currentUser = new SysUserVo();
|
|
|
- currentUser.setId("0");
|
|
|
- currentUser.setName("定时任务操作");
|
|
|
- }
|
|
|
+
|
|
|
DateTime now = DateUtil.date();
|
|
|
//需要修改或新增的集合
|
|
|
List<ApsDeliveryOffsetDo> needUpdateOrInsertList = new LinkedList<>();
|