Browse Source

生成收料记录修改

master
陈薪名 2 years ago
parent
commit
cc46f1e770
  1. 21
      win-module-wms/win-module-wms-biz/src/main/java/com/win/module/wms/controller/productionreceiptRecord/ProductionreceiptRecordMainController.java
  2. 4
      win-module-wms/win-module-wms-biz/src/main/java/com/win/module/wms/controller/productionreceiptRecord/vo/ProductionreceiptRecordDetailExportReqVO.java
  3. 3
      win-module-wms/win-module-wms-biz/src/main/java/com/win/module/wms/controller/productionreceiptRecord/vo/ProductionreceiptRecordDetailPageReqVO.java
  4. 6
      win-module-wms/win-module-wms-biz/src/main/java/com/win/module/wms/controller/productionreceiptRecord/vo/ProductionreceiptRecordMainExcelVO.java
  5. 5
      win-module-wms/win-module-wms-biz/src/main/java/com/win/module/wms/dal/dataobject/productionreceiptRecord/ProductionreceiptRecordDetailDO.java
  6. 2
      win-module-wms/win-module-wms-biz/src/main/java/com/win/module/wms/dal/mysql/productionreceiptRecord/ProductionreceiptRecordDetailMapper.java

21
win-module-wms/win-module-wms-biz/src/main/java/com/win/module/wms/controller/productionreceiptRecord/ProductionreceiptRecordMainController.java

@ -91,23 +91,12 @@ public class ProductionreceiptRecordMainController {
private List<ProductionreceiptRecordMainExcelVO> getExcelVo(List<ProductionreceiptRecordMainDO> list, Map<Integer, String[]> mapDropDown) { private List<ProductionreceiptRecordMainExcelVO> getExcelVo(List<ProductionreceiptRecordMainDO> list, Map<Integer, String[]> mapDropDown) {
String[] locationType = DictFrameworkUtils.dictTypeDictDataValue(DictTypeConstants.LOCATION_TYPE); String[] locationType = DictFrameworkUtils.dictTypeDictDataValue(DictTypeConstants.LOCATION_TYPE);
mapDropDown.put(17, locationType); mapDropDown.put(32, locationType);
mapDropDown.put(18, locationType);
String[] areaType = DictFrameworkUtils.dictTypeDictDataValue(DictTypeConstants.AREA_TYPE);
mapDropDown.put(24, areaType);
mapDropDown.put(25, areaType);
String[] trueFalse = DictFrameworkUtils.dictTypeDictDataValue(DictTypeConstants.TRUE_FALSE); String[] trueFalse = DictFrameworkUtils.dictTypeDictDataValue(DictTypeConstants.TRUE_FALSE);
mapDropDown.put(26, trueFalse); mapDropDown.put(19, trueFalse);
mapDropDown.put(27, trueFalse); mapDropDown.put(20, trueFalse);
mapDropDown.put(28, trueFalse); String[] uom = DictFrameworkUtils.dictTypeDictDataValue(DictTypeConstants.UOM);
mapDropDown.put(29, trueFalse); mapDropDown.put(49, uom);
mapDropDown.put(30, trueFalse);
mapDropDown.put(31, trueFalse);
mapDropDown.put(32, trueFalse);
mapDropDown.put(33, trueFalse);
mapDropDown.put(34, trueFalse);
mapDropDown.put(35, trueFalse);
mapDropDown.put(36, trueFalse);
List<ProductionreceiptRecordMainExcelVO> resultList = new ArrayList<>(); List<ProductionreceiptRecordMainExcelVO> resultList = new ArrayList<>();
// 导出 // 导出
for(ProductionreceiptRecordMainDO mainDO : list) { for(ProductionreceiptRecordMainDO mainDO : list) {

4
win-module-wms/win-module-wms-biz/src/main/java/com/win/module/wms/controller/productionreceiptRecord/vo/ProductionreceiptRecordDetailExportReqVO.java

@ -112,4 +112,8 @@ public class ProductionreceiptRecordDetailExportReqVO {
@Schema(description = "到货主代码") @Schema(description = "到货主代码")
private String toOwnerCode; private String toOwnerCode;
@Schema(description = "主表ID")
private String masterId;
} }

3
win-module-wms/win-module-wms-biz/src/main/java/com/win/module/wms/controller/productionreceiptRecord/vo/ProductionreceiptRecordDetailPageReqVO.java

@ -114,4 +114,7 @@ public class ProductionreceiptRecordDetailPageReqVO extends PageParam {
@Schema(description = "到货主代码") @Schema(description = "到货主代码")
private String toOwnerCode; private String toOwnerCode;
@Schema(description = "主表ID")
private String masterId;
} }

6
win-module-wms/win-module-wms-biz/src/main/java/com/win/module/wms/controller/productionreceiptRecord/vo/ProductionreceiptRecordMainExcelVO.java

@ -26,6 +26,9 @@ public class ProductionreceiptRecordMainExcelVO {
@ExcelProperty("发料记录单号") @ExcelProperty("发料记录单号")
private String issueRecordNumber; private String issueRecordNumber;
@ExcelProperty("收料记录单号")
private String productionreceiptRecordNumber;
@ExcelProperty("任务单号") @ExcelProperty("任务单号")
private String jobNumber; private String jobNumber;
@ -107,6 +110,9 @@ public class ProductionreceiptRecordMainExcelVO {
@ExcelProperty("工位代码") @ExcelProperty("工位代码")
private String workStationCode; private String workStationCode;
@ExcelProperty("供应商代码")
private String supplierCode;
@ExcelProperty("在途库库位") @ExcelProperty("在途库库位")
private String onTheWayLocationCode; private String onTheWayLocationCode;

5
win-module-wms/win-module-wms-biz/src/main/java/com/win/module/wms/dal/dataobject/productionreceiptRecord/ProductionreceiptRecordDetailDO.java

@ -161,4 +161,9 @@ public class ProductionreceiptRecordDetailDO extends BaseDO {
*/ */
private String toOwnerCode; private String toOwnerCode;
/**
* 供应商代码
*/
private String supplierCode;
} }

2
win-module-wms/win-module-wms-biz/src/main/java/com/win/module/wms/dal/mysql/productionreceiptRecord/ProductionreceiptRecordDetailMapper.java

@ -23,6 +23,7 @@ public interface ProductionreceiptRecordDetailMapper extends BaseMapperX<Product
default PageResult<ProductionreceiptRecordDetailDO> selectPage(ProductionreceiptRecordDetailPageReqVO reqVO) { default PageResult<ProductionreceiptRecordDetailDO> selectPage(ProductionreceiptRecordDetailPageReqVO reqVO) {
return selectPage(reqVO, new LambdaQueryWrapperX<ProductionreceiptRecordDetailDO>() return selectPage(reqVO, new LambdaQueryWrapperX<ProductionreceiptRecordDetailDO>()
.eqIfPresent(ProductionreceiptRecordDetailDO::getMasterId, reqVO.getMasterId())
.eqIfPresent(ProductionreceiptRecordDetailDO::getProductionLineCode, reqVO.getProductionLineCode()) .eqIfPresent(ProductionreceiptRecordDetailDO::getProductionLineCode, reqVO.getProductionLineCode())
.eqIfPresent(ProductionreceiptRecordDetailDO::getWorkStationCode, reqVO.getWorkStationCode()) .eqIfPresent(ProductionreceiptRecordDetailDO::getWorkStationCode, reqVO.getWorkStationCode())
.eqIfPresent(ProductionreceiptRecordDetailDO::getOnTheWayLocationCode, reqVO.getOnTheWayLocationCode()) .eqIfPresent(ProductionreceiptRecordDetailDO::getOnTheWayLocationCode, reqVO.getOnTheWayLocationCode())
@ -64,6 +65,7 @@ public interface ProductionreceiptRecordDetailMapper extends BaseMapperX<Product
default List<ProductionreceiptRecordDetailDO> selectList(ProductionreceiptRecordDetailExportReqVO reqVO) { default List<ProductionreceiptRecordDetailDO> selectList(ProductionreceiptRecordDetailExportReqVO reqVO) {
return selectList(new LambdaQueryWrapperX<ProductionreceiptRecordDetailDO>() return selectList(new LambdaQueryWrapperX<ProductionreceiptRecordDetailDO>()
.eqIfPresent(ProductionreceiptRecordDetailDO::getMasterId, reqVO.getMasterId())
.eqIfPresent(ProductionreceiptRecordDetailDO::getProductionLineCode, reqVO.getProductionLineCode()) .eqIfPresent(ProductionreceiptRecordDetailDO::getProductionLineCode, reqVO.getProductionLineCode())
.eqIfPresent(ProductionreceiptRecordDetailDO::getWorkStationCode, reqVO.getWorkStationCode()) .eqIfPresent(ProductionreceiptRecordDetailDO::getWorkStationCode, reqVO.getWorkStationCode())
.eqIfPresent(ProductionreceiptRecordDetailDO::getOnTheWayLocationCode, reqVO.getOnTheWayLocationCode()) .eqIfPresent(ProductionreceiptRecordDetailDO::getOnTheWayLocationCode, reqVO.getOnTheWayLocationCode())

Loading…
Cancel
Save