forked from sfms3.0/sfms3.0
146 changed files with 6206 additions and 241 deletions
@ -0,0 +1,113 @@ |
|||
package com.win.module.wms.controller.packagemergemain; |
|||
|
|||
import io.swagger.v3.oas.annotations.Parameters; |
|||
import org.springframework.web.bind.annotation.*; |
|||
import javax.annotation.Resource; |
|||
import org.springframework.validation.annotation.Validated; |
|||
import org.springframework.security.access.prepost.PreAuthorize; |
|||
import io.swagger.v3.oas.annotations.tags.Tag; |
|||
import io.swagger.v3.oas.annotations.Parameter; |
|||
import io.swagger.v3.oas.annotations.Operation; |
|||
|
|||
import javax.validation.*; |
|||
import javax.servlet.http.*; |
|||
import java.time.LocalDateTime; |
|||
import java.time.ZoneOffset; |
|||
import java.util.*; |
|||
import java.io.IOException; |
|||
|
|||
import com.win.framework.common.pojo.PageResult; |
|||
import com.win.framework.common.pojo.CommonResult; |
|||
import static com.win.framework.common.pojo.CommonResult.success; |
|||
|
|||
import com.win.framework.excel.core.util.ExcelUtils; |
|||
|
|||
import com.win.framework.operatelog.core.annotations.OperateLog; |
|||
import static com.win.framework.operatelog.core.enums.OperateTypeEnum.*; |
|||
|
|||
import com.win.module.wms.controller.packagemergemain.vo.*; |
|||
import com.win.module.wms.dal.dataobject.packagemergemain.PackagemergeDetailDO; |
|||
import com.win.module.wms.convert.packagemergemain.PackagemergeDetailConvert; |
|||
import com.win.module.wms.service.packagemergemain.PackagemergeDetailService; |
|||
import org.springframework.web.multipart.MultipartFile; |
|||
|
|||
@Tag(name = "管理后台 - 合包记录子") |
|||
@RestController |
|||
@RequestMapping("/wms/packagemerge-detail") |
|||
@Validated |
|||
public class PackagemergeDetailController { |
|||
|
|||
@Resource |
|||
private PackagemergeDetailService packagemergeDetailService; |
|||
|
|||
@PostMapping("/create") |
|||
@Operation(summary = "创建合包记录子") |
|||
@PreAuthorize("@ss.hasPermission('wms:packagemerge-detail:create')") |
|||
public CommonResult<Long> createPackagemergeDetail(@Valid @RequestBody PackagemergeDetailCreateReqVO createReqVO) { |
|||
return success(packagemergeDetailService.createPackagemergeDetail(createReqVO)); |
|||
} |
|||
|
|||
@PutMapping("/update") |
|||
@Operation(summary = "更新合包记录子") |
|||
@PreAuthorize("@ss.hasPermission('wms:packagemerge-detail:update')") |
|||
public CommonResult<Boolean> updatePackagemergeDetail(@Valid @RequestBody PackagemergeDetailUpdateReqVO updateReqVO) { |
|||
int result = packagemergeDetailService.updatePackagemergeDetail(updateReqVO); |
|||
return success(result > 0); |
|||
} |
|||
|
|||
@DeleteMapping("/delete") |
|||
@Operation(summary = "删除合包记录子") |
|||
@Parameter(name = "id", description = "编号", required = true) |
|||
@PreAuthorize("@ss.hasPermission('wms:packagemerge-detail:delete')") |
|||
public CommonResult<Boolean> deletePackagemergeDetail(@RequestParam("id") Long id) { |
|||
int result = packagemergeDetailService.deletePackagemergeDetail(id); |
|||
return success(result > 0); |
|||
} |
|||
|
|||
@GetMapping("/get") |
|||
@Operation(summary = "获得合包记录子") |
|||
@Parameter(name = "id", description = "编号", required = true, example = "1024") |
|||
@PreAuthorize("@ss.hasPermission('wms:packagemerge-detail:query')") |
|||
public CommonResult<PackagemergeDetailRespVO> getPackagemergeDetail(@RequestParam("id") Long id) { |
|||
PackagemergeDetailDO packagemergeDetail = packagemergeDetailService.getPackagemergeDetail(id); |
|||
return success(PackagemergeDetailConvert.INSTANCE.convert(packagemergeDetail)); |
|||
} |
|||
|
|||
@GetMapping("/list") |
|||
@Operation(summary = "获得合包记录子列表") |
|||
@Parameter(name = "ids", description = "编号列表", required = true, example = "1024,2048") |
|||
@PreAuthorize("@ss.hasPermission('wms:packagemerge-detail:query')") |
|||
public CommonResult<List<PackagemergeDetailRespVO>> getPackagemergeDetailList(@RequestParam("ids") Collection<Long> ids) { |
|||
List<PackagemergeDetailDO> list = packagemergeDetailService.getPackagemergeDetailList(ids); |
|||
return success(PackagemergeDetailConvert.INSTANCE.convertList(list)); |
|||
} |
|||
|
|||
@GetMapping("/page") |
|||
@Operation(summary = "获得合包记录子分页") |
|||
@PreAuthorize("@ss.hasPermission('wms:packagemerge-detail:query')") |
|||
public CommonResult<PageResult<PackagemergeDetailRespVO>> getPackagemergeDetailPage(@Valid PackagemergeDetailPageReqVO pageVO) { |
|||
PageResult<PackagemergeDetailDO> pageResult = packagemergeDetailService.getPackagemergeDetailPage(pageVO); |
|||
return success(PackagemergeDetailConvert.INSTANCE.convertPage(pageResult)); |
|||
} |
|||
|
|||
@GetMapping("/export-excel") |
|||
@Operation(summary = "导出合包记录子 Excel") |
|||
@PreAuthorize("@ss.hasPermission('wms:packagemerge-detail:export')") |
|||
@OperateLog(type = EXPORT) |
|||
public void exportPackagemergeDetailExcel(@Valid PackagemergeDetailExportReqVO exportReqVO, |
|||
HttpServletResponse response) throws IOException { |
|||
List<PackagemergeDetailDO> list = packagemergeDetailService.getPackagemergeDetailList(exportReqVO); |
|||
// 导出 Excel
|
|||
List<PackagemergeDetailExcelVO> datas = PackagemergeDetailConvert.INSTANCE.convertList02(list); |
|||
ExcelUtils.write(response, "合包记录子.xls", "数据", PackagemergeDetailExcelVO.class, datas); |
|||
} |
|||
|
|||
@GetMapping("/get-import-template") |
|||
@Operation(summary = "获得导入合包记录子模板") |
|||
public void importTemplate(HttpServletResponse response) throws IOException { |
|||
List<PackagemergeDetailExcelVO> list = Arrays.asList(); |
|||
// 输出
|
|||
ExcelUtils.write(response, "合包记录子基本信息导入模板.xls", "合包记录子基本信息列表", PackagemergeDetailExcelVO.class, list); |
|||
} |
|||
|
|||
} |
@ -0,0 +1,136 @@ |
|||
package com.win.module.wms.controller.packagemergemain; |
|||
|
|||
import com.win.framework.common.pojo.CustomConditions; |
|||
import com.win.module.system.api.user.AdminUserApi; |
|||
import com.win.module.system.api.user.dto.AdminUserRespDTO; |
|||
import com.win.module.wms.controller.issueRecord.vo.IssueRecordMainRespVO; |
|||
import com.win.module.wms.convert.issueRecord.IssueRecordMainConvert; |
|||
import com.win.module.wms.dal.dataobject.issueRecord.IssueRecordMainDO; |
|||
import io.swagger.v3.oas.annotations.Parameters; |
|||
import org.springframework.web.bind.annotation.*; |
|||
import javax.annotation.Resource; |
|||
import org.springframework.validation.annotation.Validated; |
|||
import org.springframework.security.access.prepost.PreAuthorize; |
|||
import io.swagger.v3.oas.annotations.tags.Tag; |
|||
import io.swagger.v3.oas.annotations.Parameter; |
|||
import io.swagger.v3.oas.annotations.Operation; |
|||
|
|||
import javax.validation.constraints.*; |
|||
import javax.validation.*; |
|||
import javax.servlet.http.*; |
|||
import java.time.LocalDateTime; |
|||
import java.time.ZoneOffset; |
|||
import java.util.*; |
|||
import java.io.IOException; |
|||
|
|||
import com.win.framework.common.pojo.PageResult; |
|||
import com.win.framework.common.pojo.CommonResult; |
|||
import static com.win.framework.common.pojo.CommonResult.success; |
|||
|
|||
import com.win.framework.excel.core.util.ExcelUtils; |
|||
|
|||
import com.win.framework.operatelog.core.annotations.OperateLog; |
|||
import static com.win.framework.operatelog.core.enums.OperateTypeEnum.*; |
|||
|
|||
import com.win.module.wms.controller.packagemergemain.vo.*; |
|||
import com.win.module.wms.dal.dataobject.packagemergemain.PackagemergeMainDO; |
|||
import com.win.module.wms.convert.packagemergemain.PackagemergeMainConvert; |
|||
import com.win.module.wms.service.packagemergemain.PackagemergeMainService; |
|||
import org.springframework.web.multipart.MultipartFile; |
|||
|
|||
@Tag(name = "管理后台 - 合包记录主") |
|||
@RestController |
|||
@RequestMapping("/wms/packagemerge-main") |
|||
@Validated |
|||
public class PackagemergeMainController { |
|||
|
|||
@Resource |
|||
private AdminUserApi userApi; |
|||
@Resource |
|||
private PackagemergeMainService packagemergeMainService; |
|||
|
|||
@PostMapping("/create") |
|||
@Operation(summary = "创建合包记录主") |
|||
@PreAuthorize("@ss.hasPermission('wms:packagemerge-main:create')") |
|||
public CommonResult<Long> createPackagemergeMain(@Valid @RequestBody PackagemergeMainCreateReqVO createReqVO) { |
|||
return success(packagemergeMainService.createPackagemergeMain(createReqVO)); |
|||
} |
|||
|
|||
@PutMapping("/update") |
|||
@Operation(summary = "更新合包记录主") |
|||
@PreAuthorize("@ss.hasPermission('wms:packagemerge-main:update')") |
|||
public CommonResult<Boolean> updatePackagemergeMain(@Valid @RequestBody PackagemergeMainUpdateReqVO updateReqVO) { |
|||
int result = packagemergeMainService.updatePackagemergeMain(updateReqVO); |
|||
return success(result > 0); |
|||
} |
|||
|
|||
@DeleteMapping("/delete") |
|||
@Operation(summary = "删除合包记录主") |
|||
@Parameter(name = "id", description = "编号", required = true) |
|||
@PreAuthorize("@ss.hasPermission('wms:packagemerge-main:delete')") |
|||
public CommonResult<Boolean> deletePackagemergeMain(@RequestParam("id") Long id) { |
|||
int result = packagemergeMainService.deletePackagemergeMain(id); |
|||
return success(result > 0); |
|||
} |
|||
|
|||
@GetMapping("/get") |
|||
@Operation(summary = "获得合包记录主") |
|||
@Parameter(name = "id", description = "编号", required = true, example = "1024") |
|||
@PreAuthorize("@ss.hasPermission('wms:packagemerge-main:query')") |
|||
public CommonResult<PackagemergeMainRespVO> getPackagemergeMain(@RequestParam("id") Long id) { |
|||
PackagemergeMainDO packagemergeMain = packagemergeMainService.getPackagemergeMain(id); |
|||
return success(PackagemergeMainConvert.INSTANCE.convert(packagemergeMain)); |
|||
} |
|||
|
|||
@GetMapping("/list") |
|||
@Operation(summary = "获得合包记录主列表") |
|||
@Parameter(name = "ids", description = "编号列表", required = true, example = "1024,2048") |
|||
@PreAuthorize("@ss.hasPermission('wms:packagemerge-main:query')") |
|||
public CommonResult<List<PackagemergeMainRespVO>> getPackagemergeMainList(@RequestParam("ids") Collection<Long> ids) { |
|||
List<PackagemergeMainDO> list = packagemergeMainService.getPackagemergeMainList(ids); |
|||
return success(PackagemergeMainConvert.INSTANCE.convertList(list)); |
|||
} |
|||
|
|||
@GetMapping("/page") |
|||
@Operation(summary = "获得合包记录主分页") |
|||
@PreAuthorize("@ss.hasPermission('wms:packagemerge-main:query')") |
|||
public CommonResult<PageResult<PackagemergeMainRespVO>> getPackagemergeMainPage(@Valid PackagemergeMainPageReqVO pageVO) { |
|||
PageResult<PackagemergeMainDO> pageResult = packagemergeMainService.getPackagemergeMainPage(pageVO); |
|||
return success(PackagemergeMainConvert.INSTANCE.convertPage(pageResult)); |
|||
} |
|||
|
|||
@PostMapping("/senior") |
|||
@Operation(summary = "高级搜索获得合包记录主分页") |
|||
@PreAuthorize("@ss.hasPermission('wms:packagemerge-main:query')") |
|||
public CommonResult<PageResult<PackagemergeMainRespVO>> getPackagemergeRecordMainSenior(@Valid @RequestBody CustomConditions conditions) { |
|||
PageResult<PackagemergeMainDO> pageResult = packagemergeMainService.getPackagemergeMainSenior(conditions); |
|||
PageResult<PackagemergeMainRespVO> result = PackagemergeMainConvert.INSTANCE.convertPage(pageResult); |
|||
for(PackagemergeMainRespVO vo : result.getList()) { |
|||
AdminUserRespDTO user = userApi.getUser(Long.valueOf(vo.getCreator())); |
|||
//后端创建个字段作为前端展示的虚拟字段
|
|||
vo.setCreator(user.getNickname()); |
|||
} |
|||
return success(result); |
|||
} |
|||
|
|||
@GetMapping("/export-excel") |
|||
@Operation(summary = "导出合包记录主 Excel") |
|||
@PreAuthorize("@ss.hasPermission('wms:packagemerge-main:export')") |
|||
@OperateLog(type = EXPORT) |
|||
public void exportPackagemergeMainExcel(@Valid PackagemergeMainExportReqVO exportReqVO, |
|||
HttpServletResponse response) throws IOException { |
|||
List<PackagemergeMainDO> list = packagemergeMainService.getPackagemergeMainList(exportReqVO); |
|||
// 导出 Excel
|
|||
List<PackagemergeMainExcelVO> datas = PackagemergeMainConvert.INSTANCE.convertList02(list); |
|||
ExcelUtils.write(response, "合包记录主.xls", "数据", PackagemergeMainExcelVO.class, datas); |
|||
} |
|||
|
|||
@GetMapping("/get-import-template") |
|||
@Operation(summary = "获得导入合包记录主模板") |
|||
public void importTemplate(HttpServletResponse response) throws IOException { |
|||
List<PackagemergeMainExcelVO> list = Arrays.asList(); |
|||
// 输出
|
|||
ExcelUtils.write(response, "合包记录主基本信息导入模板.xls", "合包记录主基本信息列表", PackagemergeMainExcelVO.class, list); |
|||
} |
|||
|
|||
} |
@ -0,0 +1,97 @@ |
|||
package com.win.module.wms.controller.packagemergemain.vo; |
|||
|
|||
import io.swagger.v3.oas.annotations.media.Schema; |
|||
import lombok.*; |
|||
import java.util.*; |
|||
import java.time.LocalDateTime; |
|||
import java.math.BigDecimal; |
|||
import java.math.BigDecimal; |
|||
import java.time.LocalDateTime; |
|||
import javax.validation.constraints.*; |
|||
|
|||
/** |
|||
* 合包记录子 Base VO,提供给添加、修改、详细的子 VO 使用 |
|||
* 如果子 VO 存在差异的字段,请不要添加到这里,影响 Swagger 文档生成 |
|||
*/ |
|||
@Data |
|||
public class PackagemergeDetailBaseVO { |
|||
|
|||
@Schema(description = "库位代码") |
|||
private String locationCode; |
|||
|
|||
@Schema(description = "库位组代码") |
|||
private String locationGroupCode; |
|||
|
|||
@Schema(description = "库区代码") |
|||
private String areaCode; |
|||
|
|||
@Schema(description = "从包装号") |
|||
private String fromPackingNumber; |
|||
|
|||
@Schema(description = "到包装号") |
|||
private String toPackingNumber; |
|||
|
|||
@Schema(description = "从批次") |
|||
private String fromBatch; |
|||
|
|||
@Schema(description = "到批次") |
|||
private String toBatch; |
|||
|
|||
@Schema(description = "从库存状态", example = "1") |
|||
private String fromInventoryStatus; |
|||
|
|||
@Schema(description = "到库存状态", example = "2") |
|||
private String toInventoryStatus; |
|||
|
|||
@Schema(description = "从器具号") |
|||
private String fromContainerNumber; |
|||
|
|||
@Schema(description = "到器具号") |
|||
private String toContainerNumber; |
|||
|
|||
@Schema(description = "从货主代码") |
|||
private String fromOwnerCode; |
|||
|
|||
@Schema(description = "到货主代码") |
|||
private String toOwnerCode; |
|||
|
|||
@Schema(description = "主表ID", example = "18261") |
|||
private Long masterId; |
|||
|
|||
@Schema(description = "单据号") |
|||
private String number; |
|||
|
|||
@Schema(description = "物品代码") |
|||
private String itemCode; |
|||
|
|||
@Schema(description = "备注", example = "你说的对") |
|||
private String remark; |
|||
|
|||
@Schema(description = "地点ID", example = "29185") |
|||
private String siteId; |
|||
|
|||
@Schema(description = "物品名称", example = "芋艿") |
|||
private String itemName; |
|||
|
|||
@Schema(description = "物品描述1") |
|||
private String itemDesc1; |
|||
|
|||
@Schema(description = "物品描述2") |
|||
private String itemDesc2; |
|||
|
|||
@Schema(description = "项目代码") |
|||
private String projectCode; |
|||
|
|||
@Schema(description = "到数量") |
|||
private BigDecimal toQty; |
|||
|
|||
@Schema(description = "从数量") |
|||
private BigDecimal fromQty; |
|||
|
|||
@Schema(description = "计量单位") |
|||
private String uom; |
|||
|
|||
@Schema(description = "接口类型", example = "1") |
|||
private String interfaceType; |
|||
|
|||
} |
@ -0,0 +1,12 @@ |
|||
package com.win.module.wms.controller.packagemergemain.vo; |
|||
|
|||
import lombok.*; |
|||
import io.swagger.v3.oas.annotations.media.Schema; |
|||
|
|||
@Schema(description = "管理后台 - 合包记录子创建 Request VO") |
|||
@Data |
|||
@EqualsAndHashCode(callSuper = true) |
|||
@ToString(callSuper = true) |
|||
public class PackagemergeDetailCreateReqVO extends PackagemergeDetailBaseVO { |
|||
|
|||
} |
@ -0,0 +1,105 @@ |
|||
package com.win.module.wms.controller.packagemergemain.vo; |
|||
|
|||
import io.swagger.v3.oas.annotations.media.Schema; |
|||
import lombok.*; |
|||
import java.util.*; |
|||
import java.time.LocalDateTime; |
|||
import java.math.BigDecimal; |
|||
import java.math.BigDecimal; |
|||
import java.time.LocalDateTime; |
|||
|
|||
import com.alibaba.excel.annotation.ExcelProperty; |
|||
|
|||
/** |
|||
* 合包记录子 Excel VO |
|||
* |
|||
* @author 超级管理员 |
|||
*/ |
|||
@Data |
|||
public class PackagemergeDetailExcelVO { |
|||
|
|||
@ExcelProperty("id") |
|||
private Long id; |
|||
|
|||
@ExcelProperty("库位代码") |
|||
private String locationCode; |
|||
|
|||
@ExcelProperty("库位组代码") |
|||
private String locationGroupCode; |
|||
|
|||
@ExcelProperty("库区代码") |
|||
private String areaCode; |
|||
|
|||
@ExcelProperty("从包装号") |
|||
private String fromPackingNumber; |
|||
|
|||
@ExcelProperty("到包装号") |
|||
private String toPackingNumber; |
|||
|
|||
@ExcelProperty("从批次") |
|||
private String fromBatch; |
|||
|
|||
@ExcelProperty("到批次") |
|||
private String toBatch; |
|||
|
|||
@ExcelProperty("从库存状态") |
|||
private String fromInventoryStatus; |
|||
|
|||
@ExcelProperty("到库存状态") |
|||
private String toInventoryStatus; |
|||
|
|||
@ExcelProperty("从器具号") |
|||
private String fromContainerNumber; |
|||
|
|||
@ExcelProperty("到器具号") |
|||
private String toContainerNumber; |
|||
|
|||
@ExcelProperty("从货主代码") |
|||
private String fromOwnerCode; |
|||
|
|||
@ExcelProperty("到货主代码") |
|||
private String toOwnerCode; |
|||
|
|||
@ExcelProperty("主表ID") |
|||
private Long masterId; |
|||
|
|||
@ExcelProperty("单据号") |
|||
private String number; |
|||
|
|||
@ExcelProperty("物品代码") |
|||
private String itemCode; |
|||
|
|||
@ExcelProperty("备注") |
|||
private String remark; |
|||
|
|||
@ExcelProperty("创建时间") |
|||
private LocalDateTime createTime; |
|||
|
|||
@ExcelProperty("地点ID") |
|||
private String siteId; |
|||
|
|||
@ExcelProperty("物品名称") |
|||
private String itemName; |
|||
|
|||
@ExcelProperty("物品描述1") |
|||
private String itemDesc1; |
|||
|
|||
@ExcelProperty("物品描述2") |
|||
private String itemDesc2; |
|||
|
|||
@ExcelProperty("项目代码") |
|||
private String projectCode; |
|||
|
|||
@ExcelProperty("到数量") |
|||
private BigDecimal toQty; |
|||
|
|||
@ExcelProperty("从数量") |
|||
private BigDecimal fromQty; |
|||
|
|||
@ExcelProperty("计量单位") |
|||
private String uom; |
|||
|
|||
@ExcelProperty("接口类型") |
|||
private String interfaceType; |
|||
|
|||
} |
@ -0,0 +1,100 @@ |
|||
package com.win.module.wms.controller.packagemergemain.vo; |
|||
|
|||
import lombok.*; |
|||
|
|||
import java.math.BigDecimal; |
|||
import java.util.*; |
|||
import io.swagger.v3.oas.annotations.media.Schema; |
|||
import com.win.framework.common.pojo.PageParam; |
|||
import java.time.LocalDateTime; |
|||
import org.springframework.format.annotation.DateTimeFormat; |
|||
|
|||
import static com.win.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND; |
|||
|
|||
@Schema(description = "管理后台 - 合包记录子 Excel 导出 Request VO,参数和 PackagemergeDetailPageReqVO 是一致的") |
|||
@Data |
|||
public class PackagemergeDetailExportReqVO { |
|||
|
|||
@Schema(description = "库位代码") |
|||
private String locationCode; |
|||
|
|||
@Schema(description = "库位组代码") |
|||
private String locationGroupCode; |
|||
|
|||
@Schema(description = "库区代码") |
|||
private String areaCode; |
|||
|
|||
@Schema(description = "从包装号") |
|||
private String fromPackingNumber; |
|||
|
|||
@Schema(description = "到包装号") |
|||
private String toPackingNumber; |
|||
|
|||
@Schema(description = "从批次") |
|||
private String fromBatch; |
|||
|
|||
@Schema(description = "到批次") |
|||
private String toBatch; |
|||
|
|||
@Schema(description = "从库存状态", example = "1") |
|||
private String fromInventoryStatus; |
|||
|
|||
@Schema(description = "到库存状态", example = "2") |
|||
private String toInventoryStatus; |
|||
|
|||
@Schema(description = "从器具号") |
|||
private String fromContainerNumber; |
|||
|
|||
@Schema(description = "到器具号") |
|||
private String toContainerNumber; |
|||
|
|||
@Schema(description = "从货主代码") |
|||
private String fromOwnerCode; |
|||
|
|||
@Schema(description = "到货主代码") |
|||
private String toOwnerCode; |
|||
|
|||
@Schema(description = "主表ID", example = "18261") |
|||
private Long masterId; |
|||
|
|||
@Schema(description = "单据号") |
|||
private String number; |
|||
|
|||
@Schema(description = "物品代码") |
|||
private String itemCode; |
|||
|
|||
@Schema(description = "备注", example = "你说的对") |
|||
private String remark; |
|||
|
|||
@Schema(description = "创建时间") |
|||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) |
|||
private LocalDateTime[] createTime; |
|||
|
|||
@Schema(description = "地点ID", example = "29185") |
|||
private String siteId; |
|||
|
|||
@Schema(description = "物品名称", example = "芋艿") |
|||
private String itemName; |
|||
|
|||
@Schema(description = "物品描述1") |
|||
private String itemDesc1; |
|||
|
|||
@Schema(description = "物品描述2") |
|||
private String itemDesc2; |
|||
|
|||
@Schema(description = "项目代码") |
|||
private String projectCode; |
|||
|
|||
@Schema(description = "到数量") |
|||
private BigDecimal toQty; |
|||
|
|||
@Schema(description = "从数量") |
|||
private BigDecimal fromQty; |
|||
|
|||
@Schema(description = "计量单位") |
|||
private String uom; |
|||
|
|||
@Schema(description = "接口类型", example = "1") |
|||
private String interfaceType; |
|||
|
|||
} |
@ -0,0 +1,102 @@ |
|||
package com.win.module.wms.controller.packagemergemain.vo; |
|||
|
|||
import lombok.*; |
|||
|
|||
import java.math.BigDecimal; |
|||
import java.util.*; |
|||
import io.swagger.v3.oas.annotations.media.Schema; |
|||
import com.win.framework.common.pojo.PageParam; |
|||
import org.springframework.format.annotation.DateTimeFormat; |
|||
import java.time.LocalDateTime; |
|||
|
|||
import static com.win.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND; |
|||
|
|||
@Schema(description = "管理后台 - 合包记录子分页 Request VO") |
|||
@Data |
|||
@EqualsAndHashCode(callSuper = true) |
|||
@ToString(callSuper = true) |
|||
public class PackagemergeDetailPageReqVO extends PageParam { |
|||
|
|||
@Schema(description = "库位代码") |
|||
private String locationCode; |
|||
|
|||
@Schema(description = "库位组代码") |
|||
private String locationGroupCode; |
|||
|
|||
@Schema(description = "库区代码") |
|||
private String areaCode; |
|||
|
|||
@Schema(description = "从包装号") |
|||
private String fromPackingNumber; |
|||
|
|||
@Schema(description = "到包装号") |
|||
private String toPackingNumber; |
|||
|
|||
@Schema(description = "从批次") |
|||
private String fromBatch; |
|||
|
|||
@Schema(description = "到批次") |
|||
private String toBatch; |
|||
|
|||
@Schema(description = "从库存状态", example = "1") |
|||
private String fromInventoryStatus; |
|||
|
|||
@Schema(description = "到库存状态", example = "2") |
|||
private String toInventoryStatus; |
|||
|
|||
@Schema(description = "从器具号") |
|||
private String fromContainerNumber; |
|||
|
|||
@Schema(description = "到器具号") |
|||
private String toContainerNumber; |
|||
|
|||
@Schema(description = "从货主代码") |
|||
private String fromOwnerCode; |
|||
|
|||
@Schema(description = "到货主代码") |
|||
private String toOwnerCode; |
|||
|
|||
@Schema(description = "主表ID", example = "18261") |
|||
private Long masterId; |
|||
|
|||
@Schema(description = "单据号") |
|||
private String number; |
|||
|
|||
@Schema(description = "物品代码") |
|||
private String itemCode; |
|||
|
|||
@Schema(description = "备注", example = "你说的对") |
|||
private String remark; |
|||
|
|||
@Schema(description = "创建时间") |
|||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) |
|||
private LocalDateTime[] createTime; |
|||
|
|||
@Schema(description = "地点ID", example = "29185") |
|||
private String siteId; |
|||
|
|||
@Schema(description = "物品名称", example = "芋艿") |
|||
private String itemName; |
|||
|
|||
@Schema(description = "物品描述1") |
|||
private String itemDesc1; |
|||
|
|||
@Schema(description = "物品描述2") |
|||
private String itemDesc2; |
|||
|
|||
@Schema(description = "项目代码") |
|||
private String projectCode; |
|||
|
|||
@Schema(description = "到数量") |
|||
private BigDecimal toQty; |
|||
|
|||
@Schema(description = "从数量") |
|||
private BigDecimal fromQty; |
|||
|
|||
@Schema(description = "计量单位") |
|||
private String uom; |
|||
|
|||
@Schema(description = "接口类型", example = "1") |
|||
private String interfaceType; |
|||
|
|||
} |
@ -0,0 +1,19 @@ |
|||
package com.win.module.wms.controller.packagemergemain.vo; |
|||
|
|||
import io.swagger.v3.oas.annotations.media.Schema; |
|||
import lombok.*; |
|||
import java.time.LocalDateTime; |
|||
|
|||
@Schema(description = "管理后台 - 合包记录子 Response VO") |
|||
@Data |
|||
@EqualsAndHashCode(callSuper = true) |
|||
@ToString(callSuper = true) |
|||
public class PackagemergeDetailRespVO extends PackagemergeDetailBaseVO { |
|||
|
|||
@Schema(description = "id", requiredMode = Schema.RequiredMode.REQUIRED, example = "14985") |
|||
private Long id; |
|||
|
|||
@Schema(description = "创建时间") |
|||
private LocalDateTime createTime; |
|||
|
|||
} |
@ -0,0 +1,18 @@ |
|||
package com.win.module.wms.controller.packagemergemain.vo; |
|||
|
|||
import io.swagger.v3.oas.annotations.media.Schema; |
|||
import lombok.*; |
|||
|
|||
import javax.validation.constraints.*; |
|||
|
|||
@Schema(description = "管理后台 - 合包记录子更新 Request VO") |
|||
@Data |
|||
@EqualsAndHashCode(callSuper = true) |
|||
@ToString(callSuper = true) |
|||
public class PackagemergeDetailUpdateReqVO extends PackagemergeDetailBaseVO { |
|||
|
|||
@Schema(description = "id", requiredMode = Schema.RequiredMode.REQUIRED, example = "14985") |
|||
@NotNull(message = "id不能为空") |
|||
private Long id; |
|||
|
|||
} |
@ -0,0 +1,85 @@ |
|||
package com.win.module.wms.controller.packagemergemain.vo; |
|||
|
|||
import io.swagger.v3.oas.annotations.media.Schema; |
|||
import lombok.*; |
|||
import java.util.*; |
|||
import java.time.LocalDateTime; |
|||
import java.time.LocalDateTime; |
|||
import java.time.LocalDateTime; |
|||
import java.time.LocalDateTime; |
|||
import java.time.LocalDateTime; |
|||
import java.time.LocalDateTime; |
|||
import javax.validation.constraints.*; |
|||
import org.springframework.format.annotation.DateTimeFormat; |
|||
|
|||
import static com.win.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND; |
|||
|
|||
/** |
|||
* 合包记录主 Base VO,提供给添加、修改、详细的子 VO 使用 |
|||
* 如果子 VO 存在差异的字段,请不要添加到这里,影响 Swagger 文档生成 |
|||
*/ |
|||
@Data |
|||
public class PackagemergeMainBaseVO { |
|||
|
|||
@Schema(description = "仓库代码") |
|||
private String warehouseCode; |
|||
|
|||
@Schema(description = "明细") |
|||
private String details; |
|||
|
|||
@Schema(description = "出库事务类型", example = "2") |
|||
private String outTransactionType; |
|||
|
|||
@Schema(description = "入库事务类型", example = "2") |
|||
private String inTransactionType; |
|||
|
|||
@Schema(description = "执行时间") |
|||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) |
|||
private LocalDateTime executeTime; |
|||
|
|||
@Schema(description = "生效日期") |
|||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) |
|||
private LocalDateTime activeDate; |
|||
|
|||
@Schema(description = "是否可用") |
|||
private String available; |
|||
|
|||
@Schema(description = "申请时间") |
|||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) |
|||
private LocalDateTime requestTime; |
|||
|
|||
@Schema(description = "截止时间") |
|||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) |
|||
private LocalDateTime dueTime; |
|||
|
|||
@Schema(description = "部门") |
|||
private String departmentCode; |
|||
|
|||
@Schema(description = "用户组") |
|||
private String userGroupCode; |
|||
|
|||
@Schema(description = "接口类型", example = "1") |
|||
private String interfaceType; |
|||
|
|||
@Schema(description = "单据号") |
|||
private String number; |
|||
|
|||
@Schema(description = "业务类型", example = "1") |
|||
private String businessType; |
|||
|
|||
@Schema(description = "备注", example = "你说的对") |
|||
private String remark; |
|||
|
|||
@Schema(description = "创建者") |
|||
private String creator; |
|||
|
|||
@Schema(description = "创建时间") |
|||
private LocalDateTime createTime; |
|||
|
|||
@Schema(description = "更新者") |
|||
private String updater; |
|||
|
|||
@Schema(description = "更新时间") |
|||
private LocalDateTime updateTime; |
|||
|
|||
} |
@ -0,0 +1,14 @@ |
|||
package com.win.module.wms.controller.packagemergemain.vo; |
|||
|
|||
import lombok.*; |
|||
import java.util.*; |
|||
import io.swagger.v3.oas.annotations.media.Schema; |
|||
import javax.validation.constraints.*; |
|||
|
|||
@Schema(description = "管理后台 - 合包记录主创建 Request VO") |
|||
@Data |
|||
@EqualsAndHashCode(callSuper = true) |
|||
@ToString(callSuper = true) |
|||
public class PackagemergeMainCreateReqVO extends PackagemergeMainBaseVO { |
|||
|
|||
} |
@ -0,0 +1,80 @@ |
|||
package com.win.module.wms.controller.packagemergemain.vo; |
|||
|
|||
import io.swagger.v3.oas.annotations.media.Schema; |
|||
import lombok.*; |
|||
import java.util.*; |
|||
import java.time.LocalDateTime; |
|||
import java.time.LocalDateTime; |
|||
import java.time.LocalDateTime; |
|||
import java.time.LocalDateTime; |
|||
import java.time.LocalDateTime; |
|||
import java.time.LocalDateTime; |
|||
|
|||
import com.alibaba.excel.annotation.ExcelProperty; |
|||
|
|||
/** |
|||
* 合包记录主 Excel VO |
|||
* |
|||
* @author 超级管理员 |
|||
*/ |
|||
@Data |
|||
public class PackagemergeMainExcelVO { |
|||
|
|||
@ExcelProperty("id") |
|||
private Long id; |
|||
|
|||
@ExcelProperty("仓库代码") |
|||
private String warehouseCode; |
|||
|
|||
@ExcelProperty("明细") |
|||
private String details; |
|||
|
|||
@ExcelProperty("出库事务类型") |
|||
private String outTransactionType; |
|||
|
|||
@ExcelProperty("入库事务类型") |
|||
private String inTransactionType; |
|||
|
|||
@ExcelProperty("执行时间") |
|||
private LocalDateTime executeTime; |
|||
|
|||
@ExcelProperty("生效日期") |
|||
private LocalDateTime activeDate; |
|||
|
|||
@ExcelProperty("是否可用") |
|||
private String available; |
|||
|
|||
@ExcelProperty("申请时间") |
|||
private LocalDateTime requestTime; |
|||
|
|||
@ExcelProperty("截止时间") |
|||
private LocalDateTime dueTime; |
|||
|
|||
@ExcelProperty("部门") |
|||
private String departmentCode; |
|||
|
|||
@ExcelProperty("用户组") |
|||
private String userGroupCode; |
|||
|
|||
@ExcelProperty("接口类型") |
|||
private String interfaceType; |
|||
|
|||
@ExcelProperty("单据号") |
|||
private String number; |
|||
|
|||
@ExcelProperty("业务类型") |
|||
private String businessType; |
|||
|
|||
@ExcelProperty("备注") |
|||
private String remark; |
|||
|
|||
@ExcelProperty("创建时间") |
|||
private LocalDateTime createTime; |
|||
|
|||
@ExcelProperty("扩展属性") |
|||
private String extraProperties; |
|||
|
|||
@ExcelProperty("地点ID") |
|||
private String siteId; |
|||
|
|||
} |
@ -0,0 +1,75 @@ |
|||
package com.win.module.wms.controller.packagemergemain.vo; |
|||
|
|||
import lombok.*; |
|||
import java.util.*; |
|||
import io.swagger.v3.oas.annotations.media.Schema; |
|||
import com.win.framework.common.pojo.PageParam; |
|||
import java.time.LocalDateTime; |
|||
import org.springframework.format.annotation.DateTimeFormat; |
|||
|
|||
import static com.win.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND; |
|||
|
|||
@Schema(description = "管理后台 - 合包记录主 Excel 导出 Request VO,参数和 PackagemergeMainPageReqVO 是一致的") |
|||
@Data |
|||
public class PackagemergeMainExportReqVO { |
|||
|
|||
@Schema(description = "仓库代码") |
|||
private String warehouseCode; |
|||
|
|||
@Schema(description = "明细") |
|||
private String details; |
|||
|
|||
@Schema(description = "出库事务类型", example = "2") |
|||
private String outTransactionType; |
|||
|
|||
@Schema(description = "入库事务类型", example = "2") |
|||
private String inTransactionType; |
|||
|
|||
@Schema(description = "执行时间") |
|||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) |
|||
private LocalDateTime[] executeTime; |
|||
|
|||
@Schema(description = "生效日期") |
|||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) |
|||
private LocalDateTime[] activeDate; |
|||
|
|||
@Schema(description = "是否可用") |
|||
private String available; |
|||
|
|||
@Schema(description = "申请时间") |
|||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) |
|||
private LocalDateTime[] requestTime; |
|||
|
|||
@Schema(description = "截止时间") |
|||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) |
|||
private LocalDateTime[] dueTime; |
|||
|
|||
@Schema(description = "部门") |
|||
private String departmentCode; |
|||
|
|||
@Schema(description = "用户组") |
|||
private String userGroupCode; |
|||
|
|||
@Schema(description = "接口类型", example = "1") |
|||
private String interfaceType; |
|||
|
|||
@Schema(description = "单据号") |
|||
private String number; |
|||
|
|||
@Schema(description = "业务类型", example = "1") |
|||
private String businessType; |
|||
|
|||
@Schema(description = "备注", example = "你说的对") |
|||
private String remark; |
|||
|
|||
@Schema(description = "创建时间") |
|||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) |
|||
private LocalDateTime[] createTime; |
|||
|
|||
@Schema(description = "扩展属性") |
|||
private String extraProperties; |
|||
|
|||
@Schema(description = "地点ID", example = "5629") |
|||
private String siteId; |
|||
|
|||
} |
@ -0,0 +1,77 @@ |
|||
package com.win.module.wms.controller.packagemergemain.vo; |
|||
|
|||
import lombok.*; |
|||
import java.util.*; |
|||
import io.swagger.v3.oas.annotations.media.Schema; |
|||
import com.win.framework.common.pojo.PageParam; |
|||
import org.springframework.format.annotation.DateTimeFormat; |
|||
import java.time.LocalDateTime; |
|||
|
|||
import static com.win.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND; |
|||
|
|||
@Schema(description = "管理后台 - 合包记录主分页 Request VO") |
|||
@Data |
|||
@EqualsAndHashCode(callSuper = true) |
|||
@ToString(callSuper = true) |
|||
public class PackagemergeMainPageReqVO extends PageParam { |
|||
|
|||
@Schema(description = "仓库代码") |
|||
private String warehouseCode; |
|||
|
|||
@Schema(description = "明细") |
|||
private String details; |
|||
|
|||
@Schema(description = "出库事务类型", example = "2") |
|||
private String outTransactionType; |
|||
|
|||
@Schema(description = "入库事务类型", example = "2") |
|||
private String inTransactionType; |
|||
|
|||
@Schema(description = "执行时间") |
|||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) |
|||
private LocalDateTime[] executeTime; |
|||
|
|||
@Schema(description = "生效日期") |
|||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) |
|||
private LocalDateTime[] activeDate; |
|||
|
|||
@Schema(description = "是否可用") |
|||
private String available; |
|||
|
|||
@Schema(description = "申请时间") |
|||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) |
|||
private LocalDateTime[] requestTime; |
|||
|
|||
@Schema(description = "截止时间") |
|||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) |
|||
private LocalDateTime[] dueTime; |
|||
|
|||
@Schema(description = "部门") |
|||
private String departmentCode; |
|||
|
|||
@Schema(description = "用户组") |
|||
private String userGroupCode; |
|||
|
|||
@Schema(description = "接口类型", example = "1") |
|||
private String interfaceType; |
|||
|
|||
@Schema(description = "单据号") |
|||
private String number; |
|||
|
|||
@Schema(description = "业务类型", example = "1") |
|||
private String businessType; |
|||
|
|||
@Schema(description = "备注", example = "你说的对") |
|||
private String remark; |
|||
|
|||
@Schema(description = "创建时间") |
|||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) |
|||
private LocalDateTime[] createTime; |
|||
|
|||
@Schema(description = "扩展属性") |
|||
private String extraProperties; |
|||
|
|||
@Schema(description = "地点ID", example = "5629") |
|||
private String siteId; |
|||
|
|||
} |
@ -0,0 +1,13 @@ |
|||
package com.win.module.wms.controller.packagemergemain.vo; |
|||
|
|||
import io.swagger.v3.oas.annotations.media.Schema; |
|||
import lombok.*; |
|||
import java.time.LocalDateTime; |
|||
|
|||
@Schema(description = "管理后台 - 合包记录主 Response VO") |
|||
@Data |
|||
@EqualsAndHashCode(callSuper = true) |
|||
@ToString(callSuper = true) |
|||
public class PackagemergeMainRespVO extends PackagemergeMainBaseVO { |
|||
|
|||
} |
@ -0,0 +1,18 @@ |
|||
package com.win.module.wms.controller.packagemergemain.vo; |
|||
|
|||
import io.swagger.v3.oas.annotations.media.Schema; |
|||
import lombok.*; |
|||
import java.util.*; |
|||
import javax.validation.constraints.*; |
|||
|
|||
@Schema(description = "管理后台 - 合包记录主更新 Request VO") |
|||
@Data |
|||
@EqualsAndHashCode(callSuper = true) |
|||
@ToString(callSuper = true) |
|||
public class PackagemergeMainUpdateReqVO extends PackagemergeMainBaseVO { |
|||
|
|||
@Schema(description = "id", requiredMode = Schema.RequiredMode.REQUIRED, example = "30783") |
|||
@NotNull(message = "id不能为空") |
|||
private Long id; |
|||
|
|||
} |
@ -0,0 +1,113 @@ |
|||
package com.win.module.wms.controller.packageovermain; |
|||
|
|||
import io.swagger.v3.oas.annotations.Parameters; |
|||
import org.springframework.web.bind.annotation.*; |
|||
import javax.annotation.Resource; |
|||
import org.springframework.validation.annotation.Validated; |
|||
import org.springframework.security.access.prepost.PreAuthorize; |
|||
import io.swagger.v3.oas.annotations.tags.Tag; |
|||
import io.swagger.v3.oas.annotations.Parameter; |
|||
import io.swagger.v3.oas.annotations.Operation; |
|||
|
|||
import javax.validation.*; |
|||
import javax.servlet.http.*; |
|||
import java.time.LocalDateTime; |
|||
import java.time.ZoneOffset; |
|||
import java.util.*; |
|||
import java.io.IOException; |
|||
|
|||
import com.win.framework.common.pojo.PageResult; |
|||
import com.win.framework.common.pojo.CommonResult; |
|||
import static com.win.framework.common.pojo.CommonResult.success; |
|||
|
|||
import com.win.framework.excel.core.util.ExcelUtils; |
|||
|
|||
import com.win.framework.operatelog.core.annotations.OperateLog; |
|||
import static com.win.framework.operatelog.core.enums.OperateTypeEnum.*; |
|||
|
|||
import com.win.module.wms.controller.packageovermain.vo.*; |
|||
import com.win.module.wms.dal.dataobject.packageovermain.PackageoverDetailDO; |
|||
import com.win.module.wms.convert.packageovermain.PackageoverDetailConvert; |
|||
import com.win.module.wms.service.packageovermain.PackageoverDetailService; |
|||
import org.springframework.web.multipart.MultipartFile; |
|||
|
|||
@Tag(name = "管理后台 - 翻包记录子") |
|||
@RestController |
|||
@RequestMapping("/wms/packageover-detail") |
|||
@Validated |
|||
public class PackageoverDetailController { |
|||
|
|||
@Resource |
|||
private PackageoverDetailService packageoverDetailService; |
|||
|
|||
@PostMapping("/create") |
|||
@Operation(summary = "创建翻包记录子") |
|||
@PreAuthorize("@ss.hasPermission('wms:packageover-detail:create')") |
|||
public CommonResult<Long> createPackageoverDetail(@Valid @RequestBody PackageoverDetailCreateReqVO createReqVO) { |
|||
return success(packageoverDetailService.createPackageoverDetail(createReqVO)); |
|||
} |
|||
|
|||
@PutMapping("/update") |
|||
@Operation(summary = "更新翻包记录子") |
|||
@PreAuthorize("@ss.hasPermission('wms:packageover-detail:update')") |
|||
public CommonResult<Boolean> updatePackageoverDetail(@Valid @RequestBody PackageoverDetailUpdateReqVO updateReqVO) { |
|||
int result = packageoverDetailService.updatePackageoverDetail(updateReqVO); |
|||
return success(result > 0); |
|||
} |
|||
|
|||
@DeleteMapping("/delete") |
|||
@Operation(summary = "删除翻包记录子") |
|||
@Parameter(name = "id", description = "编号", required = true) |
|||
@PreAuthorize("@ss.hasPermission('wms:packageover-detail:delete')") |
|||
public CommonResult<Boolean> deletePackageoverDetail(@RequestParam("id") Long id) { |
|||
int result = packageoverDetailService.deletePackageoverDetail(id); |
|||
return success(result > 0); |
|||
} |
|||
|
|||
@GetMapping("/get") |
|||
@Operation(summary = "获得翻包记录子") |
|||
@Parameter(name = "id", description = "编号", required = true, example = "1024") |
|||
@PreAuthorize("@ss.hasPermission('wms:packageover-detail:query')") |
|||
public CommonResult<PackageoverDetailRespVO> getPackageoverDetail(@RequestParam("id") Long id) { |
|||
PackageoverDetailDO packageoverDetail = packageoverDetailService.getPackageoverDetail(id); |
|||
return success(PackageoverDetailConvert.INSTANCE.convert(packageoverDetail)); |
|||
} |
|||
|
|||
@GetMapping("/list") |
|||
@Operation(summary = "获得翻包记录子列表") |
|||
@Parameter(name = "ids", description = "编号列表", required = true, example = "1024,2048") |
|||
@PreAuthorize("@ss.hasPermission('wms:packageover-detail:query')") |
|||
public CommonResult<List<PackageoverDetailRespVO>> getPackageoverDetailList(@RequestParam("ids") Collection<Long> ids) { |
|||
List<PackageoverDetailDO> list = packageoverDetailService.getPackageoverDetailList(ids); |
|||
return success(PackageoverDetailConvert.INSTANCE.convertList(list)); |
|||
} |
|||
|
|||
@GetMapping("/page") |
|||
@Operation(summary = "获得翻包记录子分页") |
|||
@PreAuthorize("@ss.hasPermission('wms:packageover-detail:query')") |
|||
public CommonResult<PageResult<PackageoverDetailRespVO>> getPackageoverDetailPage(@Valid PackageoverDetailPageReqVO pageVO) { |
|||
PageResult<PackageoverDetailDO> pageResult = packageoverDetailService.getPackageoverDetailPage(pageVO); |
|||
return success(PackageoverDetailConvert.INSTANCE.convertPage(pageResult)); |
|||
} |
|||
|
|||
@GetMapping("/export-excel") |
|||
@Operation(summary = "导出翻包记录子 Excel") |
|||
@PreAuthorize("@ss.hasPermission('wms:packageover-detail:export')") |
|||
@OperateLog(type = EXPORT) |
|||
public void exportPackageoverDetailExcel(@Valid PackageoverDetailExportReqVO exportReqVO, |
|||
HttpServletResponse response) throws IOException { |
|||
List<PackageoverDetailDO> list = packageoverDetailService.getPackageoverDetailList(exportReqVO); |
|||
// 导出 Excel
|
|||
List<PackageoverDetailExcelVO> datas = PackageoverDetailConvert.INSTANCE.convertList02(list); |
|||
ExcelUtils.write(response, "翻包记录子.xls", "数据", PackageoverDetailExcelVO.class, datas); |
|||
} |
|||
|
|||
@GetMapping("/get-import-template") |
|||
@Operation(summary = "获得导入翻包记录子模板") |
|||
public void importTemplate(HttpServletResponse response) throws IOException { |
|||
List<PackageoverDetailExcelVO> list = Arrays.asList(); |
|||
// 输出
|
|||
ExcelUtils.write(response, "翻包记录子基本信息导入模板.xls", "翻包记录子基本信息列表", PackageoverDetailExcelVO.class, list); |
|||
} |
|||
|
|||
} |
@ -0,0 +1,136 @@ |
|||
package com.win.module.wms.controller.packageovermain; |
|||
|
|||
import com.win.framework.common.pojo.CustomConditions; |
|||
import com.win.module.system.api.user.AdminUserApi; |
|||
import com.win.module.system.api.user.dto.AdminUserRespDTO; |
|||
import com.win.module.wms.controller.packagemergemain.vo.PackagemergeMainRespVO; |
|||
import com.win.module.wms.convert.packagemergemain.PackagemergeMainConvert; |
|||
import com.win.module.wms.dal.dataobject.packagemergemain.PackagemergeMainDO; |
|||
import io.swagger.v3.oas.annotations.Parameters; |
|||
import org.springframework.web.bind.annotation.*; |
|||
import javax.annotation.Resource; |
|||
import org.springframework.validation.annotation.Validated; |
|||
import org.springframework.security.access.prepost.PreAuthorize; |
|||
import io.swagger.v3.oas.annotations.tags.Tag; |
|||
import io.swagger.v3.oas.annotations.Parameter; |
|||
import io.swagger.v3.oas.annotations.Operation; |
|||
|
|||
import javax.validation.constraints.*; |
|||
import javax.validation.*; |
|||
import javax.servlet.http.*; |
|||
import java.time.LocalDateTime; |
|||
import java.time.ZoneOffset; |
|||
import java.util.*; |
|||
import java.io.IOException; |
|||
|
|||
import com.win.framework.common.pojo.PageResult; |
|||
import com.win.framework.common.pojo.CommonResult; |
|||
import static com.win.framework.common.pojo.CommonResult.success; |
|||
|
|||
import com.win.framework.excel.core.util.ExcelUtils; |
|||
|
|||
import com.win.framework.operatelog.core.annotations.OperateLog; |
|||
import static com.win.framework.operatelog.core.enums.OperateTypeEnum.*; |
|||
|
|||
import com.win.module.wms.controller.packageovermain.vo.*; |
|||
import com.win.module.wms.dal.dataobject.packageovermain.PackageoverMainDO; |
|||
import com.win.module.wms.convert.packageovermain.PackageoverMainConvert; |
|||
import com.win.module.wms.service.packageovermain.PackageoverMainService; |
|||
import org.springframework.web.multipart.MultipartFile; |
|||
|
|||
@Tag(name = "管理后台 - 翻包记录主") |
|||
@RestController |
|||
@RequestMapping("/wms/packageover-main") |
|||
@Validated |
|||
public class PackageoverMainController { |
|||
|
|||
@Resource |
|||
private AdminUserApi userApi; |
|||
@Resource |
|||
private PackageoverMainService packageoverMainService; |
|||
|
|||
@PostMapping("/create") |
|||
@Operation(summary = "创建翻包记录主") |
|||
@PreAuthorize("@ss.hasPermission('wms:packageover-main:create')") |
|||
public CommonResult<Long> createPackageoverMain(@Valid @RequestBody PackageoverMainCreateReqVO createReqVO) { |
|||
return success(packageoverMainService.createPackageoverMain(createReqVO)); |
|||
} |
|||
|
|||
@PutMapping("/update") |
|||
@Operation(summary = "更新翻包记录主") |
|||
@PreAuthorize("@ss.hasPermission('wms:packageover-main:update')") |
|||
public CommonResult<Boolean> updatePackageoverMain(@Valid @RequestBody PackageoverMainUpdateReqVO updateReqVO) { |
|||
int result = packageoverMainService.updatePackageoverMain(updateReqVO); |
|||
return success(result > 0); |
|||
} |
|||
|
|||
@DeleteMapping("/delete") |
|||
@Operation(summary = "删除翻包记录主") |
|||
@Parameter(name = "id", description = "编号", required = true) |
|||
@PreAuthorize("@ss.hasPermission('wms:packageover-main:delete')") |
|||
public CommonResult<Boolean> deletePackageoverMain(@RequestParam("id") Long id) { |
|||
int result = packageoverMainService.deletePackageoverMain(id); |
|||
return success(result > 0); |
|||
} |
|||
|
|||
@GetMapping("/get") |
|||
@Operation(summary = "获得翻包记录主") |
|||
@Parameter(name = "id", description = "编号", required = true, example = "1024") |
|||
@PreAuthorize("@ss.hasPermission('wms:packageover-main:query')") |
|||
public CommonResult<PackageoverMainRespVO> getPackageoverMain(@RequestParam("id") Long id) { |
|||
PackageoverMainDO packageoverMain = packageoverMainService.getPackageoverMain(id); |
|||
return success(PackageoverMainConvert.INSTANCE.convert(packageoverMain)); |
|||
} |
|||
|
|||
@GetMapping("/list") |
|||
@Operation(summary = "获得翻包记录主列表") |
|||
@Parameter(name = "ids", description = "编号列表", required = true, example = "1024,2048") |
|||
@PreAuthorize("@ss.hasPermission('wms:packageover-main:query')") |
|||
public CommonResult<List<PackageoverMainRespVO>> getPackageoverMainList(@RequestParam("ids") Collection<Long> ids) { |
|||
List<PackageoverMainDO> list = packageoverMainService.getPackageoverMainList(ids); |
|||
return success(PackageoverMainConvert.INSTANCE.convertList(list)); |
|||
} |
|||
|
|||
@GetMapping("/page") |
|||
@Operation(summary = "获得翻包记录主分页") |
|||
@PreAuthorize("@ss.hasPermission('wms:packageover-main:query')") |
|||
public CommonResult<PageResult<PackageoverMainRespVO>> getPackageoverMainPage(@Valid PackageoverMainPageReqVO pageVO) { |
|||
PageResult<PackageoverMainDO> pageResult = packageoverMainService.getPackageoverMainPage(pageVO); |
|||
return success(PackageoverMainConvert.INSTANCE.convertPage(pageResult)); |
|||
} |
|||
|
|||
@PostMapping("/senior") |
|||
@Operation(summary = "高级搜索获得翻包记录主分页") |
|||
@PreAuthorize("@ss.hasPermission('wms:packageover-main:query')") |
|||
public CommonResult<PageResult<PackageoverMainRespVO>> getPackageoverMainSenior(@Valid @RequestBody CustomConditions conditions) { |
|||
PageResult<PackageoverMainDO> pageResult = packageoverMainService.getPackageoverMainSenior(conditions); |
|||
PageResult<PackageoverMainRespVO> result = PackageoverMainConvert.INSTANCE.convertPage(pageResult); |
|||
for(PackageoverMainRespVO vo : result.getList()) { |
|||
AdminUserRespDTO user = userApi.getUser(Long.valueOf(vo.getCreator())); |
|||
//后端创建个字段作为前端展示的虚拟字段
|
|||
vo.setCreator(user.getNickname()); |
|||
} |
|||
return success(result); |
|||
} |
|||
|
|||
@GetMapping("/export-excel") |
|||
@Operation(summary = "导出翻包记录主 Excel") |
|||
@PreAuthorize("@ss.hasPermission('wms:packageover-main:export')") |
|||
@OperateLog(type = EXPORT) |
|||
public void exportPackageoverMainExcel(@Valid PackageoverMainExportReqVO exportReqVO, |
|||
HttpServletResponse response) throws IOException { |
|||
List<PackageoverMainDO> list = packageoverMainService.getPackageoverMainList(exportReqVO); |
|||
// 导出 Excel
|
|||
List<PackageoverMainExcelVO> datas = PackageoverMainConvert.INSTANCE.convertList02(list); |
|||
ExcelUtils.write(response, "翻包记录主.xls", "数据", PackageoverMainExcelVO.class, datas); |
|||
} |
|||
|
|||
@GetMapping("/get-import-template") |
|||
@Operation(summary = "获得导入翻包记录主模板") |
|||
public void importTemplate(HttpServletResponse response) throws IOException { |
|||
List<PackageoverMainExcelVO> list = Arrays.asList(); |
|||
// 输出
|
|||
ExcelUtils.write(response, "翻包记录主基本信息导入模板.xls", "翻包记录主基本信息列表", PackageoverMainExcelVO.class, list); |
|||
} |
|||
|
|||
} |
@ -0,0 +1,97 @@ |
|||
package com.win.module.wms.controller.packageovermain.vo; |
|||
|
|||
import io.swagger.v3.oas.annotations.media.Schema; |
|||
import lombok.*; |
|||
import java.util.*; |
|||
import java.time.LocalDateTime; |
|||
import java.math.BigDecimal; |
|||
import java.math.BigDecimal; |
|||
import java.time.LocalDateTime; |
|||
import javax.validation.constraints.*; |
|||
|
|||
/** |
|||
* 翻包记录子 Base VO,提供给添加、修改、详细的子 VO 使用 |
|||
* 如果子 VO 存在差异的字段,请不要添加到这里,影响 Swagger 文档生成 |
|||
*/ |
|||
@Data |
|||
public class PackageoverDetailBaseVO { |
|||
|
|||
@Schema(description = "库位代码") |
|||
private String locationCode; |
|||
|
|||
@Schema(description = "库位组代码") |
|||
private String locationGroupCode; |
|||
|
|||
@Schema(description = "库区代码") |
|||
private String areaCode; |
|||
|
|||
@Schema(description = "从包装号") |
|||
private String fromPackingNumber; |
|||
|
|||
@Schema(description = "到包装号") |
|||
private String toPackingNumber; |
|||
|
|||
@Schema(description = "从批次") |
|||
private String fromBatch; |
|||
|
|||
@Schema(description = "到批次") |
|||
private String toBatch; |
|||
|
|||
@Schema(description = "从库存状态", example = "2") |
|||
private String fromInventoryStatus; |
|||
|
|||
@Schema(description = "到库存状态", example = "1") |
|||
private String toInventoryStatus; |
|||
|
|||
@Schema(description = "从器具号") |
|||
private String fromContainerNumber; |
|||
|
|||
@Schema(description = "到器具号") |
|||
private String toContainerNumber; |
|||
|
|||
@Schema(description = "从货主代码") |
|||
private String fromOwnerCode; |
|||
|
|||
@Schema(description = "到货主代码") |
|||
private String toOwnerCode; |
|||
|
|||
@Schema(description = "主表ID", example = "19413") |
|||
private Long masterId; |
|||
|
|||
@Schema(description = "单据号") |
|||
private String number; |
|||
|
|||
@Schema(description = "物品代码") |
|||
private String itemCode; |
|||
|
|||
@Schema(description = "备注", example = "你说的对") |
|||
private String remark; |
|||
|
|||
@Schema(description = "地点ID", example = "14071") |
|||
private String siteId; |
|||
|
|||
@Schema(description = "物品名称", example = "王五") |
|||
private String itemName; |
|||
|
|||
@Schema(description = "物品描述1") |
|||
private String itemDesc1; |
|||
|
|||
@Schema(description = "物品描述2") |
|||
private String itemDesc2; |
|||
|
|||
@Schema(description = "项目代码") |
|||
private String projectCode; |
|||
|
|||
@Schema(description = "到数量") |
|||
private BigDecimal toQty; |
|||
|
|||
@Schema(description = "从数量") |
|||
private BigDecimal fromQty; |
|||
|
|||
@Schema(description = "计量单位") |
|||
private String uom; |
|||
|
|||
@Schema(description = "接口类型", example = "1") |
|||
private String interfaceType; |
|||
|
|||
} |
@ -0,0 +1,12 @@ |
|||
package com.win.module.wms.controller.packageovermain.vo; |
|||
|
|||
import lombok.*; |
|||
import io.swagger.v3.oas.annotations.media.Schema; |
|||
|
|||
@Schema(description = "管理后台 - 翻包记录子创建 Request VO") |
|||
@Data |
|||
@EqualsAndHashCode(callSuper = true) |
|||
@ToString(callSuper = true) |
|||
public class PackageoverDetailCreateReqVO extends PackageoverDetailBaseVO { |
|||
|
|||
} |
@ -0,0 +1,105 @@ |
|||
package com.win.module.wms.controller.packageovermain.vo; |
|||
|
|||
import io.swagger.v3.oas.annotations.media.Schema; |
|||
import lombok.*; |
|||
import java.util.*; |
|||
import java.time.LocalDateTime; |
|||
import java.math.BigDecimal; |
|||
import java.math.BigDecimal; |
|||
import java.time.LocalDateTime; |
|||
|
|||
import com.alibaba.excel.annotation.ExcelProperty; |
|||
|
|||
/** |
|||
* 翻包记录子 Excel VO |
|||
* |
|||
* @author 超级管理员 |
|||
*/ |
|||
@Data |
|||
public class PackageoverDetailExcelVO { |
|||
|
|||
@ExcelProperty("id") |
|||
private Long id; |
|||
|
|||
@ExcelProperty("库位代码") |
|||
private String locationCode; |
|||
|
|||
@ExcelProperty("库位组代码") |
|||
private String locationGroupCode; |
|||
|
|||
@ExcelProperty("库区代码") |
|||
private String areaCode; |
|||
|
|||
@ExcelProperty("从包装号") |
|||
private String fromPackingNumber; |
|||
|
|||
@ExcelProperty("到包装号") |
|||
private String toPackingNumber; |
|||
|
|||
@ExcelProperty("从批次") |
|||
private String fromBatch; |
|||
|
|||
@ExcelProperty("到批次") |
|||
private String toBatch; |
|||
|
|||
@ExcelProperty("从库存状态") |
|||
private String fromInventoryStatus; |
|||
|
|||
@ExcelProperty("到库存状态") |
|||
private String toInventoryStatus; |
|||
|
|||
@ExcelProperty("从器具号") |
|||
private String fromContainerNumber; |
|||
|
|||
@ExcelProperty("到器具号") |
|||
private String toContainerNumber; |
|||
|
|||
@ExcelProperty("从货主代码") |
|||
private String fromOwnerCode; |
|||
|
|||
@ExcelProperty("到货主代码") |
|||
private String toOwnerCode; |
|||
|
|||
@ExcelProperty("主表ID") |
|||
private Long masterId; |
|||
|
|||
@ExcelProperty("单据号") |
|||
private String number; |
|||
|
|||
@ExcelProperty("物品代码") |
|||
private String itemCode; |
|||
|
|||
@ExcelProperty("备注") |
|||
private String remark; |
|||
|
|||
@ExcelProperty("创建时间") |
|||
private LocalDateTime createTime; |
|||
|
|||
@ExcelProperty("地点ID") |
|||
private String siteId; |
|||
|
|||
@ExcelProperty("物品名称") |
|||
private String itemName; |
|||
|
|||
@ExcelProperty("物品描述1") |
|||
private String itemDesc1; |
|||
|
|||
@ExcelProperty("物品描述2") |
|||
private String itemDesc2; |
|||
|
|||
@ExcelProperty("项目代码") |
|||
private String projectCode; |
|||
|
|||
@ExcelProperty("到数量") |
|||
private BigDecimal toQty; |
|||
|
|||
@ExcelProperty("从数量") |
|||
private BigDecimal fromQty; |
|||
|
|||
@ExcelProperty("计量单位") |
|||
private String uom; |
|||
|
|||
@ExcelProperty("接口类型") |
|||
private String interfaceType; |
|||
|
|||
} |
@ -0,0 +1,100 @@ |
|||
package com.win.module.wms.controller.packageovermain.vo; |
|||
|
|||
import lombok.*; |
|||
|
|||
import java.math.BigDecimal; |
|||
import java.util.*; |
|||
import io.swagger.v3.oas.annotations.media.Schema; |
|||
import com.win.framework.common.pojo.PageParam; |
|||
import java.time.LocalDateTime; |
|||
import org.springframework.format.annotation.DateTimeFormat; |
|||
|
|||
import static com.win.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND; |
|||
|
|||
@Schema(description = "管理后台 - 翻包记录子 Excel 导出 Request VO,参数和 PackageoverDetailPageReqVO 是一致的") |
|||
@Data |
|||
public class PackageoverDetailExportReqVO { |
|||
|
|||
@Schema(description = "库位代码") |
|||
private String locationCode; |
|||
|
|||
@Schema(description = "库位组代码") |
|||
private String locationGroupCode; |
|||
|
|||
@Schema(description = "库区代码") |
|||
private String areaCode; |
|||
|
|||
@Schema(description = "从包装号") |
|||
private String fromPackingNumber; |
|||
|
|||
@Schema(description = "到包装号") |
|||
private String toPackingNumber; |
|||
|
|||
@Schema(description = "从批次") |
|||
private String fromBatch; |
|||
|
|||
@Schema(description = "到批次") |
|||
private String toBatch; |
|||
|
|||
@Schema(description = "从库存状态", example = "2") |
|||
private String fromInventoryStatus; |
|||
|
|||
@Schema(description = "到库存状态", example = "1") |
|||
private String toInventoryStatus; |
|||
|
|||
@Schema(description = "从器具号") |
|||
private String fromContainerNumber; |
|||
|
|||
@Schema(description = "到器具号") |
|||
private String toContainerNumber; |
|||
|
|||
@Schema(description = "从货主代码") |
|||
private String fromOwnerCode; |
|||
|
|||
@Schema(description = "到货主代码") |
|||
private String toOwnerCode; |
|||
|
|||
@Schema(description = "主表ID", example = "19413") |
|||
private Long masterId; |
|||
|
|||
@Schema(description = "单据号") |
|||
private String number; |
|||
|
|||
@Schema(description = "物品代码") |
|||
private String itemCode; |
|||
|
|||
@Schema(description = "备注", example = "你说的对") |
|||
private String remark; |
|||
|
|||
@Schema(description = "创建时间") |
|||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) |
|||
private LocalDateTime[] createTime; |
|||
|
|||
@Schema(description = "地点ID", example = "14071") |
|||
private String siteId; |
|||
|
|||
@Schema(description = "物品名称", example = "王五") |
|||
private String itemName; |
|||
|
|||
@Schema(description = "物品描述1") |
|||
private String itemDesc1; |
|||
|
|||
@Schema(description = "物品描述2") |
|||
private String itemDesc2; |
|||
|
|||
@Schema(description = "项目代码") |
|||
private String projectCode; |
|||
|
|||
@Schema(description = "到数量") |
|||
private BigDecimal toQty; |
|||
|
|||
@Schema(description = "从数量") |
|||
private BigDecimal fromQty; |
|||
|
|||
@Schema(description = "计量单位") |
|||
private String uom; |
|||
|
|||
@Schema(description = "接口类型", example = "1") |
|||
private String interfaceType; |
|||
|
|||
} |
@ -0,0 +1,102 @@ |
|||
package com.win.module.wms.controller.packageovermain.vo; |
|||
|
|||
import lombok.*; |
|||
|
|||
import java.math.BigDecimal; |
|||
import java.util.*; |
|||
import io.swagger.v3.oas.annotations.media.Schema; |
|||
import com.win.framework.common.pojo.PageParam; |
|||
import org.springframework.format.annotation.DateTimeFormat; |
|||
import java.time.LocalDateTime; |
|||
|
|||
import static com.win.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND; |
|||
|
|||
@Schema(description = "管理后台 - 翻包记录子分页 Request VO") |
|||
@Data |
|||
@EqualsAndHashCode(callSuper = true) |
|||
@ToString(callSuper = true) |
|||
public class PackageoverDetailPageReqVO extends PageParam { |
|||
|
|||
@Schema(description = "库位代码") |
|||
private String locationCode; |
|||
|
|||
@Schema(description = "库位组代码") |
|||
private String locationGroupCode; |
|||
|
|||
@Schema(description = "库区代码") |
|||
private String areaCode; |
|||
|
|||
@Schema(description = "从包装号") |
|||
private String fromPackingNumber; |
|||
|
|||
@Schema(description = "到包装号") |
|||
private String toPackingNumber; |
|||
|
|||
@Schema(description = "从批次") |
|||
private String fromBatch; |
|||
|
|||
@Schema(description = "到批次") |
|||
private String toBatch; |
|||
|
|||
@Schema(description = "从库存状态", example = "2") |
|||
private String fromInventoryStatus; |
|||
|
|||
@Schema(description = "到库存状态", example = "1") |
|||
private String toInventoryStatus; |
|||
|
|||
@Schema(description = "从器具号") |
|||
private String fromContainerNumber; |
|||
|
|||
@Schema(description = "到器具号") |
|||
private String toContainerNumber; |
|||
|
|||
@Schema(description = "从货主代码") |
|||
private String fromOwnerCode; |
|||
|
|||
@Schema(description = "到货主代码") |
|||
private String toOwnerCode; |
|||
|
|||
@Schema(description = "主表ID", example = "19413") |
|||
private Long masterId; |
|||
|
|||
@Schema(description = "单据号") |
|||
private String number; |
|||
|
|||
@Schema(description = "物品代码") |
|||
private String itemCode; |
|||
|
|||
@Schema(description = "备注", example = "你说的对") |
|||
private String remark; |
|||
|
|||
@Schema(description = "创建时间") |
|||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) |
|||
private LocalDateTime[] createTime; |
|||
|
|||
@Schema(description = "地点ID", example = "14071") |
|||
private String siteId; |
|||
|
|||
@Schema(description = "物品名称", example = "王五") |
|||
private String itemName; |
|||
|
|||
@Schema(description = "物品描述1") |
|||
private String itemDesc1; |
|||
|
|||
@Schema(description = "物品描述2") |
|||
private String itemDesc2; |
|||
|
|||
@Schema(description = "项目代码") |
|||
private String projectCode; |
|||
|
|||
@Schema(description = "到数量") |
|||
private BigDecimal toQty; |
|||
|
|||
@Schema(description = "从数量") |
|||
private BigDecimal fromQty; |
|||
|
|||
@Schema(description = "计量单位") |
|||
private String uom; |
|||
|
|||
@Schema(description = "接口类型", example = "1") |
|||
private String interfaceType; |
|||
|
|||
} |
@ -0,0 +1,19 @@ |
|||
package com.win.module.wms.controller.packageovermain.vo; |
|||
|
|||
import io.swagger.v3.oas.annotations.media.Schema; |
|||
import lombok.*; |
|||
import java.time.LocalDateTime; |
|||
|
|||
@Schema(description = "管理后台 - 翻包记录子 Response VO") |
|||
@Data |
|||
@EqualsAndHashCode(callSuper = true) |
|||
@ToString(callSuper = true) |
|||
public class PackageoverDetailRespVO extends PackageoverDetailBaseVO { |
|||
|
|||
@Schema(description = "id", requiredMode = Schema.RequiredMode.REQUIRED, example = "27780") |
|||
private Long id; |
|||
|
|||
@Schema(description = "创建时间") |
|||
private LocalDateTime createTime; |
|||
|
|||
} |
@ -0,0 +1,18 @@ |
|||
package com.win.module.wms.controller.packageovermain.vo; |
|||
|
|||
import io.swagger.v3.oas.annotations.media.Schema; |
|||
import lombok.*; |
|||
|
|||
import javax.validation.constraints.*; |
|||
|
|||
@Schema(description = "管理后台 - 翻包记录子更新 Request VO") |
|||
@Data |
|||
@EqualsAndHashCode(callSuper = true) |
|||
@ToString(callSuper = true) |
|||
public class PackageoverDetailUpdateReqVO extends PackageoverDetailBaseVO { |
|||
|
|||
@Schema(description = "id", requiredMode = Schema.RequiredMode.REQUIRED, example = "27780") |
|||
@NotNull(message = "id不能为空") |
|||
private Long id; |
|||
|
|||
} |
@ -0,0 +1,86 @@ |
|||
package com.win.module.wms.controller.packageovermain.vo; |
|||
|
|||
import io.swagger.v3.oas.annotations.media.Schema; |
|||
import lombok.*; |
|||
import java.util.*; |
|||
import java.time.LocalDateTime; |
|||
import java.time.LocalDateTime; |
|||
import java.time.LocalDateTime; |
|||
import java.time.LocalDateTime; |
|||
import java.time.LocalDateTime; |
|||
import java.time.LocalDateTime; |
|||
import javax.validation.constraints.*; |
|||
import org.springframework.format.annotation.DateTimeFormat; |
|||
|
|||
import static com.win.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND; |
|||
|
|||
/** |
|||
* 翻包记录主 Base VO,提供给添加、修改、详细的子 VO 使用 |
|||
* 如果子 VO 存在差异的字段,请不要添加到这里,影响 Swagger 文档生成 |
|||
*/ |
|||
@Data |
|||
public class PackageoverMainBaseVO { |
|||
|
|||
@Schema(description = "仓库代码") |
|||
private String warehouseCode; |
|||
|
|||
@Schema(description = "明细") |
|||
private String details; |
|||
|
|||
@Schema(description = "出库事务类型", example = "2") |
|||
private String outTransactionType; |
|||
|
|||
@Schema(description = "入库事务类型", example = "1") |
|||
private String inTransactionType; |
|||
|
|||
@Schema(description = "执行时间") |
|||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) |
|||
private LocalDateTime executeTime; |
|||
|
|||
@Schema(description = "生效日期") |
|||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) |
|||
private LocalDateTime activeDate; |
|||
|
|||
@Schema(description = "是否可用") |
|||
private String available; |
|||
|
|||
@Schema(description = "申请时间") |
|||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) |
|||
private LocalDateTime requestTime; |
|||
|
|||
@Schema(description = "截止时间") |
|||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) |
|||
private LocalDateTime dueTime; |
|||
|
|||
@Schema(description = "部门") |
|||
private String departmentCode; |
|||
|
|||
@Schema(description = "用户组") |
|||
private String userGroupCode; |
|||
|
|||
@Schema(description = "接口类型", example = "1") |
|||
private String interfaceType; |
|||
|
|||
@Schema(description = "单据号") |
|||
private String number; |
|||
|
|||
@Schema(description = "业务类型", example = "1") |
|||
private String businessType; |
|||
|
|||
@Schema(description = "备注", example = "你猜") |
|||
private String remark; |
|||
|
|||
@Schema(description = "创建者") |
|||
private String creator; |
|||
|
|||
@Schema(description = "创建时间") |
|||
private LocalDateTime createTime; |
|||
|
|||
@Schema(description = "更新者") |
|||
private String updater; |
|||
|
|||
@Schema(description = "更新时间") |
|||
private LocalDateTime updateTime; |
|||
|
|||
|
|||
} |
@ -0,0 +1,14 @@ |
|||
package com.win.module.wms.controller.packageovermain.vo; |
|||
|
|||
import lombok.*; |
|||
import java.util.*; |
|||
import io.swagger.v3.oas.annotations.media.Schema; |
|||
import javax.validation.constraints.*; |
|||
|
|||
@Schema(description = "管理后台 - 翻包记录主创建 Request VO") |
|||
@Data |
|||
@EqualsAndHashCode(callSuper = true) |
|||
@ToString(callSuper = true) |
|||
public class PackageoverMainCreateReqVO extends PackageoverMainBaseVO { |
|||
|
|||
} |
@ -0,0 +1,80 @@ |
|||
package com.win.module.wms.controller.packageovermain.vo; |
|||
|
|||
import io.swagger.v3.oas.annotations.media.Schema; |
|||
import lombok.*; |
|||
import java.util.*; |
|||
import java.time.LocalDateTime; |
|||
import java.time.LocalDateTime; |
|||
import java.time.LocalDateTime; |
|||
import java.time.LocalDateTime; |
|||
import java.time.LocalDateTime; |
|||
import java.time.LocalDateTime; |
|||
|
|||
import com.alibaba.excel.annotation.ExcelProperty; |
|||
|
|||
/** |
|||
* 翻包记录主 Excel VO |
|||
* |
|||
* @author 超级管理员 |
|||
*/ |
|||
@Data |
|||
public class PackageoverMainExcelVO { |
|||
|
|||
@ExcelProperty("id") |
|||
private Long id; |
|||
|
|||
@ExcelProperty("仓库代码") |
|||
private String warehouseCode; |
|||
|
|||
@ExcelProperty("明细") |
|||
private String details; |
|||
|
|||
@ExcelProperty("出库事务类型") |
|||
private String outTransactionType; |
|||
|
|||
@ExcelProperty("入库事务类型") |
|||
private String inTransactionType; |
|||
|
|||
@ExcelProperty("执行时间") |
|||
private LocalDateTime executeTime; |
|||
|
|||
@ExcelProperty("生效日期") |
|||
private LocalDateTime activeDate; |
|||
|
|||
@ExcelProperty("是否可用") |
|||
private String available; |
|||
|
|||
@ExcelProperty("申请时间") |
|||
private LocalDateTime requestTime; |
|||
|
|||
@ExcelProperty("截止时间") |
|||
private LocalDateTime dueTime; |
|||
|
|||
@ExcelProperty("部门") |
|||
private String departmentCode; |
|||
|
|||
@ExcelProperty("用户组") |
|||
private String userGroupCode; |
|||
|
|||
@ExcelProperty("接口类型") |
|||
private String interfaceType; |
|||
|
|||
@ExcelProperty("单据号") |
|||
private String number; |
|||
|
|||
@ExcelProperty("业务类型") |
|||
private String businessType; |
|||
|
|||
@ExcelProperty("备注") |
|||
private String remark; |
|||
|
|||
@ExcelProperty("创建时间") |
|||
private LocalDateTime createTime; |
|||
|
|||
@ExcelProperty("扩展属性") |
|||
private String extraProperties; |
|||
|
|||
@ExcelProperty("地点ID") |
|||
private String siteId; |
|||
|
|||
} |
@ -0,0 +1,75 @@ |
|||
package com.win.module.wms.controller.packageovermain.vo; |
|||
|
|||
import lombok.*; |
|||
import java.util.*; |
|||
import io.swagger.v3.oas.annotations.media.Schema; |
|||
import com.win.framework.common.pojo.PageParam; |
|||
import java.time.LocalDateTime; |
|||
import org.springframework.format.annotation.DateTimeFormat; |
|||
|
|||
import static com.win.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND; |
|||
|
|||
@Schema(description = "管理后台 - 翻包记录主 Excel 导出 Request VO,参数和 PackageoverMainPageReqVO 是一致的") |
|||
@Data |
|||
public class PackageoverMainExportReqVO { |
|||
|
|||
@Schema(description = "仓库代码") |
|||
private String warehouseCode; |
|||
|
|||
@Schema(description = "明细") |
|||
private String details; |
|||
|
|||
@Schema(description = "出库事务类型", example = "2") |
|||
private String outTransactionType; |
|||
|
|||
@Schema(description = "入库事务类型", example = "1") |
|||
private String inTransactionType; |
|||
|
|||
@Schema(description = "执行时间") |
|||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) |
|||
private LocalDateTime[] executeTime; |
|||
|
|||
@Schema(description = "生效日期") |
|||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) |
|||
private LocalDateTime[] activeDate; |
|||
|
|||
@Schema(description = "是否可用") |
|||
private String available; |
|||
|
|||
@Schema(description = "申请时间") |
|||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) |
|||
private LocalDateTime[] requestTime; |
|||
|
|||
@Schema(description = "截止时间") |
|||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) |
|||
private LocalDateTime[] dueTime; |
|||
|
|||
@Schema(description = "部门") |
|||
private String departmentCode; |
|||
|
|||
@Schema(description = "用户组") |
|||
private String userGroupCode; |
|||
|
|||
@Schema(description = "接口类型", example = "1") |
|||
private String interfaceType; |
|||
|
|||
@Schema(description = "单据号") |
|||
private String number; |
|||
|
|||
@Schema(description = "业务类型", example = "1") |
|||
private String businessType; |
|||
|
|||
@Schema(description = "备注", example = "你猜") |
|||
private String remark; |
|||
|
|||
@Schema(description = "创建时间") |
|||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) |
|||
private LocalDateTime[] createTime; |
|||
|
|||
@Schema(description = "扩展属性") |
|||
private String extraProperties; |
|||
|
|||
@Schema(description = "地点ID", example = "32228") |
|||
private String siteId; |
|||
|
|||
} |
@ -0,0 +1,77 @@ |
|||
package com.win.module.wms.controller.packageovermain.vo; |
|||
|
|||
import lombok.*; |
|||
import java.util.*; |
|||
import io.swagger.v3.oas.annotations.media.Schema; |
|||
import com.win.framework.common.pojo.PageParam; |
|||
import org.springframework.format.annotation.DateTimeFormat; |
|||
import java.time.LocalDateTime; |
|||
|
|||
import static com.win.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND; |
|||
|
|||
@Schema(description = "管理后台 - 翻包记录主分页 Request VO") |
|||
@Data |
|||
@EqualsAndHashCode(callSuper = true) |
|||
@ToString(callSuper = true) |
|||
public class PackageoverMainPageReqVO extends PageParam { |
|||
|
|||
@Schema(description = "仓库代码") |
|||
private String warehouseCode; |
|||
|
|||
@Schema(description = "明细") |
|||
private String details; |
|||
|
|||
@Schema(description = "出库事务类型", example = "2") |
|||
private String outTransactionType; |
|||
|
|||
@Schema(description = "入库事务类型", example = "1") |
|||
private String inTransactionType; |
|||
|
|||
@Schema(description = "执行时间") |
|||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) |
|||
private LocalDateTime[] executeTime; |
|||
|
|||
@Schema(description = "生效日期") |
|||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) |
|||
private LocalDateTime[] activeDate; |
|||
|
|||
@Schema(description = "是否可用") |
|||
private String available; |
|||
|
|||
@Schema(description = "申请时间") |
|||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) |
|||
private LocalDateTime[] requestTime; |
|||
|
|||
@Schema(description = "截止时间") |
|||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) |
|||
private LocalDateTime[] dueTime; |
|||
|
|||
@Schema(description = "部门") |
|||
private String departmentCode; |
|||
|
|||
@Schema(description = "用户组") |
|||
private String userGroupCode; |
|||
|
|||
@Schema(description = "接口类型", example = "1") |
|||
private String interfaceType; |
|||
|
|||
@Schema(description = "单据号") |
|||
private String number; |
|||
|
|||
@Schema(description = "业务类型", example = "1") |
|||
private String businessType; |
|||
|
|||
@Schema(description = "备注", example = "你猜") |
|||
private String remark; |
|||
|
|||
@Schema(description = "创建时间") |
|||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) |
|||
private LocalDateTime[] createTime; |
|||
|
|||
@Schema(description = "扩展属性") |
|||
private String extraProperties; |
|||
|
|||
@Schema(description = "地点ID", example = "32228") |
|||
private String siteId; |
|||
|
|||
} |
@ -0,0 +1,13 @@ |
|||
package com.win.module.wms.controller.packageovermain.vo; |
|||
|
|||
import io.swagger.v3.oas.annotations.media.Schema; |
|||
import lombok.*; |
|||
import java.time.LocalDateTime; |
|||
|
|||
@Schema(description = "管理后台 - 翻包记录主 Response VO") |
|||
@Data |
|||
@EqualsAndHashCode(callSuper = true) |
|||
@ToString(callSuper = true) |
|||
public class PackageoverMainRespVO extends PackageoverMainBaseVO { |
|||
|
|||
} |
@ -0,0 +1,18 @@ |
|||
package com.win.module.wms.controller.packageovermain.vo; |
|||
|
|||
import io.swagger.v3.oas.annotations.media.Schema; |
|||
import lombok.*; |
|||
import java.util.*; |
|||
import javax.validation.constraints.*; |
|||
|
|||
@Schema(description = "管理后台 - 翻包记录主更新 Request VO") |
|||
@Data |
|||
@EqualsAndHashCode(callSuper = true) |
|||
@ToString(callSuper = true) |
|||
public class PackageoverMainUpdateReqVO extends PackageoverMainBaseVO { |
|||
|
|||
@Schema(description = "id", requiredMode = Schema.RequiredMode.REQUIRED, example = "2501") |
|||
@NotNull(message = "id不能为空") |
|||
private Long id; |
|||
|
|||
} |
@ -0,0 +1,114 @@ |
|||
package com.win.module.wms.controller.packagesplitmain; |
|||
|
|||
import io.swagger.v3.oas.annotations.Parameters; |
|||
import org.springframework.web.bind.annotation.*; |
|||
import javax.annotation.Resource; |
|||
import org.springframework.validation.annotation.Validated; |
|||
import org.springframework.security.access.prepost.PreAuthorize; |
|||
import io.swagger.v3.oas.annotations.tags.Tag; |
|||
import io.swagger.v3.oas.annotations.Parameter; |
|||
import io.swagger.v3.oas.annotations.Operation; |
|||
|
|||
import javax.validation.constraints.*; |
|||
import javax.validation.*; |
|||
import javax.servlet.http.*; |
|||
import java.time.LocalDateTime; |
|||
import java.time.ZoneOffset; |
|||
import java.util.*; |
|||
import java.io.IOException; |
|||
|
|||
import com.win.framework.common.pojo.PageResult; |
|||
import com.win.framework.common.pojo.CommonResult; |
|||
import static com.win.framework.common.pojo.CommonResult.success; |
|||
|
|||
import com.win.framework.excel.core.util.ExcelUtils; |
|||
|
|||
import com.win.framework.operatelog.core.annotations.OperateLog; |
|||
import static com.win.framework.operatelog.core.enums.OperateTypeEnum.*; |
|||
|
|||
import com.win.module.wms.controller.packagesplitmain.vo.*; |
|||
import com.win.module.wms.dal.dataobject.packagesplitmain.PackagesplitDetailDO; |
|||
import com.win.module.wms.convert.packagesplitmain.PackagesplitDetailConvert; |
|||
import com.win.module.wms.service.packagesplitmain.PackagesplitDetailService; |
|||
import org.springframework.web.multipart.MultipartFile; |
|||
|
|||
@Tag(name = "管理后台 - 拆包记录子") |
|||
@RestController |
|||
@RequestMapping("/wms/packagesplit-detail") |
|||
@Validated |
|||
public class PackagesplitDetailController { |
|||
|
|||
@Resource |
|||
private PackagesplitDetailService packagesplitDetailService; |
|||
|
|||
@PostMapping("/create") |
|||
@Operation(summary = "创建拆包记录子") |
|||
@PreAuthorize("@ss.hasPermission('wms:packagesplit-detail:create')") |
|||
public CommonResult<Long> createPackagesplitDetail(@Valid @RequestBody PackagesplitDetailCreateReqVO createReqVO) { |
|||
return success(packagesplitDetailService.createPackagesplitDetail(createReqVO)); |
|||
} |
|||
|
|||
@PutMapping("/update") |
|||
@Operation(summary = "更新拆包记录子") |
|||
@PreAuthorize("@ss.hasPermission('wms:packagesplit-detail:update')") |
|||
public CommonResult<Boolean> updatePackagesplitDetail(@Valid @RequestBody PackagesplitDetailUpdateReqVO updateReqVO) { |
|||
int result = packagesplitDetailService.updatePackagesplitDetail(updateReqVO); |
|||
return success(result > 0); |
|||
} |
|||
|
|||
@DeleteMapping("/delete") |
|||
@Operation(summary = "删除拆包记录子") |
|||
@Parameter(name = "id", description = "编号", required = true) |
|||
@PreAuthorize("@ss.hasPermission('wms:packagesplit-detail:delete')") |
|||
public CommonResult<Boolean> deletePackagesplitDetail(@RequestParam("id") Long id) { |
|||
int result = packagesplitDetailService.deletePackagesplitDetail(id); |
|||
return success(result > 0); |
|||
} |
|||
|
|||
@GetMapping("/get") |
|||
@Operation(summary = "获得拆包记录子") |
|||
@Parameter(name = "id", description = "编号", required = true, example = "1024") |
|||
@PreAuthorize("@ss.hasPermission('wms:packagesplit-detail:query')") |
|||
public CommonResult<PackagesplitDetailRespVO> getPackagesplitDetail(@RequestParam("id") Long id) { |
|||
PackagesplitDetailDO packagesplitDetail = packagesplitDetailService.getPackagesplitDetail(id); |
|||
return success(PackagesplitDetailConvert.INSTANCE.convert(packagesplitDetail)); |
|||
} |
|||
|
|||
@GetMapping("/list") |
|||
@Operation(summary = "获得拆包记录子列表") |
|||
@Parameter(name = "ids", description = "编号列表", required = true, example = "1024,2048") |
|||
@PreAuthorize("@ss.hasPermission('wms:packagesplit-detail:query')") |
|||
public CommonResult<List<PackagesplitDetailRespVO>> getPackagesplitDetailList(@RequestParam("ids") Collection<Long> ids) { |
|||
List<PackagesplitDetailDO> list = packagesplitDetailService.getPackagesplitDetailList(ids); |
|||
return success(PackagesplitDetailConvert.INSTANCE.convertList(list)); |
|||
} |
|||
|
|||
@GetMapping("/page") |
|||
@Operation(summary = "获得拆包记录子分页") |
|||
@PreAuthorize("@ss.hasPermission('wms:packagesplit-detail:query')") |
|||
public CommonResult<PageResult<PackagesplitDetailRespVO>> getPackagesplitDetailPage(@Valid PackagesplitDetailPageReqVO pageVO) { |
|||
PageResult<PackagesplitDetailDO> pageResult = packagesplitDetailService.getPackagesplitDetailPage(pageVO); |
|||
return success(PackagesplitDetailConvert.INSTANCE.convertPage(pageResult)); |
|||
} |
|||
|
|||
@GetMapping("/export-excel") |
|||
@Operation(summary = "导出拆包记录子 Excel") |
|||
@PreAuthorize("@ss.hasPermission('wms:packagesplit-detail:export')") |
|||
@OperateLog(type = EXPORT) |
|||
public void exportPackagesplitDetailExcel(@Valid PackagesplitDetailExportReqVO exportReqVO, |
|||
HttpServletResponse response) throws IOException { |
|||
List<PackagesplitDetailDO> list = packagesplitDetailService.getPackagesplitDetailList(exportReqVO); |
|||
// 导出 Excel
|
|||
List<PackagesplitDetailExcelVO> datas = PackagesplitDetailConvert.INSTANCE.convertList02(list); |
|||
ExcelUtils.write(response, "拆包记录子.xls", "数据", PackagesplitDetailExcelVO.class, datas); |
|||
} |
|||
|
|||
@GetMapping("/get-import-template") |
|||
@Operation(summary = "获得导入拆包记录子模板") |
|||
public void importTemplate(HttpServletResponse response) throws IOException { |
|||
List<PackagesplitDetailExcelVO> list = Arrays.asList(); |
|||
// 输出
|
|||
ExcelUtils.write(response, "拆包记录子基本信息导入模板.xls", "拆包记录子基本信息列表", PackagesplitDetailExcelVO.class, list); |
|||
} |
|||
|
|||
} |
@ -0,0 +1,136 @@ |
|||
package com.win.module.wms.controller.packagesplitmain; |
|||
|
|||
import com.win.framework.common.pojo.CustomConditions; |
|||
import com.win.module.system.api.user.AdminUserApi; |
|||
import com.win.module.system.api.user.dto.AdminUserRespDTO; |
|||
import com.win.module.wms.controller.packageovermain.vo.PackageoverMainRespVO; |
|||
import com.win.module.wms.convert.packageovermain.PackageoverMainConvert; |
|||
import com.win.module.wms.dal.dataobject.packageovermain.PackageoverMainDO; |
|||
import io.swagger.v3.oas.annotations.Parameters; |
|||
import org.springframework.web.bind.annotation.*; |
|||
import javax.annotation.Resource; |
|||
import org.springframework.validation.annotation.Validated; |
|||
import org.springframework.security.access.prepost.PreAuthorize; |
|||
import io.swagger.v3.oas.annotations.tags.Tag; |
|||
import io.swagger.v3.oas.annotations.Parameter; |
|||
import io.swagger.v3.oas.annotations.Operation; |
|||
|
|||
import javax.validation.constraints.*; |
|||
import javax.validation.*; |
|||
import javax.servlet.http.*; |
|||
import java.time.LocalDateTime; |
|||
import java.time.ZoneOffset; |
|||
import java.util.*; |
|||
import java.io.IOException; |
|||
|
|||
import com.win.framework.common.pojo.PageResult; |
|||
import com.win.framework.common.pojo.CommonResult; |
|||
import static com.win.framework.common.pojo.CommonResult.success; |
|||
|
|||
import com.win.framework.excel.core.util.ExcelUtils; |
|||
|
|||
import com.win.framework.operatelog.core.annotations.OperateLog; |
|||
import static com.win.framework.operatelog.core.enums.OperateTypeEnum.*; |
|||
|
|||
import com.win.module.wms.controller.packagesplitmain.vo.*; |
|||
import com.win.module.wms.dal.dataobject.packagesplitmain.PackagesplitMainDO; |
|||
import com.win.module.wms.convert.packagesplitmain.PackagesplitMainConvert; |
|||
import com.win.module.wms.service.packagesplitmain.PackagesplitMainService; |
|||
import org.springframework.web.multipart.MultipartFile; |
|||
|
|||
@Tag(name = "管理后台 - 拆包记录主") |
|||
@RestController |
|||
@RequestMapping("/wms/packagesplit-main") |
|||
@Validated |
|||
public class PackagesplitMainController { |
|||
|
|||
@Resource |
|||
private AdminUserApi userApi; |
|||
@Resource |
|||
private PackagesplitMainService packagesplitMainService; |
|||
|
|||
@PostMapping("/create") |
|||
@Operation(summary = "创建拆包记录主") |
|||
@PreAuthorize("@ss.hasPermission('wms:packagesplit-main:create')") |
|||
public CommonResult<Long> createPackagesplitMain(@Valid @RequestBody PackagesplitMainCreateReqVO createReqVO) { |
|||
return success(packagesplitMainService.createPackagesplitMain(createReqVO)); |
|||
} |
|||
|
|||
@PutMapping("/update") |
|||
@Operation(summary = "更新拆包记录主") |
|||
@PreAuthorize("@ss.hasPermission('wms:packagesplit-main:update')") |
|||
public CommonResult<Boolean> updatePackagesplitMain(@Valid @RequestBody PackagesplitMainUpdateReqVO updateReqVO) { |
|||
int result = packagesplitMainService.updatePackagesplitMain(updateReqVO); |
|||
return success(result > 0); |
|||
} |
|||
|
|||
@DeleteMapping("/delete") |
|||
@Operation(summary = "删除拆包记录主") |
|||
@Parameter(name = "id", description = "编号", required = true) |
|||
@PreAuthorize("@ss.hasPermission('wms:packagesplit-main:delete')") |
|||
public CommonResult<Boolean> deletePackagesplitMain(@RequestParam("id") Long id) { |
|||
int result = packagesplitMainService.deletePackagesplitMain(id); |
|||
return success(result > 0); |
|||
} |
|||
|
|||
@GetMapping("/get") |
|||
@Operation(summary = "获得拆包记录主") |
|||
@Parameter(name = "id", description = "编号", required = true, example = "1024") |
|||
@PreAuthorize("@ss.hasPermission('wms:packagesplit-main:query')") |
|||
public CommonResult<PackagesplitMainRespVO> getPackagesplitMain(@RequestParam("id") Long id) { |
|||
PackagesplitMainDO packagesplitMain = packagesplitMainService.getPackagesplitMain(id); |
|||
return success(PackagesplitMainConvert.INSTANCE.convert(packagesplitMain)); |
|||
} |
|||
|
|||
@GetMapping("/list") |
|||
@Operation(summary = "获得拆包记录主列表") |
|||
@Parameter(name = "ids", description = "编号列表", required = true, example = "1024,2048") |
|||
@PreAuthorize("@ss.hasPermission('wms:packagesplit-main:query')") |
|||
public CommonResult<List<PackagesplitMainRespVO>> getPackagesplitMainList(@RequestParam("ids") Collection<Long> ids) { |
|||
List<PackagesplitMainDO> list = packagesplitMainService.getPackagesplitMainList(ids); |
|||
return success(PackagesplitMainConvert.INSTANCE.convertList(list)); |
|||
} |
|||
|
|||
@GetMapping("/page") |
|||
@Operation(summary = "获得拆包记录主分页") |
|||
@PreAuthorize("@ss.hasPermission('wms:packagesplit-main:query')") |
|||
public CommonResult<PageResult<PackagesplitMainRespVO>> getPackagesplitMainPage(@Valid PackagesplitMainPageReqVO pageVO) { |
|||
PageResult<PackagesplitMainDO> pageResult = packagesplitMainService.getPackagesplitMainPage(pageVO); |
|||
return success(PackagesplitMainConvert.INSTANCE.convertPage(pageResult)); |
|||
} |
|||
|
|||
@PostMapping("/senior") |
|||
@Operation(summary = "高级搜索获得拆包记录主分页") |
|||
@PreAuthorize("@ss.hasPermission('wms:packagesplit-main:query')") |
|||
public CommonResult<PageResult<PackagesplitMainRespVO>> getPackagesplitMainSenior(@Valid @RequestBody CustomConditions conditions) { |
|||
PageResult<PackagesplitMainDO> pageResult = packagesplitMainService.getPackagesplitMainSenior(conditions); |
|||
PageResult<PackagesplitMainRespVO> result = PackagesplitMainConvert.INSTANCE.convertPage(pageResult); |
|||
for(PackagesplitMainRespVO vo : result.getList()) { |
|||
AdminUserRespDTO user = userApi.getUser(Long.valueOf(vo.getCreator())); |
|||
//后端创建个字段作为前端展示的虚拟字段
|
|||
vo.setCreator(user.getNickname()); |
|||
} |
|||
return success(result); |
|||
} |
|||
|
|||
@GetMapping("/export-excel") |
|||
@Operation(summary = "导出拆包记录主 Excel") |
|||
@PreAuthorize("@ss.hasPermission('wms:packagesplit-main:export')") |
|||
@OperateLog(type = EXPORT) |
|||
public void exportPackagesplitMainExcel(@Valid PackagesplitMainExportReqVO exportReqVO, |
|||
HttpServletResponse response) throws IOException { |
|||
List<PackagesplitMainDO> list = packagesplitMainService.getPackagesplitMainList(exportReqVO); |
|||
// 导出 Excel
|
|||
List<PackagesplitMainExcelVO> datas = PackagesplitMainConvert.INSTANCE.convertList02(list); |
|||
ExcelUtils.write(response, "拆包记录主.xls", "数据", PackagesplitMainExcelVO.class, datas); |
|||
} |
|||
|
|||
@GetMapping("/get-import-template") |
|||
@Operation(summary = "获得导入拆包记录主模板") |
|||
public void importTemplate(HttpServletResponse response) throws IOException { |
|||
List<PackagesplitMainExcelVO> list = Arrays.asList(); |
|||
// 输出
|
|||
ExcelUtils.write(response, "拆包记录主基本信息导入模板.xls", "拆包记录主基本信息列表", PackagesplitMainExcelVO.class, list); |
|||
} |
|||
|
|||
} |
@ -0,0 +1,97 @@ |
|||
package com.win.module.wms.controller.packagesplitmain.vo; |
|||
|
|||
import io.swagger.v3.oas.annotations.media.Schema; |
|||
import lombok.*; |
|||
import java.util.*; |
|||
import java.time.LocalDateTime; |
|||
import java.math.BigDecimal; |
|||
import java.math.BigDecimal; |
|||
import java.time.LocalDateTime; |
|||
import javax.validation.constraints.*; |
|||
|
|||
/** |
|||
* 拆包记录子 Base VO,提供给添加、修改、详细的子 VO 使用 |
|||
* 如果子 VO 存在差异的字段,请不要添加到这里,影响 Swagger 文档生成 |
|||
*/ |
|||
@Data |
|||
public class PackagesplitDetailBaseVO { |
|||
|
|||
@Schema(description = "库位代码") |
|||
private String locationCode; |
|||
|
|||
@Schema(description = "库位组代码") |
|||
private String locationGroupCode; |
|||
|
|||
@Schema(description = "库区代码") |
|||
private String areaCode; |
|||
|
|||
@Schema(description = "从包装号") |
|||
private String fromPackingNumber; |
|||
|
|||
@Schema(description = "到包装号") |
|||
private String toPackingNumber; |
|||
|
|||
@Schema(description = "从批次") |
|||
private String fromBatch; |
|||
|
|||
@Schema(description = "到批次") |
|||
private String toBatch; |
|||
|
|||
@Schema(description = "从库存状态", example = "2") |
|||
private String fromInventoryStatus; |
|||
|
|||
@Schema(description = "到库存状态", example = "1") |
|||
private String toInventoryStatus; |
|||
|
|||
@Schema(description = "从器具号") |
|||
private String fromContainerNumber; |
|||
|
|||
@Schema(description = "到器具号") |
|||
private String toContainerNumber; |
|||
|
|||
@Schema(description = "从货主代码") |
|||
private String fromOwnerCode; |
|||
|
|||
@Schema(description = "到货主代码") |
|||
private String toOwnerCode; |
|||
|
|||
@Schema(description = "主表ID", example = "24141") |
|||
private Long masterId; |
|||
|
|||
@Schema(description = "单据号") |
|||
private String number; |
|||
|
|||
@Schema(description = "物品代码") |
|||
private String itemCode; |
|||
|
|||
@Schema(description = "备注", example = "你说的对") |
|||
private String remark; |
|||
|
|||
@Schema(description = "地点ID", example = "11960") |
|||
private String siteId; |
|||
|
|||
@Schema(description = "物品名称", example = "芋艿") |
|||
private String itemName; |
|||
|
|||
@Schema(description = "物品描述1") |
|||
private String itemDesc1; |
|||
|
|||
@Schema(description = "物品描述2") |
|||
private String itemDesc2; |
|||
|
|||
@Schema(description = "项目代码") |
|||
private String projectCode; |
|||
|
|||
@Schema(description = "到数量") |
|||
private BigDecimal toQty; |
|||
|
|||
@Schema(description = "从数量") |
|||
private BigDecimal fromQty; |
|||
|
|||
@Schema(description = "计量单位") |
|||
private String uom; |
|||
|
|||
@Schema(description = "接口类型", example = "1") |
|||
private String interfaceType; |
|||
|
|||
} |
@ -0,0 +1,14 @@ |
|||
package com.win.module.wms.controller.packagesplitmain.vo; |
|||
|
|||
import lombok.*; |
|||
import java.util.*; |
|||
import io.swagger.v3.oas.annotations.media.Schema; |
|||
import javax.validation.constraints.*; |
|||
|
|||
@Schema(description = "管理后台 - 拆包记录子创建 Request VO") |
|||
@Data |
|||
@EqualsAndHashCode(callSuper = true) |
|||
@ToString(callSuper = true) |
|||
public class PackagesplitDetailCreateReqVO extends PackagesplitDetailBaseVO { |
|||
|
|||
} |
@ -0,0 +1,105 @@ |
|||
package com.win.module.wms.controller.packagesplitmain.vo; |
|||
|
|||
import io.swagger.v3.oas.annotations.media.Schema; |
|||
import lombok.*; |
|||
import java.util.*; |
|||
import java.time.LocalDateTime; |
|||
import java.math.BigDecimal; |
|||
import java.math.BigDecimal; |
|||
import java.time.LocalDateTime; |
|||
|
|||
import com.alibaba.excel.annotation.ExcelProperty; |
|||
|
|||
/** |
|||
* 拆包记录子 Excel VO |
|||
* |
|||
* @author 超级管理员 |
|||
*/ |
|||
@Data |
|||
public class PackagesplitDetailExcelVO { |
|||
|
|||
@ExcelProperty("id") |
|||
private Long id; |
|||
|
|||
@ExcelProperty("库位代码") |
|||
private String locationCode; |
|||
|
|||
@ExcelProperty("库位组代码") |
|||
private String locationGroupCode; |
|||
|
|||
@ExcelProperty("库区代码") |
|||
private String areaCode; |
|||
|
|||
@ExcelProperty("从包装号") |
|||
private String fromPackingNumber; |
|||
|
|||
@ExcelProperty("到包装号") |
|||
private String toPackingNumber; |
|||
|
|||
@ExcelProperty("从批次") |
|||
private String fromBatch; |
|||
|
|||
@ExcelProperty("到批次") |
|||
private String toBatch; |
|||
|
|||
@ExcelProperty("从库存状态") |
|||
private String fromInventoryStatus; |
|||
|
|||
@ExcelProperty("到库存状态") |
|||
private String toInventoryStatus; |
|||
|
|||
@ExcelProperty("从器具号") |
|||
private String fromContainerNumber; |
|||
|
|||
@ExcelProperty("到器具号") |
|||
private String toContainerNumber; |
|||
|
|||
@ExcelProperty("从货主代码") |
|||
private String fromOwnerCode; |
|||
|
|||
@ExcelProperty("到货主代码") |
|||
private String toOwnerCode; |
|||
|
|||
@ExcelProperty("主表ID") |
|||
private Long masterId; |
|||
|
|||
@ExcelProperty("单据号") |
|||
private String number; |
|||
|
|||
@ExcelProperty("物品代码") |
|||
private String itemCode; |
|||
|
|||
@ExcelProperty("备注") |
|||
private String remark; |
|||
|
|||
@ExcelProperty("创建时间") |
|||
private LocalDateTime createTime; |
|||
|
|||
@ExcelProperty("地点ID") |
|||
private String siteId; |
|||
|
|||
@ExcelProperty("物品名称") |
|||
private String itemName; |
|||
|
|||
@ExcelProperty("物品描述1") |
|||
private String itemDesc1; |
|||
|
|||
@ExcelProperty("物品描述2") |
|||
private String itemDesc2; |
|||
|
|||
@ExcelProperty("项目代码") |
|||
private String projectCode; |
|||
|
|||
@ExcelProperty("到数量") |
|||
private BigDecimal toQty; |
|||
|
|||
@ExcelProperty("从数量") |
|||
private BigDecimal fromQty; |
|||
|
|||
@ExcelProperty("计量单位") |
|||
private String uom; |
|||
|
|||
@ExcelProperty("接口类型") |
|||
private String interfaceType; |
|||
|
|||
} |
@ -0,0 +1,100 @@ |
|||
package com.win.module.wms.controller.packagesplitmain.vo; |
|||
|
|||
import lombok.*; |
|||
|
|||
import java.math.BigDecimal; |
|||
import java.util.*; |
|||
import io.swagger.v3.oas.annotations.media.Schema; |
|||
import com.win.framework.common.pojo.PageParam; |
|||
import java.time.LocalDateTime; |
|||
import org.springframework.format.annotation.DateTimeFormat; |
|||
|
|||
import static com.win.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND; |
|||
|
|||
@Schema(description = "管理后台 - 拆包记录子 Excel 导出 Request VO,参数和 PackagesplitDetailPageReqVO 是一致的") |
|||
@Data |
|||
public class PackagesplitDetailExportReqVO { |
|||
|
|||
@Schema(description = "库位代码") |
|||
private String locationCode; |
|||
|
|||
@Schema(description = "库位组代码") |
|||
private String locationGroupCode; |
|||
|
|||
@Schema(description = "库区代码") |
|||
private String areaCode; |
|||
|
|||
@Schema(description = "从包装号") |
|||
private String fromPackingNumber; |
|||
|
|||
@Schema(description = "到包装号") |
|||
private String toPackingNumber; |
|||
|
|||
@Schema(description = "从批次") |
|||
private String fromBatch; |
|||
|
|||
@Schema(description = "到批次") |
|||
private String toBatch; |
|||
|
|||
@Schema(description = "从库存状态", example = "2") |
|||
private String fromInventoryStatus; |
|||
|
|||
@Schema(description = "到库存状态", example = "1") |
|||
private String toInventoryStatus; |
|||
|
|||
@Schema(description = "从器具号") |
|||
private String fromContainerNumber; |
|||
|
|||
@Schema(description = "到器具号") |
|||
private String toContainerNumber; |
|||
|
|||
@Schema(description = "从货主代码") |
|||
private String fromOwnerCode; |
|||
|
|||
@Schema(description = "到货主代码") |
|||
private String toOwnerCode; |
|||
|
|||
@Schema(description = "主表ID", example = "24141") |
|||
private Long masterId; |
|||
|
|||
@Schema(description = "单据号") |
|||
private String number; |
|||
|
|||
@Schema(description = "物品代码") |
|||
private String itemCode; |
|||
|
|||
@Schema(description = "备注", example = "你说的对") |
|||
private String remark; |
|||
|
|||
@Schema(description = "创建时间") |
|||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) |
|||
private LocalDateTime[] createTime; |
|||
|
|||
@Schema(description = "地点ID", example = "11960") |
|||
private String siteId; |
|||
|
|||
@Schema(description = "物品名称", example = "芋艿") |
|||
private String itemName; |
|||
|
|||
@Schema(description = "物品描述1") |
|||
private String itemDesc1; |
|||
|
|||
@Schema(description = "物品描述2") |
|||
private String itemDesc2; |
|||
|
|||
@Schema(description = "项目代码") |
|||
private String projectCode; |
|||
|
|||
@Schema(description = "到数量") |
|||
private BigDecimal toQty; |
|||
|
|||
@Schema(description = "从数量") |
|||
private BigDecimal fromQty; |
|||
|
|||
@Schema(description = "计量单位") |
|||
private String uom; |
|||
|
|||
@Schema(description = "接口类型", example = "1") |
|||
private String interfaceType; |
|||
|
|||
} |
@ -0,0 +1,102 @@ |
|||
package com.win.module.wms.controller.packagesplitmain.vo; |
|||
|
|||
import lombok.*; |
|||
|
|||
import java.math.BigDecimal; |
|||
import java.util.*; |
|||
import io.swagger.v3.oas.annotations.media.Schema; |
|||
import com.win.framework.common.pojo.PageParam; |
|||
import org.springframework.format.annotation.DateTimeFormat; |
|||
import java.time.LocalDateTime; |
|||
|
|||
import static com.win.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND; |
|||
|
|||
@Schema(description = "管理后台 - 拆包记录子分页 Request VO") |
|||
@Data |
|||
@EqualsAndHashCode(callSuper = true) |
|||
@ToString(callSuper = true) |
|||
public class PackagesplitDetailPageReqVO extends PageParam { |
|||
|
|||
@Schema(description = "库位代码") |
|||
private String locationCode; |
|||
|
|||
@Schema(description = "库位组代码") |
|||
private String locationGroupCode; |
|||
|
|||
@Schema(description = "库区代码") |
|||
private String areaCode; |
|||
|
|||
@Schema(description = "从包装号") |
|||
private String fromPackingNumber; |
|||
|
|||
@Schema(description = "到包装号") |
|||
private String toPackingNumber; |
|||
|
|||
@Schema(description = "从批次") |
|||
private String fromBatch; |
|||
|
|||
@Schema(description = "到批次") |
|||
private String toBatch; |
|||
|
|||
@Schema(description = "从库存状态", example = "2") |
|||
private String fromInventoryStatus; |
|||
|
|||
@Schema(description = "到库存状态", example = "1") |
|||
private String toInventoryStatus; |
|||
|
|||
@Schema(description = "从器具号") |
|||
private String fromContainerNumber; |
|||
|
|||
@Schema(description = "到器具号") |
|||
private String toContainerNumber; |
|||
|
|||
@Schema(description = "从货主代码") |
|||
private String fromOwnerCode; |
|||
|
|||
@Schema(description = "到货主代码") |
|||
private String toOwnerCode; |
|||
|
|||
@Schema(description = "主表ID", example = "24141") |
|||
private Long masterId; |
|||
|
|||
@Schema(description = "单据号") |
|||
private String number; |
|||
|
|||
@Schema(description = "物品代码") |
|||
private String itemCode; |
|||
|
|||
@Schema(description = "备注", example = "你说的对") |
|||
private String remark; |
|||
|
|||
@Schema(description = "创建时间") |
|||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) |
|||
private LocalDateTime[] createTime; |
|||
|
|||
@Schema(description = "地点ID", example = "11960") |
|||
private String siteId; |
|||
|
|||
@Schema(description = "物品名称", example = "芋艿") |
|||
private String itemName; |
|||
|
|||
@Schema(description = "物品描述1") |
|||
private String itemDesc1; |
|||
|
|||
@Schema(description = "物品描述2") |
|||
private String itemDesc2; |
|||
|
|||
@Schema(description = "项目代码") |
|||
private String projectCode; |
|||
|
|||
@Schema(description = "到数量") |
|||
private BigDecimal toQty; |
|||
|
|||
@Schema(description = "从数量") |
|||
private BigDecimal fromQty; |
|||
|
|||
@Schema(description = "计量单位") |
|||
private String uom; |
|||
|
|||
@Schema(description = "接口类型", example = "1") |
|||
private String interfaceType; |
|||
|
|||
} |
@ -0,0 +1,19 @@ |
|||
package com.win.module.wms.controller.packagesplitmain.vo; |
|||
|
|||
import io.swagger.v3.oas.annotations.media.Schema; |
|||
import lombok.*; |
|||
import java.time.LocalDateTime; |
|||
|
|||
@Schema(description = "管理后台 - 拆包记录子 Response VO") |
|||
@Data |
|||
@EqualsAndHashCode(callSuper = true) |
|||
@ToString(callSuper = true) |
|||
public class PackagesplitDetailRespVO extends PackagesplitDetailBaseVO { |
|||
|
|||
@Schema(description = "id", requiredMode = Schema.RequiredMode.REQUIRED, example = "23508") |
|||
private Long id; |
|||
|
|||
@Schema(description = "创建时间") |
|||
private LocalDateTime createTime; |
|||
|
|||
} |
@ -0,0 +1,18 @@ |
|||
package com.win.module.wms.controller.packagesplitmain.vo; |
|||
|
|||
import io.swagger.v3.oas.annotations.media.Schema; |
|||
import lombok.*; |
|||
import java.util.*; |
|||
import javax.validation.constraints.*; |
|||
|
|||
@Schema(description = "管理后台 - 拆包记录子更新 Request VO") |
|||
@Data |
|||
@EqualsAndHashCode(callSuper = true) |
|||
@ToString(callSuper = true) |
|||
public class PackagesplitDetailUpdateReqVO extends PackagesplitDetailBaseVO { |
|||
|
|||
@Schema(description = "id", requiredMode = Schema.RequiredMode.REQUIRED, example = "23508") |
|||
@NotNull(message = "id不能为空") |
|||
private Long id; |
|||
|
|||
} |
@ -0,0 +1,88 @@ |
|||
package com.win.module.wms.controller.packagesplitmain.vo; |
|||
|
|||
import io.swagger.v3.oas.annotations.media.Schema; |
|||
import lombok.*; |
|||
import java.util.*; |
|||
import java.time.LocalDateTime; |
|||
import java.time.LocalDateTime; |
|||
import java.time.LocalDateTime; |
|||
import java.time.LocalDateTime; |
|||
import java.time.LocalDateTime; |
|||
import java.time.LocalDateTime; |
|||
import javax.validation.constraints.*; |
|||
import org.springframework.format.annotation.DateTimeFormat; |
|||
|
|||
import static com.win.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND; |
|||
|
|||
/** |
|||
* 拆包记录主 Base VO,提供给添加、修改、详细的子 VO 使用 |
|||
* 如果子 VO 存在差异的字段,请不要添加到这里,影响 Swagger 文档生成 |
|||
*/ |
|||
@Data |
|||
public class PackagesplitMainBaseVO { |
|||
|
|||
@Schema(description = "仓库代码") |
|||
private String warehouseCode; |
|||
|
|||
@Schema(description = "明细") |
|||
private String details; |
|||
|
|||
@Schema(description = "出库事务类型", example = "1") |
|||
private String outTransactionType; |
|||
|
|||
@Schema(description = "入库事务类型", example = "1") |
|||
private String inTransactionType; |
|||
|
|||
@Schema(description = "执行时间") |
|||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) |
|||
private LocalDateTime executeTime; |
|||
|
|||
@Schema(description = "生效日期") |
|||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) |
|||
private LocalDateTime activeDate; |
|||
|
|||
@Schema(description = "是否可用") |
|||
private String available; |
|||
|
|||
@Schema(description = "申请时间") |
|||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) |
|||
private LocalDateTime requestTime; |
|||
|
|||
@Schema(description = "截止时间") |
|||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) |
|||
private LocalDateTime dueTime; |
|||
|
|||
@Schema(description = "部门") |
|||
private String departmentCode; |
|||
|
|||
@Schema(description = "用户组") |
|||
private String userGroupCode; |
|||
|
|||
@Schema(description = "接口类型", example = "2") |
|||
private String interfaceType; |
|||
|
|||
@Schema(description = "单据号") |
|||
private String number; |
|||
|
|||
@Schema(description = "业务类型", example = "2") |
|||
private String businessType; |
|||
|
|||
@Schema(description = "备注", example = "你说的对") |
|||
private String remark; |
|||
|
|||
@Schema(description = "地点ID", example = "19009") |
|||
private String siteId; |
|||
|
|||
@Schema(description = "创建者") |
|||
private String creator; |
|||
|
|||
@Schema(description = "创建时间") |
|||
private LocalDateTime createTime; |
|||
|
|||
@Schema(description = "更新者") |
|||
private String updater; |
|||
|
|||
@Schema(description = "更新时间") |
|||
private LocalDateTime updateTime; |
|||
|
|||
} |
@ -0,0 +1,14 @@ |
|||
package com.win.module.wms.controller.packagesplitmain.vo; |
|||
|
|||
import lombok.*; |
|||
import java.util.*; |
|||
import io.swagger.v3.oas.annotations.media.Schema; |
|||
import javax.validation.constraints.*; |
|||
|
|||
@Schema(description = "管理后台 - 拆包记录主创建 Request VO") |
|||
@Data |
|||
@EqualsAndHashCode(callSuper = true) |
|||
@ToString(callSuper = true) |
|||
public class PackagesplitMainCreateReqVO extends PackagesplitMainBaseVO { |
|||
|
|||
} |
@ -0,0 +1,80 @@ |
|||
package com.win.module.wms.controller.packagesplitmain.vo; |
|||
|
|||
import io.swagger.v3.oas.annotations.media.Schema; |
|||
import lombok.*; |
|||
import java.util.*; |
|||
import java.time.LocalDateTime; |
|||
import java.time.LocalDateTime; |
|||
import java.time.LocalDateTime; |
|||
import java.time.LocalDateTime; |
|||
import java.time.LocalDateTime; |
|||
import java.time.LocalDateTime; |
|||
|
|||
import com.alibaba.excel.annotation.ExcelProperty; |
|||
|
|||
/** |
|||
* 拆包记录主 Excel VO |
|||
* |
|||
* @author 超级管理员 |
|||
*/ |
|||
@Data |
|||
public class PackagesplitMainExcelVO { |
|||
|
|||
@ExcelProperty("id") |
|||
private Long id; |
|||
|
|||
@ExcelProperty("仓库代码") |
|||
private String warehouseCode; |
|||
|
|||
@ExcelProperty("明细") |
|||
private String details; |
|||
|
|||
@ExcelProperty("出库事务类型") |
|||
private String outTransactionType; |
|||
|
|||
@ExcelProperty("入库事务类型") |
|||
private String inTransactionType; |
|||
|
|||
@ExcelProperty("执行时间") |
|||
private LocalDateTime executeTime; |
|||
|
|||
@ExcelProperty("生效日期") |
|||
private LocalDateTime activeDate; |
|||
|
|||
@ExcelProperty("是否可用") |
|||
private String available; |
|||
|
|||
@ExcelProperty("申请时间") |
|||
private LocalDateTime requestTime; |
|||
|
|||
@ExcelProperty("截止时间") |
|||
private LocalDateTime dueTime; |
|||
|
|||
@ExcelProperty("部门") |
|||
private String departmentCode; |
|||
|
|||
@ExcelProperty("用户组") |
|||
private String userGroupCode; |
|||
|
|||
@ExcelProperty("接口类型") |
|||
private String interfaceType; |
|||
|
|||
@ExcelProperty("单据号") |
|||
private String number; |
|||
|
|||
@ExcelProperty("业务类型") |
|||
private String businessType; |
|||
|
|||
@ExcelProperty("备注") |
|||
private String remark; |
|||
|
|||
@ExcelProperty("创建时间") |
|||
private LocalDateTime createTime; |
|||
|
|||
@ExcelProperty("扩展属性") |
|||
private String extraProperties; |
|||
|
|||
@ExcelProperty("地点ID") |
|||
private String siteId; |
|||
|
|||
} |
@ -0,0 +1,75 @@ |
|||
package com.win.module.wms.controller.packagesplitmain.vo; |
|||
|
|||
import lombok.*; |
|||
import java.util.*; |
|||
import io.swagger.v3.oas.annotations.media.Schema; |
|||
import com.win.framework.common.pojo.PageParam; |
|||
import java.time.LocalDateTime; |
|||
import org.springframework.format.annotation.DateTimeFormat; |
|||
|
|||
import static com.win.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND; |
|||
|
|||
@Schema(description = "管理后台 - 拆包记录主 Excel 导出 Request VO,参数和 PackagesplitMainPageReqVO 是一致的") |
|||
@Data |
|||
public class PackagesplitMainExportReqVO { |
|||
|
|||
@Schema(description = "仓库代码") |
|||
private String warehouseCode; |
|||
|
|||
@Schema(description = "明细") |
|||
private String details; |
|||
|
|||
@Schema(description = "出库事务类型", example = "1") |
|||
private String outTransactionType; |
|||
|
|||
@Schema(description = "入库事务类型", example = "1") |
|||
private String inTransactionType; |
|||
|
|||
@Schema(description = "执行时间") |
|||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) |
|||
private LocalDateTime[] executeTime; |
|||
|
|||
@Schema(description = "生效日期") |
|||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) |
|||
private LocalDateTime[] activeDate; |
|||
|
|||
@Schema(description = "是否可用") |
|||
private String available; |
|||
|
|||
@Schema(description = "申请时间") |
|||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) |
|||
private LocalDateTime[] requestTime; |
|||
|
|||
@Schema(description = "截止时间") |
|||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) |
|||
private LocalDateTime[] dueTime; |
|||
|
|||
@Schema(description = "部门") |
|||
private String departmentCode; |
|||
|
|||
@Schema(description = "用户组") |
|||
private String userGroupCode; |
|||
|
|||
@Schema(description = "接口类型", example = "2") |
|||
private String interfaceType; |
|||
|
|||
@Schema(description = "单据号") |
|||
private String number; |
|||
|
|||
@Schema(description = "业务类型", example = "2") |
|||
private String businessType; |
|||
|
|||
@Schema(description = "备注", example = "你说的对") |
|||
private String remark; |
|||
|
|||
@Schema(description = "创建时间") |
|||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) |
|||
private LocalDateTime[] createTime; |
|||
|
|||
@Schema(description = "扩展属性") |
|||
private String extraProperties; |
|||
|
|||
@Schema(description = "地点ID", example = "19009") |
|||
private String siteId; |
|||
|
|||
} |
@ -0,0 +1,77 @@ |
|||
package com.win.module.wms.controller.packagesplitmain.vo; |
|||
|
|||
import lombok.*; |
|||
import java.util.*; |
|||
import io.swagger.v3.oas.annotations.media.Schema; |
|||
import com.win.framework.common.pojo.PageParam; |
|||
import org.springframework.format.annotation.DateTimeFormat; |
|||
import java.time.LocalDateTime; |
|||
|
|||
import static com.win.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND; |
|||
|
|||
@Schema(description = "管理后台 - 拆包记录主分页 Request VO") |
|||
@Data |
|||
@EqualsAndHashCode(callSuper = true) |
|||
@ToString(callSuper = true) |
|||
public class PackagesplitMainPageReqVO extends PageParam { |
|||
|
|||
@Schema(description = "仓库代码") |
|||
private String warehouseCode; |
|||
|
|||
@Schema(description = "明细") |
|||
private String details; |
|||
|
|||
@Schema(description = "出库事务类型", example = "1") |
|||
private String outTransactionType; |
|||
|
|||
@Schema(description = "入库事务类型", example = "1") |
|||
private String inTransactionType; |
|||
|
|||
@Schema(description = "执行时间") |
|||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) |
|||
private LocalDateTime[] executeTime; |
|||
|
|||
@Schema(description = "生效日期") |
|||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) |
|||
private LocalDateTime[] activeDate; |
|||
|
|||
@Schema(description = "是否可用") |
|||
private String available; |
|||
|
|||
@Schema(description = "申请时间") |
|||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) |
|||
private LocalDateTime[] requestTime; |
|||
|
|||
@Schema(description = "截止时间") |
|||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) |
|||
private LocalDateTime[] dueTime; |
|||
|
|||
@Schema(description = "部门") |
|||
private String departmentCode; |
|||
|
|||
@Schema(description = "用户组") |
|||
private String userGroupCode; |
|||
|
|||
@Schema(description = "接口类型", example = "2") |
|||
private String interfaceType; |
|||
|
|||
@Schema(description = "单据号") |
|||
private String number; |
|||
|
|||
@Schema(description = "业务类型", example = "2") |
|||
private String businessType; |
|||
|
|||
@Schema(description = "备注", example = "你说的对") |
|||
private String remark; |
|||
|
|||
@Schema(description = "创建时间") |
|||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) |
|||
private LocalDateTime[] createTime; |
|||
|
|||
@Schema(description = "扩展属性") |
|||
private String extraProperties; |
|||
|
|||
@Schema(description = "地点ID", example = "19009") |
|||
private String siteId; |
|||
|
|||
} |
@ -0,0 +1,13 @@ |
|||
package com.win.module.wms.controller.packagesplitmain.vo; |
|||
|
|||
import io.swagger.v3.oas.annotations.media.Schema; |
|||
import lombok.*; |
|||
import java.time.LocalDateTime; |
|||
|
|||
@Schema(description = "管理后台 - 拆包记录主 Response VO") |
|||
@Data |
|||
@EqualsAndHashCode(callSuper = true) |
|||
@ToString(callSuper = true) |
|||
public class PackagesplitMainRespVO extends PackagesplitMainBaseVO { |
|||
|
|||
} |
@ -0,0 +1,18 @@ |
|||
package com.win.module.wms.controller.packagesplitmain.vo; |
|||
|
|||
import io.swagger.v3.oas.annotations.media.Schema; |
|||
import lombok.*; |
|||
import java.util.*; |
|||
import javax.validation.constraints.*; |
|||
|
|||
@Schema(description = "管理后台 - 拆包记录主更新 Request VO") |
|||
@Data |
|||
@EqualsAndHashCode(callSuper = true) |
|||
@ToString(callSuper = true) |
|||
public class PackagesplitMainUpdateReqVO extends PackagesplitMainBaseVO { |
|||
|
|||
@Schema(description = "id", requiredMode = Schema.RequiredMode.REQUIRED, example = "15400") |
|||
@NotNull(message = "id不能为空") |
|||
private Long id; |
|||
|
|||
} |
@ -0,0 +1,34 @@ |
|||
package com.win.module.wms.convert.packagemergemain; |
|||
|
|||
import java.util.*; |
|||
|
|||
import com.win.framework.common.pojo.PageResult; |
|||
|
|||
import org.mapstruct.Mapper; |
|||
import org.mapstruct.factory.Mappers; |
|||
import com.win.module.wms.controller.packagemergemain.vo.*; |
|||
import com.win.module.wms.dal.dataobject.packagemergemain.PackagemergeDetailDO; |
|||
|
|||
/** |
|||
* 合包记录子 Convert |
|||
* |
|||
* @author 超级管理员 |
|||
*/ |
|||
@Mapper |
|||
public interface PackagemergeDetailConvert { |
|||
|
|||
PackagemergeDetailConvert INSTANCE = Mappers.getMapper(PackagemergeDetailConvert.class); |
|||
|
|||
PackagemergeDetailDO convert(PackagemergeDetailCreateReqVO bean); |
|||
|
|||
PackagemergeDetailDO convert(PackagemergeDetailUpdateReqVO bean); |
|||
|
|||
PackagemergeDetailRespVO convert(PackagemergeDetailDO bean); |
|||
|
|||
List<PackagemergeDetailRespVO> convertList(List<PackagemergeDetailDO> list); |
|||
|
|||
PageResult<PackagemergeDetailRespVO> convertPage(PageResult<PackagemergeDetailDO> page); |
|||
|
|||
List<PackagemergeDetailExcelVO> convertList02(List<PackagemergeDetailDO> list); |
|||
|
|||
} |
@ -0,0 +1,34 @@ |
|||
package com.win.module.wms.convert.packagemergemain; |
|||
|
|||
import java.util.*; |
|||
|
|||
import com.win.framework.common.pojo.PageResult; |
|||
|
|||
import org.mapstruct.Mapper; |
|||
import org.mapstruct.factory.Mappers; |
|||
import com.win.module.wms.controller.packagemergemain.vo.*; |
|||
import com.win.module.wms.dal.dataobject.packagemergemain.PackagemergeMainDO; |
|||
|
|||
/** |
|||
* 合包记录主 Convert |
|||
* |
|||
* @author 超级管理员 |
|||
*/ |
|||
@Mapper |
|||
public interface PackagemergeMainConvert { |
|||
|
|||
PackagemergeMainConvert INSTANCE = Mappers.getMapper(PackagemergeMainConvert.class); |
|||
|
|||
PackagemergeMainDO convert(PackagemergeMainCreateReqVO bean); |
|||
|
|||
PackagemergeMainDO convert(PackagemergeMainUpdateReqVO bean); |
|||
|
|||
PackagemergeMainRespVO convert(PackagemergeMainDO bean); |
|||
|
|||
List<PackagemergeMainRespVO> convertList(List<PackagemergeMainDO> list); |
|||
|
|||
PageResult<PackagemergeMainRespVO> convertPage(PageResult<PackagemergeMainDO> page); |
|||
|
|||
List<PackagemergeMainExcelVO> convertList02(List<PackagemergeMainDO> list); |
|||
|
|||
} |
@ -0,0 +1,34 @@ |
|||
package com.win.module.wms.convert.packageovermain; |
|||
|
|||
import java.util.*; |
|||
|
|||
import com.win.framework.common.pojo.PageResult; |
|||
|
|||
import org.mapstruct.Mapper; |
|||
import org.mapstruct.factory.Mappers; |
|||
import com.win.module.wms.controller.packageovermain.vo.*; |
|||
import com.win.module.wms.dal.dataobject.packageovermain.PackageoverDetailDO; |
|||
|
|||
/** |
|||
* 翻包记录子 Convert |
|||
* |
|||
* @author 超级管理员 |
|||
*/ |
|||
@Mapper |
|||
public interface PackageoverDetailConvert { |
|||
|
|||
PackageoverDetailConvert INSTANCE = Mappers.getMapper(PackageoverDetailConvert.class); |
|||
|
|||
PackageoverDetailDO convert(PackageoverDetailCreateReqVO bean); |
|||
|
|||
PackageoverDetailDO convert(PackageoverDetailUpdateReqVO bean); |
|||
|
|||
PackageoverDetailRespVO convert(PackageoverDetailDO bean); |
|||
|
|||
List<PackageoverDetailRespVO> convertList(List<PackageoverDetailDO> list); |
|||
|
|||
PageResult<PackageoverDetailRespVO> convertPage(PageResult<PackageoverDetailDO> page); |
|||
|
|||
List<PackageoverDetailExcelVO> convertList02(List<PackageoverDetailDO> list); |
|||
|
|||
} |
@ -0,0 +1,34 @@ |
|||
package com.win.module.wms.convert.packageovermain; |
|||
|
|||
import java.util.*; |
|||
|
|||
import com.win.framework.common.pojo.PageResult; |
|||
|
|||
import org.mapstruct.Mapper; |
|||
import org.mapstruct.factory.Mappers; |
|||
import com.win.module.wms.controller.packageovermain.vo.*; |
|||
import com.win.module.wms.dal.dataobject.packageovermain.PackageoverMainDO; |
|||
|
|||
/** |
|||
* 翻包记录主 Convert |
|||
* |
|||
* @author 超级管理员 |
|||
*/ |
|||
@Mapper |
|||
public interface PackageoverMainConvert { |
|||
|
|||
PackageoverMainConvert INSTANCE = Mappers.getMapper(PackageoverMainConvert.class); |
|||
|
|||
PackageoverMainDO convert(PackageoverMainCreateReqVO bean); |
|||
|
|||
PackageoverMainDO convert(PackageoverMainUpdateReqVO bean); |
|||
|
|||
PackageoverMainRespVO convert(PackageoverMainDO bean); |
|||
|
|||
List<PackageoverMainRespVO> convertList(List<PackageoverMainDO> list); |
|||
|
|||
PageResult<PackageoverMainRespVO> convertPage(PageResult<PackageoverMainDO> page); |
|||
|
|||
List<PackageoverMainExcelVO> convertList02(List<PackageoverMainDO> list); |
|||
|
|||
} |
@ -0,0 +1,34 @@ |
|||
package com.win.module.wms.convert.packagesplitmain; |
|||
|
|||
import java.util.*; |
|||
|
|||
import com.win.framework.common.pojo.PageResult; |
|||
|
|||
import org.mapstruct.Mapper; |
|||
import org.mapstruct.factory.Mappers; |
|||
import com.win.module.wms.controller.packagesplitmain.vo.*; |
|||
import com.win.module.wms.dal.dataobject.packagesplitmain.PackagesplitDetailDO; |
|||
|
|||
/** |
|||
* 拆包记录子 Convert |
|||
* |
|||
* @author 超级管理员 |
|||
*/ |
|||
@Mapper |
|||
public interface PackagesplitDetailConvert { |
|||
|
|||
PackagesplitDetailConvert INSTANCE = Mappers.getMapper(PackagesplitDetailConvert.class); |
|||
|
|||
PackagesplitDetailDO convert(PackagesplitDetailCreateReqVO bean); |
|||
|
|||
PackagesplitDetailDO convert(PackagesplitDetailUpdateReqVO bean); |
|||
|
|||
PackagesplitDetailRespVO convert(PackagesplitDetailDO bean); |
|||
|
|||
List<PackagesplitDetailRespVO> convertList(List<PackagesplitDetailDO> list); |
|||
|
|||
PageResult<PackagesplitDetailRespVO> convertPage(PageResult<PackagesplitDetailDO> page); |
|||
|
|||
List<PackagesplitDetailExcelVO> convertList02(List<PackagesplitDetailDO> list); |
|||
|
|||
} |
@ -0,0 +1,34 @@ |
|||
package com.win.module.wms.convert.packagesplitmain; |
|||
|
|||
import java.util.*; |
|||
|
|||
import com.win.framework.common.pojo.PageResult; |
|||
|
|||
import org.mapstruct.Mapper; |
|||
import org.mapstruct.factory.Mappers; |
|||
import com.win.module.wms.controller.packagesplitmain.vo.*; |
|||
import com.win.module.wms.dal.dataobject.packagesplitmain.PackagesplitMainDO; |
|||
|
|||
/** |
|||
* 拆包记录主 Convert |
|||
* |
|||
* @author 超级管理员 |
|||
*/ |
|||
@Mapper |
|||
public interface PackagesplitMainConvert { |
|||
|
|||
PackagesplitMainConvert INSTANCE = Mappers.getMapper(PackagesplitMainConvert.class); |
|||
|
|||
PackagesplitMainDO convert(PackagesplitMainCreateReqVO bean); |
|||
|
|||
PackagesplitMainDO convert(PackagesplitMainUpdateReqVO bean); |
|||
|
|||
PackagesplitMainRespVO convert(PackagesplitMainDO bean); |
|||
|
|||
List<PackagesplitMainRespVO> convertList(List<PackagesplitMainDO> list); |
|||
|
|||
PageResult<PackagesplitMainRespVO> convertPage(PageResult<PackagesplitMainDO> page); |
|||
|
|||
List<PackagesplitMainExcelVO> convertList02(List<PackagesplitMainDO> list); |
|||
|
|||
} |
@ -0,0 +1,136 @@ |
|||
package com.win.module.wms.dal.dataobject.packagemergemain; |
|||
|
|||
import lombok.*; |
|||
import java.util.*; |
|||
import java.time.LocalDateTime; |
|||
import java.math.BigDecimal; |
|||
import java.math.BigDecimal; |
|||
import java.time.LocalDateTime; |
|||
import com.baomidou.mybatisplus.annotation.*; |
|||
import com.win.framework.mybatis.core.dataobject.BaseDO; |
|||
|
|||
/** |
|||
* 合包记录子 DO |
|||
* |
|||
* @author 超级管理员 |
|||
*/ |
|||
@TableName("record_packagemerge_detail") |
|||
@Data |
|||
@EqualsAndHashCode(callSuper = true) |
|||
@ToString(callSuper = true) |
|||
@Builder |
|||
@NoArgsConstructor |
|||
@AllArgsConstructor |
|||
public class PackagemergeDetailDO extends BaseDO { |
|||
|
|||
/** |
|||
* id |
|||
*/ |
|||
@TableId |
|||
private Long id; |
|||
/** |
|||
* 库位代码 |
|||
*/ |
|||
private String locationCode; |
|||
/** |
|||
* 库位组代码 |
|||
*/ |
|||
private String locationGroupCode; |
|||
/** |
|||
* 库区代码 |
|||
*/ |
|||
private String areaCode; |
|||
/** |
|||
* 从包装号 |
|||
*/ |
|||
private String fromPackingNumber; |
|||
/** |
|||
* 到包装号 |
|||
*/ |
|||
private String toPackingNumber; |
|||
/** |
|||
* 从批次 |
|||
*/ |
|||
private String fromBatch; |
|||
/** |
|||
* 到批次 |
|||
*/ |
|||
private String toBatch; |
|||
/** |
|||
* 从库存状态 |
|||
*/ |
|||
private String fromInventoryStatus; |
|||
/** |
|||
* 到库存状态 |
|||
*/ |
|||
private String toInventoryStatus; |
|||
/** |
|||
* 从器具号 |
|||
*/ |
|||
private String fromContainerNumber; |
|||
/** |
|||
* 到器具号 |
|||
*/ |
|||
private String toContainerNumber; |
|||
/** |
|||
* 从货主代码 |
|||
*/ |
|||
private String fromOwnerCode; |
|||
/** |
|||
* 到货主代码 |
|||
*/ |
|||
private String toOwnerCode; |
|||
/** |
|||
* 主表ID |
|||
*/ |
|||
private Long masterId; |
|||
/** |
|||
* 单据号 |
|||
*/ |
|||
private String number; |
|||
/** |
|||
* 物品代码 |
|||
*/ |
|||
private String itemCode; |
|||
/** |
|||
* 备注 |
|||
*/ |
|||
private String remark; |
|||
/** |
|||
* 地点ID |
|||
*/ |
|||
private String siteId; |
|||
/** |
|||
* 物品名称 |
|||
*/ |
|||
private String itemName; |
|||
/** |
|||
* 物品描述1 |
|||
*/ |
|||
private String itemDesc1; |
|||
/** |
|||
* 物品描述2 |
|||
*/ |
|||
private String itemDesc2; |
|||
/** |
|||
* 项目代码 |
|||
*/ |
|||
private String projectCode; |
|||
/** |
|||
* 到数量 |
|||
*/ |
|||
private BigDecimal toQty; |
|||
/** |
|||
* 从数量 |
|||
*/ |
|||
private BigDecimal fromQty; |
|||
/** |
|||
* 计量单位 |
|||
*/ |
|||
private String uom; |
|||
/** |
|||
* 接口类型 |
|||
*/ |
|||
private String interfaceType; |
|||
|
|||
} |
@ -0,0 +1,102 @@ |
|||
package com.win.module.wms.dal.dataobject.packagemergemain; |
|||
|
|||
import lombok.*; |
|||
import java.util.*; |
|||
import java.time.LocalDateTime; |
|||
import java.time.LocalDateTime; |
|||
import java.time.LocalDateTime; |
|||
import java.time.LocalDateTime; |
|||
import java.time.LocalDateTime; |
|||
import java.time.LocalDateTime; |
|||
import com.baomidou.mybatisplus.annotation.*; |
|||
import com.win.framework.mybatis.core.dataobject.BaseDO; |
|||
|
|||
/** |
|||
* 合包记录主 DO |
|||
* |
|||
* @author 超级管理员 |
|||
*/ |
|||
@TableName("record_packagemerge_main") |
|||
@Data |
|||
@EqualsAndHashCode(callSuper = true) |
|||
@ToString(callSuper = true) |
|||
@Builder |
|||
@NoArgsConstructor |
|||
@AllArgsConstructor |
|||
public class PackagemergeMainDO extends BaseDO { |
|||
|
|||
/** |
|||
* id |
|||
*/ |
|||
@TableId |
|||
private Long id; |
|||
/** |
|||
* 仓库代码 |
|||
*/ |
|||
private String warehouseCode; |
|||
/** |
|||
* 明细 |
|||
*/ |
|||
private String details; |
|||
/** |
|||
* 出库事务类型 |
|||
*/ |
|||
private String outTransactionType; |
|||
/** |
|||
* 入库事务类型 |
|||
*/ |
|||
private String inTransactionType; |
|||
/** |
|||
* 执行时间 |
|||
*/ |
|||
private LocalDateTime executeTime; |
|||
/** |
|||
* 生效日期 |
|||
*/ |
|||
private LocalDateTime activeDate; |
|||
/** |
|||
* 是否可用 |
|||
*/ |
|||
private String available; |
|||
/** |
|||
* 申请时间 |
|||
*/ |
|||
private LocalDateTime requestTime; |
|||
/** |
|||
* 截止时间 |
|||
*/ |
|||
private LocalDateTime dueTime; |
|||
/** |
|||
* 部门 |
|||
*/ |
|||
private String departmentCode; |
|||
/** |
|||
* 用户组 |
|||
*/ |
|||
private String userGroupCode; |
|||
/** |
|||
* 接口类型 |
|||
*/ |
|||
private String interfaceType; |
|||
/** |
|||
* 单据号 |
|||
*/ |
|||
private String number; |
|||
/** |
|||
* 业务类型 |
|||
*/ |
|||
private String businessType; |
|||
/** |
|||
* 备注 |
|||
*/ |
|||
private String remark; |
|||
/** |
|||
* 扩展属性 |
|||
*/ |
|||
private String extraProperties; |
|||
/** |
|||
* 地点ID |
|||
*/ |
|||
private String siteId; |
|||
|
|||
} |
@ -0,0 +1,136 @@ |
|||
package com.win.module.wms.dal.dataobject.packageovermain; |
|||
|
|||
import lombok.*; |
|||
import java.util.*; |
|||
import java.time.LocalDateTime; |
|||
import java.math.BigDecimal; |
|||
import java.math.BigDecimal; |
|||
import java.time.LocalDateTime; |
|||
import com.baomidou.mybatisplus.annotation.*; |
|||
import com.win.framework.mybatis.core.dataobject.BaseDO; |
|||
|
|||
/** |
|||
* 翻包记录子 DO |
|||
* |
|||
* @author 超级管理员 |
|||
*/ |
|||
@TableName("record_packageover_detail") |
|||
@Data |
|||
@EqualsAndHashCode(callSuper = true) |
|||
@ToString(callSuper = true) |
|||
@Builder |
|||
@NoArgsConstructor |
|||
@AllArgsConstructor |
|||
public class PackageoverDetailDO extends BaseDO { |
|||
|
|||
/** |
|||
* id |
|||
*/ |
|||
@TableId |
|||
private Long id; |
|||
/** |
|||
* 库位代码 |
|||
*/ |
|||
private String locationCode; |
|||
/** |
|||
* 库位组代码 |
|||
*/ |
|||
private String locationGroupCode; |
|||
/** |
|||
* 库区代码 |
|||
*/ |
|||
private String areaCode; |
|||
/** |
|||
* 从包装号 |
|||
*/ |
|||
private String fromPackingNumber; |
|||
/** |
|||
* 到包装号 |
|||
*/ |
|||
private String toPackingNumber; |
|||
/** |
|||
* 从批次 |
|||
*/ |
|||
private String fromBatch; |
|||
/** |
|||
* 到批次 |
|||
*/ |
|||
private String toBatch; |
|||
/** |
|||
* 从库存状态 |
|||
*/ |
|||
private String fromInventoryStatus; |
|||
/** |
|||
* 到库存状态 |
|||
*/ |
|||
private String toInventoryStatus; |
|||
/** |
|||
* 从器具号 |
|||
*/ |
|||
private String fromContainerNumber; |
|||
/** |
|||
* 到器具号 |
|||
*/ |
|||
private String toContainerNumber; |
|||
/** |
|||
* 从货主代码 |
|||
*/ |
|||
private String fromOwnerCode; |
|||
/** |
|||
* 到货主代码 |
|||
*/ |
|||
private String toOwnerCode; |
|||
/** |
|||
* 主表ID |
|||
*/ |
|||
private Long masterId; |
|||
/** |
|||
* 单据号 |
|||
*/ |
|||
private String number; |
|||
/** |
|||
* 物品代码 |
|||
*/ |
|||
private String itemCode; |
|||
/** |
|||
* 备注 |
|||
*/ |
|||
private String remark; |
|||
/** |
|||
* 地点ID |
|||
*/ |
|||
private String siteId; |
|||
/** |
|||
* 物品名称 |
|||
*/ |
|||
private String itemName; |
|||
/** |
|||
* 物品描述1 |
|||
*/ |
|||
private String itemDesc1; |
|||
/** |
|||
* 物品描述2 |
|||
*/ |
|||
private String itemDesc2; |
|||
/** |
|||
* 项目代码 |
|||
*/ |
|||
private String projectCode; |
|||
/** |
|||
* 到数量 |
|||
*/ |
|||
private BigDecimal toQty; |
|||
/** |
|||
* 从数量 |
|||
*/ |
|||
private BigDecimal fromQty; |
|||
/** |
|||
* 计量单位 |
|||
*/ |
|||
private String uom; |
|||
/** |
|||
* 接口类型 |
|||
*/ |
|||
private String interfaceType; |
|||
|
|||
} |
@ -0,0 +1,102 @@ |
|||
package com.win.module.wms.dal.dataobject.packageovermain; |
|||
|
|||
import lombok.*; |
|||
import java.util.*; |
|||
import java.time.LocalDateTime; |
|||
import java.time.LocalDateTime; |
|||
import java.time.LocalDateTime; |
|||
import java.time.LocalDateTime; |
|||
import java.time.LocalDateTime; |
|||
import java.time.LocalDateTime; |
|||
import com.baomidou.mybatisplus.annotation.*; |
|||
import com.win.framework.mybatis.core.dataobject.BaseDO; |
|||
|
|||
/** |
|||
* 翻包记录主 DO |
|||
* |
|||
* @author 超级管理员 |
|||
*/ |
|||
@TableName("record_packageover_main") |
|||
@Data |
|||
@EqualsAndHashCode(callSuper = true) |
|||
@ToString(callSuper = true) |
|||
@Builder |
|||
@NoArgsConstructor |
|||
@AllArgsConstructor |
|||
public class PackageoverMainDO extends BaseDO { |
|||
|
|||
/** |
|||
* id |
|||
*/ |
|||
@TableId |
|||
private Long id; |
|||
/** |
|||
* 仓库代码 |
|||
*/ |
|||
private String warehouseCode; |
|||
/** |
|||
* 明细 |
|||
*/ |
|||
private String details; |
|||
/** |
|||
* 出库事务类型 |
|||
*/ |
|||
private String outTransactionType; |
|||
/** |
|||
* 入库事务类型 |
|||
*/ |
|||
private String inTransactionType; |
|||
/** |
|||
* 执行时间 |
|||
*/ |
|||
private LocalDateTime executeTime; |
|||
/** |
|||
* 生效日期 |
|||
*/ |
|||
private LocalDateTime activeDate; |
|||
/** |
|||
* 是否可用 |
|||
*/ |
|||
private String available; |
|||
/** |
|||
* 申请时间 |
|||
*/ |
|||
private LocalDateTime requestTime; |
|||
/** |
|||
* 截止时间 |
|||
*/ |
|||
private LocalDateTime dueTime; |
|||
/** |
|||
* 部门 |
|||
*/ |
|||
private String departmentCode; |
|||
/** |
|||
* 用户组 |
|||
*/ |
|||
private String userGroupCode; |
|||
/** |
|||
* 接口类型 |
|||
*/ |
|||
private String interfaceType; |
|||
/** |
|||
* 单据号 |
|||
*/ |
|||
private String number; |
|||
/** |
|||
* 业务类型 |
|||
*/ |
|||
private String businessType; |
|||
/** |
|||
* 备注 |
|||
*/ |
|||
private String remark; |
|||
/** |
|||
* 扩展属性 |
|||
*/ |
|||
private String extraProperties; |
|||
/** |
|||
* 地点ID |
|||
*/ |
|||
private String siteId; |
|||
|
|||
} |
@ -0,0 +1,136 @@ |
|||
package com.win.module.wms.dal.dataobject.packagesplitmain; |
|||
|
|||
import lombok.*; |
|||
import java.util.*; |
|||
import java.time.LocalDateTime; |
|||
import java.math.BigDecimal; |
|||
import java.math.BigDecimal; |
|||
import java.time.LocalDateTime; |
|||
import com.baomidou.mybatisplus.annotation.*; |
|||
import com.win.framework.mybatis.core.dataobject.BaseDO; |
|||
|
|||
/** |
|||
* 拆包记录子 DO |
|||
* |
|||
* @author 超级管理员 |
|||
*/ |
|||
@TableName("record_packagesplit_detail") |
|||
@Data |
|||
@EqualsAndHashCode(callSuper = true) |
|||
@ToString(callSuper = true) |
|||
@Builder |
|||
@NoArgsConstructor |
|||
@AllArgsConstructor |
|||
public class PackagesplitDetailDO extends BaseDO { |
|||
|
|||
/** |
|||
* id |
|||
*/ |
|||
@TableId |
|||
private Long id; |
|||
/** |
|||
* 库位代码 |
|||
*/ |
|||
private String locationCode; |
|||
/** |
|||
* 库位组代码 |
|||
*/ |
|||
private String locationGroupCode; |
|||
/** |
|||
* 库区代码 |
|||
*/ |
|||
private String areaCode; |
|||
/** |
|||
* 从包装号 |
|||
*/ |
|||
private String fromPackingNumber; |
|||
/** |
|||
* 到包装号 |
|||
*/ |
|||
private String toPackingNumber; |
|||
/** |
|||
* 从批次 |
|||
*/ |
|||
private String fromBatch; |
|||
/** |
|||
* 到批次 |
|||
*/ |
|||
private String toBatch; |
|||
/** |
|||
* 从库存状态 |
|||
*/ |
|||
private String fromInventoryStatus; |
|||
/** |
|||
* 到库存状态 |
|||
*/ |
|||
private String toInventoryStatus; |
|||
/** |
|||
* 从器具号 |
|||
*/ |
|||
private String fromContainerNumber; |
|||
/** |
|||
* 到器具号 |
|||
*/ |
|||
private String toContainerNumber; |
|||
/** |
|||
* 从货主代码 |
|||
*/ |
|||
private String fromOwnerCode; |
|||
/** |
|||
* 到货主代码 |
|||
*/ |
|||
private String toOwnerCode; |
|||
/** |
|||
* 主表ID |
|||
*/ |
|||
private Long masterId; |
|||
/** |
|||
* 单据号 |
|||
*/ |
|||
private String number; |
|||
/** |
|||
* 物品代码 |
|||
*/ |
|||
private String itemCode; |
|||
/** |
|||
* 备注 |
|||
*/ |
|||
private String remark; |
|||
/** |
|||
* 地点ID |
|||
*/ |
|||
private String siteId; |
|||
/** |
|||
* 物品名称 |
|||
*/ |
|||
private String itemName; |
|||
/** |
|||
* 物品描述1 |
|||
*/ |
|||
private String itemDesc1; |
|||
/** |
|||
* 物品描述2 |
|||
*/ |
|||
private String itemDesc2; |
|||
/** |
|||
* 项目代码 |
|||
*/ |
|||
private String projectCode; |
|||
/** |
|||
* 到数量 |
|||
*/ |
|||
private BigDecimal toQty; |
|||
/** |
|||
* 从数量 |
|||
*/ |
|||
private BigDecimal fromQty; |
|||
/** |
|||
* 计量单位 |
|||
*/ |
|||
private String uom; |
|||
/** |
|||
* 接口类型 |
|||
*/ |
|||
private String interfaceType; |
|||
|
|||
} |
@ -0,0 +1,102 @@ |
|||
package com.win.module.wms.dal.dataobject.packagesplitmain; |
|||
|
|||
import lombok.*; |
|||
import java.util.*; |
|||
import java.time.LocalDateTime; |
|||
import java.time.LocalDateTime; |
|||
import java.time.LocalDateTime; |
|||
import java.time.LocalDateTime; |
|||
import java.time.LocalDateTime; |
|||
import java.time.LocalDateTime; |
|||
import com.baomidou.mybatisplus.annotation.*; |
|||
import com.win.framework.mybatis.core.dataobject.BaseDO; |
|||
|
|||
/** |
|||
* 拆包记录主 DO |
|||
* |
|||
* @author 超级管理员 |
|||
*/ |
|||
@TableName("record_packagesplit_main") |
|||
@Data |
|||
@EqualsAndHashCode(callSuper = true) |
|||
@ToString(callSuper = true) |
|||
@Builder |
|||
@NoArgsConstructor |
|||
@AllArgsConstructor |
|||
public class PackagesplitMainDO extends BaseDO { |
|||
|
|||
/** |
|||
* id |
|||
*/ |
|||
@TableId |
|||
private Long id; |
|||
/** |
|||
* 仓库代码 |
|||
*/ |
|||
private String warehouseCode; |
|||
/** |
|||
* 明细 |
|||
*/ |
|||
private String details; |
|||
/** |
|||
* 出库事务类型 |
|||
*/ |
|||
private String outTransactionType; |
|||
/** |
|||
* 入库事务类型 |
|||
*/ |
|||
private String inTransactionType; |
|||
/** |
|||
* 执行时间 |
|||
*/ |
|||
private LocalDateTime executeTime; |
|||
/** |
|||
* 生效日期 |
|||
*/ |
|||
private LocalDateTime activeDate; |
|||
/** |
|||
* 是否可用 |
|||
*/ |
|||
private String available; |
|||
/** |
|||
* 申请时间 |
|||
*/ |
|||
private LocalDateTime requestTime; |
|||
/** |
|||
* 截止时间 |
|||
*/ |
|||
private LocalDateTime dueTime; |
|||
/** |
|||
* 部门 |
|||
*/ |
|||
private String departmentCode; |
|||
/** |
|||
* 用户组 |
|||
*/ |
|||
private String userGroupCode; |
|||
/** |
|||
* 接口类型 |
|||
*/ |
|||
private String interfaceType; |
|||
/** |
|||
* 单据号 |
|||
*/ |
|||
private String number; |
|||
/** |
|||
* 业务类型 |
|||
*/ |
|||
private String businessType; |
|||
/** |
|||
* 备注 |
|||
*/ |
|||
private String remark; |
|||
/** |
|||
* 扩展属性 |
|||
*/ |
|||
private String extraProperties; |
|||
/** |
|||
* 地点ID |
|||
*/ |
|||
private String siteId; |
|||
|
|||
} |
@ -0,0 +1,84 @@ |
|||
package com.win.module.wms.dal.mysql.packagemergemain; |
|||
|
|||
import java.util.*; |
|||
|
|||
import com.win.framework.common.pojo.PageResult; |
|||
import com.win.framework.mybatis.core.query.LambdaQueryWrapperX; |
|||
import com.win.framework.mybatis.core.mapper.BaseMapperX; |
|||
import com.win.module.wms.dal.dataobject.packagemergemain.PackagemergeDetailDO; |
|||
import org.apache.ibatis.annotations.Mapper; |
|||
import com.win.module.wms.controller.packagemergemain.vo.*; |
|||
|
|||
/** |
|||
* 合包记录子 Mapper |
|||
* |
|||
* @author 超级管理员 |
|||
*/ |
|||
@Mapper |
|||
public interface PackagemergeDetailMapper extends BaseMapperX<PackagemergeDetailDO> { |
|||
|
|||
default PageResult<PackagemergeDetailDO> selectPage(PackagemergeDetailPageReqVO reqVO) { |
|||
return selectPage(reqVO, new LambdaQueryWrapperX<PackagemergeDetailDO>() |
|||
.eqIfPresent(PackagemergeDetailDO::getLocationCode, reqVO.getLocationCode()) |
|||
.eqIfPresent(PackagemergeDetailDO::getLocationGroupCode, reqVO.getLocationGroupCode()) |
|||
.eqIfPresent(PackagemergeDetailDO::getAreaCode, reqVO.getAreaCode()) |
|||
.eqIfPresent(PackagemergeDetailDO::getFromPackingNumber, reqVO.getFromPackingNumber()) |
|||
.eqIfPresent(PackagemergeDetailDO::getToPackingNumber, reqVO.getToPackingNumber()) |
|||
.eqIfPresent(PackagemergeDetailDO::getFromBatch, reqVO.getFromBatch()) |
|||
.eqIfPresent(PackagemergeDetailDO::getToBatch, reqVO.getToBatch()) |
|||
.eqIfPresent(PackagemergeDetailDO::getFromInventoryStatus, reqVO.getFromInventoryStatus()) |
|||
.eqIfPresent(PackagemergeDetailDO::getToInventoryStatus, reqVO.getToInventoryStatus()) |
|||
.eqIfPresent(PackagemergeDetailDO::getFromContainerNumber, reqVO.getFromContainerNumber()) |
|||
.eqIfPresent(PackagemergeDetailDO::getToContainerNumber, reqVO.getToContainerNumber()) |
|||
.eqIfPresent(PackagemergeDetailDO::getFromOwnerCode, reqVO.getFromOwnerCode()) |
|||
.eqIfPresent(PackagemergeDetailDO::getToOwnerCode, reqVO.getToOwnerCode()) |
|||
.eqIfPresent(PackagemergeDetailDO::getMasterId, reqVO.getMasterId()) |
|||
.eqIfPresent(PackagemergeDetailDO::getNumber, reqVO.getNumber()) |
|||
.eqIfPresent(PackagemergeDetailDO::getItemCode, reqVO.getItemCode()) |
|||
.eqIfPresent(PackagemergeDetailDO::getRemark, reqVO.getRemark()) |
|||
.betweenIfPresent(PackagemergeDetailDO::getCreateTime, reqVO.getCreateTime()) |
|||
.eqIfPresent(PackagemergeDetailDO::getSiteId, reqVO.getSiteId()) |
|||
.likeIfPresent(PackagemergeDetailDO::getItemName, reqVO.getItemName()) |
|||
.eqIfPresent(PackagemergeDetailDO::getItemDesc1, reqVO.getItemDesc1()) |
|||
.eqIfPresent(PackagemergeDetailDO::getItemDesc2, reqVO.getItemDesc2()) |
|||
.eqIfPresent(PackagemergeDetailDO::getProjectCode, reqVO.getProjectCode()) |
|||
.eqIfPresent(PackagemergeDetailDO::getToQty, reqVO.getToQty()) |
|||
.eqIfPresent(PackagemergeDetailDO::getFromQty, reqVO.getFromQty()) |
|||
.eqIfPresent(PackagemergeDetailDO::getUom, reqVO.getUom()) |
|||
.eqIfPresent(PackagemergeDetailDO::getInterfaceType, reqVO.getInterfaceType()) |
|||
.orderByDesc(PackagemergeDetailDO::getId)); |
|||
} |
|||
|
|||
default List<PackagemergeDetailDO> selectList(PackagemergeDetailExportReqVO reqVO) { |
|||
return selectList(new LambdaQueryWrapperX<PackagemergeDetailDO>() |
|||
.eqIfPresent(PackagemergeDetailDO::getLocationCode, reqVO.getLocationCode()) |
|||
.eqIfPresent(PackagemergeDetailDO::getLocationGroupCode, reqVO.getLocationGroupCode()) |
|||
.eqIfPresent(PackagemergeDetailDO::getAreaCode, reqVO.getAreaCode()) |
|||
.eqIfPresent(PackagemergeDetailDO::getFromPackingNumber, reqVO.getFromPackingNumber()) |
|||
.eqIfPresent(PackagemergeDetailDO::getToPackingNumber, reqVO.getToPackingNumber()) |
|||
.eqIfPresent(PackagemergeDetailDO::getFromBatch, reqVO.getFromBatch()) |
|||
.eqIfPresent(PackagemergeDetailDO::getToBatch, reqVO.getToBatch()) |
|||
.eqIfPresent(PackagemergeDetailDO::getFromInventoryStatus, reqVO.getFromInventoryStatus()) |
|||
.eqIfPresent(PackagemergeDetailDO::getToInventoryStatus, reqVO.getToInventoryStatus()) |
|||
.eqIfPresent(PackagemergeDetailDO::getFromContainerNumber, reqVO.getFromContainerNumber()) |
|||
.eqIfPresent(PackagemergeDetailDO::getToContainerNumber, reqVO.getToContainerNumber()) |
|||
.eqIfPresent(PackagemergeDetailDO::getFromOwnerCode, reqVO.getFromOwnerCode()) |
|||
.eqIfPresent(PackagemergeDetailDO::getToOwnerCode, reqVO.getToOwnerCode()) |
|||
.eqIfPresent(PackagemergeDetailDO::getMasterId, reqVO.getMasterId()) |
|||
.eqIfPresent(PackagemergeDetailDO::getNumber, reqVO.getNumber()) |
|||
.eqIfPresent(PackagemergeDetailDO::getItemCode, reqVO.getItemCode()) |
|||
.eqIfPresent(PackagemergeDetailDO::getRemark, reqVO.getRemark()) |
|||
.betweenIfPresent(PackagemergeDetailDO::getCreateTime, reqVO.getCreateTime()) |
|||
.eqIfPresent(PackagemergeDetailDO::getSiteId, reqVO.getSiteId()) |
|||
.likeIfPresent(PackagemergeDetailDO::getItemName, reqVO.getItemName()) |
|||
.eqIfPresent(PackagemergeDetailDO::getItemDesc1, reqVO.getItemDesc1()) |
|||
.eqIfPresent(PackagemergeDetailDO::getItemDesc2, reqVO.getItemDesc2()) |
|||
.eqIfPresent(PackagemergeDetailDO::getProjectCode, reqVO.getProjectCode()) |
|||
.eqIfPresent(PackagemergeDetailDO::getToQty, reqVO.getToQty()) |
|||
.eqIfPresent(PackagemergeDetailDO::getFromQty, reqVO.getFromQty()) |
|||
.eqIfPresent(PackagemergeDetailDO::getUom, reqVO.getUom()) |
|||
.eqIfPresent(PackagemergeDetailDO::getInterfaceType, reqVO.getInterfaceType()) |
|||
.orderByDesc(PackagemergeDetailDO::getId)); |
|||
} |
|||
|
|||
} |
@ -0,0 +1,72 @@ |
|||
package com.win.module.wms.dal.mysql.packagemergemain; |
|||
|
|||
import java.util.*; |
|||
|
|||
import com.win.framework.common.pojo.CustomConditions; |
|||
import com.win.framework.common.pojo.PageResult; |
|||
import com.win.framework.mybatis.core.query.LambdaQueryWrapperX; |
|||
import com.win.framework.mybatis.core.mapper.BaseMapperX; |
|||
import com.win.framework.mybatis.core.util.QueryWrapperUtils; |
|||
import com.win.module.wms.dal.dataobject.issueRecord.IssueRecordMainDO; |
|||
import com.win.module.wms.dal.dataobject.packagemergemain.PackagemergeMainDO; |
|||
import org.apache.ibatis.annotations.Mapper; |
|||
import com.win.module.wms.controller.packagemergemain.vo.*; |
|||
|
|||
/** |
|||
* 合包记录主 Mapper |
|||
* |
|||
* @author 超级管理员 |
|||
*/ |
|||
@Mapper |
|||
public interface PackagemergeMainMapper extends BaseMapperX<PackagemergeMainDO> { |
|||
|
|||
default PageResult<PackagemergeMainDO> selectPage(PackagemergeMainPageReqVO reqVO) { |
|||
return selectPage(reqVO, new LambdaQueryWrapperX<PackagemergeMainDO>() |
|||
.eqIfPresent(PackagemergeMainDO::getWarehouseCode, reqVO.getWarehouseCode()) |
|||
.eqIfPresent(PackagemergeMainDO::getDetails, reqVO.getDetails()) |
|||
.eqIfPresent(PackagemergeMainDO::getOutTransactionType, reqVO.getOutTransactionType()) |
|||
.eqIfPresent(PackagemergeMainDO::getInTransactionType, reqVO.getInTransactionType()) |
|||
.betweenIfPresent(PackagemergeMainDO::getExecuteTime, reqVO.getExecuteTime()) |
|||
.betweenIfPresent(PackagemergeMainDO::getActiveDate, reqVO.getActiveDate()) |
|||
.eqIfPresent(PackagemergeMainDO::getAvailable, reqVO.getAvailable()) |
|||
.betweenIfPresent(PackagemergeMainDO::getRequestTime, reqVO.getRequestTime()) |
|||
.betweenIfPresent(PackagemergeMainDO::getDueTime, reqVO.getDueTime()) |
|||
.eqIfPresent(PackagemergeMainDO::getDepartmentCode, reqVO.getDepartmentCode()) |
|||
.eqIfPresent(PackagemergeMainDO::getUserGroupCode, reqVO.getUserGroupCode()) |
|||
.eqIfPresent(PackagemergeMainDO::getInterfaceType, reqVO.getInterfaceType()) |
|||
.eqIfPresent(PackagemergeMainDO::getNumber, reqVO.getNumber()) |
|||
.eqIfPresent(PackagemergeMainDO::getBusinessType, reqVO.getBusinessType()) |
|||
.eqIfPresent(PackagemergeMainDO::getRemark, reqVO.getRemark()) |
|||
.betweenIfPresent(PackagemergeMainDO::getCreateTime, reqVO.getCreateTime()) |
|||
.eqIfPresent(PackagemergeMainDO::getExtraProperties, reqVO.getExtraProperties()) |
|||
.eqIfPresent(PackagemergeMainDO::getSiteId, reqVO.getSiteId()) |
|||
.orderByDesc(PackagemergeMainDO::getId)); |
|||
} |
|||
|
|||
default List<PackagemergeMainDO> selectList(PackagemergeMainExportReqVO reqVO) { |
|||
return selectList(new LambdaQueryWrapperX<PackagemergeMainDO>() |
|||
.eqIfPresent(PackagemergeMainDO::getWarehouseCode, reqVO.getWarehouseCode()) |
|||
.eqIfPresent(PackagemergeMainDO::getDetails, reqVO.getDetails()) |
|||
.eqIfPresent(PackagemergeMainDO::getOutTransactionType, reqVO.getOutTransactionType()) |
|||
.eqIfPresent(PackagemergeMainDO::getInTransactionType, reqVO.getInTransactionType()) |
|||
.betweenIfPresent(PackagemergeMainDO::getExecuteTime, reqVO.getExecuteTime()) |
|||
.betweenIfPresent(PackagemergeMainDO::getActiveDate, reqVO.getActiveDate()) |
|||
.eqIfPresent(PackagemergeMainDO::getAvailable, reqVO.getAvailable()) |
|||
.betweenIfPresent(PackagemergeMainDO::getRequestTime, reqVO.getRequestTime()) |
|||
.betweenIfPresent(PackagemergeMainDO::getDueTime, reqVO.getDueTime()) |
|||
.eqIfPresent(PackagemergeMainDO::getDepartmentCode, reqVO.getDepartmentCode()) |
|||
.eqIfPresent(PackagemergeMainDO::getUserGroupCode, reqVO.getUserGroupCode()) |
|||
.eqIfPresent(PackagemergeMainDO::getInterfaceType, reqVO.getInterfaceType()) |
|||
.eqIfPresent(PackagemergeMainDO::getNumber, reqVO.getNumber()) |
|||
.eqIfPresent(PackagemergeMainDO::getBusinessType, reqVO.getBusinessType()) |
|||
.eqIfPresent(PackagemergeMainDO::getRemark, reqVO.getRemark()) |
|||
.betweenIfPresent(PackagemergeMainDO::getCreateTime, reqVO.getCreateTime()) |
|||
.eqIfPresent(PackagemergeMainDO::getExtraProperties, reqVO.getExtraProperties()) |
|||
.eqIfPresent(PackagemergeMainDO::getSiteId, reqVO.getSiteId()) |
|||
.orderByDesc(PackagemergeMainDO::getId)); |
|||
} |
|||
|
|||
default PageResult<PackagemergeMainDO> selectSenior(CustomConditions conditions) { |
|||
return selectPage(conditions, QueryWrapperUtils.structure(conditions)); |
|||
} |
|||
} |
@ -0,0 +1,84 @@ |
|||
package com.win.module.wms.dal.mysql.packageovermain; |
|||
|
|||
import java.util.*; |
|||
|
|||
import com.win.framework.common.pojo.PageResult; |
|||
import com.win.framework.mybatis.core.query.LambdaQueryWrapperX; |
|||
import com.win.framework.mybatis.core.mapper.BaseMapperX; |
|||
import com.win.module.wms.dal.dataobject.packageovermain.PackageoverDetailDO; |
|||
import org.apache.ibatis.annotations.Mapper; |
|||
import com.win.module.wms.controller.packageovermain.vo.*; |
|||
|
|||
/** |
|||
* 翻包记录子 Mapper |
|||
* |
|||
* @author 超级管理员 |
|||
*/ |
|||
@Mapper |
|||
public interface PackageoverDetailMapper extends BaseMapperX<PackageoverDetailDO> { |
|||
|
|||
default PageResult<PackageoverDetailDO> selectPage(PackageoverDetailPageReqVO reqVO) { |
|||
return selectPage(reqVO, new LambdaQueryWrapperX<PackageoverDetailDO>() |
|||
.eqIfPresent(PackageoverDetailDO::getLocationCode, reqVO.getLocationCode()) |
|||
.eqIfPresent(PackageoverDetailDO::getLocationGroupCode, reqVO.getLocationGroupCode()) |
|||
.eqIfPresent(PackageoverDetailDO::getAreaCode, reqVO.getAreaCode()) |
|||
.eqIfPresent(PackageoverDetailDO::getFromPackingNumber, reqVO.getFromPackingNumber()) |
|||
.eqIfPresent(PackageoverDetailDO::getToPackingNumber, reqVO.getToPackingNumber()) |
|||
.eqIfPresent(PackageoverDetailDO::getFromBatch, reqVO.getFromBatch()) |
|||
.eqIfPresent(PackageoverDetailDO::getToBatch, reqVO.getToBatch()) |
|||
.eqIfPresent(PackageoverDetailDO::getFromInventoryStatus, reqVO.getFromInventoryStatus()) |
|||
.eqIfPresent(PackageoverDetailDO::getToInventoryStatus, reqVO.getToInventoryStatus()) |
|||
.eqIfPresent(PackageoverDetailDO::getFromContainerNumber, reqVO.getFromContainerNumber()) |
|||
.eqIfPresent(PackageoverDetailDO::getToContainerNumber, reqVO.getToContainerNumber()) |
|||
.eqIfPresent(PackageoverDetailDO::getFromOwnerCode, reqVO.getFromOwnerCode()) |
|||
.eqIfPresent(PackageoverDetailDO::getToOwnerCode, reqVO.getToOwnerCode()) |
|||
.eqIfPresent(PackageoverDetailDO::getMasterId, reqVO.getMasterId()) |
|||
.eqIfPresent(PackageoverDetailDO::getNumber, reqVO.getNumber()) |
|||
.eqIfPresent(PackageoverDetailDO::getItemCode, reqVO.getItemCode()) |
|||
.eqIfPresent(PackageoverDetailDO::getRemark, reqVO.getRemark()) |
|||
.betweenIfPresent(PackageoverDetailDO::getCreateTime, reqVO.getCreateTime()) |
|||
.eqIfPresent(PackageoverDetailDO::getSiteId, reqVO.getSiteId()) |
|||
.likeIfPresent(PackageoverDetailDO::getItemName, reqVO.getItemName()) |
|||
.eqIfPresent(PackageoverDetailDO::getItemDesc1, reqVO.getItemDesc1()) |
|||
.eqIfPresent(PackageoverDetailDO::getItemDesc2, reqVO.getItemDesc2()) |
|||
.eqIfPresent(PackageoverDetailDO::getProjectCode, reqVO.getProjectCode()) |
|||
.eqIfPresent(PackageoverDetailDO::getToQty, reqVO.getToQty()) |
|||
.eqIfPresent(PackageoverDetailDO::getFromQty, reqVO.getFromQty()) |
|||
.eqIfPresent(PackageoverDetailDO::getUom, reqVO.getUom()) |
|||
.eqIfPresent(PackageoverDetailDO::getInterfaceType, reqVO.getInterfaceType()) |
|||
.orderByDesc(PackageoverDetailDO::getId)); |
|||
} |
|||
|
|||
default List<PackageoverDetailDO> selectList(PackageoverDetailExportReqVO reqVO) { |
|||
return selectList(new LambdaQueryWrapperX<PackageoverDetailDO>() |
|||
.eqIfPresent(PackageoverDetailDO::getLocationCode, reqVO.getLocationCode()) |
|||
.eqIfPresent(PackageoverDetailDO::getLocationGroupCode, reqVO.getLocationGroupCode()) |
|||
.eqIfPresent(PackageoverDetailDO::getAreaCode, reqVO.getAreaCode()) |
|||
.eqIfPresent(PackageoverDetailDO::getFromPackingNumber, reqVO.getFromPackingNumber()) |
|||
.eqIfPresent(PackageoverDetailDO::getToPackingNumber, reqVO.getToPackingNumber()) |
|||
.eqIfPresent(PackageoverDetailDO::getFromBatch, reqVO.getFromBatch()) |
|||
.eqIfPresent(PackageoverDetailDO::getToBatch, reqVO.getToBatch()) |
|||
.eqIfPresent(PackageoverDetailDO::getFromInventoryStatus, reqVO.getFromInventoryStatus()) |
|||
.eqIfPresent(PackageoverDetailDO::getToInventoryStatus, reqVO.getToInventoryStatus()) |
|||
.eqIfPresent(PackageoverDetailDO::getFromContainerNumber, reqVO.getFromContainerNumber()) |
|||
.eqIfPresent(PackageoverDetailDO::getToContainerNumber, reqVO.getToContainerNumber()) |
|||
.eqIfPresent(PackageoverDetailDO::getFromOwnerCode, reqVO.getFromOwnerCode()) |
|||
.eqIfPresent(PackageoverDetailDO::getToOwnerCode, reqVO.getToOwnerCode()) |
|||
.eqIfPresent(PackageoverDetailDO::getMasterId, reqVO.getMasterId()) |
|||
.eqIfPresent(PackageoverDetailDO::getNumber, reqVO.getNumber()) |
|||
.eqIfPresent(PackageoverDetailDO::getItemCode, reqVO.getItemCode()) |
|||
.eqIfPresent(PackageoverDetailDO::getRemark, reqVO.getRemark()) |
|||
.betweenIfPresent(PackageoverDetailDO::getCreateTime, reqVO.getCreateTime()) |
|||
.eqIfPresent(PackageoverDetailDO::getSiteId, reqVO.getSiteId()) |
|||
.likeIfPresent(PackageoverDetailDO::getItemName, reqVO.getItemName()) |
|||
.eqIfPresent(PackageoverDetailDO::getItemDesc1, reqVO.getItemDesc1()) |
|||
.eqIfPresent(PackageoverDetailDO::getItemDesc2, reqVO.getItemDesc2()) |
|||
.eqIfPresent(PackageoverDetailDO::getProjectCode, reqVO.getProjectCode()) |
|||
.eqIfPresent(PackageoverDetailDO::getToQty, reqVO.getToQty()) |
|||
.eqIfPresent(PackageoverDetailDO::getFromQty, reqVO.getFromQty()) |
|||
.eqIfPresent(PackageoverDetailDO::getUom, reqVO.getUom()) |
|||
.eqIfPresent(PackageoverDetailDO::getInterfaceType, reqVO.getInterfaceType()) |
|||
.orderByDesc(PackageoverDetailDO::getId)); |
|||
} |
|||
|
|||
} |
@ -0,0 +1,71 @@ |
|||
package com.win.module.wms.dal.mysql.packageovermain; |
|||
|
|||
import java.util.*; |
|||
|
|||
import com.win.framework.common.pojo.CustomConditions; |
|||
import com.win.framework.common.pojo.PageResult; |
|||
import com.win.framework.mybatis.core.query.LambdaQueryWrapperX; |
|||
import com.win.framework.mybatis.core.mapper.BaseMapperX; |
|||
import com.win.framework.mybatis.core.util.QueryWrapperUtils; |
|||
import com.win.module.wms.dal.dataobject.issueRecord.IssueRecordMainDO; |
|||
import com.win.module.wms.dal.dataobject.packageovermain.PackageoverMainDO; |
|||
import org.apache.ibatis.annotations.Mapper; |
|||
import com.win.module.wms.controller.packageovermain.vo.*; |
|||
|
|||
/** |
|||
* 翻包记录主 Mapper |
|||
* |
|||
* @author 超级管理员 |
|||
*/ |
|||
@Mapper |
|||
public interface PackageoverMainMapper extends BaseMapperX<PackageoverMainDO> { |
|||
|
|||
default PageResult<PackageoverMainDO> selectPage(PackageoverMainPageReqVO reqVO) { |
|||
return selectPage(reqVO, new LambdaQueryWrapperX<PackageoverMainDO>() |
|||
.eqIfPresent(PackageoverMainDO::getWarehouseCode, reqVO.getWarehouseCode()) |
|||
.eqIfPresent(PackageoverMainDO::getDetails, reqVO.getDetails()) |
|||
.eqIfPresent(PackageoverMainDO::getOutTransactionType, reqVO.getOutTransactionType()) |
|||
.eqIfPresent(PackageoverMainDO::getInTransactionType, reqVO.getInTransactionType()) |
|||
.betweenIfPresent(PackageoverMainDO::getExecuteTime, reqVO.getExecuteTime()) |
|||
.betweenIfPresent(PackageoverMainDO::getActiveDate, reqVO.getActiveDate()) |
|||
.eqIfPresent(PackageoverMainDO::getAvailable, reqVO.getAvailable()) |
|||
.betweenIfPresent(PackageoverMainDO::getRequestTime, reqVO.getRequestTime()) |
|||
.betweenIfPresent(PackageoverMainDO::getDueTime, reqVO.getDueTime()) |
|||
.eqIfPresent(PackageoverMainDO::getDepartmentCode, reqVO.getDepartmentCode()) |
|||
.eqIfPresent(PackageoverMainDO::getUserGroupCode, reqVO.getUserGroupCode()) |
|||
.eqIfPresent(PackageoverMainDO::getInterfaceType, reqVO.getInterfaceType()) |
|||
.eqIfPresent(PackageoverMainDO::getNumber, reqVO.getNumber()) |
|||
.eqIfPresent(PackageoverMainDO::getBusinessType, reqVO.getBusinessType()) |
|||
.eqIfPresent(PackageoverMainDO::getRemark, reqVO.getRemark()) |
|||
.betweenIfPresent(PackageoverMainDO::getCreateTime, reqVO.getCreateTime()) |
|||
.eqIfPresent(PackageoverMainDO::getExtraProperties, reqVO.getExtraProperties()) |
|||
.eqIfPresent(PackageoverMainDO::getSiteId, reqVO.getSiteId()) |
|||
.orderByDesc(PackageoverMainDO::getId)); |
|||
} |
|||
|
|||
default List<PackageoverMainDO> selectList(PackageoverMainExportReqVO reqVO) { |
|||
return selectList(new LambdaQueryWrapperX<PackageoverMainDO>() |
|||
.eqIfPresent(PackageoverMainDO::getWarehouseCode, reqVO.getWarehouseCode()) |
|||
.eqIfPresent(PackageoverMainDO::getDetails, reqVO.getDetails()) |
|||
.eqIfPresent(PackageoverMainDO::getOutTransactionType, reqVO.getOutTransactionType()) |
|||
.eqIfPresent(PackageoverMainDO::getInTransactionType, reqVO.getInTransactionType()) |
|||
.betweenIfPresent(PackageoverMainDO::getExecuteTime, reqVO.getExecuteTime()) |
|||
.betweenIfPresent(PackageoverMainDO::getActiveDate, reqVO.getActiveDate()) |
|||
.eqIfPresent(PackageoverMainDO::getAvailable, reqVO.getAvailable()) |
|||
.betweenIfPresent(PackageoverMainDO::getRequestTime, reqVO.getRequestTime()) |
|||
.betweenIfPresent(PackageoverMainDO::getDueTime, reqVO.getDueTime()) |
|||
.eqIfPresent(PackageoverMainDO::getDepartmentCode, reqVO.getDepartmentCode()) |
|||
.eqIfPresent(PackageoverMainDO::getUserGroupCode, reqVO.getUserGroupCode()) |
|||
.eqIfPresent(PackageoverMainDO::getInterfaceType, reqVO.getInterfaceType()) |
|||
.eqIfPresent(PackageoverMainDO::getNumber, reqVO.getNumber()) |
|||
.eqIfPresent(PackageoverMainDO::getBusinessType, reqVO.getBusinessType()) |
|||
.eqIfPresent(PackageoverMainDO::getRemark, reqVO.getRemark()) |
|||
.betweenIfPresent(PackageoverMainDO::getCreateTime, reqVO.getCreateTime()) |
|||
.eqIfPresent(PackageoverMainDO::getExtraProperties, reqVO.getExtraProperties()) |
|||
.eqIfPresent(PackageoverMainDO::getSiteId, reqVO.getSiteId()) |
|||
.orderByDesc(PackageoverMainDO::getId)); |
|||
} |
|||
default PageResult<PackageoverMainDO> selectSenior(CustomConditions conditions) { |
|||
return selectPage(conditions, QueryWrapperUtils.structure(conditions)); |
|||
} |
|||
} |
@ -0,0 +1,84 @@ |
|||
package com.win.module.wms.dal.mysql.packagesplitmain; |
|||
|
|||
import java.util.*; |
|||
|
|||
import com.win.framework.common.pojo.PageResult; |
|||
import com.win.framework.mybatis.core.query.LambdaQueryWrapperX; |
|||
import com.win.framework.mybatis.core.mapper.BaseMapperX; |
|||
import com.win.module.wms.dal.dataobject.packagesplitmain.PackagesplitDetailDO; |
|||
import org.apache.ibatis.annotations.Mapper; |
|||
import com.win.module.wms.controller.packagesplitmain.vo.*; |
|||
|
|||
/** |
|||
* 拆包记录子 Mapper |
|||
* |
|||
* @author 超级管理员 |
|||
*/ |
|||
@Mapper |
|||
public interface PackagesplitDetailMapper extends BaseMapperX<PackagesplitDetailDO> { |
|||
|
|||
default PageResult<PackagesplitDetailDO> selectPage(PackagesplitDetailPageReqVO reqVO) { |
|||
return selectPage(reqVO, new LambdaQueryWrapperX<PackagesplitDetailDO>() |
|||
.eqIfPresent(PackagesplitDetailDO::getLocationCode, reqVO.getLocationCode()) |
|||
.eqIfPresent(PackagesplitDetailDO::getLocationGroupCode, reqVO.getLocationGroupCode()) |
|||
.eqIfPresent(PackagesplitDetailDO::getAreaCode, reqVO.getAreaCode()) |
|||
.eqIfPresent(PackagesplitDetailDO::getFromPackingNumber, reqVO.getFromPackingNumber()) |
|||
.eqIfPresent(PackagesplitDetailDO::getToPackingNumber, reqVO.getToPackingNumber()) |
|||
.eqIfPresent(PackagesplitDetailDO::getFromBatch, reqVO.getFromBatch()) |
|||
.eqIfPresent(PackagesplitDetailDO::getToBatch, reqVO.getToBatch()) |
|||
.eqIfPresent(PackagesplitDetailDO::getFromInventoryStatus, reqVO.getFromInventoryStatus()) |
|||
.eqIfPresent(PackagesplitDetailDO::getToInventoryStatus, reqVO.getToInventoryStatus()) |
|||
.eqIfPresent(PackagesplitDetailDO::getFromContainerNumber, reqVO.getFromContainerNumber()) |
|||
.eqIfPresent(PackagesplitDetailDO::getToContainerNumber, reqVO.getToContainerNumber()) |
|||
.eqIfPresent(PackagesplitDetailDO::getFromOwnerCode, reqVO.getFromOwnerCode()) |
|||
.eqIfPresent(PackagesplitDetailDO::getToOwnerCode, reqVO.getToOwnerCode()) |
|||
.eqIfPresent(PackagesplitDetailDO::getMasterId, reqVO.getMasterId()) |
|||
.eqIfPresent(PackagesplitDetailDO::getNumber, reqVO.getNumber()) |
|||
.eqIfPresent(PackagesplitDetailDO::getItemCode, reqVO.getItemCode()) |
|||
.eqIfPresent(PackagesplitDetailDO::getRemark, reqVO.getRemark()) |
|||
.betweenIfPresent(PackagesplitDetailDO::getCreateTime, reqVO.getCreateTime()) |
|||
.eqIfPresent(PackagesplitDetailDO::getSiteId, reqVO.getSiteId()) |
|||
.likeIfPresent(PackagesplitDetailDO::getItemName, reqVO.getItemName()) |
|||
.eqIfPresent(PackagesplitDetailDO::getItemDesc1, reqVO.getItemDesc1()) |
|||
.eqIfPresent(PackagesplitDetailDO::getItemDesc2, reqVO.getItemDesc2()) |
|||
.eqIfPresent(PackagesplitDetailDO::getProjectCode, reqVO.getProjectCode()) |
|||
.eqIfPresent(PackagesplitDetailDO::getToQty, reqVO.getToQty()) |
|||
.eqIfPresent(PackagesplitDetailDO::getFromQty, reqVO.getFromQty()) |
|||
.eqIfPresent(PackagesplitDetailDO::getUom, reqVO.getUom()) |
|||
.eqIfPresent(PackagesplitDetailDO::getInterfaceType, reqVO.getInterfaceType()) |
|||
.orderByDesc(PackagesplitDetailDO::getId)); |
|||
} |
|||
|
|||
default List<PackagesplitDetailDO> selectList(PackagesplitDetailExportReqVO reqVO) { |
|||
return selectList(new LambdaQueryWrapperX<PackagesplitDetailDO>() |
|||
.eqIfPresent(PackagesplitDetailDO::getLocationCode, reqVO.getLocationCode()) |
|||
.eqIfPresent(PackagesplitDetailDO::getLocationGroupCode, reqVO.getLocationGroupCode()) |
|||
.eqIfPresent(PackagesplitDetailDO::getAreaCode, reqVO.getAreaCode()) |
|||
.eqIfPresent(PackagesplitDetailDO::getFromPackingNumber, reqVO.getFromPackingNumber()) |
|||
.eqIfPresent(PackagesplitDetailDO::getToPackingNumber, reqVO.getToPackingNumber()) |
|||
.eqIfPresent(PackagesplitDetailDO::getFromBatch, reqVO.getFromBatch()) |
|||
.eqIfPresent(PackagesplitDetailDO::getToBatch, reqVO.getToBatch()) |
|||
.eqIfPresent(PackagesplitDetailDO::getFromInventoryStatus, reqVO.getFromInventoryStatus()) |
|||
.eqIfPresent(PackagesplitDetailDO::getToInventoryStatus, reqVO.getToInventoryStatus()) |
|||
.eqIfPresent(PackagesplitDetailDO::getFromContainerNumber, reqVO.getFromContainerNumber()) |
|||
.eqIfPresent(PackagesplitDetailDO::getToContainerNumber, reqVO.getToContainerNumber()) |
|||
.eqIfPresent(PackagesplitDetailDO::getFromOwnerCode, reqVO.getFromOwnerCode()) |
|||
.eqIfPresent(PackagesplitDetailDO::getToOwnerCode, reqVO.getToOwnerCode()) |
|||
.eqIfPresent(PackagesplitDetailDO::getMasterId, reqVO.getMasterId()) |
|||
.eqIfPresent(PackagesplitDetailDO::getNumber, reqVO.getNumber()) |
|||
.eqIfPresent(PackagesplitDetailDO::getItemCode, reqVO.getItemCode()) |
|||
.eqIfPresent(PackagesplitDetailDO::getRemark, reqVO.getRemark()) |
|||
.betweenIfPresent(PackagesplitDetailDO::getCreateTime, reqVO.getCreateTime()) |
|||
.eqIfPresent(PackagesplitDetailDO::getSiteId, reqVO.getSiteId()) |
|||
.likeIfPresent(PackagesplitDetailDO::getItemName, reqVO.getItemName()) |
|||
.eqIfPresent(PackagesplitDetailDO::getItemDesc1, reqVO.getItemDesc1()) |
|||
.eqIfPresent(PackagesplitDetailDO::getItemDesc2, reqVO.getItemDesc2()) |
|||
.eqIfPresent(PackagesplitDetailDO::getProjectCode, reqVO.getProjectCode()) |
|||
.eqIfPresent(PackagesplitDetailDO::getToQty, reqVO.getToQty()) |
|||
.eqIfPresent(PackagesplitDetailDO::getFromQty, reqVO.getFromQty()) |
|||
.eqIfPresent(PackagesplitDetailDO::getUom, reqVO.getUom()) |
|||
.eqIfPresent(PackagesplitDetailDO::getInterfaceType, reqVO.getInterfaceType()) |
|||
.orderByDesc(PackagesplitDetailDO::getId)); |
|||
} |
|||
|
|||
} |
@ -0,0 +1,71 @@ |
|||
package com.win.module.wms.dal.mysql.packagesplitmain; |
|||
|
|||
import java.util.*; |
|||
|
|||
import com.win.framework.common.pojo.CustomConditions; |
|||
import com.win.framework.common.pojo.PageResult; |
|||
import com.win.framework.mybatis.core.query.LambdaQueryWrapperX; |
|||
import com.win.framework.mybatis.core.mapper.BaseMapperX; |
|||
import com.win.framework.mybatis.core.util.QueryWrapperUtils; |
|||
import com.win.module.wms.dal.dataobject.issueRecord.IssueRecordMainDO; |
|||
import com.win.module.wms.dal.dataobject.packagesplitmain.PackagesplitMainDO; |
|||
import org.apache.ibatis.annotations.Mapper; |
|||
import com.win.module.wms.controller.packagesplitmain.vo.*; |
|||
|
|||
/** |
|||
* 拆包记录主 Mapper |
|||
* |
|||
* @author 超级管理员 |
|||
*/ |
|||
@Mapper |
|||
public interface PackagesplitMainMapper extends BaseMapperX<PackagesplitMainDO> { |
|||
|
|||
default PageResult<PackagesplitMainDO> selectPage(PackagesplitMainPageReqVO reqVO) { |
|||
return selectPage(reqVO, new LambdaQueryWrapperX<PackagesplitMainDO>() |
|||
.eqIfPresent(PackagesplitMainDO::getWarehouseCode, reqVO.getWarehouseCode()) |
|||
.eqIfPresent(PackagesplitMainDO::getDetails, reqVO.getDetails()) |
|||
.eqIfPresent(PackagesplitMainDO::getOutTransactionType, reqVO.getOutTransactionType()) |
|||
.eqIfPresent(PackagesplitMainDO::getInTransactionType, reqVO.getInTransactionType()) |
|||
.betweenIfPresent(PackagesplitMainDO::getExecuteTime, reqVO.getExecuteTime()) |
|||
.betweenIfPresent(PackagesplitMainDO::getActiveDate, reqVO.getActiveDate()) |
|||
.eqIfPresent(PackagesplitMainDO::getAvailable, reqVO.getAvailable()) |
|||
.betweenIfPresent(PackagesplitMainDO::getRequestTime, reqVO.getRequestTime()) |
|||
.betweenIfPresent(PackagesplitMainDO::getDueTime, reqVO.getDueTime()) |
|||
.eqIfPresent(PackagesplitMainDO::getDepartmentCode, reqVO.getDepartmentCode()) |
|||
.eqIfPresent(PackagesplitMainDO::getUserGroupCode, reqVO.getUserGroupCode()) |
|||
.eqIfPresent(PackagesplitMainDO::getInterfaceType, reqVO.getInterfaceType()) |
|||
.eqIfPresent(PackagesplitMainDO::getNumber, reqVO.getNumber()) |
|||
.eqIfPresent(PackagesplitMainDO::getBusinessType, reqVO.getBusinessType()) |
|||
.eqIfPresent(PackagesplitMainDO::getRemark, reqVO.getRemark()) |
|||
.betweenIfPresent(PackagesplitMainDO::getCreateTime, reqVO.getCreateTime()) |
|||
.eqIfPresent(PackagesplitMainDO::getExtraProperties, reqVO.getExtraProperties()) |
|||
.eqIfPresent(PackagesplitMainDO::getSiteId, reqVO.getSiteId()) |
|||
.orderByDesc(PackagesplitMainDO::getId)); |
|||
} |
|||
|
|||
default List<PackagesplitMainDO> selectList(PackagesplitMainExportReqVO reqVO) { |
|||
return selectList(new LambdaQueryWrapperX<PackagesplitMainDO>() |
|||
.eqIfPresent(PackagesplitMainDO::getWarehouseCode, reqVO.getWarehouseCode()) |
|||
.eqIfPresent(PackagesplitMainDO::getDetails, reqVO.getDetails()) |
|||
.eqIfPresent(PackagesplitMainDO::getOutTransactionType, reqVO.getOutTransactionType()) |
|||
.eqIfPresent(PackagesplitMainDO::getInTransactionType, reqVO.getInTransactionType()) |
|||
.betweenIfPresent(PackagesplitMainDO::getExecuteTime, reqVO.getExecuteTime()) |
|||
.betweenIfPresent(PackagesplitMainDO::getActiveDate, reqVO.getActiveDate()) |
|||
.eqIfPresent(PackagesplitMainDO::getAvailable, reqVO.getAvailable()) |
|||
.betweenIfPresent(PackagesplitMainDO::getRequestTime, reqVO.getRequestTime()) |
|||
.betweenIfPresent(PackagesplitMainDO::getDueTime, reqVO.getDueTime()) |
|||
.eqIfPresent(PackagesplitMainDO::getDepartmentCode, reqVO.getDepartmentCode()) |
|||
.eqIfPresent(PackagesplitMainDO::getUserGroupCode, reqVO.getUserGroupCode()) |
|||
.eqIfPresent(PackagesplitMainDO::getInterfaceType, reqVO.getInterfaceType()) |
|||
.eqIfPresent(PackagesplitMainDO::getNumber, reqVO.getNumber()) |
|||
.eqIfPresent(PackagesplitMainDO::getBusinessType, reqVO.getBusinessType()) |
|||
.eqIfPresent(PackagesplitMainDO::getRemark, reqVO.getRemark()) |
|||
.betweenIfPresent(PackagesplitMainDO::getCreateTime, reqVO.getCreateTime()) |
|||
.eqIfPresent(PackagesplitMainDO::getExtraProperties, reqVO.getExtraProperties()) |
|||
.eqIfPresent(PackagesplitMainDO::getSiteId, reqVO.getSiteId()) |
|||
.orderByDesc(PackagesplitMainDO::getId)); |
|||
} |
|||
default PageResult<PackagesplitMainDO> selectSenior(CustomConditions conditions) { |
|||
return selectPage(conditions, QueryWrapperUtils.structure(conditions)); |
|||
} |
|||
} |
@ -0,0 +1,71 @@ |
|||
package com.win.module.wms.service.packagemergemain; |
|||
|
|||
import java.util.*; |
|||
import javax.validation.*; |
|||
|
|||
import com.win.module.wms.controller.packagemergemain.vo.*; |
|||
import com.win.module.wms.dal.dataobject.packagemergemain.PackagemergeDetailDO; |
|||
import com.win.framework.common.pojo.PageResult; |
|||
|
|||
/** |
|||
* 合包记录子 Service 接口 |
|||
* |
|||
* @author 超级管理员 |
|||
*/ |
|||
public interface PackagemergeDetailService { |
|||
|
|||
/** |
|||
* 创建合包记录子 |
|||
* |
|||
* @param createReqVO 创建信息 |
|||
* @return 编号 |
|||
*/ |
|||
Long createPackagemergeDetail(@Valid PackagemergeDetailCreateReqVO createReqVO); |
|||
|
|||
/** |
|||
* 更新合包记录子 |
|||
* |
|||
* @param updateReqVO 更新信息 |
|||
*/ |
|||
Integer updatePackagemergeDetail(@Valid PackagemergeDetailUpdateReqVO updateReqVO); |
|||
|
|||
/** |
|||
* 删除合包记录子 |
|||
* |
|||
* @param id 编号 |
|||
*/ |
|||
Integer deletePackagemergeDetail(Long id); |
|||
|
|||
/** |
|||
* 获得合包记录子 |
|||
* |
|||
* @param id 编号 |
|||
* @return 合包记录子 |
|||
*/ |
|||
PackagemergeDetailDO getPackagemergeDetail(Long id); |
|||
|
|||
/** |
|||
* 获得合包记录子列表 |
|||
* |
|||
* @param ids 编号 |
|||
* @return 合包记录子列表 |
|||
*/ |
|||
List<PackagemergeDetailDO> getPackagemergeDetailList(Collection<Long> ids); |
|||
|
|||
/** |
|||
* 获得合包记录子分页 |
|||
* |
|||
* @param pageReqVO 分页查询 |
|||
* @return 合包记录子分页 |
|||
*/ |
|||
PageResult<PackagemergeDetailDO> getPackagemergeDetailPage(PackagemergeDetailPageReqVO pageReqVO); |
|||
|
|||
/** |
|||
* 获得合包记录子列表, 用于 Excel 导出 |
|||
* |
|||
* @param exportReqVO 查询条件 |
|||
* @return 合包记录子列表 |
|||
*/ |
|||
List<PackagemergeDetailDO> getPackagemergeDetailList(PackagemergeDetailExportReqVO exportReqVO); |
|||
|
|||
} |
@ -0,0 +1,82 @@ |
|||
package com.win.module.wms.service.packagemergemain; |
|||
|
|||
import com.win.module.wms.controller.packagemergemain.vo.*; |
|||
import org.springframework.stereotype.Service; |
|||
import javax.annotation.Resource; |
|||
import org.springframework.validation.annotation.Validated; |
|||
|
|||
import java.util.*; |
|||
|
|||
import com.win.module.wms.dal.dataobject.packagemergemain.PackagemergeDetailDO; |
|||
import com.win.framework.common.pojo.PageResult; |
|||
|
|||
import com.win.module.wms.convert.packagemergemain.PackagemergeDetailConvert; |
|||
import com.win.module.wms.dal.mysql.packagemergemain.PackagemergeDetailMapper; |
|||
|
|||
import static com.win.framework.common.exception.util.ServiceExceptionUtil.exception; |
|||
import static com.win.module.wms.enums.ErrorCodeConstants.PACKAGEMERGE_DETAIL_NOT_EXISTS; |
|||
|
|||
/** |
|||
* 合包记录子 Service 实现类 |
|||
* |
|||
* @author 超级管理员 |
|||
*/ |
|||
@Service |
|||
@Validated |
|||
public class PackagemergeDetailServiceImpl implements PackagemergeDetailService { |
|||
|
|||
@Resource |
|||
private PackagemergeDetailMapper packagemergeDetailMapper; |
|||
|
|||
@Override |
|||
public Long createPackagemergeDetail(PackagemergeDetailCreateReqVO createReqVO) { |
|||
// 插入
|
|||
PackagemergeDetailDO packagemergeDetail = PackagemergeDetailConvert.INSTANCE.convert(createReqVO); |
|||
packagemergeDetailMapper.insert(packagemergeDetail); |
|||
// 返回
|
|||
return packagemergeDetail.getId(); |
|||
} |
|||
|
|||
@Override |
|||
public Integer updatePackagemergeDetail(PackagemergeDetailUpdateReqVO updateReqVO) { |
|||
// 校验存在
|
|||
validatePackagemergeDetailExists(updateReqVO.getId()); |
|||
// 更新
|
|||
PackagemergeDetailDO updateObj = PackagemergeDetailConvert.INSTANCE.convert(updateReqVO); |
|||
return packagemergeDetailMapper.updateById(updateObj); |
|||
} |
|||
|
|||
@Override |
|||
public Integer deletePackagemergeDetail(Long id) { |
|||
// 校验存在
|
|||
validatePackagemergeDetailExists(id); |
|||
// 删除
|
|||
return packagemergeDetailMapper.deleteById(id); |
|||
} |
|||
|
|||
private void validatePackagemergeDetailExists(Long id) { |
|||
if (packagemergeDetailMapper.selectById(id) == null) { |
|||
throw exception(PACKAGEMERGE_DETAIL_NOT_EXISTS); |
|||
} |
|||
} |
|||
|
|||
@Override |
|||
public PackagemergeDetailDO getPackagemergeDetail(Long id) { |
|||
return packagemergeDetailMapper.selectById(id); |
|||
} |
|||
|
|||
@Override |
|||
public List<PackagemergeDetailDO> getPackagemergeDetailList(Collection<Long> ids) { |
|||
return packagemergeDetailMapper.selectBatchIds(ids); |
|||
} |
|||
|
|||
@Override |
|||
public PageResult<PackagemergeDetailDO> getPackagemergeDetailPage(PackagemergeDetailPageReqVO pageReqVO) { |
|||
return packagemergeDetailMapper.selectPage(pageReqVO); |
|||
} |
|||
|
|||
@Override |
|||
public List<PackagemergeDetailDO> getPackagemergeDetailList(PackagemergeDetailExportReqVO exportReqVO) { |
|||
return packagemergeDetailMapper.selectList(exportReqVO); |
|||
} |
|||
} |
@ -0,0 +1,73 @@ |
|||
package com.win.module.wms.service.packagemergemain; |
|||
|
|||
import java.util.*; |
|||
import javax.validation.*; |
|||
|
|||
import com.win.framework.common.pojo.CustomConditions; |
|||
import com.win.module.wms.controller.packagemergemain.vo.*; |
|||
import com.win.module.wms.dal.dataobject.packagemergemain.PackagemergeMainDO; |
|||
import com.win.framework.common.pojo.PageResult; |
|||
|
|||
/** |
|||
* 合包记录主 Service 接口 |
|||
* |
|||
* @author 超级管理员 |
|||
*/ |
|||
public interface PackagemergeMainService { |
|||
|
|||
/** |
|||
* 创建合包记录主 |
|||
* |
|||
* @param createReqVO 创建信息 |
|||
* @return 编号 |
|||
*/ |
|||
Long createPackagemergeMain(@Valid PackagemergeMainCreateReqVO createReqVO); |
|||
|
|||
/** |
|||
* 更新合包记录主 |
|||
* |
|||
* @param updateReqVO 更新信息 |
|||
*/ |
|||
Integer updatePackagemergeMain(@Valid PackagemergeMainUpdateReqVO updateReqVO); |
|||
|
|||
/** |
|||
* 删除合包记录主 |
|||
* |
|||
* @param id 编号 |
|||
*/ |
|||
Integer deletePackagemergeMain(Long id); |
|||
|
|||
/** |
|||
* 获得合包记录主 |
|||
* |
|||
* @param id 编号 |
|||
* @return 合包记录主 |
|||
*/ |
|||
PackagemergeMainDO getPackagemergeMain(Long id); |
|||
|
|||
/** |
|||
* 获得合包记录主列表 |
|||
* |
|||
* @param ids 编号 |
|||
* @return 合包记录主列表 |
|||
*/ |
|||
List<PackagemergeMainDO> getPackagemergeMainList(Collection<Long> ids); |
|||
|
|||
/** |
|||
* 获得合包记录主分页 |
|||
* |
|||
* @param pageReqVO 分页查询 |
|||
* @return 合包记录主分页 |
|||
*/ |
|||
PageResult<PackagemergeMainDO> getPackagemergeMainPage(PackagemergeMainPageReqVO pageReqVO); |
|||
|
|||
/** |
|||
* 获得合包记录主列表, 用于 Excel 导出 |
|||
* |
|||
* @param exportReqVO 查询条件 |
|||
* @return 合包记录主列表 |
|||
*/ |
|||
List<PackagemergeMainDO> getPackagemergeMainList(PackagemergeMainExportReqVO exportReqVO); |
|||
|
|||
PageResult<PackagemergeMainDO> getPackagemergeMainSenior(CustomConditions conditions); |
|||
} |
@ -0,0 +1,87 @@ |
|||
package com.win.module.wms.service.packagemergemain; |
|||
|
|||
import com.win.framework.common.pojo.CustomConditions; |
|||
import org.springframework.stereotype.Service; |
|||
import javax.annotation.Resource; |
|||
import org.springframework.validation.annotation.Validated; |
|||
|
|||
import java.util.*; |
|||
import com.win.module.wms.controller.packagemergemain.vo.*; |
|||
import com.win.module.wms.dal.dataobject.packagemergemain.PackagemergeMainDO; |
|||
import com.win.framework.common.pojo.PageResult; |
|||
|
|||
import com.win.module.wms.convert.packagemergemain.PackagemergeMainConvert; |
|||
import com.win.module.wms.dal.mysql.packagemergemain.PackagemergeMainMapper; |
|||
|
|||
import static com.win.framework.common.exception.util.ServiceExceptionUtil.exception; |
|||
import static com.win.module.wms.enums.ErrorCodeConstants.*; |
|||
|
|||
/** |
|||
* 合包记录主 Service 实现类 |
|||
* |
|||
* @author 超级管理员 |
|||
*/ |
|||
@Service |
|||
@Validated |
|||
public class PackagemergeMainServiceImpl implements PackagemergeMainService { |
|||
|
|||
@Resource |
|||
private PackagemergeMainMapper packagemergeMainMapper; |
|||
|
|||
@Override |
|||
public Long createPackagemergeMain(PackagemergeMainCreateReqVO createReqVO) { |
|||
// 插入
|
|||
PackagemergeMainDO packagemergeMain = PackagemergeMainConvert.INSTANCE.convert(createReqVO); |
|||
packagemergeMainMapper.insert(packagemergeMain); |
|||
// 返回
|
|||
return packagemergeMain.getId(); |
|||
} |
|||
|
|||
@Override |
|||
public Integer updatePackagemergeMain(PackagemergeMainUpdateReqVO updateReqVO) { |
|||
// 校验存在
|
|||
validatePackagemergeMainExists(updateReqVO.getId()); |
|||
// 更新
|
|||
PackagemergeMainDO updateObj = PackagemergeMainConvert.INSTANCE.convert(updateReqVO); |
|||
return packagemergeMainMapper.updateById(updateObj); |
|||
} |
|||
|
|||
@Override |
|||
public Integer deletePackagemergeMain(Long id) { |
|||
// 校验存在
|
|||
validatePackagemergeMainExists(id); |
|||
// 删除
|
|||
return packagemergeMainMapper.deleteById(id); |
|||
} |
|||
|
|||
private void validatePackagemergeMainExists(Long id) { |
|||
if (packagemergeMainMapper.selectById(id) == null) { |
|||
throw exception(PACKAGEMERGE_MAIN_NOT_EXISTS); |
|||
} |
|||
} |
|||
|
|||
@Override |
|||
public PackagemergeMainDO getPackagemergeMain(Long id) { |
|||
return packagemergeMainMapper.selectById(id); |
|||
} |
|||
|
|||
@Override |
|||
public List<PackagemergeMainDO> getPackagemergeMainList(Collection<Long> ids) { |
|||
return packagemergeMainMapper.selectBatchIds(ids); |
|||
} |
|||
|
|||
@Override |
|||
public PageResult<PackagemergeMainDO> getPackagemergeMainPage(PackagemergeMainPageReqVO pageReqVO) { |
|||
return packagemergeMainMapper.selectPage(pageReqVO); |
|||
} |
|||
|
|||
@Override |
|||
public List<PackagemergeMainDO> getPackagemergeMainList(PackagemergeMainExportReqVO exportReqVO) { |
|||
return packagemergeMainMapper.selectList(exportReqVO); |
|||
} |
|||
|
|||
@Override |
|||
public PageResult<PackagemergeMainDO> getPackagemergeMainSenior(CustomConditions conditions) { |
|||
return packagemergeMainMapper.selectSenior(conditions); |
|||
} |
|||
} |
@ -0,0 +1,71 @@ |
|||
package com.win.module.wms.service.packageovermain; |
|||
|
|||
import java.util.*; |
|||
import javax.validation.*; |
|||
|
|||
import com.win.module.wms.controller.packageovermain.vo.*; |
|||
import com.win.module.wms.dal.dataobject.packageovermain.PackageoverDetailDO; |
|||
import com.win.framework.common.pojo.PageResult; |
|||
|
|||
/** |
|||
* 翻包记录子 Service 接口 |
|||
* |
|||
* @author 超级管理员 |
|||
*/ |
|||
public interface PackageoverDetailService { |
|||
|
|||
/** |
|||
* 创建翻包记录子 |
|||
* |
|||
* @param createReqVO 创建信息 |
|||
* @return 编号 |
|||
*/ |
|||
Long createPackageoverDetail(@Valid PackageoverDetailCreateReqVO createReqVO); |
|||
|
|||
/** |
|||
* 更新翻包记录子 |
|||
* |
|||
* @param updateReqVO 更新信息 |
|||
*/ |
|||
Integer updatePackageoverDetail(@Valid PackageoverDetailUpdateReqVO updateReqVO); |
|||
|
|||
/** |
|||
* 删除翻包记录子 |
|||
* |
|||
* @param id 编号 |
|||
*/ |
|||
Integer deletePackageoverDetail(Long id); |
|||
|
|||
/** |
|||
* 获得翻包记录子 |
|||
* |
|||
* @param id 编号 |
|||
* @return 翻包记录子 |
|||
*/ |
|||
PackageoverDetailDO getPackageoverDetail(Long id); |
|||
|
|||
/** |
|||
* 获得翻包记录子列表 |
|||
* |
|||
* @param ids 编号 |
|||
* @return 翻包记录子列表 |
|||
*/ |
|||
List<PackageoverDetailDO> getPackageoverDetailList(Collection<Long> ids); |
|||
|
|||
/** |
|||
* 获得翻包记录子分页 |
|||
* |
|||
* @param pageReqVO 分页查询 |
|||
* @return 翻包记录子分页 |
|||
*/ |
|||
PageResult<PackageoverDetailDO> getPackageoverDetailPage(PackageoverDetailPageReqVO pageReqVO); |
|||
|
|||
/** |
|||
* 获得翻包记录子列表, 用于 Excel 导出 |
|||
* |
|||
* @param exportReqVO 查询条件 |
|||
* @return 翻包记录子列表 |
|||
*/ |
|||
List<PackageoverDetailDO> getPackageoverDetailList(PackageoverDetailExportReqVO exportReqVO); |
|||
|
|||
} |
@ -0,0 +1,83 @@ |
|||
package com.win.module.wms.service.packageovermain; |
|||
|
|||
import com.win.module.wms.controller.packageovermain.vo.*; |
|||
import org.springframework.stereotype.Service; |
|||
import javax.annotation.Resource; |
|||
import org.springframework.validation.annotation.Validated; |
|||
|
|||
import java.util.*; |
|||
|
|||
import com.win.module.wms.dal.dataobject.packageovermain.PackageoverDetailDO; |
|||
import com.win.framework.common.pojo.PageResult; |
|||
|
|||
import com.win.module.wms.convert.packageovermain.PackageoverDetailConvert; |
|||
import com.win.module.wms.dal.mysql.packageovermain.PackageoverDetailMapper; |
|||
|
|||
import static com.win.framework.common.exception.util.ServiceExceptionUtil.exception; |
|||
import static com.win.module.wms.enums.ErrorCodeConstants.PACKAGEOVER_DETAIL_NOT_EXISTS; |
|||
|
|||
/** |
|||
* 翻包记录子 Service 实现类 |
|||
* |
|||
* @author 超级管理员 |
|||
*/ |
|||
@Service |
|||
@Validated |
|||
public class PackageoverDetailServiceImpl implements PackageoverDetailService { |
|||
|
|||
@Resource |
|||
private PackageoverDetailMapper packageoverDetailMapper; |
|||
|
|||
@Override |
|||
public Long createPackageoverDetail(PackageoverDetailCreateReqVO createReqVO) { |
|||
// 插入
|
|||
PackageoverDetailDO packageoverDetail = PackageoverDetailConvert.INSTANCE.convert(createReqVO); |
|||
packageoverDetailMapper.insert(packageoverDetail); |
|||
// 返回
|
|||
return packageoverDetail.getId(); |
|||
} |
|||
|
|||
@Override |
|||
public Integer updatePackageoverDetail(PackageoverDetailUpdateReqVO updateReqVO) { |
|||
// 校验存在
|
|||
validatePackageoverDetailExists(updateReqVO.getId()); |
|||
// 更新
|
|||
PackageoverDetailDO updateObj = PackageoverDetailConvert.INSTANCE.convert(updateReqVO); |
|||
return packageoverDetailMapper.updateById(updateObj); |
|||
} |
|||
|
|||
@Override |
|||
public Integer deletePackageoverDetail(Long id) { |
|||
// 校验存在
|
|||
validatePackageoverDetailExists(id); |
|||
// 删除
|
|||
return packageoverDetailMapper.deleteById(id); |
|||
} |
|||
|
|||
private void validatePackageoverDetailExists(Long id) { |
|||
if (packageoverDetailMapper.selectById(id) == null) { |
|||
throw exception(PACKAGEOVER_DETAIL_NOT_EXISTS); |
|||
} |
|||
} |
|||
|
|||
@Override |
|||
public PackageoverDetailDO getPackageoverDetail(Long id) { |
|||
return packageoverDetailMapper.selectById(id); |
|||
} |
|||
|
|||
@Override |
|||
public List<PackageoverDetailDO> getPackageoverDetailList(Collection<Long> ids) { |
|||
return packageoverDetailMapper.selectBatchIds(ids); |
|||
} |
|||
|
|||
@Override |
|||
public PageResult<PackageoverDetailDO> getPackageoverDetailPage(PackageoverDetailPageReqVO pageReqVO) { |
|||
return packageoverDetailMapper.selectPage(pageReqVO); |
|||
} |
|||
|
|||
@Override |
|||
public List<PackageoverDetailDO> getPackageoverDetailList(PackageoverDetailExportReqVO exportReqVO) { |
|||
return packageoverDetailMapper.selectList(exportReqVO); |
|||
} |
|||
|
|||
} |
@ -0,0 +1,73 @@ |
|||
package com.win.module.wms.service.packageovermain; |
|||
|
|||
import java.util.*; |
|||
import javax.validation.*; |
|||
|
|||
import com.win.framework.common.pojo.CustomConditions; |
|||
import com.win.module.wms.controller.packageovermain.vo.*; |
|||
import com.win.module.wms.dal.dataobject.packageovermain.PackageoverMainDO; |
|||
import com.win.framework.common.pojo.PageResult; |
|||
|
|||
/** |
|||
* 翻包记录主 Service 接口 |
|||
* |
|||
* @author 超级管理员 |
|||
*/ |
|||
public interface PackageoverMainService { |
|||
|
|||
/** |
|||
* 创建翻包记录主 |
|||
* |
|||
* @param createReqVO 创建信息 |
|||
* @return 编号 |
|||
*/ |
|||
Long createPackageoverMain(@Valid PackageoverMainCreateReqVO createReqVO); |
|||
|
|||
/** |
|||
* 更新翻包记录主 |
|||
* |
|||
* @param updateReqVO 更新信息 |
|||
*/ |
|||
Integer updatePackageoverMain(@Valid PackageoverMainUpdateReqVO updateReqVO); |
|||
|
|||
/** |
|||
* 删除翻包记录主 |
|||
* |
|||
* @param id 编号 |
|||
*/ |
|||
Integer deletePackageoverMain(Long id); |
|||
|
|||
/** |
|||
* 获得翻包记录主 |
|||
* |
|||
* @param id 编号 |
|||
* @return 翻包记录主 |
|||
*/ |
|||
PackageoverMainDO getPackageoverMain(Long id); |
|||
|
|||
/** |
|||
* 获得翻包记录主列表 |
|||
* |
|||
* @param ids 编号 |
|||
* @return 翻包记录主列表 |
|||
*/ |
|||
List<PackageoverMainDO> getPackageoverMainList(Collection<Long> ids); |
|||
|
|||
/** |
|||
* 获得翻包记录主分页 |
|||
* |
|||
* @param pageReqVO 分页查询 |
|||
* @return 翻包记录主分页 |
|||
*/ |
|||
PageResult<PackageoverMainDO> getPackageoverMainPage(PackageoverMainPageReqVO pageReqVO); |
|||
|
|||
/** |
|||
* 获得翻包记录主列表, 用于 Excel 导出 |
|||
* |
|||
* @param exportReqVO 查询条件 |
|||
* @return 翻包记录主列表 |
|||
*/ |
|||
List<PackageoverMainDO> getPackageoverMainList(PackageoverMainExportReqVO exportReqVO); |
|||
|
|||
PageResult<PackageoverMainDO> getPackageoverMainSenior(CustomConditions conditions); |
|||
} |
@ -0,0 +1,88 @@ |
|||
package com.win.module.wms.service.packageovermain; |
|||
|
|||
import com.win.framework.common.pojo.CustomConditions; |
|||
import org.springframework.stereotype.Service; |
|||
import javax.annotation.Resource; |
|||
import org.springframework.validation.annotation.Validated; |
|||
|
|||
import java.util.*; |
|||
import com.win.module.wms.controller.packageovermain.vo.*; |
|||
import com.win.module.wms.dal.dataobject.packageovermain.PackageoverMainDO; |
|||
import com.win.framework.common.pojo.PageResult; |
|||
|
|||
import com.win.module.wms.convert.packageovermain.PackageoverMainConvert; |
|||
import com.win.module.wms.dal.mysql.packageovermain.PackageoverMainMapper; |
|||
|
|||
import static com.win.framework.common.exception.util.ServiceExceptionUtil.exception; |
|||
import static com.win.module.wms.enums.ErrorCodeConstants.*; |
|||
|
|||
/** |
|||
* 翻包记录主 Service 实现类 |
|||
* |
|||
* @author 超级管理员 |
|||
*/ |
|||
@Service |
|||
@Validated |
|||
public class PackageoverMainServiceImpl implements PackageoverMainService { |
|||
|
|||
@Resource |
|||
private PackageoverMainMapper packageoverMainMapper; |
|||
|
|||
@Override |
|||
public Long createPackageoverMain(PackageoverMainCreateReqVO createReqVO) { |
|||
// 插入
|
|||
PackageoverMainDO packageoverMain = PackageoverMainConvert.INSTANCE.convert(createReqVO); |
|||
packageoverMainMapper.insert(packageoverMain); |
|||
// 返回
|
|||
return packageoverMain.getId(); |
|||
} |
|||
|
|||
@Override |
|||
public Integer updatePackageoverMain(PackageoverMainUpdateReqVO updateReqVO) { |
|||
// 校验存在
|
|||
validatePackageoverMainExists(updateReqVO.getId()); |
|||
// 更新
|
|||
PackageoverMainDO updateObj = PackageoverMainConvert.INSTANCE.convert(updateReqVO); |
|||
return packageoverMainMapper.updateById(updateObj); |
|||
} |
|||
|
|||
@Override |
|||
public Integer deletePackageoverMain(Long id) { |
|||
// 校验存在
|
|||
validatePackageoverMainExists(id); |
|||
// 删除
|
|||
return packageoverMainMapper.deleteById(id); |
|||
} |
|||
|
|||
private void validatePackageoverMainExists(Long id) { |
|||
if (packageoverMainMapper.selectById(id) == null) { |
|||
throw exception(PACKAGEOVER_MAIN_NOT_EXISTS); |
|||
} |
|||
} |
|||
|
|||
@Override |
|||
public PackageoverMainDO getPackageoverMain(Long id) { |
|||
return packageoverMainMapper.selectById(id); |
|||
} |
|||
|
|||
@Override |
|||
public List<PackageoverMainDO> getPackageoverMainList(Collection<Long> ids) { |
|||
return packageoverMainMapper.selectBatchIds(ids); |
|||
} |
|||
|
|||
@Override |
|||
public PageResult<PackageoverMainDO> getPackageoverMainPage(PackageoverMainPageReqVO pageReqVO) { |
|||
return packageoverMainMapper.selectPage(pageReqVO); |
|||
} |
|||
|
|||
@Override |
|||
public List<PackageoverMainDO> getPackageoverMainList(PackageoverMainExportReqVO exportReqVO) { |
|||
return packageoverMainMapper.selectList(exportReqVO); |
|||
} |
|||
|
|||
@Override |
|||
public PageResult<PackageoverMainDO> getPackageoverMainSenior(CustomConditions conditions) { |
|||
return packageoverMainMapper.selectSenior(conditions); |
|||
} |
|||
|
|||
} |
Some files were not shown because too many files changed in this diff
Loading…
Reference in new issue