统一修改包

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

24
zt-module-erp/pom.xml Normal file
View File

@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>dsc-base</artifactId>
<groupId>com.zt.plat</groupId>
<version>${revision}</version>
</parent>
<modules>
<module>zt-module-erp-api</module>
<module>zt-module-erp-server</module>
</modules>
<modelVersion>4.0.0</modelVersion>
<artifactId>cloud-module-erp</artifactId>
<packaging>pom</packaging>
<name>${project.artifactId}</name>
<description>
ERP 模块。
</description>
</project>

View File

@@ -0,0 +1,46 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>cloud-module-erp</artifactId>
<groupId>com.zt.plat</groupId>
<version>${revision}</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>cloud-module-erp-api</artifactId>
<packaging>jar</packaging>
<name>${project.artifactId}</name>
<description>
暴露给其它模块调用
</description>
<dependencies>
<dependency>
<groupId>com.zt.plat</groupId>
<artifactId>cloud-common</artifactId>
</dependency>
<!-- Web 相关 -->
<dependency>
<groupId>org.springdoc</groupId> <!-- 接口文档:使用最新版本的 Swagger 模型 -->
<artifactId>springdoc-openapi-starter-webmvc-api</artifactId>
<scope>provided</scope>
</dependency>
<!-- 参数校验 -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-validation</artifactId>
<optional>true</optional>
</dependency>
<!-- RPC 远程调用相关 -->
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-openfeign</artifactId>
<optional>true</optional>
</dependency>
</dependencies>
</project>

View File

@@ -0,0 +1,25 @@
package com.zt.plat.module.erp.enums;
import com.zt.plat.framework.common.exception.ErrorCode;// TODO 待办:请将下面的错误码复制到 zt-module-sply 模块的 ErrorCodeConstants 类中。注意请给“TODO 补充编号”设置一个错误码编号!!!
// ========== ERP客商主数据 TODO 补充编号 ==========
public interface ErrorCodeConstants {
// ========== 示例模块 1-001-000-000 ==========
ErrorCode ERP_CUSTOMER_NOT_EXISTS = new ErrorCode(1_001_000_001, "ERP客商主数据不存在");
ErrorCode ERP_MATERIAL_NOT_EXISTS = new ErrorCode(1_001_000_002, "ERP物料数据不存在");
ErrorCode ERP_COMPANY_NOT_EXISTS = new ErrorCode(1_001_000_003, "ERP物料数据不存在");
ErrorCode ERP_BOM_NOT_EXISTS = new ErrorCode(1_001_000_003, "ERP物料数据不存在");
ErrorCode ERP_BOM_DETAIL_NOT_EXISTS = new ErrorCode(1_001_000_003, "ERP物料数据不存在");
ErrorCode ERP_PROCESS_NOT_EXISTS = new ErrorCode(1_001_000_003, "ERP物料数据不存在");
ErrorCode ERP_PROCESS_DETAIL_NOT_EXISTS = new ErrorCode(1_001_000_003, "ERP物料数据不存在");
ErrorCode ERP_FACTORY_NOT_EXISTS = new ErrorCode(1_001_000_003, "ERP物料数据不存在");
ErrorCode ERP_COSTCENTER_NOT_EXISTS = new ErrorCode(1_001_000_003, "ERP物料数据不存在");
ErrorCode ERP_PRODUCTIVE_VERSION_NOT_EXISTS = new ErrorCode(1_001_000_003, "ERP物料数据不存在");
ErrorCode ERP_PURCHASE_ORGANIZATION_NOT_EXISTS = new ErrorCode(1_001_000_003, "ERP物料数据不存在");
ErrorCode ERP_INTERNAL_ORDER_NOT_EXISTS = new ErrorCode(1_001_000_003, "ERP物料数据不存在");
ErrorCode ERP_SALES_ORGANIZATION_NOT_EXISTS = new ErrorCode(1_001_000_003, "ERP物料数据不存在");
ErrorCode ERP_WAREHOUSE_NOT_EXISTS = new ErrorCode(1_001_000_003, "ERP物料数据不存在");
ErrorCode ERP_ASSET_NOT_EXISTS = new ErrorCode(1_001_000_003, "ERP物料数据不存在");
ErrorCode ERP_CONTRACT_NOT_EXISTS = new ErrorCode(1_001_000_003, "ERP物料数据不存在");
ErrorCode ERP_PRODUCTIVE_ORDER_NOT_EXISTS = new ErrorCode(1_001_000_003, "ERP物料数据不存在");
}

View File

@@ -0,0 +1,151 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>cloud-module-erp</artifactId>
<groupId>com.zt.plat</groupId>
<version>${revision}</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<packaging>jar</packaging>
<artifactId>cloud-module-erp-server</artifactId>
<name>${project.artifactId}</name>
<description>
ERP 模块。
</description>
<dependencies>
<!-- Spring Cloud 基础 -->
<dependency>
<groupId>com.zt.plat</groupId>
<artifactId>cloud-spring-boot-starter-env</artifactId>
</dependency>
<!-- 依赖服务 -->
<dependency>
<groupId>com.zt.plat</groupId>
<artifactId>cloud-module-system-api</artifactId>
<version>${revision}</version>
</dependency>
<dependency>
<groupId>com.zt.plat</groupId>
<artifactId>cloud-module-infra-api</artifactId>
<version>${revision}</version>
</dependency>
<dependency>
<groupId>com.zt.plat</groupId>
<artifactId>cloud-module-erp-api</artifactId>
<version>${revision}</version>
</dependency>
<!-- 业务组件 -->
<dependency>
<groupId>com.zt.plat</groupId>
<artifactId>cloud-spring-boot-starter-biz-data-permission</artifactId>
</dependency>
<dependency>
<groupId>com.zt.plat</groupId>
<artifactId>cloud-spring-boot-starter-biz-tenant</artifactId>
</dependency>
<!-- Web 相关 -->
<dependency>
<groupId>com.zt.plat</groupId>
<artifactId>cloud-spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>com.zt.plat</groupId>
<artifactId>cloud-spring-boot-starter-security</artifactId>
</dependency>
<!-- DB 相关 -->
<dependency>
<groupId>com.zt.plat</groupId>
<artifactId>cloud-spring-boot-starter-mybatis</artifactId>
</dependency>
<dependency>
<groupId>com.zt.plat</groupId>
<artifactId>cloud-spring-boot-starter-redis</artifactId>
</dependency>
<!-- RPC 远程调用相关 -->
<dependency>
<groupId>com.zt.plat</groupId>
<artifactId>cloud-spring-boot-starter-rpc</artifactId>
</dependency>
<!-- Registry 注册中心相关 -->
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
</dependency>
<!-- Config 配置中心相关 -->
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
</dependency>
<!-- Job 定时任务相关 -->
<dependency>
<groupId>com.zt.plat</groupId>
<artifactId>cloud-spring-boot-starter-job</artifactId>
</dependency>
<!-- 消息队列相关 -->
<dependency>
<groupId>com.zt.plat</groupId>
<artifactId>cloud-spring-boot-starter-mq</artifactId>
</dependency>
<!-- Test 测试相关 -->
<dependency>
<groupId>com.zt.plat</groupId>
<artifactId>cloud-spring-boot-starter-test</artifactId>
</dependency>
<!-- 工具类相关 -->
<dependency>
<groupId>com.zt.plat</groupId>
<artifactId>cloud-spring-boot-starter-excel</artifactId>
</dependency>
<!-- 监控相关 -->
<dependency>
<groupId>com.zt.plat</groupId>
<artifactId>cloud-spring-boot-starter-monitor</artifactId>
</dependency>
<dependency>
<groupId>com.zt.plat</groupId>
<artifactId>cloud-spring-boot-starter-biz-business</artifactId>
<version>${revision}</version>
</dependency>
</dependencies>
<build>
<!-- 设置构建的 jar 包名 -->
<finalName>${project.artifactId}</finalName>
<!-- <plugins>-->
<!-- &lt;!&ndash; 打包 &ndash;&gt;-->
<!-- <plugin>-->
<!-- <groupId>org.springframework.boot</groupId>-->
<!-- <artifactId>spring-boot-maven-plugin</artifactId>-->
<!-- <version>${spring.boot.version}</version>-->
<!-- <executions>-->
<!-- <execution>-->
<!-- <goals>-->
<!-- <goal>repackage</goal> &lt;!&ndash; 将引入的 jar 打入其中 &ndash;&gt;-->
<!-- </goals>-->
<!-- </execution>-->
<!-- </executions>-->
<!-- </plugin>-->
<!-- </plugins>-->
</build>
</project>

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,167 @@
package com.zt.plat.module.erp.common.conf;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import jakarta.annotation.Resource;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.http.HttpEntity;
import org.springframework.http.HttpHeaders;
import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
import org.springframework.web.client.RestTemplate;
import java.util.*;
import java.util.stream.Collectors;
import static dm.jdbc.util.DriverUtil.log;
@Configuration
public class ErpConfig {
@Value("${erp.address}")
private String erpAddress;
@Value("${erp.sapsys}")
private String sapsys;
@Resource
private RedisTemplate redisTemplate;
/**
* 调用ERP接口获取公司数据
*/
public JSONArray fetchDataFromERP(String funcnr, Map<String, Object> req) {
try {
// 构建完整URL
String url = "http://" + erpAddress + "/api/rfc/get";
// 构建请求参数
JSONObject requestBody = new JSONObject();
requestBody.put("sapsys", sapsys);
requestBody.put("funcnr", funcnr); // 获取枚举值
if (req != null) {
requestBody.put("req", req);
}
// 设置请求头
HttpHeaders headers = new HttpHeaders();
headers.setContentType(MediaType.APPLICATION_JSON);
// 创建HTTP请求实体
HttpEntity<String> requestEntity = new HttpEntity<>(requestBody.toJSONString(), headers);
// 发送POST请求
RestTemplate restTemplate = new RestTemplate();
ResponseEntity<String> response = restTemplate.postForEntity(url, requestEntity, String.class);
// 解析响应结果
String responseBody = response.getBody();
if (responseBody.isEmpty()) {
log.warn("无所选条件的查询数据"+req);
}
JSONObject jsonResponse = JSON.parseObject(responseBody);
if (jsonResponse == null) {
log.warn("ERP接口响应无法解析为JSON");
}
// 正确获取E_DATA数组
JSONObject dataObject = jsonResponse.getJSONObject("data");
if (dataObject != null && "S".equals(dataObject.getString("E_FLAG"))) {
return dataObject.getJSONArray("E_DATA");
} else {
log.warn("ERP接口调用失败或返回错误标志");
return null;
}
} catch (Exception e) {
log.error("调用ERP RFC接口失败: {}", e);
return null;
}
}
public Map<String, List<String>> numbers(JSONArray dataArray, String key,String dataKey) {
// 使用 Redis 获取缓存数据
Map<String, List<String>> numbers = new HashMap<>();
List<String> cachedNumbers = (List<String>) redisTemplate.opsForValue().get(key);
if (cachedNumbers == null) {
cachedNumbers = new ArrayList<>();
}
// 提取有效的 BUKRS 编号
List<String> existingNumbers = new ArrayList<>();
if (dataArray != null) {
// 将dataKey按"-"分割成多个部分
String[] keyParts = dataKey.split("-");
existingNumbers = dataArray.stream()
.filter(Objects::nonNull)
.map(dataJson -> {
JSONObject jsonObject = (JSONObject) dataJson;
// 根据每个部分逐级获取值并拼接
StringBuilder sb = new StringBuilder();
for (String part : keyParts) {
String value = jsonObject.getString(part);
if (value != null) {
if (sb.length() > 0) {
sb.append("-");
}
sb.append(value.trim());
} else {
// 如果某一部分为空,则整个值视为无效
return null;
}
}
return sb.toString();
})
.filter(Objects::nonNull) // 过滤掉无效值
.collect(Collectors.toList());
}
// 找出共同存在的编号
Set<String> cachedNumberSet = new HashSet<>(cachedNumbers != null ? cachedNumbers : new ArrayList<>());
List<String> commonNumbers = existingNumbers.stream()
.filter(cachedNumberSet::contains)
.collect(Collectors.toList());
numbers.put("com", commonNumbers);
List<String> newNumbers = existingNumbers.stream()
.filter(num -> !cachedNumberSet.contains(num))
.collect(Collectors.toList());
// 合并所有编号
List<String> allNumbers = new ArrayList<>(cachedNumbers);
allNumbers.addAll(newNumbers);
numbers.put("all", allNumbers);
return numbers;
}
public void updateRedisCache(String key, List<String> allnumbers) {
// 使用 Redis 更新缓存数据
redisTemplate.opsForValue().set(key, allnumbers);
}
public List<String> getRedisCache(String key) {
// 使用 Redis 更新缓存数据
return (List<String>)redisTemplate.opsForValue().get("erp"+key);
}
public Map<String, String> numbersMap(String key) {
// 使用 Redis 获取缓存数据
Map<String, String> result = (Map<String, String>) redisTemplate.opsForValue().get(key);
return result;
}
// public void updateRedisCache(String key, List<String> allnumbers) {
// // 使用 Redis 更新缓存数据
// redisTemplate.opsForValue().set(key, allnumbers);
// }
//
// public List<String> getRedisCache(String key) {
// // 使用 Redis 更新缓存数据
// return (List<String>)redisTemplate.opsForValue().get("erp"+key);
// }
}

View File

@@ -0,0 +1,165 @@
package com.zt.plat.module.erp.common.conf;
import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.PropertyAccessor;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.jsontype.impl.LaissezFaireSubTypeValidator;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Primary;
import org.springframework.data.redis.connection.RedisConnectionFactory;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.data.redis.serializer.Jackson2JsonRedisSerializer;
import org.springframework.data.redis.serializer.RedisSerializer;
import org.springframework.data.redis.serializer.StringRedisSerializer;
//import redis.clients.jedis.JedisPoolConfig;
/**
* @author wuxz
* @create 2022-06-07 20:54
*/
@Primary
@Configuration
public class MyRedisConfig {
/*
@Value("${spring.redis.database}")
private Integer database;
@Value("${spring.redis.host}")
private String host;
@Value("${spring.redis.port}")
private Integer port;
@Value("${spring.redis.password}")
private String password;
@Value("${spring.redis.jedis.pool.max-idle}")
private Integer max_idle;
@Value("${spring.redis.jedis.pool.min-idle}")
private Integer min_idle;
@Value("${spring.redis.jedis.pool.max-active}")
private Integer max_active;
@Value("${spring.redis.jedis.pool.max-wait}")
private Integer max_wait;
*/
@Bean(value = "MyRedisTemplate")
public RedisTemplate<String, Object> redisTemplate(RedisConnectionFactory redisConnectionFactory) {
RedisTemplate<String, Object> redisTemplate = new RedisTemplate<>();
redisTemplate.setConnectionFactory(redisConnectionFactory);
// 通过 Jackson 组件进行序列化
RedisSerializer<Object> serializer = redisSerializer();
// key 和 value
// 一般来说, redis-key采用字符串序列化
// redis-value采用json序列化 json的体积小可读性高不需要实现serializer接口。
redisTemplate.setKeySerializer(new StringRedisSerializer());
redisTemplate.setValueSerializer(serializer);
redisTemplate.setHashKeySerializer(new StringRedisSerializer());
redisTemplate.setHashValueSerializer(serializer);
redisTemplate.afterPropertiesSet();
return redisTemplate;
}
@Bean
public RedisSerializer<Object> redisSerializer() {
//创建JSON序列化器
Jackson2JsonRedisSerializer<Object> serializer = new Jackson2JsonRedisSerializer<>(Object.class);
ObjectMapper objectMapper = new ObjectMapper();
objectMapper.setVisibility(PropertyAccessor.ALL, JsonAutoDetect.Visibility.ANY);
// objectMapper.enableDefaultTyping()被弃用
objectMapper.activateDefaultTyping(
LaissezFaireSubTypeValidator.instance,
ObjectMapper.DefaultTyping.NON_FINAL,
JsonTypeInfo.As.WRAPPER_ARRAY);
serializer.setObjectMapper(objectMapper);
return serializer;
}
// @Bean
// public JedisPoolConfig jedisPoolConfig() {
// JedisPoolConfig jedisPoolConfig = new JedisPoolConfig();
// //最小空闲连接数
// jedisPoolConfig.setMinIdle(min_idle);
// jedisPoolConfig.setMaxIdle(max_idle);
// jedisPoolConfig.setMaxTotal(max_active);
// //当池内没有可用的连接时,最大等待时间
// jedisPoolConfig.setMaxWaitMillis(max_wait);
// //------其他属性根据需要自行添加-------------
// return jedisPoolConfig;
// }
//
//
// /**
// * jedis连接工厂
// * @param jedisPoolConfig
// * @return
// */
// @Bean
// public RedisConnectionFactory redisConnectionFactory(JedisPoolConfig jedisPoolConfig) {
// //单机版jedis
// RedisStandaloneConfiguration redisStandaloneConfiguration =
// new RedisStandaloneConfiguration();
// //设置redis服务器的host或者ip地址
// redisStandaloneConfiguration.setHostName(host);
// //设置默认使用的数据库
// redisStandaloneConfiguration.setDatabase(database);
// //设置密码
// redisStandaloneConfiguration.setPassword(password);
// //设置redis的服务的端口号
// redisStandaloneConfiguration.setPort(port);
// //获得默认的连接池构造器
// JedisClientConfiguration.JedisPoolingClientConfigurationBuilder jc =
// (JedisClientConfiguration.JedisPoolingClientConfigurationBuilder)JedisClientConfiguration.builder();
// //指定jedisPoolConifig
// jc.poolConfig(jedisPoolConfig);
// //通过构造器来构造jedis客户端配置
// JedisClientConfiguration jedisClientConfiguration = jc.build();
// return new JedisConnectionFactory(redisStandaloneConfiguration, jedisClientConfiguration);
// }
//
//
// @Bean
// @ConditionalOnMissingBean(name = {"redisTemplate"})
// public RedisTemplate<String, Serializable> redisTemplate(JedisConnectionFactory jedisConnectionFactory){
// RedisTemplate<String, Serializable> redisTemplate = new RedisTemplate<>();
// redisTemplate.setKeySerializer(new StringRedisSerializer());
// redisTemplate.setValueSerializer(new GenericJackson2JsonRedisSerializer());
// redisTemplate.setConnectionFactory(jedisConnectionFactory);
// return redisTemplate;
// }
/**
* 序列化乱码问题解决
*/
// @Bean
// public RedisTemplate<String, Serializable> redisTemplate(JedisConnectionFactory jedisConnectionFactory){
// RedisTemplate<String, Serializable> redisTemplate = new RedisTemplate<>();
// redisTemplate.setKeySerializer(new StringRedisSerializer());
// redisTemplate.setValueSerializer(new GenericJackson2JsonRedisSerializer());
// redisTemplate.setConnectionFactory(jedisConnectionFactory);
// return redisTemplate;
// }
}

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();
}
}

View File

@@ -0,0 +1,111 @@
package com.zt.plat.module.erp.controller.admin.erp;
import com.zt.plat.framework.apilog.core.annotation.ApiAccessLog;
import com.zt.plat.framework.common.pojo.CommonResult;
import com.zt.plat.framework.common.pojo.PageParam;
import com.zt.plat.framework.common.pojo.PageResult;
import com.zt.plat.framework.common.pojo.vo.BatchDeleteReqVO;
import com.zt.plat.framework.common.util.object.BeanUtils;
import com.zt.plat.framework.excel.core.util.ExcelUtils;
import com.zt.plat.module.erp.controller.admin.erp.vo.ErpAssetPageReqVO;
import com.zt.plat.module.erp.controller.admin.erp.vo.ErpAssetRespVO;
import com.zt.plat.module.erp.controller.admin.erp.vo.ErpAssetSaveReqVO;
import com.zt.plat.module.erp.dal.dataobject.erp.ErpAssetDO;
import com.zt.plat.module.erp.service.erp.ErpAssetService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.Resource;
import jakarta.servlet.http.HttpServletResponse;
import jakarta.validation.Valid;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import java.io.IOException;
import java.util.List;
import static com.zt.plat.framework.apilog.core.enums.OperateTypeEnum.EXPORT;
import static com.zt.plat.framework.common.pojo.CommonResult.success;
@Tag(name = "管理后台 - ERP资产卡片")
@RestController
@RequestMapping("/sply/erp-asset")
@Validated
public class ErpAssetController {
@Resource
private ErpAssetService erpAssetService;
@PostMapping("/create")
@Operation(summary = "创建ERP资产卡片")
@PreAuthorize("@ss.hasPermission('sply:erp-asset:create')")
public CommonResult<ErpAssetRespVO> createErpAsset(@Valid @RequestBody ErpAssetSaveReqVO createReqVO) {
return success(erpAssetService.createErpAsset(createReqVO));
}
@PutMapping("/update")
@Operation(summary = "更新ERP资产卡片")
@PreAuthorize("@ss.hasPermission('sply:erp-asset:update')")
public CommonResult<Boolean> updateErpAsset(@Valid @RequestBody ErpAssetSaveReqVO updateReqVO) {
erpAssetService.updateErpAsset(updateReqVO);
return success(true);
}
@DeleteMapping("/delete")
@Operation(summary = "删除ERP资产卡片")
@Parameter(name = "id", description = "编号", required = true)
@PreAuthorize("@ss.hasPermission('sply:erp-asset:delete')")
public CommonResult<Boolean> deleteErpAsset(@RequestParam("id") Long id) {
erpAssetService.deleteErpAsset(id);
return success(true);
}
@DeleteMapping("/delete-list")
@Parameter(name = "ids", description = "编号", required = true)
@Operation(summary = "批量删除ERP资产卡片")
@PreAuthorize("@ss.hasPermission('sply:erp-asset:delete')")
public CommonResult<Boolean> deleteErpAssetList(@RequestBody BatchDeleteReqVO req) {
erpAssetService.deleteErpAssetListByIds(req.getIds());
return success(true);
}
@GetMapping("/get")
@Operation(summary = "获得ERP资产卡片")
@Parameter(name = "id", description = "编号", required = true, example = "1024")
@PreAuthorize("@ss.hasPermission('sply:erp-asset:query')")
public CommonResult<ErpAssetRespVO> getErpAsset(@RequestParam("id") Long id) {
ErpAssetDO erpAsset = erpAssetService.getErpAsset(id);
return success(BeanUtils.toBean(erpAsset, ErpAssetRespVO.class));
}
@GetMapping("/page")
@Operation(summary = "获得ERP资产卡片分页")
@PreAuthorize("@ss.hasPermission('sply:erp-asset:query')")
public CommonResult<PageResult<ErpAssetRespVO>> getErpAssetPage(@Valid ErpAssetPageReqVO pageReqVO) {
PageResult<ErpAssetDO> pageResult = erpAssetService.getErpAssetPage(pageReqVO);
return success(BeanUtils.toBean(pageResult, ErpAssetRespVO.class));
}
@GetMapping("/export-excel")
@Operation(summary = "导出ERP资产卡片 Excel")
@PreAuthorize("@ss.hasPermission('sply:erp-asset:export')")
@ApiAccessLog(operateType = EXPORT)
public void exportErpAssetExcel(@Valid ErpAssetPageReqVO pageReqVO,
HttpServletResponse response) throws IOException {
pageReqVO.setPageSize(PageParam.PAGE_SIZE_NONE);
List<ErpAssetDO> list = erpAssetService.getErpAssetPage(pageReqVO).getList();
// 导出 Excel
ExcelUtils.write(response, "ERP资产卡片.xls", "数据", ErpAssetRespVO.class,
BeanUtils.toBean(list, ErpAssetRespVO.class));
}
@PostMapping("/getErpAssetTask")
@Operation(summary = "定时获得erp更新资产卡片")
@PreAuthorize("@ss.hasPermission('sply:erp-asset:query')")
public void getErpCompanyTask() {
erpAssetService.callErpRfcInterface();
}
}

View File

@@ -0,0 +1,111 @@
package com.zt.plat.module.erp.controller.admin.erp;
import com.zt.plat.framework.apilog.core.annotation.ApiAccessLog;
import com.zt.plat.framework.common.pojo.CommonResult;
import com.zt.plat.framework.common.pojo.PageParam;
import com.zt.plat.framework.common.pojo.PageResult;
import com.zt.plat.framework.common.pojo.vo.BatchDeleteReqVO;
import com.zt.plat.framework.common.util.object.BeanUtils;
import com.zt.plat.framework.excel.core.util.ExcelUtils;
import com.zt.plat.module.erp.controller.admin.erp.vo.ErpBomPageReqVO;
import com.zt.plat.module.erp.controller.admin.erp.vo.ErpBomRespVO;
import com.zt.plat.module.erp.controller.admin.erp.vo.ErpBomSaveReqVO;
import com.zt.plat.module.erp.dal.dataobject.erp.ErpBomDO;
import com.zt.plat.module.erp.service.erp.ErpBomService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.Resource;
import jakarta.servlet.http.HttpServletResponse;
import jakarta.validation.Valid;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import java.io.IOException;
import java.util.List;
import static com.zt.plat.framework.apilog.core.enums.OperateTypeEnum.EXPORT;
import static com.zt.plat.framework.common.pojo.CommonResult.success;
@Tag(name = "管理后台 - ERP物料清单(BOM)")
@RestController
@RequestMapping("/sply/erp-bom")
@Validated
public class ErpBomController {
@Resource
private ErpBomService erpBomService;
@PostMapping("/create")
@Operation(summary = "创建ERP物料清单(BOM)")
@PreAuthorize("@ss.hasPermission('sply:erp-bom:create')")
public CommonResult<ErpBomRespVO> createErpBom(@Valid @RequestBody ErpBomSaveReqVO createReqVO) {
return success(erpBomService.createErpBom(createReqVO));
}
@PutMapping("/update")
@Operation(summary = "更新ERP物料清单(BOM)")
@PreAuthorize("@ss.hasPermission('sply:erp-bom:update')")
public CommonResult<Boolean> updateErpBom(@Valid @RequestBody ErpBomSaveReqVO updateReqVO) {
erpBomService.updateErpBom(updateReqVO);
return success(true);
}
@DeleteMapping("/delete")
@Operation(summary = "删除ERP物料清单(BOM)")
@Parameter(name = "id", description = "编号", required = true)
@PreAuthorize("@ss.hasPermission('sply:erp-bom:delete')")
public CommonResult<Boolean> deleteErpBom(@RequestParam("id") Long id) {
erpBomService.deleteErpBom(id);
return success(true);
}
@DeleteMapping("/delete-list")
@Parameter(name = "ids", description = "编号", required = true)
@Operation(summary = "批量删除ERP物料清单(BOM)")
@PreAuthorize("@ss.hasPermission('sply:erp-bom:delete')")
public CommonResult<Boolean> deleteErpBomList(@RequestBody BatchDeleteReqVO req) {
erpBomService.deleteErpBomListByIds(req.getIds());
return success(true);
}
@GetMapping("/get")
@Operation(summary = "获得ERP物料清单(BOM)")
@Parameter(name = "id", description = "编号", required = true, example = "1024")
@PreAuthorize("@ss.hasPermission('sply:erp-bom:query')")
public CommonResult<ErpBomRespVO> getErpBom(@RequestParam("id") Long id) {
ErpBomDO erpBom = erpBomService.getErpBom(id);
return success(BeanUtils.toBean(erpBom, ErpBomRespVO.class));
}
@GetMapping("/page")
@Operation(summary = "获得ERP物料清单(BOM)分页")
@PreAuthorize("@ss.hasPermission('sply:erp-bom:query')")
public CommonResult<PageResult<ErpBomRespVO>> getErpBomPage(@Valid ErpBomPageReqVO pageReqVO) {
PageResult<ErpBomDO> pageResult = erpBomService.getErpBomPage(pageReqVO);
return success(BeanUtils.toBean(pageResult, ErpBomRespVO.class));
}
@GetMapping("/export-excel")
@Operation(summary = "导出ERP物料清单(BOM) Excel")
@PreAuthorize("@ss.hasPermission('sply:erp-bom:export')")
@ApiAccessLog(operateType = EXPORT)
public void exportErpBomExcel(@Valid ErpBomPageReqVO pageReqVO,
HttpServletResponse response) throws IOException {
pageReqVO.setPageSize(PageParam.PAGE_SIZE_NONE);
List<ErpBomDO> list = erpBomService.getErpBomPage(pageReqVO).getList();
// 导出 Excel
ExcelUtils.write(response, "ERP物料清单(BOM).xls", "数据", ErpBomRespVO.class,
BeanUtils.toBean(list, ErpBomRespVO.class));
}
@PostMapping("/getErpBomTask")
@Operation(summary = "定时获得erp更新物料清单(BOM)")
@PreAuthorize("@ss.hasPermission('sply:erp-bom:query')")
public void getErpBomTask() {
erpBomService.callErpRfcInterface();
}
}

View File

@@ -0,0 +1,104 @@
package com.zt.plat.module.erp.controller.admin.erp;
import com.zt.plat.framework.apilog.core.annotation.ApiAccessLog;
import com.zt.plat.framework.common.pojo.CommonResult;
import com.zt.plat.framework.common.pojo.PageParam;
import com.zt.plat.framework.common.pojo.PageResult;
import com.zt.plat.framework.common.pojo.vo.BatchDeleteReqVO;
import com.zt.plat.framework.common.util.object.BeanUtils;
import com.zt.plat.framework.excel.core.util.ExcelUtils;
import com.zt.plat.module.erp.controller.admin.erp.vo.ErpBomDetailPageReqVO;
import com.zt.plat.module.erp.controller.admin.erp.vo.ErpBomDetailRespVO;
import com.zt.plat.module.erp.controller.admin.erp.vo.ErpBomDetailSaveReqVO;
import com.zt.plat.module.erp.dal.dataobject.erp.ErpBomDetailDO;
import com.zt.plat.module.erp.service.erp.ErpBomDetailService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.Resource;
import jakarta.servlet.http.HttpServletResponse;
import jakarta.validation.Valid;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import java.io.IOException;
import java.util.List;
import static com.zt.plat.framework.apilog.core.enums.OperateTypeEnum.EXPORT;
import static com.zt.plat.framework.common.pojo.CommonResult.success;
@Tag(name = "管理后台 - ERP物料清单(BOM)明细")
@RestController
@RequestMapping("/sply/erp-bom-detail")
@Validated
public class ErpBomDetailController {
@Resource
private ErpBomDetailService erpBomDetailService;
@PostMapping("/create")
@Operation(summary = "创建ERP物料清单(BOM)明细")
@PreAuthorize("@ss.hasPermission('sply:erp-bom-detail:create')")
public CommonResult<ErpBomDetailRespVO> createErpBomDetail(@Valid @RequestBody ErpBomDetailSaveReqVO createReqVO) {
return success(erpBomDetailService.createErpBomDetail(createReqVO));
}
@PutMapping("/update")
@Operation(summary = "更新ERP物料清单(BOM)明细")
@PreAuthorize("@ss.hasPermission('sply:erp-bom-detail:update')")
public CommonResult<Boolean> updateErpBomDetail(@Valid @RequestBody ErpBomDetailSaveReqVO updateReqVO) {
erpBomDetailService.updateErpBomDetail(updateReqVO);
return success(true);
}
@DeleteMapping("/delete")
@Operation(summary = "删除ERP物料清单(BOM)明细")
@Parameter(name = "id", description = "编号", required = true)
@PreAuthorize("@ss.hasPermission('sply:erp-bom-detail:delete')")
public CommonResult<Boolean> deleteErpBomDetail(@RequestParam("id") Long id) {
erpBomDetailService.deleteErpBomDetail(id);
return success(true);
}
@DeleteMapping("/delete-list")
@Parameter(name = "ids", description = "编号", required = true)
@Operation(summary = "批量删除ERP物料清单(BOM)明细")
@PreAuthorize("@ss.hasPermission('sply:erp-bom-detail:delete')")
public CommonResult<Boolean> deleteErpBomDetailList(@RequestBody BatchDeleteReqVO req) {
erpBomDetailService.deleteErpBomDetailListByIds(req.getIds());
return success(true);
}
@GetMapping("/get")
@Operation(summary = "获得ERP物料清单(BOM)明细")
@Parameter(name = "id", description = "编号", required = true, example = "1024")
@PreAuthorize("@ss.hasPermission('sply:erp-bom-detail:query')")
public CommonResult<ErpBomDetailRespVO> getErpBomDetail(@RequestParam("id") Long id) {
ErpBomDetailDO erpBomDetail = erpBomDetailService.getErpBomDetail(id);
return success(BeanUtils.toBean(erpBomDetail, ErpBomDetailRespVO.class));
}
@GetMapping("/page")
@Operation(summary = "获得ERP物料清单(BOM)明细分页")
@PreAuthorize("@ss.hasPermission('sply:erp-bom-detail:query')")
public CommonResult<PageResult<ErpBomDetailRespVO>> getErpBomDetailPage(@Valid ErpBomDetailPageReqVO pageReqVO) {
PageResult<ErpBomDetailDO> pageResult = erpBomDetailService.getErpBomDetailPage(pageReqVO);
return success(BeanUtils.toBean(pageResult, ErpBomDetailRespVO.class));
}
@GetMapping("/export-excel")
@Operation(summary = "导出ERP物料清单(BOM)明细 Excel")
@PreAuthorize("@ss.hasPermission('sply:erp-bom-detail:export')")
@ApiAccessLog(operateType = EXPORT)
public void exportErpBomDetailExcel(@Valid ErpBomDetailPageReqVO pageReqVO,
HttpServletResponse response) throws IOException {
pageReqVO.setPageSize(PageParam.PAGE_SIZE_NONE);
List<ErpBomDetailDO> list = erpBomDetailService.getErpBomDetailPage(pageReqVO).getList();
// 导出 Excel
ExcelUtils.write(response, "ERP物料清单(BOM)明细.xls", "数据", ErpBomDetailRespVO.class,
BeanUtils.toBean(list, ErpBomDetailRespVO.class));
}
}

View File

@@ -0,0 +1,113 @@
package com.zt.plat.module.erp.controller.admin.erp;
import com.zt.plat.framework.apilog.core.annotation.ApiAccessLog;
import com.zt.plat.framework.common.pojo.CommonResult;
import com.zt.plat.framework.common.pojo.PageParam;
import com.zt.plat.framework.common.pojo.PageResult;
import com.zt.plat.framework.common.pojo.vo.BatchDeleteReqVO;
import com.zt.plat.framework.common.util.object.BeanUtils;
import com.zt.plat.framework.excel.core.util.ExcelUtils;
import com.zt.plat.module.erp.controller.admin.erp.vo.ErpCompanyPageReqVO;
import com.zt.plat.module.erp.controller.admin.erp.vo.ErpCompanyRespVO;
import com.zt.plat.module.erp.controller.admin.erp.vo.ErpCompanySaveReqVO;
import com.zt.plat.module.erp.dal.dataobject.erp.ErpCompanyDO;
import com.zt.plat.module.erp.service.erp.ErpCompanyService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.Resource;
import jakarta.servlet.http.HttpServletResponse;
import jakarta.validation.Valid;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import java.io.IOException;
import java.util.List;
import static com.zt.plat.framework.apilog.core.enums.OperateTypeEnum.EXPORT;
import static com.zt.plat.framework.common.pojo.CommonResult.success;
@Tag(name = "管理后台 - ERP公司")
@RestController
@RequestMapping("/sply/erp-company")
@Validated
public class ErpCompanyController {
@Resource
private ErpCompanyService erpCompanyService;
@PostMapping("/create")
@Operation(summary = "创建ERP公司")
@PreAuthorize("@ss.hasPermission('sply:erp-company:create')")
public CommonResult<ErpCompanyRespVO> createErpCompany(@Valid @RequestBody ErpCompanySaveReqVO createReqVO) {
return success(erpCompanyService.createErpCompany(createReqVO));
}
@PutMapping("/update")
@Operation(summary = "更新ERP公司")
@PreAuthorize("@ss.hasPermission('sply:erp-company:update')")
public CommonResult<Boolean> updateErpCompany(@Valid @RequestBody ErpCompanySaveReqVO updateReqVO) {
erpCompanyService.updateErpCompany(updateReqVO);
return success(true);
}
@DeleteMapping("/delete")
@Operation(summary = "删除ERP公司")
@Parameter(name = "id", description = "编号", required = true)
@PreAuthorize("@ss.hasPermission('sply:erp-company:delete')")
public CommonResult<Boolean> deleteErpCompany(@RequestParam("id") Long id) {
erpCompanyService.deleteErpCompany(id);
return success(true);
}
@DeleteMapping("/delete-list")
@Parameter(name = "ids", description = "编号", required = true)
@Operation(summary = "批量删除ERP公司")
@PreAuthorize("@ss.hasPermission('sply:erp-company:delete')")
public CommonResult<Boolean> deleteErpCompanyList(@RequestBody BatchDeleteReqVO req) {
erpCompanyService.deleteErpCompanyListByIds(req.getIds());
return success(true);
}
@GetMapping("/get")
@Operation(summary = "获得ERP公司")
@Parameter(name = "id", description = "编号", required = true, example = "1024")
@PreAuthorize("@ss.hasPermission('sply:erp-company:query')")
public CommonResult<ErpCompanyRespVO> getErpCompany(@RequestParam("id") Long id) {
ErpCompanyDO erpCompany = erpCompanyService.getErpCompany(id);
return success(BeanUtils.toBean(erpCompany, ErpCompanyRespVO.class));
}
@GetMapping("/page")
@Operation(summary = "获得ERP公司分页")
@PreAuthorize("@ss.hasPermission('sply:erp-company:query')")
public CommonResult<PageResult<ErpCompanyRespVO>> getErpCompanyPage(@Valid ErpCompanyPageReqVO pageReqVO) {
PageResult<ErpCompanyDO> pageResult = erpCompanyService.getErpCompanyPage(pageReqVO);
return success(BeanUtils.toBean(pageResult, ErpCompanyRespVO.class));
}
@GetMapping("/export-excel")
@Operation(summary = "导出ERP公司 Excel")
@PreAuthorize("@ss.hasPermission('sply:erp-company:export')")
@ApiAccessLog(operateType = EXPORT)
public void exportErpCompanyExcel(@Valid ErpCompanyPageReqVO pageReqVO,
HttpServletResponse response) throws IOException {
pageReqVO.setPageSize(PageParam.PAGE_SIZE_NONE);
List<ErpCompanyDO> list = erpCompanyService.getErpCompanyPage(pageReqVO).getList();
// 导出 Excel
ExcelUtils.write(response, "ERP公司.xls", "数据", ErpCompanyRespVO.class,
BeanUtils.toBean(list, ErpCompanyRespVO.class));
}
@PostMapping("/getErpCompanyTask")
@Operation(summary = "定时获得erp更新公司")
@PreAuthorize("@ss.hasPermission('sply:erp-company:query')")
public void getErpCompanyTask() {
erpCompanyService.callErpRfcInterface();
}
}

View File

@@ -0,0 +1,110 @@
package com.zt.plat.module.erp.controller.admin.erp;
import com.zt.plat.framework.apilog.core.annotation.ApiAccessLog;
import com.zt.plat.framework.common.pojo.CommonResult;
import com.zt.plat.framework.common.pojo.PageParam;
import com.zt.plat.framework.common.pojo.PageResult;
import com.zt.plat.framework.common.pojo.vo.BatchDeleteReqVO;
import com.zt.plat.framework.common.util.object.BeanUtils;
import com.zt.plat.framework.excel.core.util.ExcelUtils;
import com.zt.plat.module.erp.controller.admin.erp.vo.ErpContractPageReqVO;
import com.zt.plat.module.erp.controller.admin.erp.vo.ErpContractRespVO;
import com.zt.plat.module.erp.controller.admin.erp.vo.ErpContractSaveReqVO;
import com.zt.plat.module.erp.dal.dataobject.erp.ErpContractDO;
import com.zt.plat.module.erp.service.erp.ErpContractService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.Resource;
import jakarta.servlet.http.HttpServletResponse;
import jakarta.validation.Valid;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import java.io.IOException;
import java.util.List;
import static com.zt.plat.framework.apilog.core.enums.OperateTypeEnum.EXPORT;
import static com.zt.plat.framework.common.pojo.CommonResult.success;
@Tag(name = "管理后台 - ERP合同映射")
@RestController
@RequestMapping("/bse/erp-contract")
@Validated
public class ErpContractController {
@Resource
private ErpContractService erpContractService;
@PostMapping("/create")
@Operation(summary = "创建ERP合同映射")
@PreAuthorize("@ss.hasPermission('bse:erp-contract:create')")
public CommonResult<ErpContractRespVO> createErpContract(@Valid @RequestBody ErpContractSaveReqVO createReqVO) {
return success(erpContractService.createErpContract(createReqVO));
}
@PutMapping("/update")
@Operation(summary = "更新ERP合同映射")
@PreAuthorize("@ss.hasPermission('bse:erp-contract:update')")
public CommonResult<Boolean> updateErpContract(@Valid @RequestBody ErpContractSaveReqVO updateReqVO) {
erpContractService.updateErpContract(updateReqVO);
return success(true);
}
@DeleteMapping("/delete")
@Operation(summary = "删除ERP合同映射")
@Parameter(name = "id", description = "编号", required = true)
@PreAuthorize("@ss.hasPermission('bse:erp-contract:delete')")
public CommonResult<Boolean> deleteErpContract(@RequestParam("id") Long id) {
erpContractService.deleteErpContract(id);
return success(true);
}
@DeleteMapping("/delete-list")
@Parameter(name = "ids", description = "编号", required = true)
@Operation(summary = "批量删除ERP合同映射")
@PreAuthorize("@ss.hasPermission('bse:erp-contract:delete')")
public CommonResult<Boolean> deleteErpContractList(@RequestBody BatchDeleteReqVO req) {
erpContractService.deleteErpContractListByIds(req.getIds());
return success(true);
}
@GetMapping("/get")
@Operation(summary = "获得ERP合同映射")
@Parameter(name = "id", description = "编号", required = true, example = "1024")
@PreAuthorize("@ss.hasPermission('bse:erp-contract:query')")
public CommonResult<ErpContractRespVO> getErpContract(@RequestParam("id") Long id) {
ErpContractDO erpContract = erpContractService.getErpContract(id);
return success(BeanUtils.toBean(erpContract, ErpContractRespVO.class));
}
@GetMapping("/page")
@Operation(summary = "获得ERP合同映射分页")
@PreAuthorize("@ss.hasPermission('bse:erp-contract:query')")
public CommonResult<PageResult<ErpContractRespVO>> getErpContractPage(@Valid ErpContractPageReqVO pageReqVO) {
PageResult<ErpContractDO> pageResult = erpContractService.getErpContractPage(pageReqVO);
return success(BeanUtils.toBean(pageResult, ErpContractRespVO.class));
}
@GetMapping("/export-excel")
@Operation(summary = "导出ERP合同映射 Excel")
@PreAuthorize("@ss.hasPermission('bse:erp-contract:export')")
@ApiAccessLog(operateType = EXPORT)
public void exportErpContractExcel(@Valid ErpContractPageReqVO pageReqVO,
HttpServletResponse response) throws IOException {
pageReqVO.setPageSize(PageParam.PAGE_SIZE_NONE);
List<ErpContractDO> list = erpContractService.getErpContractPage(pageReqVO).getList();
// 导出 Excel
ExcelUtils.write(response, "ERP合同映射.xls", "数据", ErpContractRespVO.class,
BeanUtils.toBean(list, ErpContractRespVO.class));
}
@PostMapping("/getErpContractTask")
@Operation(summary = "定时获得erp更新合同")
@PreAuthorize("@ss.hasPermission('sply:erp-contract:query')")
public void getErpContractTask() {
erpContractService.callErpRfcInterface();
}
}

View File

@@ -0,0 +1,112 @@
package com.zt.plat.module.erp.controller.admin.erp;
import com.zt.plat.framework.apilog.core.annotation.ApiAccessLog;
import com.zt.plat.framework.common.pojo.CommonResult;
import com.zt.plat.framework.common.pojo.PageParam;
import com.zt.plat.framework.common.pojo.PageResult;
import com.zt.plat.framework.common.pojo.vo.BatchDeleteReqVO;
import com.zt.plat.framework.common.util.object.BeanUtils;
import com.zt.plat.framework.excel.core.util.ExcelUtils;
import com.zt.plat.module.erp.controller.admin.erp.vo.ErpCostcenterPageReqVO;
import com.zt.plat.module.erp.controller.admin.erp.vo.ErpCostcenterRespVO;
import com.zt.plat.module.erp.controller.admin.erp.vo.ErpCostcenterSaveReqVO;
import com.zt.plat.module.erp.dal.dataobject.erp.ErpCostcenterDO;
import com.zt.plat.module.erp.service.erp.ErpCostcenterService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.Resource;
import jakarta.servlet.http.HttpServletResponse;
import jakarta.validation.Valid;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import java.io.IOException;
import java.util.List;
import static com.zt.plat.framework.apilog.core.enums.OperateTypeEnum.EXPORT;
import static com.zt.plat.framework.common.pojo.CommonResult.success;
@Tag(name = "管理后台 - ERP成本中心")
@RestController
@RequestMapping("/sply/erp-costcenter")
@Validated
public class ErpCostcenterController {
@Resource
private ErpCostcenterService erpCostcenterService;
@PostMapping("/create")
@Operation(summary = "创建ERP成本中心")
@PreAuthorize("@ss.hasPermission('sply:erp-costcenter:create')")
public CommonResult<ErpCostcenterRespVO> createErpCostcenter(@Valid @RequestBody ErpCostcenterSaveReqVO createReqVO) {
return success(erpCostcenterService.createErpCostcenter(createReqVO));
}
@PutMapping("/update")
@Operation(summary = "更新ERP成本中心")
@PreAuthorize("@ss.hasPermission('sply:erp-costcenter:update')")
public CommonResult<Boolean> updateErpCostcenter(@Valid @RequestBody ErpCostcenterSaveReqVO updateReqVO) {
erpCostcenterService.updateErpCostcenter(updateReqVO);
return success(true);
}
@DeleteMapping("/delete")
@Operation(summary = "删除ERP成本中心")
@Parameter(name = "id", description = "编号", required = true)
@PreAuthorize("@ss.hasPermission('sply:erp-costcenter:delete')")
public CommonResult<Boolean> deleteErpCostcenter(@RequestParam("id") Long id) {
erpCostcenterService.deleteErpCostcenter(id);
return success(true);
}
@DeleteMapping("/delete-list")
@Parameter(name = "ids", description = "编号", required = true)
@Operation(summary = "批量删除ERP成本中心")
@PreAuthorize("@ss.hasPermission('sply:erp-costcenter:delete')")
public CommonResult<Boolean> deleteErpCostcenterList(@RequestBody BatchDeleteReqVO req) {
erpCostcenterService.deleteErpCostcenterListByIds(req.getIds());
return success(true);
}
@GetMapping("/get")
@Operation(summary = "获得ERP成本中心")
@Parameter(name = "id", description = "编号", required = true, example = "1024")
@PreAuthorize("@ss.hasPermission('sply:erp-costcenter:query')")
public CommonResult<ErpCostcenterRespVO> getErpCostcenter(@RequestParam("id") Long id) {
ErpCostcenterDO erpCostcenter = erpCostcenterService.getErpCostcenter(id);
return success(BeanUtils.toBean(erpCostcenter, ErpCostcenterRespVO.class));
}
@GetMapping("/page")
@Operation(summary = "获得ERP成本中心分页")
@PreAuthorize("@ss.hasPermission('sply:erp-costcenter:query')")
public CommonResult<PageResult<ErpCostcenterRespVO>> getErpCostcenterPage(@Valid ErpCostcenterPageReqVO pageReqVO) {
PageResult<ErpCostcenterDO> pageResult = erpCostcenterService.getErpCostcenterPage(pageReqVO);
return success(BeanUtils.toBean(pageResult, ErpCostcenterRespVO.class));
}
@GetMapping("/export-excel")
@Operation(summary = "导出ERP成本中心 Excel")
@PreAuthorize("@ss.hasPermission('sply:erp-costcenter:export')")
@ApiAccessLog(operateType = EXPORT)
public void exportErpCostcenterExcel(@Valid ErpCostcenterPageReqVO pageReqVO,
HttpServletResponse response) throws IOException {
pageReqVO.setPageSize(PageParam.PAGE_SIZE_NONE);
List<ErpCostcenterDO> list = erpCostcenterService.getErpCostcenterPage(pageReqVO).getList();
// 导出 Excel
ExcelUtils.write(response, "ERP成本中心.xls", "数据", ErpCostcenterRespVO.class,
BeanUtils.toBean(list, ErpCostcenterRespVO.class));
}
@PostMapping("/getErpCostcenterTask")
@Operation(summary = "定时获得erp更新成本中心")
@PreAuthorize("@ss.hasPermission('sply:erp-costcenter:query')")
public void getErpCostcenterTask() {
erpCostcenterService.callErpRfcInterface();
}
}

View File

@@ -0,0 +1,118 @@
package com.zt.plat.module.erp.controller.admin.erp;
import com.zt.plat.framework.apilog.core.annotation.ApiAccessLog;
import com.zt.plat.framework.common.pojo.CommonResult;
import com.zt.plat.framework.common.pojo.PageParam;
import com.zt.plat.framework.common.pojo.PageResult;
import com.zt.plat.framework.common.pojo.vo.BatchDeleteReqVO;
import com.zt.plat.framework.common.util.object.BeanUtils;
import com.zt.plat.framework.excel.core.util.ExcelUtils;
import com.zt.plat.module.erp.controller.admin.erp.vo.ErpCustomerPageReqVO;
import com.zt.plat.module.erp.controller.admin.erp.vo.ErpCustomerRespVO;
import com.zt.plat.module.erp.controller.admin.erp.vo.ErpCustomerSaveReqVO;
import com.zt.plat.module.erp.dal.dataobject.erp.ErpCustomerDO;
import com.zt.plat.module.erp.service.erp.ErpCustomerService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.Resource;
import jakarta.servlet.http.HttpServletResponse;
import jakarta.validation.Valid;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import java.io.IOException;
import java.util.List;
import static com.zt.plat.framework.apilog.core.enums.OperateTypeEnum.EXPORT;
import static com.zt.plat.framework.common.pojo.CommonResult.success;
@Tag(name = "管理后台 - ERP客商信息")
@RestController
@RequestMapping("/sply/erp-customer")
@Validated
public class ErpCustomerController {
@Resource
private ErpCustomerService erpCustomerService;
@PostMapping("/create")
@Operation(summary = "创建ERP客商主数据")
@PreAuthorize("@ss.hasPermission('sply:erp-customer:create')")
public CommonResult<ErpCustomerRespVO> createErpCustomer(@Valid @RequestBody ErpCustomerSaveReqVO createReqVO) {
return success(erpCustomerService.createErpCustomer(createReqVO));
}
@PutMapping("/update")
@Operation(summary = "更新ERP客商主数据")
@PreAuthorize("@ss.hasPermission('sply:erp-customer:update')")
public CommonResult<Boolean> updateErpCustomer(@Valid @RequestBody ErpCustomerSaveReqVO updateReqVO) {
erpCustomerService.updateErpCustomer(updateReqVO);
return success(true);
}
@DeleteMapping("/delete")
@Operation(summary = "删除ERP客商主数据")
@Parameter(name = "id", description = "编号", required = true)
@PreAuthorize("@ss.hasPermission('sply:erp-customer:delete')")
public CommonResult<Boolean> deleteErpCustomer(@RequestParam("id") Long id) {
erpCustomerService.deleteErpCustomer(id);
return success(true);
}
@DeleteMapping("/delete-list")
@Parameter(name = "ids", description = "编号", required = true)
@Operation(summary = "批量删除ERP客商主数据")
@PreAuthorize("@ss.hasPermission('sply:erp-customer:delete')")
public CommonResult<Boolean> deleteErpCustomerList(@RequestBody BatchDeleteReqVO req) {
erpCustomerService.deleteErpCustomerListByIds(req.getIds());
return success(true);
}
@GetMapping("/get")
@Operation(summary = "获得ERP客商主数据")
@Parameter(name = "id", description = "编号", required = true, example = "1024")
@PreAuthorize("@ss.hasPermission('sply:erp-customer:query')")
public CommonResult<ErpCustomerRespVO> getErpCustomer(@RequestParam("id") Long id) {
ErpCustomerDO erpCustomer = erpCustomerService.getErpCustomer(id);
return success(BeanUtils.toBean(erpCustomer, ErpCustomerRespVO.class));
}
@GetMapping("/page")
@Operation(summary = "获得ERP客商主数据分页")
@PreAuthorize("@ss.hasPermission('sply:erp-customer:query')")
public CommonResult<PageResult<ErpCustomerRespVO>> getErpCustomerPage(@Valid ErpCustomerPageReqVO pageReqVO) {
PageResult<ErpCustomerDO> pageResult = erpCustomerService.getErpCustomerPage(pageReqVO);
return success(BeanUtils.toBean(pageResult, ErpCustomerRespVO.class));
}
@GetMapping("/export-excel")
@Operation(summary = "导出ERP客商主数据 Excel")
@PreAuthorize("@ss.hasPermission('sply:erp-customer:export')")
@ApiAccessLog(operateType = EXPORT)
public void exportErpCustomerExcel(@Valid ErpCustomerPageReqVO pageReqVO,
HttpServletResponse response) throws IOException {
pageReqVO.setPageSize(PageParam.PAGE_SIZE_NONE);
List<ErpCustomerDO> list = erpCustomerService.getErpCustomerPage(pageReqVO).getList();
// 导出 Excel
ExcelUtils.write(response, "ERP客商主数据.xls", "数据", ErpCustomerRespVO.class,
BeanUtils.toBean(list, ErpCustomerRespVO.class));
}
@PostMapping("/getErpCustomerTask")
@Operation(summary = "定时获得erp更新客商主数据")
@PreAuthorize("@ss.hasPermission('sply:erp-customer:create')")
public void getErpCustomerTask() {
erpCustomerService.callErpRfcInterface();
}
@PostMapping("/initialize")
@Operation(summary = "把数据库数据number搞到redis")
@PreAuthorize("@ss.hasPermission('sply:erp-customer:create')")
public void initialize() {
erpCustomerService.initialize();
}
}

View File

@@ -0,0 +1,111 @@
package com.zt.plat.module.erp.controller.admin.erp;
import com.zt.plat.framework.apilog.core.annotation.ApiAccessLog;
import com.zt.plat.framework.common.pojo.CommonResult;
import com.zt.plat.framework.common.pojo.PageParam;
import com.zt.plat.framework.common.pojo.PageResult;
import com.zt.plat.framework.common.pojo.vo.BatchDeleteReqVO;
import com.zt.plat.framework.common.util.object.BeanUtils;
import com.zt.plat.framework.excel.core.util.ExcelUtils;
import com.zt.plat.module.erp.controller.admin.erp.vo.ErpFactoryPageReqVO;
import com.zt.plat.module.erp.controller.admin.erp.vo.ErpFactoryRespVO;
import com.zt.plat.module.erp.controller.admin.erp.vo.ErpFactorySaveReqVO;
import com.zt.plat.module.erp.dal.dataobject.erp.ErpFactoryDO;
import com.zt.plat.module.erp.service.erp.ErpFactoryService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.Resource;
import jakarta.servlet.http.HttpServletResponse;
import jakarta.validation.Valid;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import java.io.IOException;
import java.util.List;
import static com.zt.plat.framework.apilog.core.enums.OperateTypeEnum.EXPORT;
import static com.zt.plat.framework.common.pojo.CommonResult.success;
@Tag(name = "管理后台 - ERP工厂")
@RestController
@RequestMapping("/sply/erp-factory")
@Validated
public class ErpFactoryController {
@Resource
private ErpFactoryService erpFactoryService;
@PostMapping("/create")
@Operation(summary = "创建ERP工厂")
@PreAuthorize("@ss.hasPermission('sply:erp-factory:create')")
public CommonResult<ErpFactoryRespVO> createErpFactory(@Valid @RequestBody ErpFactorySaveReqVO createReqVO) {
return success(erpFactoryService.createErpFactory(createReqVO));
}
@PutMapping("/update")
@Operation(summary = "更新ERP工厂")
@PreAuthorize("@ss.hasPermission('sply:erp-factory:update')")
public CommonResult<Boolean> updateErpFactory(@Valid @RequestBody ErpFactorySaveReqVO updateReqVO) {
erpFactoryService.updateErpFactory(updateReqVO);
return success(true);
}
@DeleteMapping("/delete")
@Operation(summary = "删除ERP工厂")
@Parameter(name = "id", description = "编号", required = true)
@PreAuthorize("@ss.hasPermission('sply:erp-factory:delete')")
public CommonResult<Boolean> deleteErpFactory(@RequestParam("id") Long id) {
erpFactoryService.deleteErpFactory(id);
return success(true);
}
@DeleteMapping("/delete-list")
@Parameter(name = "ids", description = "编号", required = true)
@Operation(summary = "批量删除ERP工厂")
@PreAuthorize("@ss.hasPermission('sply:erp-factory:delete')")
public CommonResult<Boolean> deleteErpFactoryList(@RequestBody BatchDeleteReqVO req) {
erpFactoryService.deleteErpFactoryListByIds(req.getIds());
return success(true);
}
@GetMapping("/get")
@Operation(summary = "获得ERP工厂")
@Parameter(name = "id", description = "编号", required = true, example = "1024")
@PreAuthorize("@ss.hasPermission('sply:erp-factory:query')")
public CommonResult<ErpFactoryRespVO> getErpFactory(@RequestParam("id") Long id) {
ErpFactoryDO erpFactory = erpFactoryService.getErpFactory(id);
return success(BeanUtils.toBean(erpFactory, ErpFactoryRespVO.class));
}
@GetMapping("/page")
@Operation(summary = "获得ERP工厂分页")
@PreAuthorize("@ss.hasPermission('sply:erp-factory:query')")
public CommonResult<PageResult<ErpFactoryRespVO>> getErpFactoryPage(@Valid ErpFactoryPageReqVO pageReqVO) {
PageResult<ErpFactoryDO> pageResult = erpFactoryService.getErpFactoryPage(pageReqVO);
return success(BeanUtils.toBean(pageResult, ErpFactoryRespVO.class));
}
@GetMapping("/export-excel")
@Operation(summary = "导出ERP工厂 Excel")
@PreAuthorize("@ss.hasPermission('sply:erp-factory:export')")
@ApiAccessLog(operateType = EXPORT)
public void exportErpFactoryExcel(@Valid ErpFactoryPageReqVO pageReqVO,
HttpServletResponse response) throws IOException {
pageReqVO.setPageSize(PageParam.PAGE_SIZE_NONE);
List<ErpFactoryDO> list = erpFactoryService.getErpFactoryPage(pageReqVO).getList();
// 导出 Excel
ExcelUtils.write(response, "ERP工厂.xls", "数据", ErpFactoryRespVO.class,
BeanUtils.toBean(list, ErpFactoryRespVO.class));
}
@PostMapping("/getErpFactoryTask")
@Operation(summary = "定时获得erp工厂数据")
@PreAuthorize("@ss.hasPermission('sply:erp-factory:create')")
public void getErpFactoryTask() {
erpFactoryService.callErpRfcInterface();
}
}

View File

@@ -0,0 +1,111 @@
package com.zt.plat.module.erp.controller.admin.erp;
import com.zt.plat.framework.apilog.core.annotation.ApiAccessLog;
import com.zt.plat.framework.common.pojo.CommonResult;
import com.zt.plat.framework.common.pojo.PageParam;
import com.zt.plat.framework.common.pojo.PageResult;
import com.zt.plat.framework.common.pojo.vo.BatchDeleteReqVO;
import com.zt.plat.framework.common.util.object.BeanUtils;
import com.zt.plat.framework.excel.core.util.ExcelUtils;
import com.zt.plat.module.erp.controller.admin.erp.vo.ErpInternalOrderPageReqVO;
import com.zt.plat.module.erp.controller.admin.erp.vo.ErpInternalOrderRespVO;
import com.zt.plat.module.erp.controller.admin.erp.vo.ErpInternalOrderSaveReqVO;
import com.zt.plat.module.erp.dal.dataobject.erp.ErpInternalOrderDO;
import com.zt.plat.module.erp.service.erp.ErpInternalOrderService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.Resource;
import jakarta.servlet.http.HttpServletResponse;
import jakarta.validation.Valid;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import java.io.IOException;
import java.util.List;
import static com.zt.plat.framework.apilog.core.enums.OperateTypeEnum.EXPORT;
import static com.zt.plat.framework.common.pojo.CommonResult.success;
@Tag(name = "管理后台 - ERP内部订单")
@RestController
@RequestMapping("/sply/erp-internal-order")
@Validated
public class ErpInternalOrderController {
@Resource
private ErpInternalOrderService erpInternalOrderService;
@PostMapping("/create")
@Operation(summary = "创建ERP内部订单")
@PreAuthorize("@ss.hasPermission('sply:erp-internal-order:create')")
public CommonResult<ErpInternalOrderRespVO> createErpInternalOrder(@Valid @RequestBody ErpInternalOrderSaveReqVO createReqVO) {
return success(erpInternalOrderService.createErpInternalOrder(createReqVO));
}
@PutMapping("/update")
@Operation(summary = "更新ERP内部订单")
@PreAuthorize("@ss.hasPermission('sply:erp-internal-order:update')")
public CommonResult<Boolean> updateErpInternalOrder(@Valid @RequestBody ErpInternalOrderSaveReqVO updateReqVO) {
erpInternalOrderService.updateErpInternalOrder(updateReqVO);
return success(true);
}
@DeleteMapping("/delete")
@Operation(summary = "删除ERP内部订单")
@Parameter(name = "id", description = "编号", required = true)
@PreAuthorize("@ss.hasPermission('sply:erp-internal-order:delete')")
public CommonResult<Boolean> deleteErpInternalOrder(@RequestParam("id") Long id) {
erpInternalOrderService.deleteErpInternalOrder(id);
return success(true);
}
@DeleteMapping("/delete-list")
@Parameter(name = "ids", description = "编号", required = true)
@Operation(summary = "批量删除ERP内部订单")
@PreAuthorize("@ss.hasPermission('sply:erp-internal-order:delete')")
public CommonResult<Boolean> deleteErpInternalOrderList(@RequestBody BatchDeleteReqVO req) {
erpInternalOrderService.deleteErpInternalOrderListByIds(req.getIds());
return success(true);
}
@GetMapping("/get")
@Operation(summary = "获得ERP内部订单")
@Parameter(name = "id", description = "编号", required = true, example = "1024")
@PreAuthorize("@ss.hasPermission('sply:erp-internal-order:query')")
public CommonResult<ErpInternalOrderRespVO> getErpInternalOrder(@RequestParam("id") Long id) {
ErpInternalOrderDO erpInternalOrder = erpInternalOrderService.getErpInternalOrder(id);
return success(BeanUtils.toBean(erpInternalOrder, ErpInternalOrderRespVO.class));
}
@GetMapping("/page")
@Operation(summary = "获得ERP内部订单分页")
@PreAuthorize("@ss.hasPermission('sply:erp-internal-order:query')")
public CommonResult<PageResult<ErpInternalOrderRespVO>> getErpInternalOrderPage(@Valid ErpInternalOrderPageReqVO pageReqVO) {
PageResult<ErpInternalOrderDO> pageResult = erpInternalOrderService.getErpInternalOrderPage(pageReqVO);
return success(BeanUtils.toBean(pageResult, ErpInternalOrderRespVO.class));
}
@GetMapping("/export-excel")
@Operation(summary = "导出ERP内部订单 Excel")
@PreAuthorize("@ss.hasPermission('sply:erp-internal-order:export')")
@ApiAccessLog(operateType = EXPORT)
public void exportErpInternalOrderExcel(@Valid ErpInternalOrderPageReqVO pageReqVO,
HttpServletResponse response) throws IOException {
pageReqVO.setPageSize(PageParam.PAGE_SIZE_NONE);
List<ErpInternalOrderDO> list = erpInternalOrderService.getErpInternalOrderPage(pageReqVO).getList();
// 导出 Excel
ExcelUtils.write(response, "ERP内部订单.xls", "数据", ErpInternalOrderRespVO.class,
BeanUtils.toBean(list, ErpInternalOrderRespVO.class));
}
@PostMapping("/getErpInternalOrderTask")
@Operation(summary = "定时获得erp更新内部订单数据")
@PreAuthorize("@ss.hasPermission('sply:erp-internal-order:create')")
public void getErpInternalOrderTask() {
erpInternalOrderService.callErpRfcInterface();
}
}

View File

@@ -0,0 +1,118 @@
package com.zt.plat.module.erp.controller.admin.erp;
import com.zt.plat.framework.apilog.core.annotation.ApiAccessLog;
import com.zt.plat.framework.common.pojo.CommonResult;
import com.zt.plat.framework.common.pojo.PageParam;
import com.zt.plat.framework.common.pojo.PageResult;
import com.zt.plat.framework.common.pojo.vo.BatchDeleteReqVO;
import com.zt.plat.framework.common.util.object.BeanUtils;
import com.zt.plat.framework.excel.core.util.ExcelUtils;
import com.zt.plat.module.erp.controller.admin.erp.vo.ErpMaterialPageReqVO;
import com.zt.plat.module.erp.controller.admin.erp.vo.ErpMaterialRespVO;
import com.zt.plat.module.erp.controller.admin.erp.vo.ErpMaterialSaveReqVO;
import com.zt.plat.module.erp.dal.dataobject.erp.ErpMaterialDO;
import com.zt.plat.module.erp.service.erp.ErpMaterialService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.Resource;
import jakarta.servlet.http.HttpServletResponse;
import jakarta.validation.Valid;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import java.io.IOException;
import java.util.List;
import static com.zt.plat.framework.apilog.core.enums.OperateTypeEnum.EXPORT;
import static com.zt.plat.framework.common.pojo.CommonResult.success;
@Tag(name = "管理后台 - ERP物料信息")
@RestController
@RequestMapping("/sply/erp-material")
@Validated
public class ErpMaterialController {
@Resource
private ErpMaterialService erpMaterialService;
@PostMapping("/create")
@Operation(summary = "创建ERP物料数据")
@PreAuthorize("@ss.hasPermission('sply:erp-material:create')")
public CommonResult<ErpMaterialRespVO> createErpMaterial(@Valid @RequestBody ErpMaterialSaveReqVO createReqVO) {
return success(erpMaterialService.createErpMaterial(createReqVO));
}
@PutMapping("/update")
@Operation(summary = "更新ERP物料数据")
@PreAuthorize("@ss.hasPermission('sply:erp-material:update')")
public CommonResult<Boolean> updateErpMaterial(@Valid @RequestBody ErpMaterialSaveReqVO updateReqVO) {
erpMaterialService.updateErpMaterial(updateReqVO);
return success(true);
}
@DeleteMapping("/delete")
@Operation(summary = "删除ERP物料数据")
@Parameter(name = "id", description = "编号", required = true)
@PreAuthorize("@ss.hasPermission('sply:erp-material:delete')")
public CommonResult<Boolean> deleteErpMaterial(@RequestParam("id") Long id) {
erpMaterialService.deleteErpMaterial(id);
return success(true);
}
@DeleteMapping("/delete-list")
@Parameter(name = "ids", description = "编号", required = true)
@Operation(summary = "批量删除ERP物料数据")
@PreAuthorize("@ss.hasPermission('sply:erp-material:delete')")
public CommonResult<Boolean> deleteErpMaterialList(@RequestBody BatchDeleteReqVO req) {
erpMaterialService.deleteErpMaterialListByIds(req.getIds());
return success(true);
}
@GetMapping("/get")
@Operation(summary = "获得ERP物料数据")
@Parameter(name = "id", description = "编号", required = true, example = "1024")
@PreAuthorize("@ss.hasPermission('sply:erp-material:query')")
public CommonResult<ErpMaterialRespVO> getErpMaterial(@RequestParam("id") Long id) {
ErpMaterialDO erpMaterial = erpMaterialService.getErpMaterial(id);
return success(BeanUtils.toBean(erpMaterial, ErpMaterialRespVO.class));
}
@GetMapping("/page")
@Operation(summary = "获得ERP物料数据分页")
@PreAuthorize("@ss.hasPermission('sply:erp-material:query')")
public CommonResult<PageResult<ErpMaterialRespVO>> getErpMaterialPage(@Valid ErpMaterialPageReqVO pageReqVO) {
PageResult<ErpMaterialDO> pageResult = erpMaterialService.getErpMaterialPage(pageReqVO);
return success(BeanUtils.toBean(pageResult, ErpMaterialRespVO.class));
}
@GetMapping("/export-excel")
@Operation(summary = "导出ERP物料数据 Excel")
@PreAuthorize("@ss.hasPermission('sply:erp-material:export')")
@ApiAccessLog(operateType = EXPORT)
public void exportErpMaterialExcel(@Valid ErpMaterialPageReqVO pageReqVO,
HttpServletResponse response) throws IOException {
pageReqVO.setPageSize(PageParam.PAGE_SIZE_NONE);
List<ErpMaterialDO> list = erpMaterialService.getErpMaterialPage(pageReqVO).getList();
// 导出 Excel
ExcelUtils.write(response, "ERP物料数据.xls", "数据", ErpMaterialRespVO.class,
BeanUtils.toBean(list, ErpMaterialRespVO.class));
}
@PostMapping("/getErpMaterialTask")
@Operation(summary = "定时获得erp更新公司")
@PreAuthorize("@ss.hasPermission('sply:erp-material:create')")
public void getErpMaterialTask() {
erpMaterialService.callErpRfcInterface();
}
@PostMapping("/initialize")
@Operation(summary = "把数据库数据number搞到redis")
@PreAuthorize("@ss.hasPermission('sply:erp-material:create')")
public void initialize() {
erpMaterialService.initialize();
}
}

View File

@@ -0,0 +1,111 @@
package com.zt.plat.module.erp.controller.admin.erp;
import com.zt.plat.framework.apilog.core.annotation.ApiAccessLog;
import com.zt.plat.framework.common.pojo.CommonResult;
import com.zt.plat.framework.common.pojo.PageParam;
import com.zt.plat.framework.common.pojo.PageResult;
import com.zt.plat.framework.common.pojo.vo.BatchDeleteReqVO;
import com.zt.plat.framework.common.util.object.BeanUtils;
import com.zt.plat.framework.excel.core.util.ExcelUtils;
import com.zt.plat.module.erp.controller.admin.erp.vo.ErpProcessPageReqVO;
import com.zt.plat.module.erp.controller.admin.erp.vo.ErpProcessRespVO;
import com.zt.plat.module.erp.controller.admin.erp.vo.ErpProcessSaveReqVO;
import com.zt.plat.module.erp.dal.dataobject.erp.ErpProcessDO;
import com.zt.plat.module.erp.service.erp.ErpProcessService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.Resource;
import jakarta.servlet.http.HttpServletResponse;
import jakarta.validation.Valid;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import java.io.IOException;
import java.util.List;
import static com.zt.plat.framework.apilog.core.enums.OperateTypeEnum.EXPORT;
import static com.zt.plat.framework.common.pojo.CommonResult.success;
@Tag(name = "管理后台 - ERP工艺路线")
@RestController
@RequestMapping("/sply/erp-process")
@Validated
public class ErpProcessController {
@Resource
private ErpProcessService erpProcessService;
@PostMapping("/create")
@Operation(summary = "创建ERP工艺路线")
@PreAuthorize("@ss.hasPermission('sply:erp-process:create')")
public CommonResult<ErpProcessRespVO> createErpProcess(@Valid @RequestBody ErpProcessSaveReqVO createReqVO) {
return success(erpProcessService.createErpProcess(createReqVO));
}
@PutMapping("/update")
@Operation(summary = "更新ERP工艺路线")
@PreAuthorize("@ss.hasPermission('sply:erp-process:update')")
public CommonResult<Boolean> updateErpProcess(@Valid @RequestBody ErpProcessSaveReqVO updateReqVO) {
erpProcessService.updateErpProcess(updateReqVO);
return success(true);
}
@DeleteMapping("/delete")
@Operation(summary = "删除ERP工艺路线")
@Parameter(name = "id", description = "编号", required = true)
@PreAuthorize("@ss.hasPermission('sply:erp-process:delete')")
public CommonResult<Boolean> deleteErpProcess(@RequestParam("id") Long id) {
erpProcessService.deleteErpProcess(id);
return success(true);
}
@DeleteMapping("/delete-list")
@Parameter(name = "ids", description = "编号", required = true)
@Operation(summary = "批量删除ERP工艺路线")
@PreAuthorize("@ss.hasPermission('sply:erp-process:delete')")
public CommonResult<Boolean> deleteErpProcessList(@RequestBody BatchDeleteReqVO req) {
erpProcessService.deleteErpProcessListByIds(req.getIds());
return success(true);
}
@GetMapping("/get")
@Operation(summary = "获得ERP工艺路线")
@Parameter(name = "id", description = "编号", required = true, example = "1024")
@PreAuthorize("@ss.hasPermission('sply:erp-process:query')")
public CommonResult<ErpProcessRespVO> getErpProcess(@RequestParam("id") Long id) {
ErpProcessDO erpProcess = erpProcessService.getErpProcess(id);
return success(BeanUtils.toBean(erpProcess, ErpProcessRespVO.class));
}
@GetMapping("/page")
@Operation(summary = "获得ERP工艺路线分页")
@PreAuthorize("@ss.hasPermission('sply:erp-process:query')")
public CommonResult<PageResult<ErpProcessRespVO>> getErpProcessPage(@Valid ErpProcessPageReqVO pageReqVO) {
PageResult<ErpProcessDO> pageResult = erpProcessService.getErpProcessPage(pageReqVO);
return success(BeanUtils.toBean(pageResult, ErpProcessRespVO.class));
}
@GetMapping("/export-excel")
@Operation(summary = "导出ERP工艺路线 Excel")
@PreAuthorize("@ss.hasPermission('sply:erp-process:export')")
@ApiAccessLog(operateType = EXPORT)
public void exportErpProcessExcel(@Valid ErpProcessPageReqVO pageReqVO,
HttpServletResponse response) throws IOException {
pageReqVO.setPageSize(PageParam.PAGE_SIZE_NONE);
List<ErpProcessDO> list = erpProcessService.getErpProcessPage(pageReqVO).getList();
// 导出 Excel
ExcelUtils.write(response, "ERP工艺路线.xls", "数据", ErpProcessRespVO.class,
BeanUtils.toBean(list, ErpProcessRespVO.class));
}
@PostMapping("/getErpProcessTask")
@Operation(summary = "定时获得erp更新工艺路线")
@PreAuthorize("@ss.hasPermission('sply:erp-process:create')")
public void getErpProcessTask() {
erpProcessService.callErpRfcInterface();
}
}

View File

@@ -0,0 +1,104 @@
package com.zt.plat.module.erp.controller.admin.erp;
import com.zt.plat.framework.apilog.core.annotation.ApiAccessLog;
import com.zt.plat.framework.common.pojo.CommonResult;
import com.zt.plat.framework.common.pojo.PageParam;
import com.zt.plat.framework.common.pojo.PageResult;
import com.zt.plat.framework.common.pojo.vo.BatchDeleteReqVO;
import com.zt.plat.framework.common.util.object.BeanUtils;
import com.zt.plat.framework.excel.core.util.ExcelUtils;
import com.zt.plat.module.erp.controller.admin.erp.vo.ErpProcessDetailPageReqVO;
import com.zt.plat.module.erp.controller.admin.erp.vo.ErpProcessDetailRespVO;
import com.zt.plat.module.erp.controller.admin.erp.vo.ErpProcessDetailSaveReqVO;
import com.zt.plat.module.erp.dal.dataobject.erp.ErpProcessDetailDO;
import com.zt.plat.module.erp.service.erp.ErpProcessDetailService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.Resource;
import jakarta.servlet.http.HttpServletResponse;
import jakarta.validation.Valid;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import java.io.IOException;
import java.util.List;
import static com.zt.plat.framework.apilog.core.enums.OperateTypeEnum.EXPORT;
import static com.zt.plat.framework.common.pojo.CommonResult.success;
@Tag(name = "管理后台 - ERP工艺路线明细")
@RestController
@RequestMapping("/sply/erp-process-detail")
@Validated
public class ErpProcessDetailController {
@Resource
private ErpProcessDetailService erpProcessDetailService;
@PostMapping("/create")
@Operation(summary = "创建ERP工艺路线明细")
@PreAuthorize("@ss.hasPermission('sply:erp-process-detail:create')")
public CommonResult<ErpProcessDetailRespVO> createErpProcessDetail(@Valid @RequestBody ErpProcessDetailSaveReqVO createReqVO) {
return success(erpProcessDetailService.createErpProcessDetail(createReqVO));
}
@PutMapping("/update")
@Operation(summary = "更新ERP工艺路线明细")
@PreAuthorize("@ss.hasPermission('sply:erp-process-detail:update')")
public CommonResult<Boolean> updateErpProcessDetail(@Valid @RequestBody ErpProcessDetailSaveReqVO updateReqVO) {
erpProcessDetailService.updateErpProcessDetail(updateReqVO);
return success(true);
}
@DeleteMapping("/delete")
@Operation(summary = "删除ERP工艺路线明细")
@Parameter(name = "id", description = "编号", required = true)
@PreAuthorize("@ss.hasPermission('sply:erp-process-detail:delete')")
public CommonResult<Boolean> deleteErpProcessDetail(@RequestParam("id") Long id) {
erpProcessDetailService.deleteErpProcessDetail(id);
return success(true);
}
@DeleteMapping("/delete-list")
@Parameter(name = "ids", description = "编号", required = true)
@Operation(summary = "批量删除ERP工艺路线明细")
@PreAuthorize("@ss.hasPermission('sply:erp-process-detail:delete')")
public CommonResult<Boolean> deleteErpProcessDetailList(@RequestBody BatchDeleteReqVO req) {
erpProcessDetailService.deleteErpProcessDetailListByIds(req.getIds());
return success(true);
}
@GetMapping("/get")
@Operation(summary = "获得ERP工艺路线明细")
@Parameter(name = "id", description = "编号", required = true, example = "1024")
@PreAuthorize("@ss.hasPermission('sply:erp-process-detail:query')")
public CommonResult<ErpProcessDetailRespVO> getErpProcessDetail(@RequestParam("id") Long id) {
ErpProcessDetailDO erpProcessDetail = erpProcessDetailService.getErpProcessDetail(id);
return success(BeanUtils.toBean(erpProcessDetail, ErpProcessDetailRespVO.class));
}
@GetMapping("/page")
@Operation(summary = "获得ERP工艺路线明细分页")
@PreAuthorize("@ss.hasPermission('sply:erp-process-detail:query')")
public CommonResult<PageResult<ErpProcessDetailRespVO>> getErpProcessDetailPage(@Valid ErpProcessDetailPageReqVO pageReqVO) {
PageResult<ErpProcessDetailDO> pageResult = erpProcessDetailService.getErpProcessDetailPage(pageReqVO);
return success(BeanUtils.toBean(pageResult, ErpProcessDetailRespVO.class));
}
@GetMapping("/export-excel")
@Operation(summary = "导出ERP工艺路线明细 Excel")
@PreAuthorize("@ss.hasPermission('sply:erp-process-detail:export')")
@ApiAccessLog(operateType = EXPORT)
public void exportErpProcessDetailExcel(@Valid ErpProcessDetailPageReqVO pageReqVO,
HttpServletResponse response) throws IOException {
pageReqVO.setPageSize(PageParam.PAGE_SIZE_NONE);
List<ErpProcessDetailDO> list = erpProcessDetailService.getErpProcessDetailPage(pageReqVO).getList();
// 导出 Excel
ExcelUtils.write(response, "ERP工艺路线明细.xls", "数据", ErpProcessDetailRespVO.class,
BeanUtils.toBean(list, ErpProcessDetailRespVO.class));
}
}

View File

@@ -0,0 +1,111 @@
package com.zt.plat.module.erp.controller.admin.erp;
import com.zt.plat.framework.apilog.core.annotation.ApiAccessLog;
import com.zt.plat.framework.common.pojo.CommonResult;
import com.zt.plat.framework.common.pojo.PageParam;
import com.zt.plat.framework.common.pojo.PageResult;
import com.zt.plat.framework.common.pojo.vo.BatchDeleteReqVO;
import com.zt.plat.framework.common.util.object.BeanUtils;
import com.zt.plat.framework.excel.core.util.ExcelUtils;
import com.zt.plat.module.erp.controller.admin.erp.vo.ErpProductiveOrderPageReqVO;
import com.zt.plat.module.erp.controller.admin.erp.vo.ErpProductiveOrderRespVO;
import com.zt.plat.module.erp.controller.admin.erp.vo.ErpProductiveOrderSaveReqVO;
import com.zt.plat.module.erp.dal.dataobject.erp.ErpProductiveOrderDO;
import com.zt.plat.module.erp.service.erp.ErpProductiveOrderService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.Resource;
import jakarta.servlet.http.HttpServletResponse;
import jakarta.validation.Valid;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import java.io.IOException;
import java.util.List;
import static com.zt.plat.framework.apilog.core.enums.OperateTypeEnum.EXPORT;
import static com.zt.plat.framework.common.pojo.CommonResult.success;
@Tag(name = "管理后台 - ERP生产订单")
@RestController
@RequestMapping("/sply/erp-productive-order")
@Validated
public class ErpProductiveOrderController {
@Resource
private ErpProductiveOrderService erpProductiveOrderService;
@PostMapping("/create")
@Operation(summary = "创建ERP生产订单")
@PreAuthorize("@ss.hasPermission('sply:erp-productive-order:create')")
public CommonResult<ErpProductiveOrderRespVO> createErpProductiveOrder(@Valid @RequestBody ErpProductiveOrderSaveReqVO createReqVO) {
return success(erpProductiveOrderService.createErpProductiveOrder(createReqVO));
}
@PutMapping("/update")
@Operation(summary = "更新ERP生产订单")
@PreAuthorize("@ss.hasPermission('sply:erp-productive-order:update')")
public CommonResult<Boolean> updateErpProductiveOrder(@Valid @RequestBody ErpProductiveOrderSaveReqVO updateReqVO) {
erpProductiveOrderService.updateErpProductiveOrder(updateReqVO);
return success(true);
}
@DeleteMapping("/delete")
@Operation(summary = "删除ERP生产订单")
@Parameter(name = "id", description = "编号", required = true)
@PreAuthorize("@ss.hasPermission('sply:erp-productive-order:delete')")
public CommonResult<Boolean> deleteErpProductiveOrder(@RequestParam("id") Long id) {
erpProductiveOrderService.deleteErpProductiveOrder(id);
return success(true);
}
@DeleteMapping("/delete-list")
@Parameter(name = "ids", description = "编号", required = true)
@Operation(summary = "批量删除ERP生产订单")
@PreAuthorize("@ss.hasPermission('sply:erp-productive-order:delete')")
public CommonResult<Boolean> deleteErpProductiveOrderList(@RequestBody BatchDeleteReqVO req) {
erpProductiveOrderService.deleteErpProductiveOrderListByIds(req.getIds());
return success(true);
}
@GetMapping("/get")
@Operation(summary = "获得ERP生产订单")
@Parameter(name = "id", description = "编号", required = true, example = "1024")
@PreAuthorize("@ss.hasPermission('sply:erp-productive-order:query')")
public CommonResult<ErpProductiveOrderRespVO> getErpProductiveOrder(@RequestParam("id") Long id) {
ErpProductiveOrderDO erpProductiveOrder = erpProductiveOrderService.getErpProductiveOrder(id);
return success(BeanUtils.toBean(erpProductiveOrder, ErpProductiveOrderRespVO.class));
}
@GetMapping("/page")
@Operation(summary = "获得ERP生产订单分页")
@PreAuthorize("@ss.hasPermission('sply:erp-productive-order:query')")
public CommonResult<PageResult<ErpProductiveOrderRespVO>> getErpProductiveOrderPage(@Valid ErpProductiveOrderPageReqVO pageReqVO) {
PageResult<ErpProductiveOrderDO> pageResult = erpProductiveOrderService.getErpProductiveOrderPage(pageReqVO);
return success(BeanUtils.toBean(pageResult, ErpProductiveOrderRespVO.class));
}
@GetMapping("/export-excel")
@Operation(summary = "导出ERP生产订单 Excel")
@PreAuthorize("@ss.hasPermission('sply:erp-productive-order:export')")
@ApiAccessLog(operateType = EXPORT)
public void exportErpProductiveOrderExcel(@Valid ErpProductiveOrderPageReqVO pageReqVO,
HttpServletResponse response) throws IOException {
pageReqVO.setPageSize(PageParam.PAGE_SIZE_NONE);
List<ErpProductiveOrderDO> list = erpProductiveOrderService.getErpProductiveOrderPage(pageReqVO).getList();
// 导出 Excel
ExcelUtils.write(response, "ERP生产订单.xls", "数据", ErpProductiveOrderRespVO.class,
BeanUtils.toBean(list, ErpProductiveOrderRespVO.class));
}
@PostMapping("/getErpProductiveOrderTask")
@Operation(summary = "定时获得erp更新生产订单")
@PreAuthorize("@ss.hasPermission('sply:erp-productive-order:create')")
public void getErpProductiveOrderTask() {
erpProductiveOrderService.callErpRfcInterface();
}
}

View File

@@ -0,0 +1,111 @@
package com.zt.plat.module.erp.controller.admin.erp;
import com.zt.plat.framework.apilog.core.annotation.ApiAccessLog;
import com.zt.plat.framework.common.pojo.CommonResult;
import com.zt.plat.framework.common.pojo.PageParam;
import com.zt.plat.framework.common.pojo.PageResult;
import com.zt.plat.framework.common.pojo.vo.BatchDeleteReqVO;
import com.zt.plat.framework.common.util.object.BeanUtils;
import com.zt.plat.framework.excel.core.util.ExcelUtils;
import com.zt.plat.module.erp.controller.admin.erp.vo.ErpProductiveVersionPageReqVO;
import com.zt.plat.module.erp.controller.admin.erp.vo.ErpProductiveVersionRespVO;
import com.zt.plat.module.erp.controller.admin.erp.vo.ErpProductiveVersionSaveReqVO;
import com.zt.plat.module.erp.dal.dataobject.erp.ErpProductiveVersionDO;
import com.zt.plat.module.erp.service.erp.ErpProductiveVersionService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.Resource;
import jakarta.servlet.http.HttpServletResponse;
import jakarta.validation.Valid;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import java.io.IOException;
import java.util.List;
import static com.zt.plat.framework.apilog.core.enums.OperateTypeEnum.EXPORT;
import static com.zt.plat.framework.common.pojo.CommonResult.success;
@Tag(name = "管理后台 - ERP生产版本")
@RestController
@RequestMapping("/sply/erp-productive-version")
@Validated
public class ErpProductiveVersionController {
@Resource
private ErpProductiveVersionService erpProductiveVersionService;
@PostMapping("/create")
@Operation(summary = "创建ERP生产版本")
@PreAuthorize("@ss.hasPermission('sply:erp-productive-version:create')")
public CommonResult<ErpProductiveVersionRespVO> createErpProductiveVersion(@Valid @RequestBody ErpProductiveVersionSaveReqVO createReqVO) {
return success(erpProductiveVersionService.createErpProductiveVersion(createReqVO));
}
@PutMapping("/update")
@Operation(summary = "更新ERP生产版本")
@PreAuthorize("@ss.hasPermission('sply:erp-productive-version:update')")
public CommonResult<Boolean> updateErpProductiveVersion(@Valid @RequestBody ErpProductiveVersionSaveReqVO updateReqVO) {
erpProductiveVersionService.updateErpProductiveVersion(updateReqVO);
return success(true);
}
@DeleteMapping("/delete")
@Operation(summary = "删除ERP生产版本")
@Parameter(name = "id", description = "编号", required = true)
@PreAuthorize("@ss.hasPermission('sply:erp-productive-version:delete')")
public CommonResult<Boolean> deleteErpProductiveVersion(@RequestParam("id") Long id) {
erpProductiveVersionService.deleteErpProductiveVersion(id);
return success(true);
}
@DeleteMapping("/delete-list")
@Parameter(name = "ids", description = "编号", required = true)
@Operation(summary = "批量删除ERP生产版本")
@PreAuthorize("@ss.hasPermission('sply:erp-productive-version:delete')")
public CommonResult<Boolean> deleteErpProductiveVersionList(@RequestBody BatchDeleteReqVO req) {
erpProductiveVersionService.deleteErpProductiveVersionListByIds(req.getIds());
return success(true);
}
@GetMapping("/get")
@Operation(summary = "获得ERP生产版本")
@Parameter(name = "id", description = "编号", required = true, example = "1024")
@PreAuthorize("@ss.hasPermission('sply:erp-productive-version:query')")
public CommonResult<ErpProductiveVersionRespVO> getErpProductiveVersion(@RequestParam("id") Long id) {
ErpProductiveVersionDO erpProductiveVersion = erpProductiveVersionService.getErpProductiveVersion(id);
return success(BeanUtils.toBean(erpProductiveVersion, ErpProductiveVersionRespVO.class));
}
@GetMapping("/page")
@Operation(summary = "获得ERP生产版本分页")
@PreAuthorize("@ss.hasPermission('sply:erp-productive-version:query')")
public CommonResult<PageResult<ErpProductiveVersionRespVO>> getErpProductiveVersionPage(@Valid ErpProductiveVersionPageReqVO pageReqVO) {
PageResult<ErpProductiveVersionDO> pageResult = erpProductiveVersionService.getErpProductiveVersionPage(pageReqVO);
return success(BeanUtils.toBean(pageResult, ErpProductiveVersionRespVO.class));
}
@GetMapping("/export-excel")
@Operation(summary = "导出ERP生产版本 Excel")
@PreAuthorize("@ss.hasPermission('sply:erp-productive-version:export')")
@ApiAccessLog(operateType = EXPORT)
public void exportErpProductiveVersionExcel(@Valid ErpProductiveVersionPageReqVO pageReqVO,
HttpServletResponse response) throws IOException {
pageReqVO.setPageSize(PageParam.PAGE_SIZE_NONE);
List<ErpProductiveVersionDO> list = erpProductiveVersionService.getErpProductiveVersionPage(pageReqVO).getList();
// 导出 Excel
ExcelUtils.write(response, "ERP生产版本.xls", "数据", ErpProductiveVersionRespVO.class,
BeanUtils.toBean(list, ErpProductiveVersionRespVO.class));
}
@PostMapping("/getErpProductiveVersionTask")
@Operation(summary = "定时获得erp更新生产版本")
@PreAuthorize("@ss.hasPermission('sply:erp-productive-version:create')")
public void getErpProductiveVersionTask() {
erpProductiveVersionService.callErpRfcInterface();
}
}

View File

@@ -0,0 +1,111 @@
package com.zt.plat.module.erp.controller.admin.erp;
import com.zt.plat.framework.apilog.core.annotation.ApiAccessLog;
import com.zt.plat.framework.common.pojo.CommonResult;
import com.zt.plat.framework.common.pojo.PageParam;
import com.zt.plat.framework.common.pojo.PageResult;
import com.zt.plat.framework.common.pojo.vo.BatchDeleteReqVO;
import com.zt.plat.framework.common.util.object.BeanUtils;
import com.zt.plat.framework.excel.core.util.ExcelUtils;
import com.zt.plat.module.erp.controller.admin.erp.vo.ErpPurchaseOrganizationPageReqVO;
import com.zt.plat.module.erp.controller.admin.erp.vo.ErpPurchaseOrganizationRespVO;
import com.zt.plat.module.erp.controller.admin.erp.vo.ErpPurchaseOrganizationSaveReqVO;
import com.zt.plat.module.erp.dal.dataobject.erp.ErpPurchaseOrganizationDO;
import com.zt.plat.module.erp.service.erp.ErpPurchaseOrganizationService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.Resource;
import jakarta.servlet.http.HttpServletResponse;
import jakarta.validation.Valid;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import java.io.IOException;
import java.util.List;
import static com.zt.plat.framework.apilog.core.enums.OperateTypeEnum.EXPORT;
import static com.zt.plat.framework.common.pojo.CommonResult.success;
@Tag(name = "管理后台 - ERP采购组织")
@RestController
@RequestMapping("/sply/erp-purchase-organization")
@Validated
public class ErpPurchaseOrganizationController {
@Resource
private ErpPurchaseOrganizationService erpPurchaseOrganizationService;
@PostMapping("/create")
@Operation(summary = "创建ERP采购组织")
@PreAuthorize("@ss.hasPermission('sply:erp-purchase-organization:create')")
public CommonResult<ErpPurchaseOrganizationRespVO> createErpPurchaseOrganization(@Valid @RequestBody ErpPurchaseOrganizationSaveReqVO createReqVO) {
return success(erpPurchaseOrganizationService.createErpPurchaseOrganization(createReqVO));
}
@PutMapping("/update")
@Operation(summary = "更新ERP采购组织")
@PreAuthorize("@ss.hasPermission('sply:erp-purchase-organization:update')")
public CommonResult<Boolean> updateErpPurchaseOrganization(@Valid @RequestBody ErpPurchaseOrganizationSaveReqVO updateReqVO) {
erpPurchaseOrganizationService.updateErpPurchaseOrganization(updateReqVO);
return success(true);
}
@DeleteMapping("/delete")
@Operation(summary = "删除ERP采购组织")
@Parameter(name = "id", description = "编号", required = true)
@PreAuthorize("@ss.hasPermission('sply:erp-purchase-organization:delete')")
public CommonResult<Boolean> deleteErpPurchaseOrganization(@RequestParam("id") Long id) {
erpPurchaseOrganizationService.deleteErpPurchaseOrganization(id);
return success(true);
}
@DeleteMapping("/delete-list")
@Parameter(name = "ids", description = "编号", required = true)
@Operation(summary = "批量删除ERP采购组织")
@PreAuthorize("@ss.hasPermission('sply:erp-purchase-organization:delete')")
public CommonResult<Boolean> deleteErpPurchaseOrganizationList(@RequestBody BatchDeleteReqVO req) {
erpPurchaseOrganizationService.deleteErpPurchaseOrganizationListByIds(req.getIds());
return success(true);
}
@GetMapping("/get")
@Operation(summary = "获得ERP采购组织")
@Parameter(name = "id", description = "编号", required = true, example = "1024")
@PreAuthorize("@ss.hasPermission('sply:erp-purchase-organization:query')")
public CommonResult<ErpPurchaseOrganizationRespVO> getErpPurchaseOrganization(@RequestParam("id") Long id) {
ErpPurchaseOrganizationDO erpPurchaseOrganization = erpPurchaseOrganizationService.getErpPurchaseOrganization(id);
return success(BeanUtils.toBean(erpPurchaseOrganization, ErpPurchaseOrganizationRespVO.class));
}
@GetMapping("/page")
@Operation(summary = "获得ERP采购组织分页")
@PreAuthorize("@ss.hasPermission('sply:erp-purchase-organization:query')")
public CommonResult<PageResult<ErpPurchaseOrganizationRespVO>> getErpPurchaseOrganizationPage(@Valid ErpPurchaseOrganizationPageReqVO pageReqVO) {
PageResult<ErpPurchaseOrganizationDO> pageResult = erpPurchaseOrganizationService.getErpPurchaseOrganizationPage(pageReqVO);
return success(BeanUtils.toBean(pageResult, ErpPurchaseOrganizationRespVO.class));
}
@GetMapping("/export-excel")
@Operation(summary = "导出ERP采购组织 Excel")
@PreAuthorize("@ss.hasPermission('sply:erp-purchase-organization:export')")
@ApiAccessLog(operateType = EXPORT)
public void exportErpPurchaseOrganizationExcel(@Valid ErpPurchaseOrganizationPageReqVO pageReqVO,
HttpServletResponse response) throws IOException {
pageReqVO.setPageSize(PageParam.PAGE_SIZE_NONE);
List<ErpPurchaseOrganizationDO> list = erpPurchaseOrganizationService.getErpPurchaseOrganizationPage(pageReqVO).getList();
// 导出 Excel
ExcelUtils.write(response, "ERP采购组织.xls", "数据", ErpPurchaseOrganizationRespVO.class,
BeanUtils.toBean(list, ErpPurchaseOrganizationRespVO.class));
}
@PostMapping("/getErpPurchaseOrganizationTask")
@Operation(summary = "定时获得erp更新采购组织")
@PreAuthorize("@ss.hasPermission('sply:erp-purchase-organization:create')")
public void getErpPurchaseOrganizationTask() {
erpPurchaseOrganizationService.callErpRfcInterface();
}
}

View File

@@ -0,0 +1,111 @@
package com.zt.plat.module.erp.controller.admin.erp;
import com.zt.plat.framework.apilog.core.annotation.ApiAccessLog;
import com.zt.plat.framework.common.pojo.CommonResult;
import com.zt.plat.framework.common.pojo.PageParam;
import com.zt.plat.framework.common.pojo.PageResult;
import com.zt.plat.framework.common.pojo.vo.BatchDeleteReqVO;
import com.zt.plat.framework.common.util.object.BeanUtils;
import com.zt.plat.framework.excel.core.util.ExcelUtils;
import com.zt.plat.module.erp.controller.admin.erp.vo.ErpSalesOrganizationPageReqVO;
import com.zt.plat.module.erp.controller.admin.erp.vo.ErpSalesOrganizationRespVO;
import com.zt.plat.module.erp.controller.admin.erp.vo.ErpSalesOrganizationSaveReqVO;
import com.zt.plat.module.erp.dal.dataobject.erp.ErpSalesOrganizationDO;
import com.zt.plat.module.erp.service.erp.ErpSalesOrganizationService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.Resource;
import jakarta.servlet.http.HttpServletResponse;
import jakarta.validation.Valid;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import java.io.IOException;
import java.util.List;
import static com.zt.plat.framework.apilog.core.enums.OperateTypeEnum.EXPORT;
import static com.zt.plat.framework.common.pojo.CommonResult.success;
@Tag(name = "管理后台 - ERP销售组织")
@RestController
@RequestMapping("/sply/erp-sales-organization")
@Validated
public class ErpSalesOrganizationController {
@Resource
private ErpSalesOrganizationService erpSalesOrganizationService;
@PostMapping("/create")
@Operation(summary = "创建ERP销售组织")
@PreAuthorize("@ss.hasPermission('sply:erp-sales-organization:create')")
public CommonResult<ErpSalesOrganizationRespVO> createErpSalesOrganization(@Valid @RequestBody ErpSalesOrganizationSaveReqVO createReqVO) {
return success(erpSalesOrganizationService.createErpSalesOrganization(createReqVO));
}
@PutMapping("/update")
@Operation(summary = "更新ERP销售组织")
@PreAuthorize("@ss.hasPermission('sply:erp-sales-organization:update')")
public CommonResult<Boolean> updateErpSalesOrganization(@Valid @RequestBody ErpSalesOrganizationSaveReqVO updateReqVO) {
erpSalesOrganizationService.updateErpSalesOrganization(updateReqVO);
return success(true);
}
@DeleteMapping("/delete")
@Operation(summary = "删除ERP销售组织")
@Parameter(name = "id", description = "编号", required = true)
@PreAuthorize("@ss.hasPermission('sply:erp-sales-organization:delete')")
public CommonResult<Boolean> deleteErpSalesOrganization(@RequestParam("id") Long id) {
erpSalesOrganizationService.deleteErpSalesOrganization(id);
return success(true);
}
@DeleteMapping("/delete-list")
@Parameter(name = "ids", description = "编号", required = true)
@Operation(summary = "批量删除ERP销售组织")
@PreAuthorize("@ss.hasPermission('sply:erp-sales-organization:delete')")
public CommonResult<Boolean> deleteErpSalesOrganizationList(@RequestBody BatchDeleteReqVO req) {
erpSalesOrganizationService.deleteErpSalesOrganizationListByIds(req.getIds());
return success(true);
}
@GetMapping("/get")
@Operation(summary = "获得ERP销售组织")
@Parameter(name = "id", description = "编号", required = true, example = "1024")
@PreAuthorize("@ss.hasPermission('sply:erp-sales-organization:query')")
public CommonResult<ErpSalesOrganizationRespVO> getErpSalesOrganization(@RequestParam("id") Long id) {
ErpSalesOrganizationDO erpSalesOrganization = erpSalesOrganizationService.getErpSalesOrganization(id);
return success(BeanUtils.toBean(erpSalesOrganization, ErpSalesOrganizationRespVO.class));
}
@GetMapping("/page")
@Operation(summary = "获得ERP销售组织分页")
@PreAuthorize("@ss.hasPermission('sply:erp-sales-organization:query')")
public CommonResult<PageResult<ErpSalesOrganizationRespVO>> getErpSalesOrganizationPage(@Valid ErpSalesOrganizationPageReqVO pageReqVO) {
PageResult<ErpSalesOrganizationDO> pageResult = erpSalesOrganizationService.getErpSalesOrganizationPage(pageReqVO);
return success(BeanUtils.toBean(pageResult, ErpSalesOrganizationRespVO.class));
}
@GetMapping("/export-excel")
@Operation(summary = "导出ERP销售组织 Excel")
@PreAuthorize("@ss.hasPermission('sply:erp-sales-organization:export')")
@ApiAccessLog(operateType = EXPORT)
public void exportErpSalesOrganizationExcel(@Valid ErpSalesOrganizationPageReqVO pageReqVO,
HttpServletResponse response) throws IOException {
pageReqVO.setPageSize(PageParam.PAGE_SIZE_NONE);
List<ErpSalesOrganizationDO> list = erpSalesOrganizationService.getErpSalesOrganizationPage(pageReqVO).getList();
// 导出 Excel
ExcelUtils.write(response, "ERP销售组织.xls", "数据", ErpSalesOrganizationRespVO.class,
BeanUtils.toBean(list, ErpSalesOrganizationRespVO.class));
}
@PostMapping("/getErpSalesOrganizationTask")
@Operation(summary = "定时获得erp更新销售组织")
@PreAuthorize("@ss.hasPermission('sply:erp-sales-organization:create')")
public void getErpSalesOrganizationTask() {
erpSalesOrganizationService.callErpRfcInterface();
}
}

View File

@@ -0,0 +1,111 @@
package com.zt.plat.module.erp.controller.admin.erp;
import com.zt.plat.framework.apilog.core.annotation.ApiAccessLog;
import com.zt.plat.framework.common.pojo.CommonResult;
import com.zt.plat.framework.common.pojo.PageParam;
import com.zt.plat.framework.common.pojo.PageResult;
import com.zt.plat.framework.common.pojo.vo.BatchDeleteReqVO;
import com.zt.plat.framework.common.util.object.BeanUtils;
import com.zt.plat.framework.excel.core.util.ExcelUtils;
import com.zt.plat.module.erp.controller.admin.erp.vo.ErpWarehousePageReqVO;
import com.zt.plat.module.erp.controller.admin.erp.vo.ErpWarehouseRespVO;
import com.zt.plat.module.erp.controller.admin.erp.vo.ErpWarehouseSaveReqVO;
import com.zt.plat.module.erp.dal.dataobject.erp.ErpWarehouseDO;
import com.zt.plat.module.erp.service.erp.ErpWarehouseService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.Resource;
import jakarta.servlet.http.HttpServletResponse;
import jakarta.validation.Valid;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import java.io.IOException;
import java.util.List;
import static com.zt.plat.framework.apilog.core.enums.OperateTypeEnum.EXPORT;
import static com.zt.plat.framework.common.pojo.CommonResult.success;
@Tag(name = "管理后台 - ERP库位")
@RestController
@RequestMapping("/sply/erp-warehouse")
@Validated
public class ErpWarehouseController {
@Resource
private ErpWarehouseService erpWarehouseService;
@PostMapping("/create")
@Operation(summary = "创建ERP库位")
@PreAuthorize("@ss.hasPermission('sply:erp-warehouse:create')")
public CommonResult<ErpWarehouseRespVO> createErpWarehouse(@Valid @RequestBody ErpWarehouseSaveReqVO createReqVO) {
return success(erpWarehouseService.createErpWarehouse(createReqVO));
}
@PutMapping("/update")
@Operation(summary = "更新ERP库位")
@PreAuthorize("@ss.hasPermission('sply:erp-warehouse:update')")
public CommonResult<Boolean> updateErpWarehouse(@Valid @RequestBody ErpWarehouseSaveReqVO updateReqVO) {
erpWarehouseService.updateErpWarehouse(updateReqVO);
return success(true);
}
@DeleteMapping("/delete")
@Operation(summary = "删除ERP库位")
@Parameter(name = "id", description = "编号", required = true)
@PreAuthorize("@ss.hasPermission('sply:erp-warehouse:delete')")
public CommonResult<Boolean> deleteErpWarehouse(@RequestParam("id") Long id) {
erpWarehouseService.deleteErpWarehouse(id);
return success(true);
}
@DeleteMapping("/delete-list")
@Parameter(name = "ids", description = "编号", required = true)
@Operation(summary = "批量删除ERP库位")
@PreAuthorize("@ss.hasPermission('sply:erp-warehouse:delete')")
public CommonResult<Boolean> deleteErpWarehouseList(@RequestBody BatchDeleteReqVO req) {
erpWarehouseService.deleteErpWarehouseListByIds(req.getIds());
return success(true);
}
@GetMapping("/get")
@Operation(summary = "获得ERP库位")
@Parameter(name = "id", description = "编号", required = true, example = "1024")
@PreAuthorize("@ss.hasPermission('sply:erp-warehouse:query')")
public CommonResult<ErpWarehouseRespVO> getErpWarehouse(@RequestParam("id") Long id) {
ErpWarehouseDO erpWarehouse = erpWarehouseService.getErpWarehouse(id);
return success(BeanUtils.toBean(erpWarehouse, ErpWarehouseRespVO.class));
}
@GetMapping("/page")
@Operation(summary = "获得ERP库位分页")
@PreAuthorize("@ss.hasPermission('sply:erp-warehouse:query')")
public CommonResult<PageResult<ErpWarehouseRespVO>> getErpWarehousePage(@Valid ErpWarehousePageReqVO pageReqVO) {
PageResult<ErpWarehouseDO> pageResult = erpWarehouseService.getErpWarehousePage(pageReqVO);
return success(BeanUtils.toBean(pageResult, ErpWarehouseRespVO.class));
}
@GetMapping("/export-excel")
@Operation(summary = "导出ERP库位 Excel")
@PreAuthorize("@ss.hasPermission('sply:erp-warehouse:export')")
@ApiAccessLog(operateType = EXPORT)
public void exportErpWarehouseExcel(@Valid ErpWarehousePageReqVO pageReqVO,
HttpServletResponse response) throws IOException {
pageReqVO.setPageSize(PageParam.PAGE_SIZE_NONE);
List<ErpWarehouseDO> list = erpWarehouseService.getErpWarehousePage(pageReqVO).getList();
// 导出 Excel
ExcelUtils.write(response, "ERP库位.xls", "数据", ErpWarehouseRespVO.class,
BeanUtils.toBean(list, ErpWarehouseRespVO.class));
}
@PostMapping("/getErpWarehouseTask")
@Operation(summary = "定时获得erp更新库位")
@PreAuthorize("@ss.hasPermission('sply:erp-warehouse:create')")
public void getErpWarehouseTask() {
erpWarehouseService.callErpRfcInterface();
}
}

View File

@@ -0,0 +1,65 @@
package com.zt.plat.module.erp.controller.admin.erp.vo;
import com.zt.plat.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import static com.zt.plat.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
@Schema(description = "管理后台 - ERP资产卡片分页 Request VO")
@Data
public class ErpAssetPageReqVO extends PageParam {
@Schema(description = "公司编号")
private String companyNumber;
@Schema(description = "资产主编码")
private String mainAssetNumber;
@Schema(description = "记录创建日期")
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
private LocalDateTime[] recordCreateDate;
@Schema(description = "更改用户名", example = "芋艿")
private String updateUserName;
@Schema(description = "资产类编号")
private String assetTypeNumber;
@Schema(description = "资产类描述", example = "李四")
private String assetTypeName;
@Schema(description = "资产资本化日期")
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
private LocalDateTime[] assetDate;
@Schema(description = "基本计量单位")
private String uom;
@Schema(description = "数量")
private BigDecimal quantity;
@Schema(description = "资产描述")
private String assetDescription;
@Schema(description = "附加资产描述")
private String assetDescriptionAttach;
@Schema(description = "折旧计算开始日期")
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
private LocalDateTime[] depreciationStartDate;
@Schema(description = "计划年使用期")
private String planYearDate;
@Schema(description = "成本中心编码")
private String costcenterNumber;
@Schema(description = "责任成本中心")
private String dutyCostcenterNumber;
}

View File

@@ -0,0 +1,80 @@
package com.zt.plat.module.erp.controller.admin.erp.vo;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import java.math.BigDecimal;
import java.time.LocalDateTime;
@Schema(description = "管理后台 - ERP资产卡片 Response VO")
@Data
@ExcelIgnoreUnannotated
public class ErpAssetRespVO {
@Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "31799")
@ExcelProperty("主键")
private Long id;
@Schema(description = "公司编号", requiredMode = Schema.RequiredMode.REQUIRED)
@ExcelProperty("公司编号")
private String companyNumber;
@Schema(description = "资产主编码", requiredMode = Schema.RequiredMode.REQUIRED)
@ExcelProperty("资产主编码")
private String mainAssetNumber;
@Schema(description = "记录创建日期", requiredMode = Schema.RequiredMode.REQUIRED)
@ExcelProperty("记录创建日期")
private LocalDateTime recordCreateDate;
@Schema(description = "更改用户名", example = "芋艿")
@ExcelProperty("更改用户名")
private String updateUserName;
@Schema(description = "资产类编号", requiredMode = Schema.RequiredMode.REQUIRED)
@ExcelProperty("资产类编号")
private String assetTypeNumber;
@Schema(description = "资产类描述", example = "李四")
@ExcelProperty("资产类描述")
private String assetTypeName;
@Schema(description = "资产资本化日期")
@ExcelProperty("资产资本化日期")
private LocalDateTime assetDate;
@Schema(description = "基本计量单位")
@ExcelProperty("基本计量单位")
private String uom;
@Schema(description = "数量")
@ExcelProperty("数量")
private BigDecimal quantity;
@Schema(description = "资产描述")
@ExcelProperty("资产描述")
private String assetDescription;
@Schema(description = "附加资产描述")
@ExcelProperty("附加资产描述")
private String assetDescriptionAttach;
@Schema(description = "折旧计算开始日期")
@ExcelProperty("折旧计算开始日期")
private LocalDateTime depreciationStartDate;
@Schema(description = "计划年使用期")
@ExcelProperty("计划年使用期")
private String planYearDate;
@Schema(description = "成本中心编码")
@ExcelProperty("成本中心编码")
private String costcenterNumber;
@Schema(description = "责任成本中心")
@ExcelProperty("责任成本中心")
private String dutyCostcenterNumber;
}

View File

@@ -0,0 +1,67 @@
package com.zt.plat.module.erp.controller.admin.erp.vo;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import java.math.BigDecimal;
import java.time.LocalDateTime;
@Schema(description = "管理后台 - ERP资产卡片新增/修改 Request VO")
@Data
public class ErpAssetSaveReqVO {
@Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "31799")
private Long id;
@Schema(description = "公司编号", requiredMode = Schema.RequiredMode.REQUIRED)
@NotEmpty(message = "公司编号不能为空")
private String companyNumber;
@Schema(description = "资产主编码", requiredMode = Schema.RequiredMode.REQUIRED)
@NotEmpty(message = "资产主编码不能为空")
private String mainAssetNumber;
@Schema(description = "记录创建日期", requiredMode = Schema.RequiredMode.REQUIRED)
@NotNull(message = "记录创建日期不能为空")
private LocalDateTime recordCreateDate;
@Schema(description = "更改用户名", example = "芋艿")
private String updateUserName;
@Schema(description = "资产类编号", requiredMode = Schema.RequiredMode.REQUIRED)
@NotEmpty(message = "资产类编号不能为空")
private String assetTypeNumber;
@Schema(description = "资产类描述", example = "李四")
private String assetTypeName;
@Schema(description = "资产资本化日期")
private LocalDateTime assetDate;
@Schema(description = "基本计量单位")
private String uom;
@Schema(description = "数量")
private BigDecimal quantity;
@Schema(description = "资产描述")
private String assetDescription;
@Schema(description = "附加资产描述")
private String assetDescriptionAttach;
@Schema(description = "折旧计算开始日期")
private LocalDateTime depreciationStartDate;
@Schema(description = "计划年使用期")
private String planYearDate;
@Schema(description = "成本中心编码")
private String costcenterNumber;
@Schema(description = "责任成本中心")
private String dutyCostcenterNumber;
}

View File

@@ -0,0 +1,37 @@
package com.zt.plat.module.erp.controller.admin.erp.vo;
import com.zt.plat.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import java.math.BigDecimal;
@Schema(description = "管理后台 - ERP物料清单(BOM)明细分页 Request VO")
@Data
public class ErpBomDetailPageReqVO extends PageParam {
@Schema(description = "BOM主键", example = "24876")
private String bomId;
@Schema(description = "ERP物料清单主键", example = "14731")
private String erpBomId;
@Schema(description = "子项物料编码")
private String childMaterialNumber;
@Schema(description = "子项物料描述")
private BigDecimal childMaterialDescription;
@Schema(description = "子项类别")
private String category;
@Schema(description = "基本数量")
private BigDecimal quantity;
@Schema(description = "基本单位")
private String unit;
@Schema(description = "物料标识", example = "2")
private String identificationType;
}

View File

@@ -0,0 +1,51 @@
package com.zt.plat.module.erp.controller.admin.erp.vo;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import java.math.BigDecimal;
@Schema(description = "管理后台 - ERP物料清单(BOM)明细 Response VO")
@Data
@ExcelIgnoreUnannotated
public class ErpBomDetailRespVO {
@Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "2110")
@ExcelProperty("主键")
private Long id;
@Schema(description = "BOM主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "24876")
@ExcelProperty("BOM主键")
private String bomId;
@Schema(description = "ERP物料清单主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "14731")
@ExcelProperty("ERP物料清单主键")
private String erpBomId;
@Schema(description = "子项物料编码", requiredMode = Schema.RequiredMode.REQUIRED)
@ExcelProperty("子项物料编码")
private String childMaterialNumber;
@Schema(description = "子项物料描述", requiredMode = Schema.RequiredMode.REQUIRED)
@ExcelProperty("子项物料描述")
private BigDecimal childMaterialDescription;
@Schema(description = "子项类别", requiredMode = Schema.RequiredMode.REQUIRED)
@ExcelProperty("子项类别")
private String category;
@Schema(description = "基本数量", requiredMode = Schema.RequiredMode.REQUIRED)
@ExcelProperty("基本数量")
private BigDecimal quantity;
@Schema(description = "基本单位", requiredMode = Schema.RequiredMode.REQUIRED)
@ExcelProperty("基本单位")
private String unit;
@Schema(description = "物料标识", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
@ExcelProperty("物料标识")
private String identificationType;
}

View File

@@ -0,0 +1,49 @@
package com.zt.plat.module.erp.controller.admin.erp.vo;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import java.math.BigDecimal;
@Schema(description = "管理后台 - ERP物料清单(BOM)明细新增/修改 Request VO")
@Data
public class ErpBomDetailSaveReqVO {
@Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "2110")
private Long id;
@Schema(description = "BOM主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "24876")
@NotEmpty(message = "BOM主键不能为空")
private String bomId;
@Schema(description = "ERP物料清单主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "14731")
@NotEmpty(message = "ERP物料清单主键不能为空")
private String erpBomId;
@Schema(description = "子项物料编码", requiredMode = Schema.RequiredMode.REQUIRED)
@NotEmpty(message = "子项物料编码不能为空")
private String childMaterialNumber;
@Schema(description = "子项物料描述", requiredMode = Schema.RequiredMode.REQUIRED)
@NotNull(message = "子项物料描述不能为空")
private BigDecimal childMaterialDescription;
@Schema(description = "子项类别", requiredMode = Schema.RequiredMode.REQUIRED)
@NotEmpty(message = "子项类别不能为空")
private String category;
@Schema(description = "基本数量", requiredMode = Schema.RequiredMode.REQUIRED)
@NotNull(message = "基本数量不能为空")
private BigDecimal quantity;
@Schema(description = "基本单位", requiredMode = Schema.RequiredMode.REQUIRED)
@NotEmpty(message = "基本单位不能为空")
private String unit;
@Schema(description = "物料标识", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
@NotEmpty(message = "物料标识不能为空")
private String identificationType;
}

View File

@@ -0,0 +1,31 @@
package com.zt.plat.module.erp.controller.admin.erp.vo;
import com.zt.plat.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import java.math.BigDecimal;
@Schema(description = "管理后台 - ERP物料清单(BOM)分页 Request VO")
@Data
public class ErpBomPageReqVO extends PageParam {
@Schema(description = "工厂编码")
private String factoryNumber;
@Schema(description = "顶层物料编码")
private String upMaterial;
@Schema(description = "可选BOM")
private String useItem;
@Schema(description = "物料描述")
private String materialDescription;
@Schema(description = "基本数量")
private BigDecimal quantity;
@Schema(description = "基本单位")
private String unit;
}

View File

@@ -0,0 +1,43 @@
package com.zt.plat.module.erp.controller.admin.erp.vo;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import java.math.BigDecimal;
@Schema(description = "管理后台 - ERP物料清单(BOM) Response VO")
@Data
@ExcelIgnoreUnannotated
public class ErpBomRespVO {
@Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "31348")
@ExcelProperty("主键")
private Long id;
@Schema(description = "工厂编码", requiredMode = Schema.RequiredMode.REQUIRED)
@ExcelProperty("工厂编码")
private String factoryNumber;
@Schema(description = "顶层物料编码", requiredMode = Schema.RequiredMode.REQUIRED)
@ExcelProperty("顶层物料编码")
private String upMaterial;
@Schema(description = "可选BOM", requiredMode = Schema.RequiredMode.REQUIRED)
@ExcelProperty("可选BOM")
private String useItem;
@Schema(description = "物料描述")
@ExcelProperty("物料描述")
private String materialDescription;
@Schema(description = "基本数量", requiredMode = Schema.RequiredMode.REQUIRED)
@ExcelProperty("基本数量")
private BigDecimal quantity;
@Schema(description = "基本单位", requiredMode = Schema.RequiredMode.REQUIRED)
@ExcelProperty("基本单位")
private String unit;
}

View File

@@ -0,0 +1,40 @@
package com.zt.plat.module.erp.controller.admin.erp.vo;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import java.math.BigDecimal;
@Schema(description = "管理后台 - ERP物料清单(BOM)新增/修改 Request VO")
@Data
public class ErpBomSaveReqVO {
@Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "31348")
private Long id;
@Schema(description = "工厂编码", requiredMode = Schema.RequiredMode.REQUIRED)
@NotNull(message = "工厂编码不能为空")
private String factoryNumber;
@Schema(description = "顶层物料编码", requiredMode = Schema.RequiredMode.REQUIRED)
@NotEmpty(message = "顶层物料编码不能为空")
private String upMaterial;
@Schema(description = "可选BOM", requiredMode = Schema.RequiredMode.REQUIRED)
@NotEmpty(message = "可选BOM不能为空")
private String useItem;
@Schema(description = "物料描述")
private String materialDescription;
@Schema(description = "基本数量", requiredMode = Schema.RequiredMode.REQUIRED)
@NotNull(message = "基本数量不能为空")
private BigDecimal quantity;
@Schema(description = "基本单位", requiredMode = Schema.RequiredMode.REQUIRED)
@NotEmpty(message = "基本单位不能为空")
private String unit;
}

View File

@@ -0,0 +1,20 @@
package com.zt.plat.module.erp.controller.admin.erp.vo;
import com.zt.plat.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
@Schema(description = "管理后台 - ERP公司分页 Request VO")
@Data
public class ErpCompanyPageReqVO extends PageParam {
@Schema(description = "公司名称", example = "王五")
private String name;
@Schema(description = "公司编码;唯一")
private String number;
@Schema(description = "本位币")
private String currency;
}

View File

@@ -0,0 +1,29 @@
package com.zt.plat.module.erp.controller.admin.erp.vo;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
@Schema(description = "管理后台 - ERP公司 Response VO")
@Data
@ExcelIgnoreUnannotated
public class ErpCompanyRespVO {
@Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "4807")
@ExcelProperty("主键")
private Long id;
@Schema(description = "公司名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "王五")
@ExcelProperty("公司名称")
private String name;
@Schema(description = "公司编码;唯一", requiredMode = Schema.RequiredMode.REQUIRED)
@ExcelProperty("公司编码;唯一")
private String number;
@Schema(description = "本位币", requiredMode = Schema.RequiredMode.REQUIRED)
@ExcelProperty("本位币")
private String currency;
}

View File

@@ -0,0 +1,26 @@
package com.zt.plat.module.erp.controller.admin.erp.vo;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import lombok.Data;
@Schema(description = "管理后台 - ERP公司新增/修改 Request VO")
@Data
public class ErpCompanySaveReqVO {
@Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "4807")
private Long id;
@Schema(description = "公司名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "王五")
@NotEmpty(message = "公司名称不能为空")
private String name;
@Schema(description = "公司编码;唯一", requiredMode = Schema.RequiredMode.REQUIRED)
@NotEmpty(message = "公司编码;唯一不能为空")
private String number;
@Schema(description = "本位币", requiredMode = Schema.RequiredMode.REQUIRED)
@NotEmpty(message = "本位币不能为空")
private String currency;
}

View File

@@ -0,0 +1,180 @@
package com.zt.plat.module.erp.controller.admin.erp.vo;
import com.zt.plat.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import java.math.BigDecimal;
import java.time.LocalDate;
import static com.zt.plat.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
@Schema(description = "管理后台 - ERP合同映射分页 Request VO")
@Data
public class ErpContractPageReqVO extends PageParam {
@Schema(description = "操作标识", example = "3035")
private String operationId;
@Schema(description = "合同主信息主键", example = "10259")
private Long contractMainId;
@Schema(description = "合同编号")
private String contractPaperNumber;
@Schema(description = "合同名称", example = "芋艿")
private String contractName;
@Schema(description = "合同类型编号")
private String contractTypeNumber;
@Schema(description = "合同类型名称", example = "李四")
private String contractTypeName;
@Schema(description = "合同类别")
private String contractCategory;
@Schema(description = "是否虚拟合同")
private String isVirtualContract;
@Schema(description = "客户/供应商编号;SAP客商公司代码")
private String supplierNumber;
@Schema(description = "客户/供应商名称;SAP客商公司名称", example = "张三")
private String supplierName;
@Schema(description = "代理方;SAP客商公司代码")
private String agent;
@Schema(description = "合同实施主体编号;SAP公司代码")
private String contractImplementNumber;
@Schema(description = "合同签订主体编号;SAP公司代码")
private String contractSignNumber;
@Schema(description = "合同签订日期;格式YYYY-MM-DD")
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
private LocalDate[] signDate;
@Schema(description = "合同起始日期;格式YYYY-MM-DD长单合同长单合同起始日期 非长单:合同合同签订日期")
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
private LocalDate[] startDate;
@Schema(description = "合同终止日期;格式YYYY-MM-DD长单合同长单合同起始日期 非长单:合同合同签订日期")
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
private LocalDate[] stopDate;
@Schema(description = "币种编号")
private String currency;
@Schema(description = "合同总金额(原币-含税);非长单合同:合同金额 长单合同默认1000000000000000.00")
private BigDecimal sourceAmount;
@Schema(description = "合同总金额(本位币-含税);非长单合同:合同金额*合同的临时汇率 长单合同默认1000000000000000.00")
private BigDecimal basicAmount;
@Schema(description = "变更后合同总金额(原币-含税);如果未做合同变更,金额等于合同总金额(原币-含税)")
private BigDecimal changeSourceAmount;
@Schema(description = "变更后合同总金额(本位币-含税);如果未做合同变更,金额等于合同总金额(本位币-含税)")
private BigDecimal changeBasicAmount;
@Schema(description = "合同状态编号")
private String statusNumber;
@Schema(description = "合同状态名称", example = "赵六")
private String statusName;
@Schema(description = "是否有预付款;长单合同:否,非长单:取合同的预付款")
private String isPrepayment;
@Schema(description = "预付款比例;有预付款则需要填写")
private BigDecimal prepaymentRatio;
@Schema(description = "预付款金额;有预付款则需要填写(通过计算得出)")
private BigDecimal prepaymentAmount;
@Schema(description = "履约保证金-变更前(原币)")
private BigDecimal sourceBeforeBond;
@Schema(description = "履约保证金-变更前(本位币)")
private BigDecimal basicBeforeBond;
@Schema(description = "履约保证金-变更后(原币)")
private BigDecimal sourceAfterBond;
@Schema(description = "履约保证金-变更后(本位币)")
private BigDecimal basicAfterBond;
@Schema(description = "是否含质保金")
private String isQualityassuranceAmount;
@Schema(description = "质保金比例;有质保金则需要填写")
private BigDecimal qualityassuranceRatio;
@Schema(description = "质保金金额;有质保金则需要填写")
private BigDecimal qualityassuranceAmount;
@Schema(description = "是否内部企业")
private String isInternal;
@Schema(description = "收支性质")
private String nature;
@Schema(description = "备注信息;提交ERP")
private String remark;
@Schema(description = "累计结算金额(原币-含税);暂定不传")
private BigDecimal sourceAccumulateSettlementAmount;
@Schema(description = "累计结算金额(本位币-含税);暂定不传")
private BigDecimal basicAccumulateSettlementAmount;
@Schema(description = "累计已收付款金额(原币-含税);暂定不传")
private BigDecimal sourceUseAmount;
@Schema(description = "累计已收付款金额(本位币-含税);暂定不传")
private BigDecimal basicUseAmount;
@Schema(description = "累计已开收票金额(原币-含税);暂定不传")
private BigDecimal sourceInvoiceAmount;
@Schema(description = "累计已开收票金额(本位币-含税);暂定不传")
private BigDecimal basicInvoiceAmount;
@Schema(description = "累计预付款金额(原币-含税);暂定不传")
private BigDecimal sourceAccumulatePrepayment;
@Schema(description = "累计预付款金额(本位币-含税);暂定不传")
private BigDecimal basicAccumulatePrepayment;
@Schema(description = "履约保证金累计付款金额(原币);暂定不传")
private BigDecimal sourceAccumulateBond;
@Schema(description = "履约保证金累计付款金额(本位币);暂定不传")
private BigDecimal basicAccumulateBond;
@Schema(description = "履约保证金累计收款金额(原币);暂定不传")
private BigDecimal sourceAccumulateAmount;
@Schema(description = "履约保证金累计收款金额(本位币);暂定不传")
private BigDecimal basicAccumulateAmount;
@Schema(description = "是否框架合同;如果为是,合同总金额(本币)、合同总金额(原币)、变更后合同总金额(原币-含税)、变更后合同总金额(本位币-含税赋默认值为1000000000000000.00")
private String isFramework;
@Schema(description = "境内/境外")
private String isDomestic;
@Schema(description = "建筑服务发生地;销售合同且类型为SAP02COSR必填")
private String architectureServicePlace;
@Schema(description = "达到收款条件金额;销售合同且类型为SAP02COSR必填")
private BigDecimal payeeConditionAmount;
@Schema(description = "创建时间")
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
private LocalDate[] createTime;
}

View File

@@ -0,0 +1,232 @@
package com.zt.plat.module.erp.controller.admin.erp.vo;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import java.math.BigDecimal;
import java.time.LocalDate;
@Schema(description = "管理后台 - ERP合同映射 Response VO")
@Data
@ExcelIgnoreUnannotated
public class ErpContractRespVO {
@Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "9114")
@ExcelProperty("主键")
private Long id;
@Schema(description = "操作标识", requiredMode = Schema.RequiredMode.REQUIRED, example = "3035")
@ExcelProperty("操作标识")
private String operationId;
@Schema(description = "合同主信息主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "10259")
@ExcelProperty("合同主信息主键")
private Long contractMainId;
@Schema(description = "合同编号", requiredMode = Schema.RequiredMode.REQUIRED)
@ExcelProperty("合同编号")
private String contractPaperNumber;
@Schema(description = "合同名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋艿")
@ExcelProperty("合同名称")
private String contractName;
@Schema(description = "合同类型编号", requiredMode = Schema.RequiredMode.REQUIRED)
@ExcelProperty("合同类型编号")
private String contractTypeNumber;
@Schema(description = "合同类型名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "李四")
@ExcelProperty("合同类型名称")
private String contractTypeName;
@Schema(description = "合同类别", requiredMode = Schema.RequiredMode.REQUIRED)
@ExcelProperty("合同类别")
private String contractCategory;
@Schema(description = "是否虚拟合同", requiredMode = Schema.RequiredMode.REQUIRED)
@ExcelProperty("是否虚拟合同")
private String isVirtualContract;
@Schema(description = "客户/供应商编号;SAP客商公司代码", requiredMode = Schema.RequiredMode.REQUIRED)
@ExcelProperty("客户/供应商编号;SAP客商公司代码")
private String supplierNumber;
@Schema(description = "客户/供应商名称;SAP客商公司名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "张三")
@ExcelProperty("客户/供应商名称;SAP客商公司名称")
private String supplierName;
@Schema(description = "代理方;SAP客商公司代码")
@ExcelProperty("代理方;SAP客商公司代码")
private String agent;
@Schema(description = "合同实施主体编号;SAP公司代码", requiredMode = Schema.RequiredMode.REQUIRED)
@ExcelProperty("合同实施主体编号;SAP公司代码")
private String contractImplementNumber;
@Schema(description = "合同签订主体编号;SAP公司代码", requiredMode = Schema.RequiredMode.REQUIRED)
@ExcelProperty("合同签订主体编号;SAP公司代码")
private String contractSignNumber;
@Schema(description = "合同签订日期;格式YYYY-MM-DD", requiredMode = Schema.RequiredMode.REQUIRED)
@ExcelProperty("合同签订日期;格式YYYY-MM-DD")
private LocalDate signDate;
@Schema(description = "合同起始日期;格式YYYY-MM-DD长单合同长单合同起始日期 非长单:合同合同签订日期", requiredMode = Schema.RequiredMode.REQUIRED)
@ExcelProperty("合同起始日期;格式YYYY-MM-DD长单合同长单合同起始日期 非长单:合同合同签订日期")
private LocalDate startDate;
@Schema(description = "合同终止日期;格式YYYY-MM-DD长单合同长单合同起始日期 非长单:合同合同签订日期", requiredMode = Schema.RequiredMode.REQUIRED)
@ExcelProperty("合同终止日期;格式YYYY-MM-DD长单合同长单合同起始日期 非长单:合同合同签订日期")
private LocalDate stopDate;
@Schema(description = "币种编号", requiredMode = Schema.RequiredMode.REQUIRED)
@ExcelProperty("币种编号")
private String currency;
@Schema(description = "合同总金额(原币-含税);非长单合同:合同金额 长单合同默认1000000000000000.00", requiredMode = Schema.RequiredMode.REQUIRED)
@ExcelProperty("合同总金额(原币-含税);非长单合同:合同金额 长单合同默认1000000000000000.00")
private BigDecimal sourceAmount;
@Schema(description = "合同总金额(本位币-含税);非长单合同:合同金额*合同的临时汇率 长单合同默认1000000000000000.00", requiredMode = Schema.RequiredMode.REQUIRED)
@ExcelProperty("合同总金额(本位币-含税);非长单合同:合同金额*合同的临时汇率 长单合同默认1000000000000000.00")
private BigDecimal basicAmount;
@Schema(description = "变更后合同总金额(原币-含税);如果未做合同变更,金额等于合同总金额(原币-含税)", requiredMode = Schema.RequiredMode.REQUIRED)
@ExcelProperty("变更后合同总金额(原币-含税);如果未做合同变更,金额等于合同总金额(原币-含税)")
private BigDecimal changeSourceAmount;
@Schema(description = "变更后合同总金额(本位币-含税);如果未做合同变更,金额等于合同总金额(本位币-含税)", requiredMode = Schema.RequiredMode.REQUIRED)
@ExcelProperty("变更后合同总金额(本位币-含税);如果未做合同变更,金额等于合同总金额(本位币-含税)")
private BigDecimal changeBasicAmount;
@Schema(description = "合同状态编号", requiredMode = Schema.RequiredMode.REQUIRED)
@ExcelProperty("合同状态编号")
private String statusNumber;
@Schema(description = "合同状态名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "赵六")
@ExcelProperty("合同状态名称")
private String statusName;
@Schema(description = "是否有预付款;长单合同:否,非长单:取合同的预付款", requiredMode = Schema.RequiredMode.REQUIRED)
@ExcelProperty("是否有预付款;长单合同:否,非长单:取合同的预付款")
private String isPrepayment;
@Schema(description = "预付款比例;有预付款则需要填写")
@ExcelProperty("预付款比例;有预付款则需要填写")
private BigDecimal prepaymentRatio;
@Schema(description = "预付款金额;有预付款则需要填写(通过计算得出)")
@ExcelProperty("预付款金额;有预付款则需要填写(通过计算得出)")
private BigDecimal prepaymentAmount;
@Schema(description = "履约保证金-变更前(原币)")
@ExcelProperty("履约保证金-变更前(原币)")
private BigDecimal sourceBeforeBond;
@Schema(description = "履约保证金-变更前(本位币)")
@ExcelProperty("履约保证金-变更前(本位币)")
private BigDecimal basicBeforeBond;
@Schema(description = "履约保证金-变更后(原币)")
@ExcelProperty("履约保证金-变更后(原币)")
private BigDecimal sourceAfterBond;
@Schema(description = "履约保证金-变更后(本位币)")
@ExcelProperty("履约保证金-变更后(本位币)")
private BigDecimal basicAfterBond;
@Schema(description = "是否含质保金", requiredMode = Schema.RequiredMode.REQUIRED)
@ExcelProperty("是否含质保金")
private String isQualityassuranceAmount;
@Schema(description = "质保金比例;有质保金则需要填写")
@ExcelProperty("质保金比例;有质保金则需要填写")
private BigDecimal qualityassuranceRatio;
@Schema(description = "质保金金额;有质保金则需要填写")
@ExcelProperty("质保金金额;有质保金则需要填写")
private BigDecimal qualityassuranceAmount;
@Schema(description = "是否内部企业", requiredMode = Schema.RequiredMode.REQUIRED)
@ExcelProperty("是否内部企业")
private String isInternal;
@Schema(description = "收支性质", requiredMode = Schema.RequiredMode.REQUIRED)
@ExcelProperty("收支性质")
private String nature;
@Schema(description = "备注信息;提交ERP")
@ExcelProperty("备注信息;提交ERP")
private String remark;
@Schema(description = "累计结算金额(原币-含税);暂定不传")
@ExcelProperty("累计结算金额(原币-含税);暂定不传")
private BigDecimal sourceAccumulateSettlementAmount;
@Schema(description = "累计结算金额(本位币-含税);暂定不传")
@ExcelProperty("累计结算金额(本位币-含税);暂定不传")
private BigDecimal basicAccumulateSettlementAmount;
@Schema(description = "累计已收付款金额(原币-含税);暂定不传")
@ExcelProperty("累计已收付款金额(原币-含税);暂定不传")
private BigDecimal sourceUseAmount;
@Schema(description = "累计已收付款金额(本位币-含税);暂定不传")
@ExcelProperty("累计已收付款金额(本位币-含税);暂定不传")
private BigDecimal basicUseAmount;
@Schema(description = "累计已开收票金额(原币-含税);暂定不传")
@ExcelProperty("累计已开收票金额(原币-含税);暂定不传")
private BigDecimal sourceInvoiceAmount;
@Schema(description = "累计已开收票金额(本位币-含税);暂定不传")
@ExcelProperty("累计已开收票金额(本位币-含税);暂定不传")
private BigDecimal basicInvoiceAmount;
@Schema(description = "累计预付款金额(原币-含税);暂定不传")
@ExcelProperty("累计预付款金额(原币-含税);暂定不传")
private BigDecimal sourceAccumulatePrepayment;
@Schema(description = "累计预付款金额(本位币-含税);暂定不传")
@ExcelProperty("累计预付款金额(本位币-含税);暂定不传")
private BigDecimal basicAccumulatePrepayment;
@Schema(description = "履约保证金累计付款金额(原币);暂定不传")
@ExcelProperty("履约保证金累计付款金额(原币);暂定不传")
private BigDecimal sourceAccumulateBond;
@Schema(description = "履约保证金累计付款金额(本位币);暂定不传")
@ExcelProperty("履约保证金累计付款金额(本位币);暂定不传")
private BigDecimal basicAccumulateBond;
@Schema(description = "履约保证金累计收款金额(原币);暂定不传")
@ExcelProperty("履约保证金累计收款金额(原币);暂定不传")
private BigDecimal sourceAccumulateAmount;
@Schema(description = "履约保证金累计收款金额(本位币);暂定不传")
@ExcelProperty("履约保证金累计收款金额(本位币);暂定不传")
private BigDecimal basicAccumulateAmount;
@Schema(description = "是否框架合同;如果为是,合同总金额(本币)、合同总金额(原币)、变更后合同总金额(原币-含税)、变更后合同总金额(本位币-含税赋默认值为1000000000000000.00", requiredMode = Schema.RequiredMode.REQUIRED)
@ExcelProperty("是否框架合同;如果为是,合同总金额(本币)、合同总金额(原币)、变更后合同总金额(原币-含税)、变更后合同总金额(本位币-含税赋默认值为1000000000000000.00")
private String isFramework;
@Schema(description = "境内/境外", requiredMode = Schema.RequiredMode.REQUIRED)
@ExcelProperty("境内/境外")
private String isDomestic;
@Schema(description = "建筑服务发生地;销售合同且类型为SAP02COSR必填")
@ExcelProperty("建筑服务发生地;销售合同且类型为SAP02COSR必填")
private String architectureServicePlace;
@Schema(description = "达到收款条件金额;销售合同且类型为SAP02COSR必填")
@ExcelProperty("达到收款条件金额;销售合同且类型为SAP02COSR必填")
private BigDecimal payeeConditionAmount;
@Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
@ExcelProperty("创建时间")
private LocalDate createTime;
}

View File

@@ -0,0 +1,202 @@
package com.zt.plat.module.erp.controller.admin.erp.vo;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import java.math.BigDecimal;
import java.time.LocalDate;
@Schema(description = "管理后台 - ERP合同映射新增/修改 Request VO")
@Data
public class ErpContractSaveReqVO {
@Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "9114")
private Long id;
@Schema(description = "操作标识", requiredMode = Schema.RequiredMode.REQUIRED, example = "3035")
@NotEmpty(message = "操作标识不能为空")
private String operationId;
@Schema(description = "合同主信息主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "10259")
@NotNull(message = "合同主信息主键不能为空")
private Long contractMainId;
@Schema(description = "合同编号", requiredMode = Schema.RequiredMode.REQUIRED)
@NotEmpty(message = "合同编号不能为空")
private String contractPaperNumber;
@Schema(description = "合同名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋艿")
@NotEmpty(message = "合同名称不能为空")
private String contractName;
@Schema(description = "合同类型编号", requiredMode = Schema.RequiredMode.REQUIRED)
@NotEmpty(message = "合同类型编号不能为空")
private String contractTypeNumber;
@Schema(description = "合同类型名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "李四")
@NotEmpty(message = "合同类型名称不能为空")
private String contractTypeName;
@Schema(description = "合同类别", requiredMode = Schema.RequiredMode.REQUIRED)
@NotEmpty(message = "合同类别不能为空")
private String contractCategory;
@Schema(description = "是否虚拟合同", requiredMode = Schema.RequiredMode.REQUIRED)
@NotEmpty(message = "是否虚拟合同不能为空")
private String isVirtualContract;
@Schema(description = "客户/供应商编号;SAP客商公司代码", requiredMode = Schema.RequiredMode.REQUIRED)
@NotEmpty(message = "客户/供应商编号;SAP客商公司代码不能为空")
private String supplierNumber;
@Schema(description = "客户/供应商名称;SAP客商公司名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "张三")
@NotEmpty(message = "客户/供应商名称;SAP客商公司名称不能为空")
private String supplierName;
@Schema(description = "代理方;SAP客商公司代码")
private String agent;
@Schema(description = "合同实施主体编号;SAP公司代码", requiredMode = Schema.RequiredMode.REQUIRED)
@NotEmpty(message = "合同实施主体编号;SAP公司代码不能为空")
private String contractImplementNumber;
@Schema(description = "合同签订主体编号;SAP公司代码", requiredMode = Schema.RequiredMode.REQUIRED)
@NotEmpty(message = "合同签订主体编号;SAP公司代码不能为空")
private String contractSignNumber;
@Schema(description = "合同签订日期;格式YYYY-MM-DD", requiredMode = Schema.RequiredMode.REQUIRED)
@NotNull(message = "合同签订日期;格式YYYY-MM-DD不能为空")
private LocalDate signDate;
@Schema(description = "合同起始日期;格式YYYY-MM-DD长单合同长单合同起始日期 非长单:合同合同签订日期", requiredMode = Schema.RequiredMode.REQUIRED)
@NotNull(message = "合同起始日期;格式YYYY-MM-DD长单合同长单合同起始日期 非长单:合同合同签订日期不能为空")
private LocalDate startDate;
@Schema(description = "合同终止日期;格式YYYY-MM-DD长单合同长单合同起始日期 非长单:合同合同签订日期", requiredMode = Schema.RequiredMode.REQUIRED)
@NotNull(message = "合同终止日期;格式YYYY-MM-DD长单合同长单合同起始日期 非长单:合同合同签订日期不能为空")
private LocalDate stopDate;
@Schema(description = "币种编号", requiredMode = Schema.RequiredMode.REQUIRED)
@NotEmpty(message = "币种编号不能为空")
private String currency;
@Schema(description = "合同总金额(原币-含税);非长单合同:合同金额 长单合同默认1000000000000000.00", requiredMode = Schema.RequiredMode.REQUIRED)
@NotNull(message = "合同总金额(原币-含税);非长单合同:合同金额 长单合同默认1000000000000000.00不能为空")
private BigDecimal sourceAmount;
@Schema(description = "合同总金额(本位币-含税);非长单合同:合同金额*合同的临时汇率 长单合同默认1000000000000000.00", requiredMode = Schema.RequiredMode.REQUIRED)
@NotNull(message = "合同总金额(本位币-含税);非长单合同:合同金额*合同的临时汇率 长单合同默认1000000000000000.00不能为空")
private BigDecimal basicAmount;
@Schema(description = "变更后合同总金额(原币-含税);如果未做合同变更,金额等于合同总金额(原币-含税)", requiredMode = Schema.RequiredMode.REQUIRED)
@NotNull(message = "变更后合同总金额(原币-含税);如果未做合同变更,金额等于合同总金额(原币-含税)不能为空")
private BigDecimal changeSourceAmount;
@Schema(description = "变更后合同总金额(本位币-含税);如果未做合同变更,金额等于合同总金额(本位币-含税)", requiredMode = Schema.RequiredMode.REQUIRED)
@NotNull(message = "变更后合同总金额(本位币-含税);如果未做合同变更,金额等于合同总金额(本位币-含税)不能为空")
private BigDecimal changeBasicAmount;
@Schema(description = "合同状态编号", requiredMode = Schema.RequiredMode.REQUIRED)
@NotEmpty(message = "合同状态编号不能为空")
private String statusNumber;
@Schema(description = "合同状态名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "赵六")
@NotEmpty(message = "合同状态名称不能为空")
private String statusName;
@Schema(description = "是否有预付款;长单合同:否,非长单:取合同的预付款", requiredMode = Schema.RequiredMode.REQUIRED)
@NotEmpty(message = "是否有预付款;长单合同:否,非长单:取合同的预付款不能为空")
private String isPrepayment;
@Schema(description = "预付款比例;有预付款则需要填写")
private BigDecimal prepaymentRatio;
@Schema(description = "预付款金额;有预付款则需要填写(通过计算得出)")
private BigDecimal prepaymentAmount;
@Schema(description = "履约保证金-变更前(原币)")
private BigDecimal sourceBeforeBond;
@Schema(description = "履约保证金-变更前(本位币)")
private BigDecimal basicBeforeBond;
@Schema(description = "履约保证金-变更后(原币)")
private BigDecimal sourceAfterBond;
@Schema(description = "履约保证金-变更后(本位币)")
private BigDecimal basicAfterBond;
@Schema(description = "是否含质保金", requiredMode = Schema.RequiredMode.REQUIRED)
@NotEmpty(message = "是否含质保金不能为空")
private String isQualityassuranceAmount;
@Schema(description = "质保金比例;有质保金则需要填写")
private BigDecimal qualityassuranceRatio;
@Schema(description = "质保金金额;有质保金则需要填写")
private BigDecimal qualityassuranceAmount;
@Schema(description = "是否内部企业", requiredMode = Schema.RequiredMode.REQUIRED)
@NotEmpty(message = "是否内部企业不能为空")
private String isInternal;
@Schema(description = "收支性质", requiredMode = Schema.RequiredMode.REQUIRED)
@NotEmpty(message = "收支性质不能为空")
private String nature;
@Schema(description = "备注信息;提交ERP")
private String remark;
@Schema(description = "累计结算金额(原币-含税);暂定不传")
private BigDecimal sourceAccumulateSettlementAmount;
@Schema(description = "累计结算金额(本位币-含税);暂定不传")
private BigDecimal basicAccumulateSettlementAmount;
@Schema(description = "累计已收付款金额(原币-含税);暂定不传")
private BigDecimal sourceUseAmount;
@Schema(description = "累计已收付款金额(本位币-含税);暂定不传")
private BigDecimal basicUseAmount;
@Schema(description = "累计已开收票金额(原币-含税);暂定不传")
private BigDecimal sourceInvoiceAmount;
@Schema(description = "累计已开收票金额(本位币-含税);暂定不传")
private BigDecimal basicInvoiceAmount;
@Schema(description = "累计预付款金额(原币-含税);暂定不传")
private BigDecimal sourceAccumulatePrepayment;
@Schema(description = "累计预付款金额(本位币-含税);暂定不传")
private BigDecimal basicAccumulatePrepayment;
@Schema(description = "履约保证金累计付款金额(原币);暂定不传")
private BigDecimal sourceAccumulateBond;
@Schema(description = "履约保证金累计付款金额(本位币);暂定不传")
private BigDecimal basicAccumulateBond;
@Schema(description = "履约保证金累计收款金额(原币);暂定不传")
private BigDecimal sourceAccumulateAmount;
@Schema(description = "履约保证金累计收款金额(本位币);暂定不传")
private BigDecimal basicAccumulateAmount;
@Schema(description = "是否框架合同;如果为是,合同总金额(本币)、合同总金额(原币)、变更后合同总金额(原币-含税)、变更后合同总金额(本位币-含税赋默认值为1000000000000000.00", requiredMode = Schema.RequiredMode.REQUIRED)
@NotEmpty(message = "是否框架合同;如果为是,合同总金额(本币)、合同总金额(原币)、变更后合同总金额(原币-含税)、变更后合同总金额(本位币-含税赋默认值为1000000000000000.00不能为空")
private String isFramework;
@Schema(description = "境内/境外", requiredMode = Schema.RequiredMode.REQUIRED)
@NotEmpty(message = "境内/境外不能为空")
private String isDomestic;
@Schema(description = "建筑服务发生地;销售合同且类型为SAP02COSR必填")
private String architectureServicePlace;
@Schema(description = "达到收款条件金额;销售合同且类型为SAP02COSR必填")
private BigDecimal payeeConditionAmount;
}

View File

@@ -0,0 +1,39 @@
package com.zt.plat.module.erp.controller.admin.erp.vo;
import com.zt.plat.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import static com.zt.plat.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
@Schema(description = "管理后台 - ERP成本中心分页 Request VO")
@Data
public class ErpCostcenterPageReqVO extends PageParam {
@Schema(description = "成本中心编码")
private String number;
@Schema(description = "成本中心描述", example = "赵六")
private String name;
@Schema(description = "工区必填;使用这个基础数据是如果为X时必须和工区使用")
private String isUse;
@Schema(description = "功能范围")
private String scopeNumber;
@Schema(description = "功能范围描述", example = "赵六")
private String scopeName;
@Schema(description = "起始日期")
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
private LocalDateTime[] startDate;
@Schema(description = "截止日期")
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
private LocalDateTime[] endDate;
}

View File

@@ -0,0 +1,47 @@
package com.zt.plat.module.erp.controller.admin.erp.vo;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import java.time.LocalDateTime;
@Schema(description = "管理后台 - ERP成本中心 Response VO")
@Data
@ExcelIgnoreUnannotated
public class ErpCostcenterRespVO {
@Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "23318")
@ExcelProperty("主键")
private Long id;
@Schema(description = "成本中心编码", requiredMode = Schema.RequiredMode.REQUIRED)
@ExcelProperty("成本中心编码")
private String number;
@Schema(description = "成本中心描述", requiredMode = Schema.RequiredMode.REQUIRED, example = "赵六")
@ExcelProperty("成本中心描述")
private String name;
@Schema(description = "工区必填;使用这个基础数据是如果为X时必须和工区使用", requiredMode = Schema.RequiredMode.REQUIRED)
@ExcelProperty("工区必填;使用这个基础数据是如果为X时必须和工区使用")
private String isUse;
@Schema(description = "功能范围", requiredMode = Schema.RequiredMode.REQUIRED)
@ExcelProperty("功能范围")
private String scopeNumber;
@Schema(description = "功能范围描述", example = "赵六")
@ExcelProperty("功能范围描述")
private String scopeName;
@Schema(description = "起始日期", requiredMode = Schema.RequiredMode.REQUIRED)
@ExcelProperty("起始日期")
private LocalDateTime startDate;
@Schema(description = "截止日期", requiredMode = Schema.RequiredMode.REQUIRED)
@ExcelProperty("截止日期")
private LocalDateTime endDate;
}

View File

@@ -0,0 +1,44 @@
package com.zt.plat.module.erp.controller.admin.erp.vo;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import java.time.LocalDateTime;
@Schema(description = "管理后台 - ERP成本中心新增/修改 Request VO")
@Data
public class ErpCostcenterSaveReqVO {
@Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "23318")
private Long id;
@Schema(description = "成本中心编码", requiredMode = Schema.RequiredMode.REQUIRED)
@NotEmpty(message = "成本中心编码不能为空")
private String number;
@Schema(description = "成本中心描述", requiredMode = Schema.RequiredMode.REQUIRED, example = "赵六")
@NotEmpty(message = "成本中心描述不能为空")
private String name;
@Schema(description = "工区必填;使用这个基础数据是如果为X时必须和工区使用", requiredMode = Schema.RequiredMode.REQUIRED)
@NotEmpty(message = "工区必填;使用这个基础数据是如果为X时必须和工区使用不能为空")
private String isUse;
@Schema(description = "功能范围", requiredMode = Schema.RequiredMode.REQUIRED)
@NotEmpty(message = "功能范围不能为空")
private String scopeNumber;
@Schema(description = "功能范围描述", example = "赵六")
private String scopeName;
@Schema(description = "起始日期", requiredMode = Schema.RequiredMode.REQUIRED)
@NotNull(message = "起始日期不能为空")
private LocalDateTime startDate;
@Schema(description = "截止日期", requiredMode = Schema.RequiredMode.REQUIRED)
@NotNull(message = "截止日期不能为空")
private LocalDateTime endDate;
}

View File

@@ -0,0 +1,45 @@
package com.zt.plat.module.erp.controller.admin.erp.vo;
import com.zt.plat.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import static com.zt.plat.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
@Schema(description = "管理后台 - ERP客商主数据分页 Request VO")
@Data
public class ErpCustomerPageReqVO extends PageParam {
@Schema(description = "编码")
private String number;
@Schema(description = "名称", example = "芋艿")
private String name;
@Schema(description = "账户组")
private String accountGroup;
@Schema(description = "简称")
private String description;
@Schema(description = "中铝编号")
private String centerNumber;
@Schema(description = "创建日期")
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
private LocalDateTime[] createDate;
@Schema(description = "修改日期")
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
private LocalDateTime[] repairDate;
@Schema(description = "归档标识")
private String isGiveback;
@Schema(description = "冻结标识")
private String isProvisional;
}

View File

@@ -0,0 +1,55 @@
package com.zt.plat.module.erp.controller.admin.erp.vo;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import java.time.LocalDateTime;
@Schema(description = "管理后台 - ERP客商主数据 Response VO")
@Data
@ExcelIgnoreUnannotated
public class ErpCustomerRespVO {
@Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "30882")
@ExcelProperty("主键")
private Long id;
@Schema(description = "编码", requiredMode = Schema.RequiredMode.REQUIRED)
@ExcelProperty("编码")
private String number;
@Schema(description = "名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋艿")
@ExcelProperty("名称")
private String name;
@Schema(description = "账户组", requiredMode = Schema.RequiredMode.REQUIRED)
@ExcelProperty("账户组")
private String accountGroup;
@Schema(description = "简称")
@ExcelProperty("简称")
private String description;
@Schema(description = "中铝编号")
@ExcelProperty("中铝编号")
private String centerNumber;
@Schema(description = "创建日期", requiredMode = Schema.RequiredMode.REQUIRED)
@ExcelProperty("创建日期")
private LocalDateTime createDate;
@Schema(description = "修改日期", requiredMode = Schema.RequiredMode.REQUIRED)
@ExcelProperty("修改日期")
private LocalDateTime repairDate;
@Schema(description = "归档标识")
@ExcelProperty("归档标识")
private String isGiveback;
@Schema(description = "冻结标识")
@ExcelProperty("冻结标识")
private String isProvisional;
}

View File

@@ -0,0 +1,49 @@
package com.zt.plat.module.erp.controller.admin.erp.vo;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import java.time.LocalDateTime;
@Schema(description = "管理后台 - ERP客商主数据新增/修改 Request VO")
@Data
public class ErpCustomerSaveReqVO {
@Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "30882")
private Long id;
@Schema(description = "编码", requiredMode = Schema.RequiredMode.REQUIRED)
@NotEmpty(message = "编码不能为空")
private String number;
@Schema(description = "名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋艿")
@NotEmpty(message = "名称不能为空")
private String name;
@Schema(description = "账户组", requiredMode = Schema.RequiredMode.REQUIRED)
@NotEmpty(message = "账户组不能为空")
private String accountGroup;
@Schema(description = "简称")
private String description;
@Schema(description = "中铝编号")
private String centerNumber;
@Schema(description = "创建日期", requiredMode = Schema.RequiredMode.REQUIRED)
@NotNull(message = "创建日期不能为空")
private LocalDateTime createDate;
@Schema(description = "修改日期", requiredMode = Schema.RequiredMode.REQUIRED)
@NotNull(message = "修改日期不能为空")
private LocalDateTime repairDate;
@Schema(description = "归档标识")
private String isGiveback;
@Schema(description = "冻结标识")
private String isProvisional;
}

View File

@@ -0,0 +1,17 @@
package com.zt.plat.module.erp.controller.admin.erp.vo;
import com.zt.plat.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
@Schema(description = "管理后台 - ERP工厂分页 Request VO")
@Data
public class ErpFactoryPageReqVO extends PageParam {
@Schema(description = "工厂名称", example = "赵六")
private String name;
@Schema(description = "工厂编码")
private String number;
}

View File

@@ -0,0 +1,25 @@
package com.zt.plat.module.erp.controller.admin.erp.vo;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
@Schema(description = "管理后台 - ERP工厂 Response VO")
@Data
@ExcelIgnoreUnannotated
public class ErpFactoryRespVO {
@Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "9235")
@ExcelProperty("主键")
private Long id;
@Schema(description = "工厂名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "赵六")
@ExcelProperty("工厂名称")
private String name;
@Schema(description = "工厂编码", requiredMode = Schema.RequiredMode.REQUIRED)
@ExcelProperty("工厂编码")
private String number;
}

View File

@@ -0,0 +1,22 @@
package com.zt.plat.module.erp.controller.admin.erp.vo;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import lombok.Data;
@Schema(description = "管理后台 - ERP工厂新增/修改 Request VO")
@Data
public class ErpFactorySaveReqVO {
@Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "9235")
private Long id;
@Schema(description = "工厂名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "赵六")
@NotEmpty(message = "工厂名称不能为空")
private String name;
@Schema(description = "工厂编码", requiredMode = Schema.RequiredMode.REQUIRED)
@NotEmpty(message = "工厂编码不能为空")
private String number;
}

View File

@@ -0,0 +1,26 @@
package com.zt.plat.module.erp.controller.admin.erp.vo;
import com.zt.plat.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
@Schema(description = "管理后台 - ERP内部订单分页 Request VO")
@Data
public class ErpInternalOrderPageReqVO extends PageParam {
@Schema(description = "内部订单编号")
private String number;
@Schema(description = "内部订单描述", example = "王五")
private String name;
@Schema(description = "内部订单类型", example = "2")
private String type;
@Schema(description = "是否已关闭;使用这个基础数据是如果为X时必须和工区使用")
private String isOff;
@Schema(description = "是否已完成")
private String isFinish;
}

View File

@@ -0,0 +1,37 @@
package com.zt.plat.module.erp.controller.admin.erp.vo;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
@Schema(description = "管理后台 - ERP内部订单 Response VO")
@Data
@ExcelIgnoreUnannotated
public class ErpInternalOrderRespVO {
@Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "19327")
@ExcelProperty("主键")
private Long id;
@Schema(description = "内部订单编号", requiredMode = Schema.RequiredMode.REQUIRED)
@ExcelProperty("内部订单编号")
private String number;
@Schema(description = "内部订单描述", requiredMode = Schema.RequiredMode.REQUIRED, example = "王五")
@ExcelProperty("内部订单描述")
private String name;
@Schema(description = "内部订单类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
@ExcelProperty("内部订单类型")
private String type;
@Schema(description = "是否已关闭;使用这个基础数据是如果为X时必须和工区使用", requiredMode = Schema.RequiredMode.REQUIRED)
@ExcelProperty("是否已关闭;使用这个基础数据是如果为X时必须和工区使用")
private String isOff;
@Schema(description = "是否已完成")
@ExcelProperty("是否已完成")
private String isFinish;
}

View File

@@ -0,0 +1,33 @@
package com.zt.plat.module.erp.controller.admin.erp.vo;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import lombok.Data;
@Schema(description = "管理后台 - ERP内部订单新增/修改 Request VO")
@Data
public class ErpInternalOrderSaveReqVO {
@Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "19327")
private Long id;
@Schema(description = "内部订单编号", requiredMode = Schema.RequiredMode.REQUIRED)
@NotEmpty(message = "内部订单编号不能为空")
private String number;
@Schema(description = "内部订单描述", requiredMode = Schema.RequiredMode.REQUIRED, example = "王五")
@NotEmpty(message = "内部订单描述不能为空")
private String name;
@Schema(description = "内部订单类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
@NotEmpty(message = "内部订单类型不能为空")
private String type;
@Schema(description = "是否已关闭;使用这个基础数据是如果为X时必须和工区使用", requiredMode = Schema.RequiredMode.REQUIRED)
@NotEmpty(message = "是否已关闭;使用这个基础数据是如果为X时必须和工区使用不能为空")
private String isOff;
@Schema(description = "是否已完成")
private String isFinish;
}

View File

@@ -0,0 +1,58 @@
package com.zt.plat.module.erp.controller.admin.erp.vo;
import com.zt.plat.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import static com.zt.plat.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
@Schema(description = "管理后台 - ERP物料数据分页 Request VO")
@Data
public class ErpMaterialPageReqVO extends PageParam {
@Schema(description = "中铜物料编码;系统使用时使用该编码")
private String downCenterNumber;
@Schema(description = "中铝物料编码")
private String centerNumber;
@Schema(description = "创建日期")
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
private LocalDateTime[] createDate;
@Schema(description = "物料类型", example = "2")
private String materialType;
@Schema(description = "物料大类组")
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
private String[] materialGroupDate;
@Schema(description = "外部物料小类组")
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
private String[] externalMaterialGroupDate;
@Schema(description = "计量单位编码")
private String unit;
@Schema(description = "计量单位描述")
private String unitDescription;
@Schema(description = "物料类型描述")
private String materialTypeDescription;
@Schema(description = "物料组描述")
private String materialGroupDescription;
@Schema(description = "外部物料小类组描述")
private String externalMaterialGroupDescription;
@Schema(description = "物料名称", example = "李四")
private String materialName;
@Schema(description = "物料长描述")
private String materialLengthDescription;
}

View File

@@ -0,0 +1,71 @@
package com.zt.plat.module.erp.controller.admin.erp.vo;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import java.time.LocalDateTime;
@Schema(description = "管理后台 - ERP物料数据 Response VO")
@Data
@ExcelIgnoreUnannotated
public class ErpMaterialRespVO {
@Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "2038")
@ExcelProperty("主键")
private Long id;
@Schema(description = "中铜物料编码;系统使用时使用该编码", requiredMode = Schema.RequiredMode.REQUIRED)
@ExcelProperty("中铜物料编码;系统使用时使用该编码")
private String downCenterNumber;
@Schema(description = "中铝物料编码", requiredMode = Schema.RequiredMode.REQUIRED)
@ExcelProperty("中铝物料编码")
private String centerNumber;
@Schema(description = "创建日期", requiredMode = Schema.RequiredMode.REQUIRED)
@ExcelProperty("创建日期")
private LocalDateTime createDate;
@Schema(description = "物料类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
@ExcelProperty("物料类型")
private String materialType;
@Schema(description = "物料大类组", requiredMode = Schema.RequiredMode.REQUIRED)
@ExcelProperty("物料大类组")
private String materialGroupDate;
@Schema(description = "外部物料小类组", requiredMode = Schema.RequiredMode.REQUIRED)
@ExcelProperty("外部物料小类组")
private String externalMaterialGroupDate;
@Schema(description = "计量单位编码", requiredMode = Schema.RequiredMode.REQUIRED)
@ExcelProperty("计量单位编码")
private String unit;
@Schema(description = "计量单位描述", requiredMode = Schema.RequiredMode.REQUIRED)
@ExcelProperty("计量单位描述")
private String unitDescription;
@Schema(description = "物料类型描述", requiredMode = Schema.RequiredMode.REQUIRED)
@ExcelProperty("物料类型描述")
private String materialTypeDescription;
@Schema(description = "物料组描述", requiredMode = Schema.RequiredMode.REQUIRED)
@ExcelProperty("物料组描述")
private String materialGroupDescription;
@Schema(description = "外部物料小类组描述", requiredMode = Schema.RequiredMode.REQUIRED)
@ExcelProperty("外部物料小类组描述")
private String externalMaterialGroupDescription;
@Schema(description = "物料名称", example = "李四")
@ExcelProperty("物料名称")
private String materialName;
@Schema(description = "物料长描述", requiredMode = Schema.RequiredMode.REQUIRED)
@ExcelProperty("物料长描述")
private String materialLengthDescription;
}

View File

@@ -0,0 +1,68 @@
package com.zt.plat.module.erp.controller.admin.erp.vo;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import java.time.LocalDateTime;
@Schema(description = "管理后台 - ERP物料数据新增/修改 Request VO")
@Data
public class ErpMaterialSaveReqVO {
@Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "2038")
private Long id;
@Schema(description = "中铜物料编码;系统使用时使用该编码", requiredMode = Schema.RequiredMode.REQUIRED)
@NotEmpty(message = "中铜物料编码;系统使用时使用该编码不能为空")
private String downCenterNumber;
@Schema(description = "中铝物料编码", requiredMode = Schema.RequiredMode.REQUIRED)
@NotEmpty(message = "中铝物料编码不能为空")
private String centerNumber;
@Schema(description = "创建日期", requiredMode = Schema.RequiredMode.REQUIRED)
@NotNull(message = "创建日期不能为空")
private LocalDateTime createDate;
@Schema(description = "物料类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
@NotEmpty(message = "物料类型不能为空")
private String materialType;
@Schema(description = "物料大类组", requiredMode = Schema.RequiredMode.REQUIRED)
@NotEmpty(message = "物料大类组不能为空")
private String materialGroupDate;
@Schema(description = "外部物料小类组", requiredMode = Schema.RequiredMode.REQUIRED)
@NotEmpty(message = "外部物料小类组不能为空")
private String externalMaterialGroupDate;
@Schema(description = "计量单位编码", requiredMode = Schema.RequiredMode.REQUIRED)
@NotEmpty(message = "计量单位编码不能为空")
private String unit;
@Schema(description = "计量单位描述", requiredMode = Schema.RequiredMode.REQUIRED)
@NotEmpty(message = "计量单位描述不能为空")
private String unitDescription;
@Schema(description = "物料类型描述", requiredMode = Schema.RequiredMode.REQUIRED)
@NotEmpty(message = "物料类型描述不能为空")
private String materialTypeDescription;
@Schema(description = "物料组描述", requiredMode = Schema.RequiredMode.REQUIRED)
@NotEmpty(message = "物料组描述不能为空")
private String materialGroupDescription;
@Schema(description = "外部物料小类组描述", requiredMode = Schema.RequiredMode.REQUIRED)
@NotEmpty(message = "外部物料小类组描述不能为空")
private String externalMaterialGroupDescription;
@Schema(description = "物料名称", example = "李四")
private String materialName;
@Schema(description = "物料长描述", requiredMode = Schema.RequiredMode.REQUIRED)
@NotEmpty(message = "物料长描述不能为空")
private String materialLengthDescription;
}

View File

@@ -0,0 +1,31 @@
package com.zt.plat.module.erp.controller.admin.erp.vo;
import com.zt.plat.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import java.math.BigDecimal;
@Schema(description = "管理后台 - ERP工艺路线明细分页 Request VO")
@Data
public class ErpProcessDetailPageReqVO extends PageParam {
@Schema(description = "ERP工艺路线主键", example = "30589")
private String processId;
@Schema(description = "工序编码")
private BigDecimal processingNumber;
@Schema(description = "工序描述", example = "李四")
private String processingName;
@Schema(description = "作业的计量单位")
private String uom;
@Schema(description = "工作中心编号")
private String workCenterNumber;
@Schema(description = "工作中心描述", example = "张三")
private String workCenterName;
}

View File

@@ -0,0 +1,43 @@
package com.zt.plat.module.erp.controller.admin.erp.vo;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import java.math.BigDecimal;
@Schema(description = "管理后台 - ERP工艺路线明细 Response VO")
@Data
@ExcelIgnoreUnannotated
public class ErpProcessDetailRespVO {
@Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "5707")
@ExcelProperty("主键")
private Long id;
@Schema(description = "ERP工艺路线主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "30589")
@ExcelProperty("ERP工艺路线主键")
private String processId;
@Schema(description = "工序编码", requiredMode = Schema.RequiredMode.REQUIRED)
@ExcelProperty("工序编码")
private BigDecimal processingNumber;
@Schema(description = "工序描述", requiredMode = Schema.RequiredMode.REQUIRED, example = "李四")
@ExcelProperty("工序描述")
private String processingName;
@Schema(description = "作业的计量单位", requiredMode = Schema.RequiredMode.REQUIRED)
@ExcelProperty("作业的计量单位")
private String uom;
@Schema(description = "工作中心编号")
@ExcelProperty("工作中心编号")
private String workCenterNumber;
@Schema(description = "工作中心描述", requiredMode = Schema.RequiredMode.REQUIRED, example = "张三")
@ExcelProperty("工作中心描述")
private String workCenterName;
}

View File

@@ -0,0 +1,40 @@
package com.zt.plat.module.erp.controller.admin.erp.vo;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import java.math.BigDecimal;
@Schema(description = "管理后台 - ERP工艺路线明细新增/修改 Request VO")
@Data
public class ErpProcessDetailSaveReqVO {
@Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "5707")
private Long id;
@Schema(description = "ERP工艺路线主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "30589")
@NotEmpty(message = "ERP工艺路线主键不能为空")
private String processId;
@Schema(description = "工序编码", requiredMode = Schema.RequiredMode.REQUIRED)
@NotNull(message = "工序编码不能为空")
private BigDecimal processingNumber;
@Schema(description = "工序描述", requiredMode = Schema.RequiredMode.REQUIRED, example = "李四")
@NotEmpty(message = "工序描述不能为空")
private String processingName;
@Schema(description = "作业的计量单位", requiredMode = Schema.RequiredMode.REQUIRED)
@NotEmpty(message = "作业的计量单位不能为空")
private String uom;
@Schema(description = "工作中心编号")
private String workCenterNumber;
@Schema(description = "工作中心描述", requiredMode = Schema.RequiredMode.REQUIRED, example = "张三")
@NotEmpty(message = "工作中心描述不能为空")
private String workCenterName;
}

View File

@@ -0,0 +1,40 @@
package com.zt.plat.module.erp.controller.admin.erp.vo;
import com.zt.plat.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import java.math.BigDecimal;
@Schema(description = "管理后台 - ERP工艺路线分页 Request VO")
@Data
public class ErpProcessPageReqVO extends PageParam {
@Schema(description = "工厂编码")
private BigDecimal factoryNumber;
@Schema(description = "物料编码")
private String materialNumber;
@Schema(description = "物料描述", example = "李四")
private String materialName;
@Schema(description = "工艺路线组")
private String blineGroup;
@Schema(description = "组计数器", example = "27504")
private Long groupCount;
@Schema(description = "工艺路线描述")
private String blineDescription;
@Schema(description = "计量单位")
private String uom;
@Schema(description = "用途")
private String useDescription;
@Schema(description = "状态", example = "2")
private String status;
}

View File

@@ -0,0 +1,55 @@
package com.zt.plat.module.erp.controller.admin.erp.vo;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import java.math.BigDecimal;
@Schema(description = "管理后台 - ERP工艺路线 Response VO")
@Data
@ExcelIgnoreUnannotated
public class ErpProcessRespVO {
@Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "13200")
@ExcelProperty("主键")
private Long id;
@Schema(description = "工厂编码", requiredMode = Schema.RequiredMode.REQUIRED)
@ExcelProperty("工厂编码")
private BigDecimal factoryNumber;
@Schema(description = "物料编码", requiredMode = Schema.RequiredMode.REQUIRED)
@ExcelProperty("物料编码")
private String materialNumber;
@Schema(description = "物料描述", example = "李四")
@ExcelProperty("物料描述")
private String materialName;
@Schema(description = "工艺路线组", requiredMode = Schema.RequiredMode.REQUIRED)
@ExcelProperty("工艺路线组")
private String blineGroup;
@Schema(description = "组计数器", requiredMode = Schema.RequiredMode.REQUIRED, example = "27504")
@ExcelProperty("组计数器")
private Long groupCount;
@Schema(description = "工艺路线描述", requiredMode = Schema.RequiredMode.REQUIRED)
@ExcelProperty("工艺路线描述")
private String blineDescription;
@Schema(description = "计量单位", requiredMode = Schema.RequiredMode.REQUIRED)
@ExcelProperty("计量单位")
private String uom;
@Schema(description = "用途")
@ExcelProperty("用途")
private String useDescription;
@Schema(description = "状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
@ExcelProperty("状态")
private String status;
}

View File

@@ -0,0 +1,51 @@
package com.zt.plat.module.erp.controller.admin.erp.vo;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import java.math.BigDecimal;
@Schema(description = "管理后台 - ERP工艺路线新增/修改 Request VO")
@Data
public class ErpProcessSaveReqVO {
@Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "13200")
private Long id;
@Schema(description = "工厂编码", requiredMode = Schema.RequiredMode.REQUIRED)
@NotNull(message = "工厂编码不能为空")
private BigDecimal factoryNumber;
@Schema(description = "物料编码", requiredMode = Schema.RequiredMode.REQUIRED)
@NotEmpty(message = "物料编码不能为空")
private String materialNumber;
@Schema(description = "物料描述", example = "李四")
private String materialName;
@Schema(description = "工艺路线组", requiredMode = Schema.RequiredMode.REQUIRED)
@NotEmpty(message = "工艺路线组不能为空")
private String blineGroup;
@Schema(description = "组计数器", requiredMode = Schema.RequiredMode.REQUIRED, example = "27504")
@NotNull(message = "组计数器不能为空")
private Long groupCount;
@Schema(description = "工艺路线描述", requiredMode = Schema.RequiredMode.REQUIRED)
@NotEmpty(message = "工艺路线描述不能为空")
private String blineDescription;
@Schema(description = "计量单位", requiredMode = Schema.RequiredMode.REQUIRED)
@NotEmpty(message = "计量单位不能为空")
private String uom;
@Schema(description = "用途")
private String useDescription;
@Schema(description = "状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
@NotEmpty(message = "状态不能为空")
private String status;
}

View File

@@ -0,0 +1,69 @@
package com.zt.plat.module.erp.controller.admin.erp.vo;
import com.zt.plat.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import static com.zt.plat.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
@Schema(description = "管理后台 - ERP生产订单分页 Request VO")
@Data
public class ErpProductiveOrderPageReqVO extends PageParam {
@Schema(description = "公司编号")
private String companyNumber;
@Schema(description = "工厂编码")
private String factoryNumber;
@Schema(description = "工厂名称", example = "赵六")
private String factoryName;
@Schema(description = "订单编号")
private String orderNumber;
@Schema(description = "基本开始日期")
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
private LocalDateTime[] startDate;
@Schema(description = "基本完成日期")
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
private LocalDateTime[] endDate;
@Schema(description = "主产品物料编号")
private String mainMaterialNumber;
@Schema(description = "计量单位")
private String unit;
@Schema(description = "物料描述")
private String materialDescription;
@Schema(description = "工序列表")
private String processingList;
@Schema(description = "工序编号")
private String processingNumber;
@Schema(description = "工序描述")
private String processingDescription;
@Schema(description = "对象编号")
private String objectNumber;
@Schema(description = "工作中心编码")
private String workCenterNumber;
@Schema(description = "工作中心描述")
private String workCenterDescription;
@Schema(description = "成本中心编码")
private String costcenterNumber;
@Schema(description = "成本中心描述", example = "赵六")
private String costcenterName;
}

View File

@@ -0,0 +1,87 @@
package com.zt.plat.module.erp.controller.admin.erp.vo;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import java.time.LocalDateTime;
@Schema(description = "管理后台 - ERP生产订单 Response VO")
@Data
@ExcelIgnoreUnannotated
public class ErpProductiveOrderRespVO {
@Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "24243")
@ExcelProperty("主键")
private Long id;
@Schema(description = "公司编号", requiredMode = Schema.RequiredMode.REQUIRED)
@ExcelProperty("公司编号")
private String companyNumber;
@Schema(description = "工厂编码", requiredMode = Schema.RequiredMode.REQUIRED)
@ExcelProperty("工厂编码")
private String factoryNumber;
@Schema(description = "工厂名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "赵六")
@ExcelProperty("工厂名称")
private String factoryName;
@Schema(description = "订单编号", requiredMode = Schema.RequiredMode.REQUIRED)
@ExcelProperty("订单编号")
private String orderNumber;
@Schema(description = "基本开始日期", requiredMode = Schema.RequiredMode.REQUIRED)
@ExcelProperty("基本开始日期")
private LocalDateTime startDate;
@Schema(description = "基本完成日期", requiredMode = Schema.RequiredMode.REQUIRED)
@ExcelProperty("基本完成日期")
private LocalDateTime endDate;
@Schema(description = "主产品物料编号", requiredMode = Schema.RequiredMode.REQUIRED)
@ExcelProperty("主产品物料编号")
private String mainMaterialNumber;
@Schema(description = "计量单位", requiredMode = Schema.RequiredMode.REQUIRED)
@ExcelProperty("计量单位")
private String unit;
@Schema(description = "物料描述", requiredMode = Schema.RequiredMode.REQUIRED)
@ExcelProperty("物料描述")
private String materialDescription;
@Schema(description = "工序列表", requiredMode = Schema.RequiredMode.REQUIRED)
@ExcelProperty("工序列表")
private String processingList;
@Schema(description = "工序编号", requiredMode = Schema.RequiredMode.REQUIRED)
@ExcelProperty("工序编号")
private String processingNumber;
@Schema(description = "工序描述")
@ExcelProperty("工序描述")
private String processingDescription;
@Schema(description = "对象编号", requiredMode = Schema.RequiredMode.REQUIRED)
@ExcelProperty("对象编号")
private String objectNumber;
@Schema(description = "工作中心编码", requiredMode = Schema.RequiredMode.REQUIRED)
@ExcelProperty("工作中心编码")
private String workCenterNumber;
@Schema(description = "工作中心描述")
@ExcelProperty("工作中心描述")
private String workCenterDescription;
@Schema(description = "成本中心编码", requiredMode = Schema.RequiredMode.REQUIRED)
@ExcelProperty("成本中心编码")
private String costcenterNumber;
@Schema(description = "成本中心描述", example = "赵六")
@ExcelProperty("成本中心描述")
private String costcenterName;
}

View File

@@ -0,0 +1,82 @@
package com.zt.plat.module.erp.controller.admin.erp.vo;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import java.time.LocalDateTime;
@Schema(description = "管理后台 - ERP生产订单新增/修改 Request VO")
@Data
public class ErpProductiveOrderSaveReqVO {
@Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "24243")
private Long id;
@Schema(description = "公司编号", requiredMode = Schema.RequiredMode.REQUIRED)
@NotEmpty(message = "公司编号不能为空")
private String companyNumber;
@Schema(description = "工厂编码", requiredMode = Schema.RequiredMode.REQUIRED)
@NotEmpty(message = "工厂编码不能为空")
private String factoryNumber;
@Schema(description = "工厂名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "赵六")
@NotEmpty(message = "工厂名称不能为空")
private String factoryName;
@Schema(description = "订单编号", requiredMode = Schema.RequiredMode.REQUIRED)
@NotEmpty(message = "订单编号不能为空")
private String orderNumber;
@Schema(description = "基本开始日期", requiredMode = Schema.RequiredMode.REQUIRED)
@NotNull(message = "基本开始日期不能为空")
private LocalDateTime startDate;
@Schema(description = "基本完成日期", requiredMode = Schema.RequiredMode.REQUIRED)
@NotNull(message = "基本完成日期不能为空")
private LocalDateTime endDate;
@Schema(description = "主产品物料编号", requiredMode = Schema.RequiredMode.REQUIRED)
@NotEmpty(message = "主产品物料编号不能为空")
private String mainMaterialNumber;
@Schema(description = "计量单位", requiredMode = Schema.RequiredMode.REQUIRED)
@NotEmpty(message = "计量单位不能为空")
private String unit;
@Schema(description = "物料描述", requiredMode = Schema.RequiredMode.REQUIRED)
@NotEmpty(message = "物料描述不能为空")
private String materialDescription;
@Schema(description = "工序列表", requiredMode = Schema.RequiredMode.REQUIRED)
@NotEmpty(message = "工序列表不能为空")
private String processingList;
@Schema(description = "工序编号", requiredMode = Schema.RequiredMode.REQUIRED)
@NotEmpty(message = "工序编号不能为空")
private String processingNumber;
@Schema(description = "工序描述")
private String processingDescription;
@Schema(description = "对象编号", requiredMode = Schema.RequiredMode.REQUIRED)
@NotEmpty(message = "对象编号不能为空")
private String objectNumber;
@Schema(description = "工作中心编码", requiredMode = Schema.RequiredMode.REQUIRED)
@NotEmpty(message = "工作中心编码不能为空")
private String workCenterNumber;
@Schema(description = "工作中心描述")
private String workCenterDescription;
@Schema(description = "成本中心编码", requiredMode = Schema.RequiredMode.REQUIRED)
@NotEmpty(message = "成本中心编码不能为空")
private String costcenterNumber;
@Schema(description = "成本中心描述", example = "赵六")
private String costcenterName;
}

View File

@@ -0,0 +1,34 @@
package com.zt.plat.module.erp.controller.admin.erp.vo;
import com.zt.plat.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import java.math.BigDecimal;
@Schema(description = "管理后台 - ERP生产版本分页 Request VO")
@Data
public class ErpProductiveVersionPageReqVO extends PageParam {
@Schema(description = "工厂编码")
private BigDecimal factoryNumber;
@Schema(description = "物料编码")
private String materialNumber;
@Schema(description = "生产版本编码")
private String productiveVersionNumber;
@Schema(description = "生产版本描述", example = "赵六")
private String productiveVersionName;
@Schema(description = "备选BOM编号")
private String bomNumber;
@Schema(description = "工艺路线组")
private String blineGroup;
@Schema(description = "组计数器", example = "15610")
private Long groupCount;
}

View File

@@ -0,0 +1,47 @@
package com.zt.plat.module.erp.controller.admin.erp.vo;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import java.math.BigDecimal;
@Schema(description = "管理后台 - ERP生产版本 Response VO")
@Data
@ExcelIgnoreUnannotated
public class ErpProductiveVersionRespVO {
@Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "27745")
@ExcelProperty("主键")
private Long id;
@Schema(description = "工厂编码", requiredMode = Schema.RequiredMode.REQUIRED)
@ExcelProperty("工厂编码")
private BigDecimal factoryNumber;
@Schema(description = "物料编码", requiredMode = Schema.RequiredMode.REQUIRED)
@ExcelProperty("物料编码")
private String materialNumber;
@Schema(description = "生产版本编码", requiredMode = Schema.RequiredMode.REQUIRED)
@ExcelProperty("生产版本编码")
private String productiveVersionNumber;
@Schema(description = "生产版本描述", example = "赵六")
@ExcelProperty("生产版本描述")
private String productiveVersionName;
@Schema(description = "备选BOM编号")
@ExcelProperty("备选BOM编号")
private String bomNumber;
@Schema(description = "工艺路线组", requiredMode = Schema.RequiredMode.REQUIRED)
@ExcelProperty("工艺路线组")
private String blineGroup;
@Schema(description = "组计数器", requiredMode = Schema.RequiredMode.REQUIRED, example = "15610")
@ExcelProperty("组计数器")
private Long groupCount;
}

View File

@@ -0,0 +1,43 @@
package com.zt.plat.module.erp.controller.admin.erp.vo;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import java.math.BigDecimal;
@Schema(description = "管理后台 - ERP生产版本新增/修改 Request VO")
@Data
public class ErpProductiveVersionSaveReqVO {
@Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "27745")
private Long id;
@Schema(description = "工厂编码", requiredMode = Schema.RequiredMode.REQUIRED)
@NotNull(message = "工厂编码不能为空")
private BigDecimal factoryNumber;
@Schema(description = "物料编码", requiredMode = Schema.RequiredMode.REQUIRED)
@NotEmpty(message = "物料编码不能为空")
private String materialNumber;
@Schema(description = "生产版本编码", requiredMode = Schema.RequiredMode.REQUIRED)
@NotEmpty(message = "生产版本编码不能为空")
private String productiveVersionNumber;
@Schema(description = "生产版本描述", example = "赵六")
private String productiveVersionName;
@Schema(description = "备选BOM编号")
private String bomNumber;
@Schema(description = "工艺路线组", requiredMode = Schema.RequiredMode.REQUIRED)
@NotEmpty(message = "工艺路线组不能为空")
private String blineGroup;
@Schema(description = "组计数器", requiredMode = Schema.RequiredMode.REQUIRED, example = "15610")
@NotNull(message = "组计数器不能为空")
private Long groupCount;
}

View File

@@ -0,0 +1,20 @@
package com.zt.plat.module.erp.controller.admin.erp.vo;
import com.zt.plat.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
@Schema(description = "管理后台 - ERP采购组织分页 Request VO")
@Data
public class ErpPurchaseOrganizationPageReqVO extends PageParam {
@Schema(description = "采购组织编号")
private String number;
@Schema(description = "采购组织描述", example = "赵六")
private String name;
@Schema(description = "公司编码;存入ERP公司编码")
private String companyNumber;
}

View File

@@ -0,0 +1,29 @@
package com.zt.plat.module.erp.controller.admin.erp.vo;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
@Schema(description = "管理后台 - ERP采购组织 Response VO")
@Data
@ExcelIgnoreUnannotated
public class ErpPurchaseOrganizationRespVO {
@Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "17344")
@ExcelProperty("主键")
private Long id;
@Schema(description = "采购组织编号", requiredMode = Schema.RequiredMode.REQUIRED)
@ExcelProperty("采购组织编号")
private String number;
@Schema(description = "采购组织描述", requiredMode = Schema.RequiredMode.REQUIRED, example = "赵六")
@ExcelProperty("采购组织描述")
private String name;
@Schema(description = "公司编码;存入ERP公司编码", requiredMode = Schema.RequiredMode.REQUIRED)
@ExcelProperty("公司编码;存入ERP公司编码")
private String companyNumber;
}

View File

@@ -0,0 +1,26 @@
package com.zt.plat.module.erp.controller.admin.erp.vo;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import lombok.Data;
@Schema(description = "管理后台 - ERP采购组织新增/修改 Request VO")
@Data
public class ErpPurchaseOrganizationSaveReqVO {
@Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "17344")
private Long id;
@Schema(description = "采购组织编号", requiredMode = Schema.RequiredMode.REQUIRED)
@NotEmpty(message = "采购组织编号不能为空")
private String number;
@Schema(description = "采购组织描述", requiredMode = Schema.RequiredMode.REQUIRED, example = "赵六")
@NotEmpty(message = "采购组织描述不能为空")
private String name;
@Schema(description = "公司编码;存入ERP公司编码", requiredMode = Schema.RequiredMode.REQUIRED)
@NotEmpty(message = "公司编码;存入ERP公司编码不能为空")
private String companyNumber;
}

View File

@@ -0,0 +1,20 @@
package com.zt.plat.module.erp.controller.admin.erp.vo;
import com.zt.plat.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
@Schema(description = "管理后台 - ERP销售组织分页 Request VO")
@Data
public class ErpSalesOrganizationPageReqVO extends PageParam {
@Schema(description = "销售组织编号")
private String number;
@Schema(description = "销售组织描述", example = "李四")
private String name;
@Schema(description = "公司编码;存入ERP公司编码")
private String companyNumber;
}

View File

@@ -0,0 +1,29 @@
package com.zt.plat.module.erp.controller.admin.erp.vo;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
@Schema(description = "管理后台 - ERP销售组织 Response VO")
@Data
@ExcelIgnoreUnannotated
public class ErpSalesOrganizationRespVO {
@Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "22623")
@ExcelProperty("主键")
private Long id;
@Schema(description = "销售组织编号", requiredMode = Schema.RequiredMode.REQUIRED)
@ExcelProperty("销售组织编号")
private String number;
@Schema(description = "销售组织描述", requiredMode = Schema.RequiredMode.REQUIRED, example = "李四")
@ExcelProperty("销售组织描述")
private String name;
@Schema(description = "公司编码;存入ERP公司编码", requiredMode = Schema.RequiredMode.REQUIRED)
@ExcelProperty("公司编码;存入ERP公司编码")
private String companyNumber;
}

View File

@@ -0,0 +1,26 @@
package com.zt.plat.module.erp.controller.admin.erp.vo;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import lombok.Data;
@Schema(description = "管理后台 - ERP销售组织新增/修改 Request VO")
@Data
public class ErpSalesOrganizationSaveReqVO {
@Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "22623")
private Long id;
@Schema(description = "销售组织编号", requiredMode = Schema.RequiredMode.REQUIRED)
@NotEmpty(message = "销售组织编号不能为空")
private String number;
@Schema(description = "销售组织描述", requiredMode = Schema.RequiredMode.REQUIRED, example = "李四")
@NotEmpty(message = "销售组织描述不能为空")
private String name;
@Schema(description = "公司编码;存入ERP公司编码", requiredMode = Schema.RequiredMode.REQUIRED)
@NotEmpty(message = "公司编码;存入ERP公司编码不能为空")
private String companyNumber;
}

View File

@@ -0,0 +1,29 @@
package com.zt.plat.module.erp.controller.admin.erp.vo;
import com.zt.plat.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import static com.zt.plat.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
@Schema(description = "管理后台 - ERP库位分页 Request VO")
@Data
public class ErpWarehousePageReqVO extends PageParam {
@Schema(description = "工厂编码;将查询参数存入")
private String factoryNumber;
@Schema(description = "库位描述", example = "张三")
private String name;
@Schema(description = "创建时间")
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
private LocalDateTime[] createTime;
@Schema(description = "库位编码")
private String number;
}

View File

@@ -0,0 +1,35 @@
package com.zt.plat.module.erp.controller.admin.erp.vo;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import java.time.LocalDateTime;
@Schema(description = "管理后台 - ERP库位 Response VO")
@Data
@ExcelIgnoreUnannotated
public class ErpWarehouseRespVO {
@Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "16847")
@ExcelProperty("主键")
private Long id;
@Schema(description = "工厂编码;将查询参数存入")
@ExcelProperty("工厂编码;将查询参数存入")
private String factoryNumber;
@Schema(description = "库位描述", requiredMode = Schema.RequiredMode.REQUIRED, example = "张三")
@ExcelProperty("库位描述")
private String name;
@Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
@ExcelProperty("创建时间")
private LocalDateTime createTime;
@Schema(description = "库位编码", requiredMode = Schema.RequiredMode.REQUIRED)
@ExcelProperty("库位编码")
private String number;
}

View File

@@ -0,0 +1,25 @@
package com.zt.plat.module.erp.controller.admin.erp.vo;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import lombok.Data;
@Schema(description = "管理后台 - ERP库位新增/修改 Request VO")
@Data
public class ErpWarehouseSaveReqVO {
@Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "16847")
private Long id;
@Schema(description = "工厂编码;将查询参数存入")
private String factoryNumber;
@Schema(description = "库位描述", requiredMode = Schema.RequiredMode.REQUIRED, example = "张三")
@NotEmpty(message = "库位描述不能为空")
private String name;
@Schema(description = "库位编码", requiredMode = Schema.RequiredMode.REQUIRED)
@NotEmpty(message = "库位编码不能为空")
private String number;
}

View File

@@ -0,0 +1,110 @@
package com.zt.plat.module.erp.dal.dataobject.erp;
import com.zt.plat.framework.mybatis.core.dataobject.BaseDO;
import com.baomidou.mybatisplus.annotation.*;
import lombok.*;
import java.math.BigDecimal;
import java.time.LocalDateTime;
/**
* ERP资产卡片 DO
*
* @author 后台管理
*/
@TableName("sply_erp_ast")
@KeySequence("sply_erp_ast_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
@Data
@EqualsAndHashCode
@ToString(callSuper = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
/**
* 支持业务基类继承isBusiness=true 时继承 BusinessBaseDO否则继承 BaseDO
*/
public class ErpAssetDO{
/**
* 主键
*/
@TableId(type = IdType.ASSIGN_ID)
private Long id;
/**
* 公司编号
*/
@TableField("CPN_NUM")
private String companyNumber;
/**
* 资产主编码
*/
@TableField("MAIN_AST_NUM")
private String mainAssetNumber;
/**
* 记录创建日期
*/
@TableField("RCD_CRT_DT")
private LocalDateTime recordCreateDate;
/**
* 更改用户名
*/
@TableField("UPD_USER_NAME")
private String updateUserName;
/**
* 资产类编号
*/
@TableField("AST_TP_NUM")
private String assetTypeNumber;
/**
* 资产类描述
*/
@TableField("AST_TP_NAME")
private String assetTypeName;
/**
* 资产资本化日期
*/
@TableField("AST_DT")
private LocalDateTime assetDate;
/**
* 基本计量单位
*/
@TableField("UOM")
private String uom;
/**
* 数量
*/
@TableField("QTY")
private BigDecimal quantity;
/**
* 资产描述
*/
@TableField("AST_DSP")
private String assetDescription;
/**
* 附加资产描述
*/
@TableField("AST_DSP_ATT")
private String assetDescriptionAttach;
/**
* 折旧计算开始日期
*/
@TableField("DEPR_STRT_DT")
private LocalDateTime depreciationStartDate;
/**
* 计划年使用期
*/
@TableField("PLN_YR_DT")
private String planYearDate;
/**
* 成本中心编码
*/
@TableField("CCTR_NUM")
private String costcenterNumber;
/**
* 责任成本中心
*/
@TableField("DUTY_CCTR_NUM")
private String dutyCostcenterNumber;
}

View File

@@ -0,0 +1,67 @@
package com.zt.plat.module.erp.dal.dataobject.erp;
import com.zt.plat.framework.mybatis.core.dataobject.BaseDO;
import com.baomidou.mybatisplus.annotation.*;
import lombok.*;
import java.math.BigDecimal;
import java.util.List;
/**
* ERP物料清单(BOM) DO
*
* @author 后台管理
*/
@TableName("sply_erp_bm")
@KeySequence("sply_erp_bm_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
@Data
@EqualsAndHashCode
@ToString(callSuper = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
/**
* 支持业务基类继承isBusiness=true 时继承 BusinessBaseDO否则继承 BaseDO
*/
public class ErpBomDO {
/**
* 主键
*/
@TableId(type = IdType.ASSIGN_ID)
private Long id;
/**
* 工厂编码
*/
@TableField("FACT_NUM")
private String factoryNumber;
/**
* 顶层物料编码
*/
@TableField("UP_MTRL")
private String upMaterial;
/**
* 可选BOM
*/
@TableField("USE_ITM")
private String useItem;
/**
* 物料描述
*/
@TableField("MTRL_DSP")
private String materialDescription;
/**
* 基本数量
*/
@TableField("QTY")
private BigDecimal quantity;
/**
* 基本单位
*/
@TableField("UNT")
private String unit;
@TableField(fill = FieldFill.INSERT)
private List<ErpBomDetailDO> erpBomDetailDOList;
}

View File

@@ -0,0 +1,74 @@
package com.zt.plat.module.erp.dal.dataobject.erp;
import com.zt.plat.framework.mybatis.core.dataobject.BaseDO;
import com.baomidou.mybatisplus.annotation.*;
import lombok.*;
import java.math.BigDecimal;
/**
* ERP物料清单(BOM)明细 DO
*
* @author 后台管理
*/
@TableName("sply_erp_bm_dtl")
@KeySequence("sply_erp_bm_dtl_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
@Data
@EqualsAndHashCode
@ToString(callSuper = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
/**
* 支持业务基类继承isBusiness=true 时继承 BusinessBaseDO否则继承 BaseDO
*/
public class ErpBomDetailDO {
/**
* 主键
*/
@TableId(type = IdType.ASSIGN_ID)
private Long id;
/**
* BOM主键
*/
@TableField("BM_ID")
private String bomId;
/**
* ERP物料清单主键
*/
@TableField("ERP_BM_ID")
private String erpBomId;
/**
* 子项物料编码
*/
@TableField("CHD_MTRL_NUM")
private String childMaterialNumber;
/**
* 子项物料描述
*/
@TableField("CHD_MTRL_DSP")
private BigDecimal childMaterialDescription;
/**
* 子项类别
*/
@TableField("CTGR")
private String category;
/**
* 基本数量
*/
@TableField("QTY")
private BigDecimal quantity;
/**
* 基本单位
*/
@TableField("UNT")
private String unit;
/**
* 物料标识
*/
@TableField("IDE_TP")
private String identificationType;
}

View File

@@ -0,0 +1,49 @@
package com.zt.plat.module.erp.dal.dataobject.erp;
import com.baomidou.mybatisplus.annotation.*;
import lombok.*;
/**
* ERP公司 DO
*
* @author 后台管理
*/
@TableName("sply_erp_cpn")
@KeySequence("sply_erp_cpn_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
@Data
//@EqualsAndHashCode(callSuper = true)
@EqualsAndHashCode
@ToString(callSuper = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
/**
* 支持业务基类继承isBusiness=true 时继承 BusinessBaseDO否则继承 BaseDO
*/
//public class ErpCompanyDO extends BaseDO {
public class ErpCompanyDO{
/**
* 主键
*/
@TableId(type = IdType.ASSIGN_ID)
private Long id;
/**
* 公司名称
*/
@TableField("NAME")
private String name;
/**
* 公司编码;唯一
*/
@TableField("NUM")
private String number;
/**
* 本位币
*/
@TableField("CUR")
private String currency;
@TableField(exist = false)
private Integer TENANT_ID;
}

View File

@@ -0,0 +1,330 @@
package com.zt.plat.module.erp.dal.dataobject.erp;
import com.zt.plat.framework.mybatis.core.dataobject.BaseDO;
import com.baomidou.mybatisplus.annotation.*;
import lombok.*;
import java.math.BigDecimal;
import java.time.LocalDate;
/**
* ERP合同映射 DO
*
* @author 后台管理
*/
@TableName("bse_erp_ctrt")
@KeySequence("bse_erp_ctrt_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
/**
* 支持业务基类继承isBusiness=true 时继承 BusinessBaseDO否则继承 BaseDO
*/
public class ErpContractDO extends BaseDO {
/**
* 主键
*/
@TableId(type = IdType.ASSIGN_ID)
private Long id;
/**
* 操作标识
*/
@TableField("OPTN_ID")
private String operationId;
/**
* 合同主信息主键
*/
@TableField("CTRT_MAIN_ID")
private Long contractMainId;
/**
* 合同编号
*/
@TableField("CTRT_PPR_NUM")
private String contractPaperNumber;
/**
* 合同名称
*/
@TableField("CTRT_NAME")
private String contractName;
/**
* 合同类型编号
*/
@TableField("CTRT_TP_NUM")
private String contractTypeNumber;
/**
* 合同类型名称
*/
@TableField("CTRT_TP_NAME")
private String contractTypeName;
/**
* 合同类别
*/
@TableField("CTRT_CTGR")
private String contractCategory;
/**
* 是否虚拟合同
*/
@TableField("IS_VRTL_CTRT")
private String isVirtualContract;
/**
* 客户/供应商编号;SAP客商公司代码
*/
@TableField("SPLR_NUM")
private String supplierNumber;
/**
* 客户/供应商名称;SAP客商公司名称
*/
@TableField("SPLR_NAME")
private String supplierName;
/**
* 代理方;SAP客商公司代码
*/
@TableField("AGT")
private String agent;
/**
* 合同实施主体编号;SAP公司代码
*/
@TableField("CTRT_IMPL_NUM")
private String contractImplementNumber;
/**
* 合同签订主体编号;SAP公司代码
*/
@TableField("CTRT_SGN_NUM")
private String contractSignNumber;
/**
* 合同签订日期;格式YYYY-MM-DD
*/
@TableField("SGN_DT")
private LocalDate signDate;
/**
* 合同起始日期;格式YYYY-MM-DD长单合同长单合同起始日期 非长单:合同合同签订日期
*/
@TableField("STRT_DT")
private LocalDate startDate;
/**
* 合同终止日期;格式YYYY-MM-DD长单合同长单合同起始日期 非长单:合同合同签订日期
*/
@TableField("STOP_DT")
private LocalDate stopDate;
/**
* 币种编号
*/
@TableField("CUR")
private String currency;
/**
* 合同总金额(原币-含税);非长单合同:合同金额 长单合同默认1000000000000000.00
*/
@TableField("SRC_AMT")
private BigDecimal sourceAmount;
/**
* 合同总金额(本位币-含税);非长单合同:合同金额*合同的临时汇率 长单合同默认1000000000000000.00
*/
@TableField("BSC_AMT")
private BigDecimal basicAmount;
/**
* 变更后合同总金额(原币-含税);如果未做合同变更,金额等于合同总金额(原币-含税)
*/
@TableField("CHG_SRC_AMT")
private BigDecimal changeSourceAmount;
/**
* 变更后合同总金额(本位币-含税);如果未做合同变更,金额等于合同总金额(本位币-含税)
*/
@TableField("CHG_BSC_AMT")
private BigDecimal changeBasicAmount;
/**
* 合同状态编号
*/
@TableField("STS_NUM")
private String statusNumber;
/**
* 合同状态名称
*/
@TableField("STS_NAME")
private String statusName;
/**
* 是否有预付款;长单合同:否,非长单:取合同的预付款
*/
@TableField("IS_PPYM")
private String isPrepayment;
/**
* 预付款比例;有预付款则需要填写
*/
@TableField("PPYM_RTIO")
private BigDecimal prepaymentRatio;
/**
* 预付款金额;有预付款则需要填写(通过计算得出)
*/
@TableField("PPYM_AMT")
private BigDecimal prepaymentAmount;
/**
* 履约保证金-变更前(原币)
*/
@TableField("SRC_BFR_BND")
private BigDecimal sourceBeforeBond;
/**
* 履约保证金-变更前(本位币)
*/
@TableField("BSC_BFR_BND")
private BigDecimal basicBeforeBond;
/**
* 履约保证金-变更后(原币)
*/
@TableField("SRC_AFT_BND")
private BigDecimal sourceAfterBond;
/**
* 履约保证金-变更后(本位币)
*/
@TableField("BSC_AFT_BND")
private BigDecimal basicAfterBond;
/**
* 是否含质保金
*/
@TableField("IS_QUA_AMT")
private String isQualityassuranceAmount;
/**
* 质保金比例;有质保金则需要填写
*/
@TableField("QUA_RTIO")
private BigDecimal qualityassuranceRatio;
/**
* 质保金金额;有质保金则需要填写
*/
@TableField("QUA_AMT")
private BigDecimal qualityassuranceAmount;
/**
* 是否内部企业
*/
@TableField("IS_INTL")
private String isInternal;
/**
* 收支性质
*/
@TableField("NTR")
private String nature;
/**
* 备注信息;提交ERP
*/
@TableField("RMK")
private String remark;
/**
* 累计结算金额(原币-含税);暂定不传
*/
@TableField("SRC_ACC_STLM_AMT")
private BigDecimal sourceAccumulateSettlementAmount;
/**
* 累计结算金额(本位币-含税);暂定不传
*/
@TableField("BSC_ACC_STLM_AMT")
private BigDecimal basicAccumulateSettlementAmount;
/**
* 累计已收付款金额(原币-含税);暂定不传
*/
@TableField("SRC_USE_AMT")
private BigDecimal sourceUseAmount;
/**
* 累计已收付款金额(本位币-含税);暂定不传
*/
@TableField("BSC_USE_AMT")
private BigDecimal basicUseAmount;
/**
* 累计已开收票金额(原币-含税);暂定不传
*/
@TableField("SRC_INV_AMT")
private BigDecimal sourceInvoiceAmount;
/**
* 累计已开收票金额(本位币-含税);暂定不传
*/
@TableField("BSC_INV_AMT")
private BigDecimal basicInvoiceAmount;
/**
* 累计预付款金额(原币-含税);暂定不传
*/
@TableField("SRC_ACC_PPYM")
private BigDecimal sourceAccumulatePrepayment;
/**
* 累计预付款金额(本位币-含税);暂定不传
*/
@TableField("BSC_ACC_PPYM")
private BigDecimal basicAccumulatePrepayment;
/**
* 履约保证金累计付款金额(原币);暂定不传
*/
@TableField("SRC_ACC_BND")
private BigDecimal sourceAccumulateBond;
/**
* 履约保证金累计付款金额(本位币);暂定不传
*/
@TableField("BSC_ACC_BND")
private BigDecimal basicAccumulateBond;
/**
* 履约保证金累计收款金额(原币);暂定不传
*/
@TableField("SRC_ACC_AMT")
private BigDecimal sourceAccumulateAmount;
/**
* 履约保证金累计收款金额(本位币);暂定不传
*/
@TableField("BSC_ACC_AMT")
private BigDecimal basicAccumulateAmount;
/**
* 是否框架合同;如果为是,合同总金额(本币)、合同总金额(原币)、变更后合同总金额(原币-含税)、变更后合同总金额(本位币-含税赋默认值为1000000000000000.00
*/
@TableField("IS_FMWK")
private String isFramework;
/**
* 境内/境外
*/
@TableField("IS_DOM")
private String isDomestic;
/**
* 建筑服务发生地;销售合同且类型为SAP02COSR必填
*/
@TableField("ARCH_SVC_PLCE")
private String architectureServicePlace;
/**
* 达到收款条件金额;销售合同且类型为SAP02COSR必填
*/
@TableField("PYEE_CND_AMT")
private BigDecimal payeeConditionAmount;
/**
* 公司编号
*/
@TableField("COMPANY_ID")
private Long companyId;
/**
* 公司名称
*/
@TableField("COMPANY_NAME")
private String companyName;
/**
* 部门编号
*/
@TableField("DEPT_ID")
private Long deptId;
/**
* 部门名称
*/
@TableField("DEPT_NAME")
private String deptName;
/**
* 岗位编号
*/
@TableField("POST_ID")
private Long postId;
/**
* 创建者
*/
@TableField("CREATOR_NAME")
private String creatorName;
/**
* 更新者
*/
@TableField("UPDATER_NAME")
private String updaterName;
}

View File

@@ -0,0 +1,69 @@
package com.zt.plat.module.erp.dal.dataobject.erp;
import com.zt.plat.framework.mybatis.core.dataobject.BaseDO;
import com.baomidou.mybatisplus.annotation.*;
import lombok.*;
import java.time.LocalDateTime;
/**
* ERP成本中心 DO
*
* @author 后台管理
*/
@TableName("sply_erp_cctr")
@KeySequence("sply_erp_cctr_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
@Data
@EqualsAndHashCode
@ToString(callSuper = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
/**
* 支持业务基类继承isBusiness=true 时继承 BusinessBaseDO否则继承 BaseDO
*/
public class ErpCostcenterDO {
/**
* 主键
*/
@TableId(type = IdType.ASSIGN_ID)
private Long id;
/**
* 成本中心编码
*/
@TableField("NUM")
private String number;
/**
* 成本中心描述
*/
@TableField("NAME")
private String name;
/**
* 工区必填;使用这个基础数据是如果为X时必须和工区使用
*/
@TableField("IS_USE")
private String isUse;
/**
* 功能范围
*/
@TableField("SCO_NUM")
private String scopeNumber;
/**
* 功能范围描述
*/
@TableField("SCO_NAME")
private String scopeName;
/**
* 起始日期
*/
@TableField("STRT_DT")
private LocalDateTime startDate;
/**
* 截止日期
*/
@TableField("END_DT")
private LocalDateTime endDate;
}

View File

@@ -0,0 +1,83 @@
package com.zt.plat.module.erp.dal.dataobject.erp;
import com.baomidou.mybatisplus.annotation.*;
import lombok.*;
import java.time.LocalDateTime;
/**
* ERP客商主数据 DO
*
* @author 后台管理
*/
@TableName("sply_erp_cstm")
@KeySequence("sply_erp_cstm_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
@Data
//@EqualsAndHashCode(callSuper = true)
@EqualsAndHashCode
@ToString(callSuper = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
/**
* 支持业务基类继承isBusiness=true 时继承 BusinessBaseDO否则继承 BaseDO
*/
//public class ErpCustomerDO extends BaseDO {
public class ErpCustomerDO{
/**
* 主键
*/
@TableId(type = IdType.ASSIGN_ID)
private Long id;
/**
* 编码
*/
@TableField("NUM")
private String number;
/**
* 名称
*/
@TableField("NAME")
private String name;
/**
* 账户组
*/
@TableField("ACCT_GRP")
private String accountGroup;
/**
* 简称
*/
@TableField("DSP")
private String description;
/**
* 中铝编号
*/
@TableField("CTR_NUM")
private String centerNumber;
/**
* 创建日期
*/
@TableField("CRT_DT")
private LocalDateTime createDate;
/**
* 修改日期
*/
@TableField("RPR_DT")
private LocalDateTime repairDate;
/**
* 归档标识
*/
@TableField("IS_GIV")
private String isGiveback;
/**
* 冻结标识
*/
@TableField("IS_PRVS")
private String isProvisional;
@TableField(exist = false)
private Integer TENANT_ID;
}

View File

@@ -0,0 +1,47 @@
package com.zt.plat.module.erp.dal.dataobject.erp;
import com.zt.plat.framework.mybatis.core.dataobject.BaseDO;
import com.baomidou.mybatisplus.annotation.*;
import lombok.*;
/**
* ERP工厂 DO
*
* @author 后台管理
*/
@TableName("sply_erp_fact")
@KeySequence("sply_erp_fact_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
@Data
@EqualsAndHashCode
@ToString(callSuper = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
/**
* 支持业务基类继承isBusiness=true 时继承 BusinessBaseDO否则继承 BaseDO
*/
public class ErpFactoryDO {
/**
* 主键
*/
@TableId(type = IdType.ASSIGN_ID)
private Long id;
/**
* 工厂名称
*/
@TableField("NAME")
private String name;
/**
* 工厂编码
*/
@TableField("NUM")
private String number;
/**
* 公司编号
*/
@TableField("CPN_ID")
private String companyId;
}

View File

@@ -0,0 +1,57 @@
package com.zt.plat.module.erp.dal.dataobject.erp;
import com.zt.plat.framework.mybatis.core.dataobject.BaseDO;
import com.baomidou.mybatisplus.annotation.*;
import lombok.*;
/**
* ERP内部订单 DO
*
* @author 后台管理
*/
@TableName("sply_erp_intl_ord")
@KeySequence("sply_erp_intl_ord_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
@Data
@EqualsAndHashCode
@ToString(callSuper = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
/**
* 支持业务基类继承isBusiness=true 时继承 BusinessBaseDO否则继承 BaseDO
*/
public class ErpInternalOrderDO {
/**
* 主键
*/
@TableId(type = IdType.ASSIGN_ID)
private Long id;
/**
* 内部订单编号
*/
@TableField("NUM")
private String number;
/**
* 内部订单描述
*/
@TableField("NAME")
private String name;
/**
* 内部订单类型
*/
@TableField("TP")
private String type;
/**
* 是否已关闭;使用这个基础数据是如果为X时必须和工区使用
*/
@TableField("IS_OFF")
private String isOff;
/**
* 是否已完成
*/
@TableField("IS_FIN")
private String isFinish;
}

View File

@@ -0,0 +1,103 @@
package com.zt.plat.module.erp.dal.dataobject.erp;
import com.baomidou.mybatisplus.annotation.*;
import lombok.*;
import java.time.LocalDateTime;
/**
* ERP物料数据 DO
*
* @author 后台管理
*/
@TableName("sply_erp_mtrl")
@KeySequence("sply_erp_mtrl_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
@Data
//@EqualsAndHashCode(callSuper = true)
@EqualsAndHashCode
@ToString(callSuper = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
/**
* 支持业务基类继承isBusiness=true 时继承 BusinessBaseDO否则继承 BaseDO
*/
//public class ErpMaterialDO extends BaseDO {
public class ErpMaterialDO {
/**
* 主键
*/
@TableId(type = IdType.ASSIGN_ID)
private Long id;
/**
* 中铜物料编码;系统使用时使用该编码
*/
@TableField("DOWN_CTR_NUM")
private String downCenterNumber;
/**
* 中铝物料编码
*/
@TableField("CTR_NUM")
private String centerNumber;
/**
* 创建日期
*/
@TableField("CRT_DT")
private LocalDateTime createDate;
/**
* 物料类型
*/
@TableField("MTRL_TP")
private String materialType;
/**
* 物料大类组
*/
@TableField("MTRL_GRP_DT")
private String materialGroupDate;
/**
* 外部物料小类组
*/
@TableField("EXT_MTRL_GRP_DT")
private String externalMaterialGroupDate;
/**
* 计量单位编码
*/
@TableField("UNT")
private String unit;
/**
* 计量单位描述
*/
@TableField("UNT_DSP")
private String unitDescription;
/**
* 物料类型描述
*/
@TableField("MTRL_TP_DSP")
private String materialTypeDescription;
/**
* 物料组描述
*/
@TableField("MTRL_GRP_DSP")
private String materialGroupDescription;
/**
* 外部物料小类组描述
*/
@TableField("EXT_MTRL_GRP_DSP")
private String externalMaterialGroupDescription;
/**
* 物料名称
*/
@TableField("MTRL_NAME")
private String materialName;
/**
* 物料长描述
*/
@TableField("MTRL_LEN_DSP")
private String materialLengthDescription;
@TableField(exist = false)
private Integer TENANT_ID;
}

View File

@@ -0,0 +1,79 @@
package com.zt.plat.module.erp.dal.dataobject.erp;
import com.zt.plat.framework.mybatis.core.dataobject.BaseDO;
import com.baomidou.mybatisplus.annotation.*;
import lombok.*;
import java.math.BigDecimal;
/**
* ERP工艺路线 DO
*
* @author 后台管理
*/
@TableName("sply_erp_prcs")
@KeySequence("sply_erp_prcs_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
@Data
@EqualsAndHashCode
@ToString(callSuper = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
/**
* 支持业务基类继承isBusiness=true 时继承 BusinessBaseDO否则继承 BaseDO
*/
public class ErpProcessDO {
/**
* 主键
*/
@TableId(type = IdType.ASSIGN_ID)
private Long id;
/**
* 工厂编码
*/
@TableField("FACT_NUM")
private BigDecimal factoryNumber;
/**
* 物料编码
*/
@TableField("MTRL_NUM")
private String materialNumber;
/**
* 物料描述
*/
@TableField("MTRL_NAME")
private String materialName;
/**
* 工艺路线组
*/
@TableField("BLN_GRP")
private String blineGroup;
/**
* 组计数器
*/
@TableField("GRP_CNT")
private Long groupCount;
/**
* 工艺路线描述
*/
@TableField("BLN_DSP")
private String blineDescription;
/**
* 计量单位
*/
@TableField("UOM")
private String uom;
/**
* 用途
*/
@TableField("USE_DSP")
private String useDescription;
/**
* 状态
*/
@TableField("STS")
private String status;
}

View File

@@ -0,0 +1,64 @@
package com.zt.plat.module.erp.dal.dataobject.erp;
import com.zt.plat.framework.mybatis.core.dataobject.BaseDO;
import com.baomidou.mybatisplus.annotation.*;
import lombok.*;
import java.math.BigDecimal;
/**
* ERP工艺路线明细 DO
*
* @author 后台管理
*/
@TableName("sply_erp_prcs_dtl")
@KeySequence("sply_erp_prcs_dtl_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
@Data
@EqualsAndHashCode
@ToString(callSuper = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
/**
* 支持业务基类继承isBusiness=true 时继承 BusinessBaseDO否则继承 BaseDO
*/
public class ErpProcessDetailDO {
/**
* 主键
*/
@TableId(type = IdType.ASSIGN_ID)
private Long id;
/**
* ERP工艺路线主键
*/
@TableField("PRCS_ID")
private String processId;
/**
* 工序编码
*/
@TableField("PROC_NUM")
private BigDecimal processingNumber;
/**
* 工序描述
*/
@TableField("PROC_NAME")
private String processingName;
/**
* 作业的计量单位
*/
@TableField("UOM")
private String uom;
/**
* 工作中心编号
*/
@TableField("WRK_CTR_NUM")
private String workCenterNumber;
/**
* 工作中心描述
*/
@TableField("WRK_CTR_NAME")
private String workCenterName;
}

View File

@@ -0,0 +1,119 @@
package com.zt.plat.module.erp.dal.dataobject.erp;
import com.zt.plat.framework.mybatis.core.dataobject.BaseDO;
import com.baomidou.mybatisplus.annotation.*;
import lombok.*;
import java.time.LocalDateTime;
/**
* ERP生产订单 DO
*
* @author 后台管理
*/
@TableName("sply_erp_pdtv_ord")
@KeySequence("sply_erp_pdtv_ord_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
@Data
@EqualsAndHashCode
@ToString(callSuper = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
/**
* 支持业务基类继承isBusiness=true 时继承 BusinessBaseDO否则继承 BaseDO
*/
public class ErpProductiveOrderDO{
/**
* 主键
*/
@TableId(type = IdType.ASSIGN_ID)
private Long id;
/**
* 公司编号
*/
@TableField("CPN_NUM")
private String companyNumber;
/**
* 工厂编码
*/
@TableField("FACT_NUM")
private String factoryNumber;
/**
* 工厂名称
*/
@TableField("FACT_NAME")
private String factoryName;
/**
* 订单编号
*/
@TableField("ORD_NUM")
private String orderNumber;
/**
* 基本开始日期
*/
@TableField("STRT_DT")
private LocalDateTime startDate;
/**
* 基本完成日期
*/
@TableField("END_DT")
private LocalDateTime endDate;
/**
* 主产品物料编号
*/
@TableField("MAIN_MTRL_NUM")
private String mainMaterialNumber;
/**
* 计量单位
*/
@TableField("UNT")
private String unit;
/**
* 物料描述
*/
@TableField("MTRL_DSP")
private String materialDescription;
/**
* 工序列表
*/
@TableField("PROC_LIST")
private String processingList;
/**
* 工序编号
*/
@TableField("PROC_NUM")
private String processingNumber;
/**
* 工序描述
*/
@TableField("PROC_DSP")
private String processingDescription;
/**
* 对象编号
*/
@TableField("OBJ_NUM")
private String objectNumber;
/**
* 工作中心编码
*/
@TableField("WRK_CTR_NUM")
private String workCenterNumber;
/**
* 工作中心描述
*/
@TableField("WRK_CTR_DSP")
private String workCenterDescription;
/**
* 成本中心编码
*/
@TableField("CCTR_NUM")
private String costcenterNumber;
/**
* 成本中心描述
*/
@TableField("CCTR_NAME")
private String costcenterName;
}

View File

@@ -0,0 +1,69 @@
package com.zt.plat.module.erp.dal.dataobject.erp;
import com.zt.plat.framework.mybatis.core.dataobject.BaseDO;
import com.baomidou.mybatisplus.annotation.*;
import lombok.*;
import java.math.BigDecimal;
/**
* ERP生产版本 DO
*
* @author 后台管理
*/
@TableName("sply_erp_pdtv_ver")
@KeySequence("sply_erp_pdtv_ver_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
@Data
@EqualsAndHashCode
@ToString(callSuper = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
/**
* 支持业务基类继承isBusiness=true 时继承 BusinessBaseDO否则继承 BaseDO
*/
public class ErpProductiveVersionDO {
/**
* 主键
*/
@TableId(type = IdType.ASSIGN_ID)
private Long id;
/**
* 工厂编码
*/
@TableField("FACT_NUM")
private BigDecimal factoryNumber;
/**
* 物料编码
*/
@TableField("MTRL_NUM")
private String materialNumber;
/**
* 生产版本编码
*/
@TableField("PDTV_VER_NUM")
private String productiveVersionNumber;
/**
* 生产版本描述
*/
@TableField("PDTV_VER_NAME")
private String productiveVersionName;
/**
* 备选BOM编号
*/
@TableField("BM_NUM")
private String bomNumber;
/**
* 工艺路线组
*/
@TableField("BLN_GRP")
private String blineGroup;
/**
* 组计数器
*/
@TableField("GRP_CNT")
private Long groupCount;
}

View File

@@ -0,0 +1,47 @@
package com.zt.plat.module.erp.dal.dataobject.erp;
import com.zt.plat.framework.mybatis.core.dataobject.BaseDO;
import com.baomidou.mybatisplus.annotation.*;
import lombok.*;
/**
* ERP采购组织 DO
*
* @author 后台管理
*/
@TableName("sply_erp_prch_orgz")
@KeySequence("sply_erp_prch_orgz_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
@Data
@EqualsAndHashCode
@ToString(callSuper = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
/**
* 支持业务基类继承isBusiness=true 时继承 BusinessBaseDO否则继承 BaseDO
*/
public class ErpPurchaseOrganizationDO {
/**
* 主键
*/
@TableId(type = IdType.ASSIGN_ID)
private Long id;
/**
* 采购组织编号
*/
@TableField("NUM")
private String number;
/**
* 采购组织描述
*/
@TableField("NAME")
private String name;
/**
* 公司编码;存入ERP公司编码
*/
@TableField("CPN_NUM")
private String companyNumber;
}

View File

@@ -0,0 +1,47 @@
package com.zt.plat.module.erp.dal.dataobject.erp;
import com.zt.plat.framework.mybatis.core.dataobject.BaseDO;
import com.baomidou.mybatisplus.annotation.*;
import lombok.*;
/**
* ERP销售组织 DO
*
* @author 后台管理
*/
@TableName("sply_erp_sale_orgz")
@KeySequence("sply_erp_sale_orgz_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
@Data
@EqualsAndHashCode
@ToString(callSuper = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
/**
* 支持业务基类继承isBusiness=true 时继承 BusinessBaseDO否则继承 BaseDO
*/
public class ErpSalesOrganizationDO {
/**
* 主键
*/
@TableId(type = IdType.ASSIGN_ID)
private Long id;
/**
* 销售组织编号
*/
@TableField("NUM")
private String number;
/**
* 销售组织描述
*/
@TableField("NAME")
private String name;
/**
* 公司编码;存入ERP公司编码
*/
@TableField("CPN_NUM")
private String companyNumber;
}

View File

@@ -0,0 +1,72 @@
package com.zt.plat.module.erp.dal.dataobject.erp;
import com.zt.plat.framework.mybatis.core.dataobject.BaseDO;
import com.baomidou.mybatisplus.annotation.*;
import lombok.*;
/**
* ERP库位 DO
*
* @author 后台管理
*/
@TableName("sply_erp_wrh")
@KeySequence("sply_erp_wrh_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
/**
* 支持业务基类继承isBusiness=true 时继承 BusinessBaseDO否则继承 BaseDO
*/
public class ErpWarehouseDO extends BaseDO {
/**
* 主键
*/
@TableId(type = IdType.ASSIGN_ID)
private Long id;
/**
* 工厂编码;将查询参数存入
*/
@TableField("FACT_NUM")
private String factoryNumber;
/**
* 库位描述
*/
@TableField("NAME")
private String name;
/**
* 公司编号
*/
@TableField("COMPANY_ID")
private Long companyId;
/**
* 公司名称
*/
@TableField("COMPANY_NAME")
private String companyName;
/**
* 部门编号
*/
@TableField("DEPT_ID")
private Long deptId;
/**
* 部门名称
*/
@TableField("DEPT_NAME")
private String deptName;
/**
* 岗位编号
*/
@TableField("POST_ID")
private Long postId;
/**
* 库位编码
*/
@TableField("NUM")
private String number;
}

View File

@@ -0,0 +1,38 @@
package com.zt.plat.module.erp.dal.mysql.erp;
import com.zt.plat.framework.common.pojo.PageResult;
import com.zt.plat.framework.mybatis.core.mapper.BaseMapperX;
import com.zt.plat.framework.mybatis.core.query.LambdaQueryWrapperX;
import com.zt.plat.module.erp.controller.admin.erp.vo.ErpAssetPageReqVO;
import com.zt.plat.module.erp.dal.dataobject.erp.ErpAssetDO;
import org.apache.ibatis.annotations.Mapper;
/**
* ERP资产卡片 Mapper
*
* @author 后台管理
*/
@Mapper
public interface ErpAssetMapper extends BaseMapperX<ErpAssetDO> {
default PageResult<ErpAssetDO> selectPage(ErpAssetPageReqVO reqVO) {
return selectPage(reqVO, new LambdaQueryWrapperX<ErpAssetDO>()
.eqIfPresent(ErpAssetDO::getCompanyNumber, reqVO.getCompanyNumber())
.eqIfPresent(ErpAssetDO::getMainAssetNumber, reqVO.getMainAssetNumber())
.betweenIfPresent(ErpAssetDO::getRecordCreateDate, reqVO.getRecordCreateDate())
.likeIfPresent(ErpAssetDO::getUpdateUserName, reqVO.getUpdateUserName())
.eqIfPresent(ErpAssetDO::getAssetTypeNumber, reqVO.getAssetTypeNumber())
.likeIfPresent(ErpAssetDO::getAssetTypeName, reqVO.getAssetTypeName())
.betweenIfPresent(ErpAssetDO::getAssetDate, reqVO.getAssetDate())
.eqIfPresent(ErpAssetDO::getUom, reqVO.getUom())
.eqIfPresent(ErpAssetDO::getQuantity, reqVO.getQuantity())
.eqIfPresent(ErpAssetDO::getAssetDescription, reqVO.getAssetDescription())
.eqIfPresent(ErpAssetDO::getAssetDescriptionAttach, reqVO.getAssetDescriptionAttach())
.betweenIfPresent(ErpAssetDO::getDepreciationStartDate, reqVO.getDepreciationStartDate())
.eqIfPresent(ErpAssetDO::getPlanYearDate, reqVO.getPlanYearDate())
.eqIfPresent(ErpAssetDO::getCostcenterNumber, reqVO.getCostcenterNumber())
.eqIfPresent(ErpAssetDO::getDutyCostcenterNumber, reqVO.getDutyCostcenterNumber())
.orderByDesc(ErpAssetDO::getId));
}
}

View File

@@ -0,0 +1,31 @@
package com.zt.plat.module.erp.dal.mysql.erp;
import com.zt.plat.framework.common.pojo.PageResult;
import com.zt.plat.framework.mybatis.core.mapper.BaseMapperX;
import com.zt.plat.framework.mybatis.core.query.LambdaQueryWrapperX;
import com.zt.plat.module.erp.controller.admin.erp.vo.ErpBomDetailPageReqVO;
import com.zt.plat.module.erp.dal.dataobject.erp.ErpBomDetailDO;
import org.apache.ibatis.annotations.Mapper;
/**
* ERP物料清单(BOM)明细 Mapper
*
* @author 后台管理
*/
@Mapper
public interface ErpBomDetailMapper extends BaseMapperX<ErpBomDetailDO> {
default PageResult<ErpBomDetailDO> selectPage(ErpBomDetailPageReqVO reqVO) {
return selectPage(reqVO, new LambdaQueryWrapperX<ErpBomDetailDO>()
.eqIfPresent(ErpBomDetailDO::getBomId, reqVO.getBomId())
.eqIfPresent(ErpBomDetailDO::getErpBomId, reqVO.getErpBomId())
.eqIfPresent(ErpBomDetailDO::getChildMaterialNumber, reqVO.getChildMaterialNumber())
.eqIfPresent(ErpBomDetailDO::getChildMaterialDescription, reqVO.getChildMaterialDescription())
.eqIfPresent(ErpBomDetailDO::getCategory, reqVO.getCategory())
.eqIfPresent(ErpBomDetailDO::getQuantity, reqVO.getQuantity())
.eqIfPresent(ErpBomDetailDO::getUnit, reqVO.getUnit())
.eqIfPresent(ErpBomDetailDO::getIdentificationType, reqVO.getIdentificationType())
.orderByDesc(ErpBomDetailDO::getId));
}
}

View File

@@ -0,0 +1,29 @@
package com.zt.plat.module.erp.dal.mysql.erp;
import com.zt.plat.framework.common.pojo.PageResult;
import com.zt.plat.framework.mybatis.core.mapper.BaseMapperX;
import com.zt.plat.framework.mybatis.core.query.LambdaQueryWrapperX;
import com.zt.plat.module.erp.controller.admin.erp.vo.ErpBomPageReqVO;
import com.zt.plat.module.erp.dal.dataobject.erp.ErpBomDO;
import org.apache.ibatis.annotations.Mapper;
/**
* ERP物料清单(BOM) Mapper
*
* @author 后台管理
*/
@Mapper
public interface ErpBomMapper extends BaseMapperX<ErpBomDO> {
default PageResult<ErpBomDO> selectPage(ErpBomPageReqVO reqVO) {
return selectPage(reqVO, new LambdaQueryWrapperX<ErpBomDO>()
.eqIfPresent(ErpBomDO::getFactoryNumber, reqVO.getFactoryNumber())
.eqIfPresent(ErpBomDO::getUpMaterial, reqVO.getUpMaterial())
.eqIfPresent(ErpBomDO::getUseItem, reqVO.getUseItem())
.eqIfPresent(ErpBomDO::getMaterialDescription, reqVO.getMaterialDescription())
.eqIfPresent(ErpBomDO::getQuantity, reqVO.getQuantity())
.eqIfPresent(ErpBomDO::getUnit, reqVO.getUnit())
.orderByDesc(ErpBomDO::getId));
}
}

View File

@@ -0,0 +1,26 @@
package com.zt.plat.module.erp.dal.mysql.erp;
import com.zt.plat.framework.common.pojo.PageResult;
import com.zt.plat.framework.mybatis.core.mapper.BaseMapperX;
import com.zt.plat.framework.mybatis.core.query.LambdaQueryWrapperX;
import com.zt.plat.module.erp.controller.admin.erp.vo.ErpCompanyPageReqVO;
import com.zt.plat.module.erp.dal.dataobject.erp.ErpCompanyDO;
import org.apache.ibatis.annotations.Mapper;
/**
* ERP公司 Mapper
*
* @author 后台管理
*/
@Mapper
public interface ErpCompanyMapper extends BaseMapperX<ErpCompanyDO> {
default PageResult<ErpCompanyDO> selectPage(ErpCompanyPageReqVO reqVO) {
return selectPage(reqVO, new LambdaQueryWrapperX<ErpCompanyDO>()
.likeIfPresent(ErpCompanyDO::getName, reqVO.getName())
.eqIfPresent(ErpCompanyDO::getNumber, reqVO.getNumber())
.eqIfPresent(ErpCompanyDO::getCurrency, reqVO.getCurrency())
.orderByDesc(ErpCompanyDO::getId));
}
}

View File

@@ -0,0 +1,76 @@
package com.zt.plat.module.erp.dal.mysql.erp;
import com.zt.plat.framework.common.pojo.PageResult;
import com.zt.plat.framework.mybatis.core.mapper.BaseMapperX;
import com.zt.plat.framework.mybatis.core.query.LambdaQueryWrapperX;
import com.zt.plat.module.erp.controller.admin.erp.vo.ErpContractPageReqVO;
import com.zt.plat.module.erp.dal.dataobject.erp.ErpContractDO;
import org.apache.ibatis.annotations.Mapper;
/**
* ERP合同映射 Mapper
*
* @author 后台管理
*/
@Mapper
public interface ErpContractMapper extends BaseMapperX<ErpContractDO> {
default PageResult<ErpContractDO> selectPage(ErpContractPageReqVO reqVO) {
return selectPage(reqVO, new LambdaQueryWrapperX<ErpContractDO>()
.eqIfPresent(ErpContractDO::getOperationId, reqVO.getOperationId())
.eqIfPresent(ErpContractDO::getContractMainId, reqVO.getContractMainId())
.eqIfPresent(ErpContractDO::getContractPaperNumber, reqVO.getContractPaperNumber())
.likeIfPresent(ErpContractDO::getContractName, reqVO.getContractName())
.eqIfPresent(ErpContractDO::getContractTypeNumber, reqVO.getContractTypeNumber())
.likeIfPresent(ErpContractDO::getContractTypeName, reqVO.getContractTypeName())
.eqIfPresent(ErpContractDO::getContractCategory, reqVO.getContractCategory())
.eqIfPresent(ErpContractDO::getIsVirtualContract, reqVO.getIsVirtualContract())
.eqIfPresent(ErpContractDO::getSupplierNumber, reqVO.getSupplierNumber())
.likeIfPresent(ErpContractDO::getSupplierName, reqVO.getSupplierName())
.eqIfPresent(ErpContractDO::getAgent, reqVO.getAgent())
.eqIfPresent(ErpContractDO::getContractImplementNumber, reqVO.getContractImplementNumber())
.eqIfPresent(ErpContractDO::getContractSignNumber, reqVO.getContractSignNumber())
.betweenIfPresent(ErpContractDO::getSignDate, reqVO.getSignDate())
.betweenIfPresent(ErpContractDO::getStartDate, reqVO.getStartDate())
.betweenIfPresent(ErpContractDO::getStopDate, reqVO.getStopDate())
.eqIfPresent(ErpContractDO::getCurrency, reqVO.getCurrency())
.eqIfPresent(ErpContractDO::getSourceAmount, reqVO.getSourceAmount())
.eqIfPresent(ErpContractDO::getBasicAmount, reqVO.getBasicAmount())
.eqIfPresent(ErpContractDO::getChangeSourceAmount, reqVO.getChangeSourceAmount())
.eqIfPresent(ErpContractDO::getChangeBasicAmount, reqVO.getChangeBasicAmount())
.eqIfPresent(ErpContractDO::getStatusNumber, reqVO.getStatusNumber())
.likeIfPresent(ErpContractDO::getStatusName, reqVO.getStatusName())
.eqIfPresent(ErpContractDO::getIsPrepayment, reqVO.getIsPrepayment())
.eqIfPresent(ErpContractDO::getPrepaymentRatio, reqVO.getPrepaymentRatio())
.eqIfPresent(ErpContractDO::getPrepaymentAmount, reqVO.getPrepaymentAmount())
.eqIfPresent(ErpContractDO::getSourceBeforeBond, reqVO.getSourceBeforeBond())
.eqIfPresent(ErpContractDO::getBasicBeforeBond, reqVO.getBasicBeforeBond())
.eqIfPresent(ErpContractDO::getSourceAfterBond, reqVO.getSourceAfterBond())
.eqIfPresent(ErpContractDO::getBasicAfterBond, reqVO.getBasicAfterBond())
.eqIfPresent(ErpContractDO::getIsQualityassuranceAmount, reqVO.getIsQualityassuranceAmount())
.eqIfPresent(ErpContractDO::getQualityassuranceRatio, reqVO.getQualityassuranceRatio())
.eqIfPresent(ErpContractDO::getQualityassuranceAmount, reqVO.getQualityassuranceAmount())
.eqIfPresent(ErpContractDO::getIsInternal, reqVO.getIsInternal())
.eqIfPresent(ErpContractDO::getNature, reqVO.getNature())
.eqIfPresent(ErpContractDO::getRemark, reqVO.getRemark())
.eqIfPresent(ErpContractDO::getSourceAccumulateSettlementAmount, reqVO.getSourceAccumulateSettlementAmount())
.eqIfPresent(ErpContractDO::getBasicAccumulateSettlementAmount, reqVO.getBasicAccumulateSettlementAmount())
.eqIfPresent(ErpContractDO::getSourceUseAmount, reqVO.getSourceUseAmount())
.eqIfPresent(ErpContractDO::getBasicUseAmount, reqVO.getBasicUseAmount())
.eqIfPresent(ErpContractDO::getSourceInvoiceAmount, reqVO.getSourceInvoiceAmount())
.eqIfPresent(ErpContractDO::getBasicInvoiceAmount, reqVO.getBasicInvoiceAmount())
.eqIfPresent(ErpContractDO::getSourceAccumulatePrepayment, reqVO.getSourceAccumulatePrepayment())
.eqIfPresent(ErpContractDO::getBasicAccumulatePrepayment, reqVO.getBasicAccumulatePrepayment())
.eqIfPresent(ErpContractDO::getSourceAccumulateBond, reqVO.getSourceAccumulateBond())
.eqIfPresent(ErpContractDO::getBasicAccumulateBond, reqVO.getBasicAccumulateBond())
.eqIfPresent(ErpContractDO::getSourceAccumulateAmount, reqVO.getSourceAccumulateAmount())
.eqIfPresent(ErpContractDO::getBasicAccumulateAmount, reqVO.getBasicAccumulateAmount())
.eqIfPresent(ErpContractDO::getIsFramework, reqVO.getIsFramework())
.eqIfPresent(ErpContractDO::getIsDomestic, reqVO.getIsDomestic())
.eqIfPresent(ErpContractDO::getArchitectureServicePlace, reqVO.getArchitectureServicePlace())
.eqIfPresent(ErpContractDO::getPayeeConditionAmount, reqVO.getPayeeConditionAmount())
.betweenIfPresent(ErpContractDO::getCreateTime, reqVO.getCreateTime())
.orderByDesc(ErpContractDO::getId));
}
}

View File

@@ -0,0 +1,30 @@
package com.zt.plat.module.erp.dal.mysql.erp;
import com.zt.plat.framework.common.pojo.PageResult;
import com.zt.plat.framework.mybatis.core.mapper.BaseMapperX;
import com.zt.plat.framework.mybatis.core.query.LambdaQueryWrapperX;
import com.zt.plat.module.erp.controller.admin.erp.vo.ErpCostcenterPageReqVO;
import com.zt.plat.module.erp.dal.dataobject.erp.ErpCostcenterDO;
import org.apache.ibatis.annotations.Mapper;
/**
* ERP成本中心 Mapper
*
* @author 后台管理
*/
@Mapper
public interface ErpCostcenterMapper extends BaseMapperX<ErpCostcenterDO> {
default PageResult<ErpCostcenterDO> selectPage(ErpCostcenterPageReqVO reqVO) {
return selectPage(reqVO, new LambdaQueryWrapperX<ErpCostcenterDO>()
.eqIfPresent(ErpCostcenterDO::getNumber, reqVO.getNumber())
.likeIfPresent(ErpCostcenterDO::getName, reqVO.getName())
.eqIfPresent(ErpCostcenterDO::getIsUse, reqVO.getIsUse())
.eqIfPresent(ErpCostcenterDO::getScopeNumber, reqVO.getScopeNumber())
.likeIfPresent(ErpCostcenterDO::getScopeName, reqVO.getScopeName())
.betweenIfPresent(ErpCostcenterDO::getStartDate, reqVO.getStartDate())
.betweenIfPresent(ErpCostcenterDO::getEndDate, reqVO.getEndDate())
.orderByDesc(ErpCostcenterDO::getId));
}
}

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