Browse Source

feat:冻结任务表新增字段

master
郑贵龙 1 year ago
parent
commit
fe3bf99866
4 changed files with 26 additions and 2 deletions
  1. +17
    -0
      demo-athenaopt_backend/develop/src/main/java/com/digiwin/athena/app/ptc/infra/entity/ProductionDetailsEntity.java
  2. +1
    -0
      demo-athenaopt_backend/develop/src/main/java/com/digiwin/athena/app/ptc/service/production/ProductionCreateEAIService.java
  3. +2
    -2
      demo-athenaopt_backend/develop/src/main/java/com/digiwin/athena/app/ptc/service/receivables/ReceivablesInitialCreateEAIService.java
  4. +6
    -0
      doc/sql/app-20230912-ddl.sql

+ 17
- 0
demo-athenaopt_backend/develop/src/main/java/com/digiwin/athena/app/ptc/infra/entity/ProductionDetailsEntity.java View File

@ -94,6 +94,23 @@ public class ProductionDetailsEntity extends BaseMgrEntity<ProductionDetailsEnti
@SerializedName(value = "overdue_days") @SerializedName(value = "overdue_days")
private String overdueDays; private String overdueDays;
/** 额度占用百分比 */
@SerializedName(value = "quota_details")
private String quotaDetails;
/** 冻结原因 */
@SerializedName(value = "freeze_reason")
private String freezeReason;
/** 客户名称 */
@SerializedName(value = "customer_name")
private String customerName;
/** 客户编号 */
@SerializedName(value = "customer_no")
private String customerNo;
public ProductionDetailsEntity(String factoryNo, String factoryName, String productionManagementPerson) { public ProductionDetailsEntity(String factoryNo, String factoryName, String productionManagementPerson) {
this.factoryNo = factoryNo; this.factoryNo = factoryNo;
this.factoryName = factoryName; this.factoryName = factoryName;


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

@ -76,6 +76,7 @@ public class ProductionCreateEAIService extends AbsEAIService {
productionDetailsEntity.setNature(String.valueOf(nature)); productionDetailsEntity.setNature(String.valueOf(nature));
productionDetailsEntity.setBatchNo("MMDD-000"+batchNo); productionDetailsEntity.setBatchNo("MMDD-000"+batchNo);
productionDetailsEntity.setUnit("pcs"); productionDetailsEntity.setUnit("pcs");
productionDetailsEntity.setFreezeReason("剩余信用额度比例不足");
batchNo = batchNo+1; batchNo = batchNo+1;
//预计产量赋值 //预计产量赋值
if (CollectionUtils.isNotEmpty(receivablesDetailEntities)) { if (CollectionUtils.isNotEmpty(receivablesDetailEntities)) {


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

@ -141,8 +141,8 @@ public class ReceivablesInitialCreateEAIService extends AbsEAIService {
receivablesDetailEntity.setSalesOrder("SO-"+SnowflakeWorker.nextId()); receivablesDetailEntity.setSalesOrder("SO-"+SnowflakeWorker.nextId());
receivablesDetailEntity.setSalesOrderNumber("SON-000"+no); receivablesDetailEntity.setSalesOrderNumber("SON-000"+no);
receivablesDetailEntity.setSalesmanAssistant("Sp0001"); receivablesDetailEntity.setSalesmanAssistant("Sp0001");
receivablesDetailEntity.setSalesmanBoss("qcuser004");
receivablesDetailEntity.setSalesman("Sp0001");
receivablesDetailEntity.setSalesmanBoss("qcsupplier001");
receivablesDetailEntity.setSalesman("qcuser001");
receivablesDetailEntity.setProduceBoss("Sp0002"); receivablesDetailEntity.setProduceBoss("Sp0002");
receivablesDetailEntity.setEmail("ath_Sp0001@163.com"); receivablesDetailEntity.setEmail("ath_Sp0001@163.com");
receivablesDetailEntity.setWorkNo("work-"+SnowflakeWorker.nextId()); receivablesDetailEntity.setWorkNo("work-"+SnowflakeWorker.nextId());


+ 6
- 0
doc/sql/app-20230912-ddl.sql View File

@ -143,3 +143,9 @@ alter table cim_receivables_detail Add column quota_details varchar(32) null def
-- --
ALTER TABLE `cim_production_details` MODIFY COLUMN `sku_spec` varchar (255); ALTER TABLE `cim_production_details` MODIFY COLUMN `sku_spec` varchar (255);
--
alter table cim_production_details Add column quota_details varchar(50) null default '' COMMENT '额度占用百分比',
Add column freeze_reason varchar(255) null default '' COMMENT '冻结原因',
Add column customer_name varchar(255) null default '' COMMENT '客户名称',
Add column customer_no varchar(255) null default '' COMMENT '客户编号';

Loading…
Cancel
Save