Browse Source

Merge branch 'sprint/S3' into release/S3

master
郑贵龙 1 year ago
parent
commit
249b9982c7
5 changed files with 7 additions and 8 deletions
  1. +1
    -1
      demo-athenaopt_backend/develop/src/main/java/com/digiwin/athena/app/ptc/infra/mapper/ReceivablesDetailMapper.xml
  2. +1
    -1
      demo-athenaopt_backend/develop/src/main/java/com/digiwin/athena/app/ptc/service/production/ProductionTasUpdateEAIService.java
  3. +1
    -1
      demo-athenaopt_backend/develop/src/main/java/com/digiwin/athena/app/ptc/service/production/ProductionTaskGetEAIService.java
  4. +3
    -4
      demo-athenaopt_backend/develop/src/main/java/com/digiwin/athena/app/ptc/service/receivables/ReceivablesInitialCreateEAIService.java
  5. +1
    -1
      demo-athenaopt_backend/develop/src/main/java/com/digiwin/athena/app/ptc/service/receivables/ReceivablesTaskUpdateEAIService.java

+ 1
- 1
demo-athenaopt_backend/develop/src/main/java/com/digiwin/athena/app/ptc/infra/mapper/ReceivablesDetailMapper.xml View File

@ -6,7 +6,7 @@
<delete id="deleteBatch"> <delete id="deleteBatch">
delete from cim_receivables_detail where tenantsid=#{tenantSid}
delete from cim_receivables_detail where tenantsid=#{tenantSid} and
<foreach collection="list" item="item" index="index" separator=" or" open="" close=""> <foreach collection="list" item="item" index="index" separator=" or" open="" close="">
( (
sales_order = #{item.salesOrder} sales_order = #{item.salesOrder}


+ 1
- 1
demo-athenaopt_backend/develop/src/main/java/com/digiwin/athena/app/ptc/service/production/ProductionTasUpdateEAIService.java View File

@ -47,7 +47,7 @@ public class ProductionTasUpdateEAIService extends AbsEAIService {
} }
LambdaUpdateWrapper<ProductionDetailsEntity> ump = new LambdaUpdateWrapper<>(); LambdaUpdateWrapper<ProductionDetailsEntity> ump = new LambdaUpdateWrapper<>();
ump.set(ProductionDetailsEntity::getProductionStatus, TabStatusEnums.COMPLETED.getValue());
ump.set(ProductionDetailsEntity::getProductionStatus, TabStatusEnums.COMPLETED.getValue().toString());
List<String> woNoList = productionDetailsEntities.stream().map(ProductionDetailsEntity::getWorkNo).collect(Collectors.toList()); List<String> woNoList = productionDetailsEntities.stream().map(ProductionDetailsEntity::getWorkNo).collect(Collectors.toList());
ump.in(ProductionDetailsEntity::getWorkNo,woNoList); ump.in(ProductionDetailsEntity::getWorkNo,woNoList);


+ 1
- 1
demo-athenaopt_backend/develop/src/main/java/com/digiwin/athena/app/ptc/service/production/ProductionTaskGetEAIService.java View File

@ -50,7 +50,7 @@ public class ProductionTaskGetEAIService extends AbsEAIService {
LambdaQueryWrapper<ProductionDetailsEntity> lmq = new LambdaQueryWrapper<>(); LambdaQueryWrapper<ProductionDetailsEntity> lmq = new LambdaQueryWrapper<>();
List<String> woNoList = productionDetailsEntities.stream().map(ProductionDetailsEntity::getWorkNo).collect(Collectors.toList()); List<String> woNoList = productionDetailsEntities.stream().map(ProductionDetailsEntity::getWorkNo).collect(Collectors.toList());
lmq.eq(ProductionDetailsEntity::getTenantSid,SecurityUtil.getUserProfile().getTenantSid()); lmq.eq(ProductionDetailsEntity::getTenantSid,SecurityUtil.getUserProfile().getTenantSid());
lmq.eq(ProductionDetailsEntity::getProductionStatus, TabStatusEnums.PENDING.getValue());
lmq.eq(ProductionDetailsEntity::getProductionStatus, TabStatusEnums.PENDING.getValue().toString());
lmq.in(ProductionDetailsEntity::getWorkNo,woNoList); lmq.in(ProductionDetailsEntity::getWorkNo,woNoList);
List<ProductionDetailsEntity> list = productionDetailsService.list(lmq); List<ProductionDetailsEntity> list = productionDetailsService.list(lmq);


+ 3
- 4
demo-athenaopt_backend/develop/src/main/java/com/digiwin/athena/app/ptc/service/receivables/ReceivablesInitialCreateEAIService.java View File

@ -3,7 +3,6 @@ package com.digiwin.athena.app.ptc.service.receivables;
import com.alibaba.nacos.common.utils.CollectionUtils; import com.alibaba.nacos.common.utils.CollectionUtils;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.digiwin.app.service.DWEAIResult; import com.digiwin.app.service.DWEAIResult;
import com.digiwin.athena.app.infra.common.enums.TabStatusEnums;
import com.digiwin.athena.app.ptc.infra.entity.CollectionDetailEntity; import com.digiwin.athena.app.ptc.infra.entity.CollectionDetailEntity;
import com.digiwin.athena.app.ptc.infra.entity.ReceivablesDetailEntity; import com.digiwin.athena.app.ptc.infra.entity.ReceivablesDetailEntity;
import com.digiwin.athena.app.ptc.infra.repository.CollectionDetailRepository; import com.digiwin.athena.app.ptc.infra.repository.CollectionDetailRepository;
@ -13,7 +12,6 @@ import com.digiwin.athena.app.ptc.infra.service.ReceivablesDetailService;
import com.digiwin.athena.opt.common.eai.service.AbsEAIService; import com.digiwin.athena.opt.common.eai.service.AbsEAIService;
import com.digiwin.athena.opt.common.generator.SnowflakeWorker; import com.digiwin.athena.opt.common.generator.SnowflakeWorker;
import com.digiwin.athena.opt.common.security.SecurityUtil; import com.digiwin.athena.opt.common.security.SecurityUtil;
import com.digiwin.athena.opt.common.util.DateUtils;
import lombok.extern.log4j.Log4j2; import lombok.extern.log4j.Log4j2;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
@ -79,7 +77,7 @@ public class ReceivablesInitialCreateEAIService extends AbsEAIService {
HashSet<Integer> set = new HashSet<>(); HashSet<Integer> set = new HashSet<>();
int count = 0; int count = 0;
while (count < 6) { while (count < 6) {
int num = random.nextInt(27);
int num = random.nextInt(26);
if (!set.contains(num)) { if (!set.contains(num)) {
set.add(num); set.add(num);
count++; count++;
@ -116,7 +114,7 @@ public class ReceivablesInitialCreateEAIService extends AbsEAIService {
//取出已完成的数据 //取出已完成的数据
LambdaQueryWrapper<CollectionDetailEntity> lmq = new LambdaQueryWrapper<>(); LambdaQueryWrapper<CollectionDetailEntity> lmq = new LambdaQueryWrapper<>();
lmq.eq(CollectionDetailEntity::getTenantSid,tenantSid); lmq.eq(CollectionDetailEntity::getTenantSid,tenantSid);
lmq.eq(CollectionDetailEntity::getStatus, TabStatusEnums.COMPLETED.getValue());
lmq.eq(CollectionDetailEntity::getStatus, "2");
List<CollectionDetailEntity> collectionDetailEntities = collectionDetailService.list(lmq); List<CollectionDetailEntity> collectionDetailEntities = collectionDetailService.list(lmq);
//删除应收数据 //删除应收数据
@ -128,6 +126,7 @@ public class ReceivablesInitialCreateEAIService extends AbsEAIService {
//随机新增 //随机新增
for (ReceivablesDetailEntity receivablesDetailEntity : list) { for (ReceivablesDetailEntity receivablesDetailEntity : list) {
int i = random.nextInt(16); int i = random.nextInt(16);
ReceivablesDetailEntity sku = skuList.get(i); ReceivablesDetailEntity sku = skuList.get(i);
receivablesDetailEntity.setSkuCode(sku.getSkuCode()); receivablesDetailEntity.setSkuCode(sku.getSkuCode());


+ 1
- 1
demo-athenaopt_backend/develop/src/main/java/com/digiwin/athena/app/ptc/service/receivables/ReceivablesTaskUpdateEAIService.java View File

@ -49,7 +49,7 @@ public class ReceivablesTaskUpdateEAIService extends AbsEAIService {
} }
LambdaUpdateWrapper<CollectionDetailEntity> ump = new LambdaUpdateWrapper<>(); LambdaUpdateWrapper<CollectionDetailEntity> ump = new LambdaUpdateWrapper<>();
ump.set(CollectionDetailEntity::getStatus, TabStatusEnums.COMPLETED.getValue());
ump.set(CollectionDetailEntity::getStatus, TabStatusEnums.COMPLETED.getValue().toString());
ump.eq(CollectionDetailEntity::getTenantSid, SecurityUtil.getUserProfile().getTenantSid()); ump.eq(CollectionDetailEntity::getTenantSid, SecurityUtil.getUserProfile().getTenantSid());
ump.and(queryWrapperInner -> { ump.and(queryWrapperInner -> {
for (CollectionDetailEntity collectionDetailEntity : collectionDetailEntities) { for (CollectionDetailEntity collectionDetailEntity : collectionDetailEntities) {


Loading…
Cancel
Save