Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
@@ -114,8 +114,8 @@ zt:
|
|||||||
- ${spring.boot.admin.context-path}/** # 不处理 Spring Boot Admin 的请求
|
- ${spring.boot.admin.context-path}/** # 不处理 Spring Boot Admin 的请求
|
||||||
- ${management.endpoints.web.base-path}/** # 不处理 Actuator 的请求
|
- ${management.endpoints.web.base-path}/** # 不处理 Actuator 的请求
|
||||||
swagger:
|
swagger:
|
||||||
title: 管理后台
|
title: Base 模块
|
||||||
description: 提供管理员管理的所有功能
|
description: 提供基础管理模块的所有功能
|
||||||
version: ${zt.info.version}
|
version: ${zt.info.version}
|
||||||
tenant: # 多租户相关配置项
|
tenant: # 多租户相关配置项
|
||||||
enable: true
|
enable: true
|
||||||
|
|||||||
6
pom.xml
6
pom.xml
@@ -211,6 +211,12 @@
|
|||||||
<config.namespace>liss</config.namespace>
|
<config.namespace>liss</config.namespace>
|
||||||
</properties>
|
</properties>
|
||||||
</profile>
|
</profile>
|
||||||
|
<profile>
|
||||||
|
<id>qsj</id>
|
||||||
|
<properties>
|
||||||
|
<config.namespace>qsj</config.namespace>
|
||||||
|
</properties>
|
||||||
|
</profile>
|
||||||
</profiles>
|
</profiles>
|
||||||
|
|
||||||
</project>
|
</project>
|
||||||
|
|||||||
@@ -42,6 +42,12 @@
|
|||||||
<version>${revision}</version>
|
<version>${revision}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.zt.plat</groupId>
|
||||||
|
<artifactId>zt-module-erp-api</artifactId>
|
||||||
|
<version>${revision}</version>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
<!-- 业务组件 -->
|
<!-- 业务组件 -->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.zt.plat</groupId>
|
<groupId>com.zt.plat</groupId>
|
||||||
|
|||||||
@@ -101,4 +101,12 @@ public class MaterialInfomationController {
|
|||||||
BeanUtils.toBean(list, MaterialInfomationRespVO.class));
|
BeanUtils.toBean(list, MaterialInfomationRespVO.class));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@GetMapping("/getOneTest")
|
||||||
|
@Operation(summary = "测试获取生产版本")
|
||||||
|
@PreAuthorize("@ss.hasPermission('base:material-infomation:query')")
|
||||||
|
public CommonResult<String> getTest() {
|
||||||
|
String getOneTest = materialInfomationService.getOneTest();
|
||||||
|
return success(getOneTest);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -61,4 +61,5 @@ public interface MaterialInfomationService {
|
|||||||
*/
|
*/
|
||||||
PageResult<MaterialInfomationDO> getMaterialInfomationPage(MaterialInfomationPageReqVO pageReqVO);
|
PageResult<MaterialInfomationDO> getMaterialInfomationPage(MaterialInfomationPageReqVO pageReqVO);
|
||||||
|
|
||||||
|
String getOneTest();
|
||||||
}
|
}
|
||||||
@@ -1,6 +1,7 @@
|
|||||||
package com.zt.plat.module.base.service.base;
|
package com.zt.plat.module.base.service.base;
|
||||||
|
|
||||||
import cn.hutool.core.collection.CollUtil;
|
import cn.hutool.core.collection.CollUtil;
|
||||||
|
import com.zt.plat.framework.common.pojo.CommonResult;
|
||||||
import com.zt.plat.framework.common.pojo.PageResult;
|
import com.zt.plat.framework.common.pojo.PageResult;
|
||||||
import com.zt.plat.framework.common.util.object.BeanUtils;
|
import com.zt.plat.framework.common.util.object.BeanUtils;
|
||||||
import com.zt.plat.module.base.controller.admin.base.vo.MaterialInfomationPageReqVO;
|
import com.zt.plat.module.base.controller.admin.base.vo.MaterialInfomationPageReqVO;
|
||||||
@@ -8,6 +9,8 @@ import com.zt.plat.module.base.controller.admin.base.vo.MaterialInfomationRespVO
|
|||||||
import com.zt.plat.module.base.controller.admin.base.vo.MaterialInfomationSaveReqVO;
|
import com.zt.plat.module.base.controller.admin.base.vo.MaterialInfomationSaveReqVO;
|
||||||
import com.zt.plat.module.base.dal.dataobject.base.MaterialInfomationDO;
|
import com.zt.plat.module.base.dal.dataobject.base.MaterialInfomationDO;
|
||||||
import com.zt.plat.module.base.dal.mysql.base.MaterialInfomationMapper;
|
import com.zt.plat.module.base.dal.mysql.base.MaterialInfomationMapper;
|
||||||
|
import com.zt.plat.module.erp.api.ErpExternalApi;
|
||||||
|
import com.zt.plat.module.erp.api.dto.ErpProductiveVersionReqDTO;
|
||||||
import jakarta.annotation.Resource;
|
import jakarta.annotation.Resource;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import org.springframework.validation.annotation.Validated;
|
import org.springframework.validation.annotation.Validated;
|
||||||
@@ -29,6 +32,10 @@ public class MaterialInfomationServiceImpl implements MaterialInfomationService
|
|||||||
@Resource
|
@Resource
|
||||||
private MaterialInfomationMapper materialInfomationMapper;
|
private MaterialInfomationMapper materialInfomationMapper;
|
||||||
|
|
||||||
|
@Resource
|
||||||
|
private ErpExternalApi erpExternalApi;
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public MaterialInfomationRespVO createMaterialInfomation(MaterialInfomationSaveReqVO createReqVO) {
|
public MaterialInfomationRespVO createMaterialInfomation(MaterialInfomationSaveReqVO createReqVO) {
|
||||||
// 插入
|
// 插入
|
||||||
@@ -86,4 +93,14 @@ public class MaterialInfomationServiceImpl implements MaterialInfomationService
|
|||||||
return materialInfomationMapper.selectPage(pageReqVO);
|
return materialInfomationMapper.selectPage(pageReqVO);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getOneTest() {
|
||||||
|
ErpProductiveVersionReqDTO reqDTO = new ErpProductiveVersionReqDTO();
|
||||||
|
reqDTO.setFactoryNumber("5020");
|
||||||
|
reqDTO.setMaterialNumber("224814");
|
||||||
|
CommonResult<String> erpProductiveVersion = erpExternalApi.getErpProductiveVersionByFM(reqDTO);
|
||||||
|
return erpProductiveVersion.getData();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -32,10 +32,10 @@ public class DeductRespDTO {
|
|||||||
private String rangeWay;
|
private String rangeWay;
|
||||||
|
|
||||||
@Schema(description = "上限")
|
@Schema(description = "上限")
|
||||||
private String up;
|
private BigDecimal up;
|
||||||
|
|
||||||
@Schema(description = "下限")
|
@Schema(description = "下限")
|
||||||
private String down;
|
private BigDecimal down;
|
||||||
|
|
||||||
@Schema(description = "类型(字典:STLM_COEF)")
|
@Schema(description = "类型(字典:STLM_COEF)")
|
||||||
private String type;
|
private String type;
|
||||||
|
|||||||
@@ -145,8 +145,8 @@ public class ContractController implements BusinessControllerMarker {
|
|||||||
@PostMapping("/submit/erp")
|
@PostMapping("/submit/erp")
|
||||||
@Operation(summary = "提交ERP")
|
@Operation(summary = "提交ERP")
|
||||||
@PreAuthorize("@ss.hasPermission('base:contract:erp')")
|
@PreAuthorize("@ss.hasPermission('base:contract:erp')")
|
||||||
public CommonResult<List<String>> submitErp(@RequestBody List<Long> ids) {
|
public CommonResult<JSONObject> submitErp(@RequestParam("id") Long id) {
|
||||||
return success(contractService.submitErp(ids));
|
return success(contractService.submitErp(id));
|
||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping("/list/up-not-relation")
|
@GetMapping("/list/up-not-relation")
|
||||||
|
|||||||
@@ -38,4 +38,7 @@ public class ContractPageReqVO extends PageParam {
|
|||||||
|
|
||||||
@Schema(description = "本币金额;与ERP(HTBWBZJE)对应")
|
@Schema(description = "本币金额;与ERP(HTBWBZJE)对应")
|
||||||
private BigDecimal basicAmount;
|
private BigDecimal basicAmount;
|
||||||
|
|
||||||
|
@Schema(description = "合同分类(字典:SPLY_BSN_TP)")
|
||||||
|
private String businessType;
|
||||||
}
|
}
|
||||||
@@ -31,10 +31,10 @@ public class DeductRespVO {
|
|||||||
private String rangeWay;
|
private String rangeWay;
|
||||||
|
|
||||||
@Schema(description = "上限")
|
@Schema(description = "上限")
|
||||||
private String up;
|
private BigDecimal up;
|
||||||
|
|
||||||
@Schema(description = "下限")
|
@Schema(description = "下限")
|
||||||
private String down;
|
private BigDecimal down;
|
||||||
|
|
||||||
@Schema(description = "类型(字典:STLM_COEF)")
|
@Schema(description = "类型(字典:STLM_COEF)")
|
||||||
private String type;
|
private String type;
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user