新增库位新表的相关功能,修复合同收发货规则
This commit is contained in:
@@ -4,6 +4,7 @@ import com.alibaba.excel.annotation.ExcelProperty;
|
|||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.math.BigDecimal;
|
||||||
import java.time.LocalDateTime;
|
import java.time.LocalDateTime;
|
||||||
|
|
||||||
@Schema(description = "管理后台 - 收发货规则 Response VO")
|
@Schema(description = "管理后台 - 收发货规则 Response VO")
|
||||||
@@ -47,11 +48,11 @@ public class ContractReceiveSendRespDTO {
|
|||||||
|
|
||||||
@Schema(description = "区间下限")
|
@Schema(description = "区间下限")
|
||||||
@ExcelProperty("区间下限")
|
@ExcelProperty("区间下限")
|
||||||
private String gradeDown;
|
private BigDecimal gradeDown;
|
||||||
|
|
||||||
@Schema(description = "区间上限")
|
@Schema(description = "区间上限")
|
||||||
@ExcelProperty("区间上限")
|
@ExcelProperty("区间上限")
|
||||||
private String gradeUp;
|
private BigDecimal gradeUp;
|
||||||
|
|
||||||
@Schema(description = "合同id", example = "22162")
|
@Schema(description = "合同id", example = "22162")
|
||||||
@ExcelProperty("合同id")
|
@ExcelProperty("合同id")
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ import io.swagger.v3.oas.annotations.media.Schema;
|
|||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
import org.springframework.format.annotation.DateTimeFormat;
|
import org.springframework.format.annotation.DateTimeFormat;
|
||||||
|
|
||||||
|
import java.math.BigDecimal;
|
||||||
import java.time.LocalDateTime;
|
import java.time.LocalDateTime;
|
||||||
|
|
||||||
import static com.zt.plat.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
|
import static com.zt.plat.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
|
||||||
@@ -38,10 +39,10 @@ public class ContractReceiveSendPageReqVO extends PageParam {
|
|||||||
private String rangeWay;
|
private String rangeWay;
|
||||||
|
|
||||||
@Schema(description = "区间下限")
|
@Schema(description = "区间下限")
|
||||||
private String gradeDown;
|
private BigDecimal gradeDown;
|
||||||
|
|
||||||
@Schema(description = "区间上限")
|
@Schema(description = "区间上限")
|
||||||
private String gradeUp;
|
private BigDecimal gradeUp;
|
||||||
|
|
||||||
@Schema(description = "合同id", example = "22162")
|
@Schema(description = "合同id", example = "22162")
|
||||||
private Long contractId;
|
private Long contractId;
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ import com.alibaba.excel.annotation.ExcelProperty;
|
|||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.math.BigDecimal;
|
||||||
import java.time.LocalDateTime;
|
import java.time.LocalDateTime;
|
||||||
|
|
||||||
@Schema(description = "管理后台 - 收发货规则 Response VO")
|
@Schema(description = "管理后台 - 收发货规则 Response VO")
|
||||||
@@ -50,11 +51,11 @@ public class ContractReceiveSendRespVO {
|
|||||||
|
|
||||||
@Schema(description = "区间下限")
|
@Schema(description = "区间下限")
|
||||||
@ExcelProperty("区间下限")
|
@ExcelProperty("区间下限")
|
||||||
private String gradeDown;
|
private BigDecimal gradeDown;
|
||||||
|
|
||||||
@Schema(description = "区间上限")
|
@Schema(description = "区间上限")
|
||||||
@ExcelProperty("区间上限")
|
@ExcelProperty("区间上限")
|
||||||
private String gradeUp;
|
private BigDecimal gradeUp;
|
||||||
|
|
||||||
@Schema(description = "合同id", example = "22162")
|
@Schema(description = "合同id", example = "22162")
|
||||||
@ExcelProperty("合同id")
|
@ExcelProperty("合同id")
|
||||||
|
|||||||
@@ -3,6 +3,8 @@ package com.zt.plat.module.contractorder.api.vo.contract;
|
|||||||
import io.swagger.v3.oas.annotations.media.Schema;
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
|
||||||
@Schema(description = "管理后台 - 收发货规则新增/修改 Request VO")
|
@Schema(description = "管理后台 - 收发货规则新增/修改 Request VO")
|
||||||
@Data
|
@Data
|
||||||
public class ContractReceiveSendSaveReqVO {
|
public class ContractReceiveSendSaveReqVO {
|
||||||
@@ -35,10 +37,10 @@ public class ContractReceiveSendSaveReqVO {
|
|||||||
private String rangeWay;
|
private String rangeWay;
|
||||||
|
|
||||||
@Schema(description = "区间下限")
|
@Schema(description = "区间下限")
|
||||||
private String gradeDown;
|
private BigDecimal gradeDown;
|
||||||
|
|
||||||
@Schema(description = "区间上限")
|
@Schema(description = "区间上限")
|
||||||
private String gradeUp;
|
private BigDecimal gradeUp;
|
||||||
|
|
||||||
@Schema(description = "合同id", example = "22162")
|
@Schema(description = "合同id", example = "22162")
|
||||||
private Long contractId;
|
private Long contractId;
|
||||||
|
|||||||
@@ -4,6 +4,8 @@ import com.baomidou.mybatisplus.annotation.*;
|
|||||||
import com.zt.plat.framework.mybatis.core.dataobject.BusinessBaseDO;
|
import com.zt.plat.framework.mybatis.core.dataobject.BusinessBaseDO;
|
||||||
import lombok.*;
|
import lombok.*;
|
||||||
|
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 收发货规则 DO
|
* 收发货规则 DO
|
||||||
*
|
*
|
||||||
@@ -73,12 +75,12 @@ public class ContractReceiveSendDO extends BusinessBaseDO {
|
|||||||
* 区间下限
|
* 区间下限
|
||||||
*/
|
*/
|
||||||
@TableField("GRD_DOWN")
|
@TableField("GRD_DOWN")
|
||||||
private String gradeDown;
|
private BigDecimal gradeDown;
|
||||||
/**
|
/**
|
||||||
* 区间上限
|
* 区间上限
|
||||||
*/
|
*/
|
||||||
@TableField("GRD_UP")
|
@TableField("GRD_UP")
|
||||||
private String gradeUp;
|
private BigDecimal gradeUp;
|
||||||
/**
|
/**
|
||||||
* 合同id
|
* 合同id
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -58,5 +58,7 @@ public interface ErrorCodeConstants {
|
|||||||
|
|
||||||
ErrorCode MATERIAL_ERROR = new ErrorCode( 1_017_000_009, "主物料信息错误");
|
ErrorCode MATERIAL_ERROR = new ErrorCode( 1_017_000_009, "主物料信息错误");
|
||||||
|
|
||||||
|
ErrorCode INTERNAL_WAREHOUSE_NOT_EXISTS= new ErrorCode(1_017_000_011,"内部仓库不存在");
|
||||||
|
|
||||||
ErrorCode WAREHOUSE_FACTORY_NOT_EXISTS=new ErrorCode(1_017_000_010,"库位与工厂信息不存在");
|
ErrorCode WAREHOUSE_FACTORY_NOT_EXISTS=new ErrorCode(1_017_000_010,"库位与工厂信息不存在");
|
||||||
}
|
}
|
||||||
@@ -168,9 +168,8 @@ public class ErpMaterialController {
|
|||||||
@GetMapping("/erpMaterial-mainMaterial-code")
|
@GetMapping("/erpMaterial-mainMaterial-code")
|
||||||
@Operation(summary = "通过主物料编号查询子物料信息")
|
@Operation(summary = "通过主物料编号查询子物料信息")
|
||||||
@PreAuthorize("@ss.hasPermission('sply:erp-material:query')")
|
@PreAuthorize("@ss.hasPermission('sply:erp-material:query')")
|
||||||
public CommonResult<List<ErpMaterialRespVO>> getErpMaterialByMainMaterialByCOde(String code) {
|
public CommonResult<ErpMaterialRespVO> getErpMaterialByMainMaterialByCode(String code) {
|
||||||
|
return success(BeanUtils.toBean(erpMaterialService.getErpMaterialByMainMaterialByCode(code), ErpMaterialRespVO.class));
|
||||||
return success(BeanUtils.toBean(List.of(new MaterialInfomationPageReqDTO()), ErpMaterialRespVO.class));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//查询物料
|
//查询物料
|
||||||
@@ -179,6 +178,6 @@ public class ErpMaterialController {
|
|||||||
@PreAuthorize("@ss.hasPermission('sply:erp-material:query')")
|
@PreAuthorize("@ss.hasPermission('sply:erp-material:query')")
|
||||||
public CommonResult<List<ErpMaterialRespVO>> getErpMaterialByApiByCode(String code) {
|
public CommonResult<List<ErpMaterialRespVO>> getErpMaterialByApiByCode(String code) {
|
||||||
|
|
||||||
return success(BeanUtils.toBean(List.of(new MaterialInfomationPageReqDTO()), ErpMaterialRespVO.class));
|
return success(BeanUtils.toBean(erpMaterialService.getErpMaterialByApiByCode(code), ErpMaterialRespVO.class));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -83,8 +83,8 @@ public class ErpWarehouseController {
|
|||||||
@GetMapping("/page")
|
@GetMapping("/page")
|
||||||
@Operation(summary = "获得ERP库位分页")
|
@Operation(summary = "获得ERP库位分页")
|
||||||
@PreAuthorize("@ss.hasPermission('sply:erp-warehouse:query')")
|
@PreAuthorize("@ss.hasPermission('sply:erp-warehouse:query')")
|
||||||
public CommonResult<PageResult<ErpWarehouseRespVO>> getErpWarehousePage(@Valid ErpWarehousePageReqVO pageReqVO) {
|
public CommonResult<PageResult<ErpWarehouseDO> > getErpWarehousePage(@Valid ErpWarehousePageReqVO pageReqVO) {
|
||||||
PageResult<ErpWarehouseRespVO> pageResult = erpWarehouseService.getErpWarehousePage(pageReqVO);
|
PageResult<ErpWarehouseDO> pageResult = erpWarehouseService.getErpWarehousePage(pageReqVO);
|
||||||
return success(pageResult);
|
return success(pageResult);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,19 @@
|
|||||||
|
package com.zt.plat.module.erp.controller.admin.erp.internalwarehouse.vo;
|
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import jakarta.validation.constraints.NotNull;
|
||||||
|
import lombok.Data;
|
||||||
|
import org.springframework.validation.annotation.Validated;
|
||||||
|
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
@Data
|
||||||
|
@Schema(description = "ERP库位启用禁用 Request VO")
|
||||||
|
@Validated
|
||||||
|
public class InternalWarehouseEnableDisableReqVO {
|
||||||
|
@Schema(description = "主键列表")
|
||||||
|
@NotNull(message = "主键列表不能为空")
|
||||||
|
private List<String> ids;
|
||||||
|
@Schema(description = "状态")
|
||||||
|
private String isEnable;
|
||||||
|
}
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user