统一修改包

This commit is contained in:
chenbowen
2025-09-22 03:44:58 +08:00
parent f014ca7cf3
commit 58e2827a21
289 changed files with 1485 additions and 1485 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,17 @@
package com.zt.plat.module.erp;
import org.springframework.boot.SpringApplication;
/**
* ContractOrder 模块的启动类
*
* @author ZT
*/
//@SpringBootApplication
public class ErpServerApplication {
public static void main(String[] args) {
SpringApplication.run(ErpServerApplication.class, args);
}
}

View File

@@ -0,0 +1,72 @@
package com.zt.plat.module.erp.common.enums;
import lombok.Data;
/**
* @ClassName oftenEnum
* @Description TODO
* @Author chen
* @Date 2023/9/5
**/
@Data
public class OftenEnum {
//接口编号枚举
public enum FuncnrEnum {
公司代码("001", "BUKRS", ""),
工厂信息("002", "WERKS", ""),
客商信息("003", "PARTNER", "DATUM"),
成本中心("004", "", ""),
内部订单("005", "", ""),
库位信息("006", "", ""),
采购组织("007", "", ""),
销售组织("008", "", ""),
合同信息("009", "", ""),
资产卡片("010", "ANLN1-BUKRS", "ERDAT"),
库存信息("011", "", ""),
辅组编码("012", "", ""),
生产订单("013", "", ""),
BOM清单("014", "MATNR-STLAL-WERKS", ""),
工艺路线("015", "", ""),
生产版本("016", "", ""),
生产投料("017", "", ""),
生产订单明细("018", "", ""),
库存明细("019", "", ""),
发票状态("020", "", ""),
物料数据("021", "", "ERSDA");
private final String funcnr;
private final String datakey;
private final String datekey;
FuncnrEnum(String funcnr, String datakey,String datekey) {
this.funcnr = funcnr;
this.datakey = datakey;
this.datekey = datekey;
}
public String getFuncnr() {
return funcnr;
}
public String getDatakey() {
return datakey;
}
public String getDatekey() {
return datekey;
}
}
//接口编号枚举
public enum ModeTypeEnum {
供应商("K"),
客户("D");
public String modetype = null;
ModeTypeEnum(String modetype) {
this.modetype = modetype;
}
}
}

View File

@@ -0,0 +1,32 @@
package com.zt.plat.module.erp.common.task;
import com.zt.plat.module.erp.service.erp.ErpCompanyService;
import jakarta.annotation.Resource;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.transaction.annotation.Transactional;
/**
* @ClassName energyTask
* @Description TODO
* @Author chen
* @Date 2023/9/25
**/
@Configuration
@EnableScheduling
public class statisticstask {
@Resource
private ErpCompanyService erpCompanyService;
//能源定时每日获取成本配置机台水电数据
@Scheduled(cron = "0 0 12 * * ?")
@Transactional
public void erpCompany(){
erpCompanyService.callErpRfcInterface();
}
}

Some files were not shown because too many files have changed in this diff Show More