|
|
@ -11,6 +11,7 @@ import com.digiwin.athena.app.ptc.infra.repository.ReceivablesDetailRepository; |
|
|
|
import com.digiwin.athena.app.ptc.infra.service.CollectionDetailService; |
|
|
|
import com.digiwin.athena.app.ptc.infra.service.ReceivablesDetailService; |
|
|
|
import com.digiwin.athena.opt.common.eai.service.AbsEAIService; |
|
|
|
import com.digiwin.athena.opt.common.generator.SnowflakeWorker; |
|
|
|
import com.digiwin.athena.opt.common.security.SecurityUtil; |
|
|
|
import com.digiwin.athena.opt.common.util.DateUtils; |
|
|
|
import lombok.extern.log4j.Log4j2; |
|
|
@ -132,18 +133,18 @@ public class ReceivablesInitialCreateEAIService extends AbsEAIService { |
|
|
|
receivablesDetailEntity.setSkuCode(sku.getSkuCode()); |
|
|
|
receivablesDetailEntity.setSkuName(sku.getSkuName()); |
|
|
|
receivablesDetailEntity.setSkuSpec(sku.getSkuSpec()); |
|
|
|
receivablesDetailEntity.setReceivableNo("RE-"+DateUtils.currentTimeString()); |
|
|
|
receivablesDetailEntity.setReceivableNon("SEQ-"+DateUtils.currentTimeString()); |
|
|
|
receivablesDetailEntity.setContractNo("CO"+DateUtils.currentTimeString()); |
|
|
|
receivablesDetailEntity.setReceivableNo("RE-"+SnowflakeWorker.nextId()); |
|
|
|
receivablesDetailEntity.setReceivableNon("SEQ-"+SnowflakeWorker.nextId()); |
|
|
|
receivablesDetailEntity.setContractNo("CO"+ SnowflakeWorker.nextId()); |
|
|
|
receivablesDetailEntity.setStatus("1"); |
|
|
|
receivablesDetailEntity.setSalesOrder("SO-"+DateUtils.currentTimeString()); |
|
|
|
receivablesDetailEntity.setSalesOrderNumber("SON-"+DateUtils.currentTimeString()); |
|
|
|
receivablesDetailEntity.setSalesOrder("SO-"+SnowflakeWorker.nextId()); |
|
|
|
receivablesDetailEntity.setSalesOrderNumber("SON-"+SnowflakeWorker.nextId()); |
|
|
|
receivablesDetailEntity.setSalesmanAssistant("Sp0001"); |
|
|
|
receivablesDetailEntity.setSalesmanBoss("qcsupplier001"); |
|
|
|
receivablesDetailEntity.setSalesman("qcuser001"); |
|
|
|
receivablesDetailEntity.setProduceBoss("Sp0002"); |
|
|
|
receivablesDetailEntity.setEmail("ath_Sp0001@163.com"); |
|
|
|
receivablesDetailEntity.setWorkNo("work-"+DateUtils.currentTimeString()); |
|
|
|
receivablesDetailEntity.setWorkNo("work-"+SnowflakeWorker.nextId()); |
|
|
|
receivablesDetailEntity.setOverdueDays(String.valueOf((new Date().getTime()-receivablesDetailEntity.getReceivableDate().getTime())/86400000L)); |
|
|
|
} |
|
|
|
|
|
|
@ -152,4 +153,6 @@ public class ReceivablesInitialCreateEAIService extends AbsEAIService { |
|
|
|
return buildOK(); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |