地点档案占提交
This commit is contained in:
@@ -10,11 +10,58 @@ import cn.iocoder.yudao.framework.common.exception.ErrorCode;
|
|||||||
* @author ZT
|
* @author ZT
|
||||||
*/
|
*/
|
||||||
public interface ErrorCodeConstants {
|
public interface ErrorCodeConstants {
|
||||||
|
/**
|
||||||
|
* 业务异常的错误码区间,解决:解决各模块错误码定义,避免重复,在此只声明不做实际使用
|
||||||
|
*
|
||||||
|
* 一共 10 位,分成四段
|
||||||
|
*
|
||||||
|
* 第一段,1 位,类型
|
||||||
|
* 1 - 业务级别异常
|
||||||
|
* x - 预留
|
||||||
|
* 第二段,3 位,系统类型
|
||||||
|
* 001 - 用户系统
|
||||||
|
* 002 - 商品系统
|
||||||
|
* 003 - 订单系统
|
||||||
|
* 004 - 支付系统
|
||||||
|
* 005 - 优惠劵系统
|
||||||
|
* ... - ...
|
||||||
|
* 第三段,3 位,模块
|
||||||
|
* 不限制规则。
|
||||||
|
* 一般建议,每个系统里面,可能有多个模块,可以再去做分段。以用户系统为例子:
|
||||||
|
* 001 - OAuth2 模块
|
||||||
|
* 002 - User 模块
|
||||||
|
* 003 - MobileCode 模块
|
||||||
|
* 第四段,3 位,错误码
|
||||||
|
* 不限制规则。
|
||||||
|
* 一般建议,每个模块自增。
|
||||||
|
*
|
||||||
|
* @author Rayson
|
||||||
|
*/
|
||||||
// ========== 示例模块 1-001-000-000 ==========
|
// ========== 示例模块 1-001-000-000 ==========
|
||||||
ErrorCode EXAMPLE_NOT_EXISTS = new ErrorCode(1_001_000_001, "示例不存在");
|
ErrorCode EXAMPLE_NOT_EXISTS = new ErrorCode(1_001_000_001, "示例不存在");
|
||||||
ErrorCode CUSTOMER_NOT_EXISTS = new ErrorCode(1_001_000_101, "客商协同账号不存在");
|
|
||||||
|
|
||||||
ErrorCode CARRIER_ACCOUNT_NOT_EXISTS = new ErrorCode(1_001_000_102, "物流服务商协同账号不存在");
|
// 模块 infra 错误码区间 [1-001-000-000 ~ 1-002-000-000)
|
||||||
ErrorCode DRIVING_ACCOUNT_NOT_EXISTS = new ErrorCode(1_001_000_103, "司机协同账号不存在");
|
// 模块 system 错误码区间 [1-002-000-000 ~ 1-003-000-000)
|
||||||
|
// 模块 report 错误码区间 [1-003-000-000 ~ 1-004-000-000)
|
||||||
|
// 模块 member 错误码区间 [1-004-000-000 ~ 1-005-000-000)
|
||||||
|
// 模块 mp 错误码区间 [1-006-000-000 ~ 1-007-000-000)
|
||||||
|
// 模块 pay 错误码区间 [1-007-000-000 ~ 1-008-000-000)
|
||||||
|
// 模块 bpm 错误码区间 [1-009-000-000 ~ 1-010-000-000)
|
||||||
|
// 模块 product 错误码区间 [1-008-000-000 ~ 1-009-000-000)
|
||||||
|
// 模块 trade 错误码区间 [1-011-000-000 ~ 1-012-000-000)
|
||||||
|
// 模块 promotion 错误码区间 [1-013-000-000 ~ 1-014-000-000)
|
||||||
|
// 模块 crm 错误码区间 [1-020-000-000 ~ 1-021-000-000)
|
||||||
|
|
||||||
|
// 模块 bseMngt.plceAchi [1_100_001_000 ~ 1_100_001_999]
|
||||||
|
ErrorCode WAREHOUSE_NOT_EXISTS = new ErrorCode(1_100_001_001, "仓库信息不存在");
|
||||||
|
ErrorCode FACTORY_NOT_EXISTS = new ErrorCode(1_100_001_002, "生产厂区信息不存在");
|
||||||
|
ErrorCode RAILWAY_STATION_NOT_EXISTS = new ErrorCode(1_100_001_003, "铁路站点维护不存在");
|
||||||
|
ErrorCode PORT_NOT_EXISTS = new ErrorCode(1_100_001_004, "港口信息不存在");
|
||||||
|
ErrorCode AUNCEL_CONFIG_NOT_EXISTS = new ErrorCode(1_100_001_005, "计量点配置不存在");
|
||||||
|
ErrorCode GATE_CONFIG_NOT_EXISTS = new ErrorCode(1_100_001_006, "门岗信息不存在");
|
||||||
|
ErrorCode CONSIGNEE_ADDRESS_NOT_EXISTS = new ErrorCode(1_100_001_007, "客户收货地址不存在");
|
||||||
|
ErrorCode PLACE_ARCHIVE_MATERIAL_NOT_EXISTS = new ErrorCode(1_100_001_008, "地点档案物料信息不存在");
|
||||||
|
|
||||||
|
ErrorCode CORR_FACT_NOT_EXISTS = new ErrorCode(1_100_001_009, "关联工厂信息不存在");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,51 @@
|
|||||||
|
package cn.iocoder.yudao.module.backendlogistics.enums;
|
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
|
||||||
|
@Schema(description = "是否,数据字典infra_boolean_string")
|
||||||
|
public enum YesOrNoEnum {
|
||||||
|
|
||||||
|
TRUE("true", "是"),
|
||||||
|
FALSE("false", "否");
|
||||||
|
|
||||||
|
private String code;
|
||||||
|
|
||||||
|
private String msg;
|
||||||
|
|
||||||
|
YesOrNoEnum() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
YesOrNoEnum(String code, String msg) {
|
||||||
|
this.code = code;
|
||||||
|
this.msg = msg;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCode() {
|
||||||
|
return code;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getMsg() {
|
||||||
|
return msg;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static String getMsgByCode(String code) {
|
||||||
|
YesOrNoEnum[] values = values();
|
||||||
|
for (YesOrNoEnum dto : values) {
|
||||||
|
if (dto.getCode().equals(code)) {
|
||||||
|
return dto.getMsg();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static String getCodeByMsg(String msg) {
|
||||||
|
YesOrNoEnum[] values = values();
|
||||||
|
for (YesOrNoEnum dto : values) {
|
||||||
|
if (dto.getMsg().equals(msg)) {
|
||||||
|
return dto.getCode();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,52 @@
|
|||||||
|
package cn.iocoder.yudao.module.backendlogistics.enums.bseMngt.plceAchi;
|
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
|
||||||
|
@Schema(description = "仓库性质,数据字典warehouse_nature")
|
||||||
|
public enum WrhNtrEnum {
|
||||||
|
|
||||||
|
SW("sw", "现货仓"),
|
||||||
|
FW("fw", "期货仓"),
|
||||||
|
TDW("tdw", "报税仓");
|
||||||
|
|
||||||
|
private String code;
|
||||||
|
|
||||||
|
private String msg;
|
||||||
|
|
||||||
|
WrhNtrEnum() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
WrhNtrEnum(String code, String msg) {
|
||||||
|
this.code = code;
|
||||||
|
this.msg = msg;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCode() {
|
||||||
|
return code;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getMsg() {
|
||||||
|
return msg;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static String getMsgByCode(String code) {
|
||||||
|
WrhNtrEnum[] values = values();
|
||||||
|
for (WrhNtrEnum dto : values) {
|
||||||
|
if (dto.getCode().equals(code)) {
|
||||||
|
return dto.getMsg();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static String getCodeByMsg(String msg) {
|
||||||
|
WrhNtrEnum[] values = values();
|
||||||
|
for (WrhNtrEnum dto : values) {
|
||||||
|
if (dto.getMsg().equals(msg)) {
|
||||||
|
return dto.getCode();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,51 @@
|
|||||||
|
package cn.iocoder.yudao.module.backendlogistics.enums.bseMngt.plceAchi;
|
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
|
||||||
|
@Schema(description = "仓库类型,数据字典warehouse_type")
|
||||||
|
public enum WrhTpEnum {
|
||||||
|
|
||||||
|
FAW("faw", "厂区库"),
|
||||||
|
TPL("tpl", "三方库");
|
||||||
|
|
||||||
|
private String code;
|
||||||
|
|
||||||
|
private String msg;
|
||||||
|
|
||||||
|
WrhTpEnum() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
WrhTpEnum(String code, String msg) {
|
||||||
|
this.code = code;
|
||||||
|
this.msg = msg;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getCode() {
|
||||||
|
return code;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getMsg() {
|
||||||
|
return msg;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static String getMsgByCode(String code) {
|
||||||
|
WrhTpEnum[] values = values();
|
||||||
|
for (WrhTpEnum dto : values) {
|
||||||
|
if (dto.getCode().equals(code)) {
|
||||||
|
return dto.getMsg();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static String getCodeByMsg(String msg) {
|
||||||
|
WrhTpEnum[] values = values();
|
||||||
|
for (WrhTpEnum dto : values) {
|
||||||
|
if (dto.getMsg().equals(msg)) {
|
||||||
|
return dto.getCode();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,105 @@
|
|||||||
|
package cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.plceAchi;
|
||||||
|
|
||||||
|
import cn.iocoder.yudao.framework.apilog.core.annotation.ApiAccessLog;
|
||||||
|
import cn.iocoder.yudao.framework.business.interceptor.BusinessControllerMarker;
|
||||||
|
import cn.iocoder.yudao.framework.common.pojo.CommonResult;
|
||||||
|
import cn.iocoder.yudao.framework.common.pojo.PageParam;
|
||||||
|
import cn.iocoder.yudao.framework.common.pojo.PageResult;
|
||||||
|
import cn.iocoder.yudao.framework.common.pojo.vo.BatchDeleteReqVO;
|
||||||
|
import cn.iocoder.yudao.framework.common.util.object.BeanUtils;
|
||||||
|
import cn.iocoder.yudao.framework.excel.core.util.ExcelUtils;
|
||||||
|
import cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.plceAchi.vo.AuncelConfigPageReqVO;
|
||||||
|
import cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.plceAchi.vo.AuncelConfigRespVO;
|
||||||
|
import cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.plceAchi.vo.AuncelConfigSaveReqVO;
|
||||||
|
import cn.iocoder.yudao.module.backendlogistics.dal.dataobject.bseMngt.plceAchi.AuncelConfigDO;
|
||||||
|
import cn.iocoder.yudao.module.backendlogistics.service.bseMngt.plceAchi.AuncelConfigService;
|
||||||
|
import io.swagger.v3.oas.annotations.Operation;
|
||||||
|
import io.swagger.v3.oas.annotations.Parameter;
|
||||||
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||||
|
import jakarta.annotation.Resource;
|
||||||
|
import jakarta.servlet.http.HttpServletResponse;
|
||||||
|
import jakarta.validation.Valid;
|
||||||
|
import org.springframework.security.access.prepost.PreAuthorize;
|
||||||
|
import org.springframework.validation.annotation.Validated;
|
||||||
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
|
||||||
|
import java.io.IOException;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import static cn.iocoder.yudao.framework.apilog.core.enums.OperateTypeEnum.EXPORT;
|
||||||
|
import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success;
|
||||||
|
|
||||||
|
@Tag(name = "管理后台 - 计量点配置")
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/lgst/auncel-config")
|
||||||
|
@Validated
|
||||||
|
public class AuncelConfigController implements BusinessControllerMarker {
|
||||||
|
|
||||||
|
|
||||||
|
@Resource
|
||||||
|
private AuncelConfigService auncelConfigService;
|
||||||
|
|
||||||
|
@PostMapping("/create")
|
||||||
|
@Operation(summary = "创建计量点配置")
|
||||||
|
@PreAuthorize("@ss.hasPermission('lgst:auncel-config:create')")
|
||||||
|
public CommonResult<AuncelConfigRespVO> createAuncelConfig(@Valid @RequestBody AuncelConfigSaveReqVO createReqVO) {
|
||||||
|
return success(auncelConfigService.createAuncelConfig(createReqVO));
|
||||||
|
}
|
||||||
|
|
||||||
|
@PutMapping("/update")
|
||||||
|
@Operation(summary = "更新计量点配置")
|
||||||
|
@PreAuthorize("@ss.hasPermission('lgst:auncel-config:update')")
|
||||||
|
public CommonResult<Boolean> updateAuncelConfig(@Valid @RequestBody AuncelConfigSaveReqVO updateReqVO) {
|
||||||
|
auncelConfigService.updateAuncelConfig(updateReqVO);
|
||||||
|
return success(true);
|
||||||
|
}
|
||||||
|
|
||||||
|
@DeleteMapping("/delete")
|
||||||
|
@Operation(summary = "删除计量点配置")
|
||||||
|
@Parameter(name = "id", description = "编号", required = true)
|
||||||
|
@PreAuthorize("@ss.hasPermission('lgst:auncel-config:delete')")
|
||||||
|
public CommonResult<Boolean> deleteAuncelConfig(@RequestParam("id") Long id) {
|
||||||
|
auncelConfigService.deleteAuncelConfig(id);
|
||||||
|
return success(true);
|
||||||
|
}
|
||||||
|
|
||||||
|
@DeleteMapping("/delete-list")
|
||||||
|
@Parameter(name = "ids", description = "编号", required = true)
|
||||||
|
@Operation(summary = "批量删除计量点配置")
|
||||||
|
@PreAuthorize("@ss.hasPermission('lgst:auncel-config:delete')")
|
||||||
|
public CommonResult<Boolean> deleteAuncelConfigList(@RequestBody BatchDeleteReqVO req) {
|
||||||
|
auncelConfigService.deleteAuncelConfigListByIds(req.getIds());
|
||||||
|
return success(true);
|
||||||
|
}
|
||||||
|
|
||||||
|
@GetMapping("/get")
|
||||||
|
@Operation(summary = "获得计量点配置")
|
||||||
|
@Parameter(name = "id", description = "编号", required = true, example = "1024")
|
||||||
|
@PreAuthorize("@ss.hasPermission('lgst:auncel-config:query')")
|
||||||
|
public CommonResult<AuncelConfigRespVO> getAuncelConfig(@RequestParam("id") Long id) {
|
||||||
|
AuncelConfigDO auncelConfig = auncelConfigService.getAuncelConfig(id);
|
||||||
|
return success(BeanUtils.toBean(auncelConfig, AuncelConfigRespVO.class));
|
||||||
|
}
|
||||||
|
|
||||||
|
@GetMapping("/page")
|
||||||
|
@Operation(summary = "获得计量点配置分页")
|
||||||
|
@PreAuthorize("@ss.hasPermission('lgst:auncel-config:query')")
|
||||||
|
public CommonResult<PageResult<AuncelConfigRespVO>> getAuncelConfigPage(@Valid AuncelConfigPageReqVO pageReqVO) {
|
||||||
|
PageResult<AuncelConfigDO> pageResult = auncelConfigService.getAuncelConfigPage(pageReqVO);
|
||||||
|
return success(BeanUtils.toBean(pageResult, AuncelConfigRespVO.class));
|
||||||
|
}
|
||||||
|
|
||||||
|
@GetMapping("/export-excel")
|
||||||
|
@Operation(summary = "导出计量点配置 Excel")
|
||||||
|
@PreAuthorize("@ss.hasPermission('lgst:auncel-config:export')")
|
||||||
|
@ApiAccessLog(operateType = EXPORT)
|
||||||
|
public void exportAuncelConfigExcel(@Valid AuncelConfigPageReqVO pageReqVO,
|
||||||
|
HttpServletResponse response) throws IOException {
|
||||||
|
pageReqVO.setPageSize(PageParam.PAGE_SIZE_NONE);
|
||||||
|
List<AuncelConfigDO> list = auncelConfigService.getAuncelConfigPage(pageReqVO).getList();
|
||||||
|
// 导出 Excel
|
||||||
|
ExcelUtils.write(response, "计量点配置.xls", "数据", AuncelConfigRespVO.class,
|
||||||
|
BeanUtils.toBean(list, AuncelConfigRespVO.class));
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,105 @@
|
|||||||
|
package cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.plceAchi;
|
||||||
|
|
||||||
|
import cn.iocoder.yudao.framework.apilog.core.annotation.ApiAccessLog;
|
||||||
|
import cn.iocoder.yudao.framework.business.interceptor.BusinessControllerMarker;
|
||||||
|
import cn.iocoder.yudao.framework.common.pojo.CommonResult;
|
||||||
|
import cn.iocoder.yudao.framework.common.pojo.PageParam;
|
||||||
|
import cn.iocoder.yudao.framework.common.pojo.PageResult;
|
||||||
|
import cn.iocoder.yudao.framework.common.pojo.vo.BatchDeleteReqVO;
|
||||||
|
import cn.iocoder.yudao.framework.common.util.object.BeanUtils;
|
||||||
|
import cn.iocoder.yudao.framework.excel.core.util.ExcelUtils;
|
||||||
|
import cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.plceAchi.vo.ConsigneeAddressPageReqVO;
|
||||||
|
import cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.plceAchi.vo.ConsigneeAddressRespVO;
|
||||||
|
import cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.plceAchi.vo.ConsigneeAddressSaveReqVO;
|
||||||
|
import cn.iocoder.yudao.module.backendlogistics.dal.dataobject.bseMngt.plceAchi.ConsigneeAddressDO;
|
||||||
|
import cn.iocoder.yudao.module.backendlogistics.service.bseMngt.plceAchi.ConsigneeAddressService;
|
||||||
|
import io.swagger.v3.oas.annotations.Operation;
|
||||||
|
import io.swagger.v3.oas.annotations.Parameter;
|
||||||
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||||
|
import jakarta.annotation.Resource;
|
||||||
|
import jakarta.servlet.http.HttpServletResponse;
|
||||||
|
import jakarta.validation.Valid;
|
||||||
|
import org.springframework.security.access.prepost.PreAuthorize;
|
||||||
|
import org.springframework.validation.annotation.Validated;
|
||||||
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
|
||||||
|
import java.io.IOException;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import static cn.iocoder.yudao.framework.apilog.core.enums.OperateTypeEnum.EXPORT;
|
||||||
|
import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success;
|
||||||
|
|
||||||
|
@Tag(name = "管理后台 - 客户收货地址")
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/lgst/consignee-address")
|
||||||
|
@Validated
|
||||||
|
public class ConsigneeAddressController implements BusinessControllerMarker {
|
||||||
|
|
||||||
|
|
||||||
|
@Resource
|
||||||
|
private ConsigneeAddressService consigneeAddressService;
|
||||||
|
|
||||||
|
@PostMapping("/create")
|
||||||
|
@Operation(summary = "创建客户收货地址")
|
||||||
|
@PreAuthorize("@ss.hasPermission('lgst:consignee-address:create')")
|
||||||
|
public CommonResult<ConsigneeAddressRespVO> createConsigneeAddress(@Valid @RequestBody ConsigneeAddressSaveReqVO createReqVO) {
|
||||||
|
return success(consigneeAddressService.createConsigneeAddress(createReqVO));
|
||||||
|
}
|
||||||
|
|
||||||
|
@PutMapping("/update")
|
||||||
|
@Operation(summary = "更新客户收货地址")
|
||||||
|
@PreAuthorize("@ss.hasPermission('lgst:consignee-address:update')")
|
||||||
|
public CommonResult<Boolean> updateConsigneeAddress(@Valid @RequestBody ConsigneeAddressSaveReqVO updateReqVO) {
|
||||||
|
consigneeAddressService.updateConsigneeAddress(updateReqVO);
|
||||||
|
return success(true);
|
||||||
|
}
|
||||||
|
|
||||||
|
@DeleteMapping("/delete")
|
||||||
|
@Operation(summary = "删除客户收货地址")
|
||||||
|
@Parameter(name = "id", description = "编号", required = true)
|
||||||
|
@PreAuthorize("@ss.hasPermission('lgst:consignee-address:delete')")
|
||||||
|
public CommonResult<Boolean> deleteConsigneeAddress(@RequestParam("id") Long id) {
|
||||||
|
consigneeAddressService.deleteConsigneeAddress(id);
|
||||||
|
return success(true);
|
||||||
|
}
|
||||||
|
|
||||||
|
@DeleteMapping("/delete-list")
|
||||||
|
@Parameter(name = "ids", description = "编号", required = true)
|
||||||
|
@Operation(summary = "批量删除客户收货地址")
|
||||||
|
@PreAuthorize("@ss.hasPermission('lgst:consignee-address:delete')")
|
||||||
|
public CommonResult<Boolean> deleteConsigneeAddressList(@RequestBody BatchDeleteReqVO req) {
|
||||||
|
consigneeAddressService.deleteConsigneeAddressListByIds(req.getIds());
|
||||||
|
return success(true);
|
||||||
|
}
|
||||||
|
|
||||||
|
@GetMapping("/get")
|
||||||
|
@Operation(summary = "获得客户收货地址")
|
||||||
|
@Parameter(name = "id", description = "编号", required = true, example = "1024")
|
||||||
|
@PreAuthorize("@ss.hasPermission('lgst:consignee-address:query')")
|
||||||
|
public CommonResult<ConsigneeAddressRespVO> getConsigneeAddress(@RequestParam("id") Long id) {
|
||||||
|
ConsigneeAddressDO consigneeAddress = consigneeAddressService.getConsigneeAddress(id);
|
||||||
|
return success(BeanUtils.toBean(consigneeAddress, ConsigneeAddressRespVO.class));
|
||||||
|
}
|
||||||
|
|
||||||
|
@GetMapping("/page")
|
||||||
|
@Operation(summary = "获得客户收货地址分页")
|
||||||
|
@PreAuthorize("@ss.hasPermission('lgst:consignee-address:query')")
|
||||||
|
public CommonResult<PageResult<ConsigneeAddressRespVO>> getConsigneeAddressPage(@Valid ConsigneeAddressPageReqVO pageReqVO) {
|
||||||
|
PageResult<ConsigneeAddressDO> pageResult = consigneeAddressService.getConsigneeAddressPage(pageReqVO);
|
||||||
|
return success(BeanUtils.toBean(pageResult, ConsigneeAddressRespVO.class));
|
||||||
|
}
|
||||||
|
|
||||||
|
@GetMapping("/export-excel")
|
||||||
|
@Operation(summary = "导出客户收货地址 Excel")
|
||||||
|
@PreAuthorize("@ss.hasPermission('lgst:consignee-address:export')")
|
||||||
|
@ApiAccessLog(operateType = EXPORT)
|
||||||
|
public void exportConsigneeAddressExcel(@Valid ConsigneeAddressPageReqVO pageReqVO,
|
||||||
|
HttpServletResponse response) throws IOException {
|
||||||
|
pageReqVO.setPageSize(PageParam.PAGE_SIZE_NONE);
|
||||||
|
List<ConsigneeAddressDO> list = consigneeAddressService.getConsigneeAddressPage(pageReqVO).getList();
|
||||||
|
// 导出 Excel
|
||||||
|
ExcelUtils.write(response, "客户收货地址.xls", "数据", ConsigneeAddressRespVO.class,
|
||||||
|
BeanUtils.toBean(list, ConsigneeAddressRespVO.class));
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,105 @@
|
|||||||
|
package cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.plceAchi;
|
||||||
|
|
||||||
|
import cn.iocoder.yudao.framework.apilog.core.annotation.ApiAccessLog;
|
||||||
|
import cn.iocoder.yudao.framework.business.interceptor.BusinessControllerMarker;
|
||||||
|
import cn.iocoder.yudao.framework.common.pojo.CommonResult;
|
||||||
|
import cn.iocoder.yudao.framework.common.pojo.PageParam;
|
||||||
|
import cn.iocoder.yudao.framework.common.pojo.PageResult;
|
||||||
|
import cn.iocoder.yudao.framework.common.pojo.vo.BatchDeleteReqVO;
|
||||||
|
import cn.iocoder.yudao.framework.common.util.object.BeanUtils;
|
||||||
|
import cn.iocoder.yudao.framework.excel.core.util.ExcelUtils;
|
||||||
|
import cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.plceAchi.vo.FactoryPageReqVO;
|
||||||
|
import cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.plceAchi.vo.FactoryRespVO;
|
||||||
|
import cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.plceAchi.vo.FactorySaveReqVO;
|
||||||
|
import cn.iocoder.yudao.module.backendlogistics.dal.dataobject.bseMngt.plceAchi.FactoryDO;
|
||||||
|
import cn.iocoder.yudao.module.backendlogistics.service.bseMngt.plceAchi.FactoryService;
|
||||||
|
import io.swagger.v3.oas.annotations.Operation;
|
||||||
|
import io.swagger.v3.oas.annotations.Parameter;
|
||||||
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||||
|
import jakarta.annotation.Resource;
|
||||||
|
import jakarta.servlet.http.HttpServletResponse;
|
||||||
|
import jakarta.validation.Valid;
|
||||||
|
import org.springframework.security.access.prepost.PreAuthorize;
|
||||||
|
import org.springframework.validation.annotation.Validated;
|
||||||
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
|
||||||
|
import java.io.IOException;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import static cn.iocoder.yudao.framework.apilog.core.enums.OperateTypeEnum.EXPORT;
|
||||||
|
import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success;
|
||||||
|
|
||||||
|
@Tag(name = "管理后台 - 生产厂区信息")
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/lgst/factory")
|
||||||
|
@Validated
|
||||||
|
public class FactoryController implements BusinessControllerMarker {
|
||||||
|
|
||||||
|
|
||||||
|
@Resource
|
||||||
|
private FactoryService factoryService;
|
||||||
|
|
||||||
|
@PostMapping("/create")
|
||||||
|
@Operation(summary = "创建生产厂区信息")
|
||||||
|
@PreAuthorize("@ss.hasPermission('lgst:factory:create')")
|
||||||
|
public CommonResult<FactoryRespVO> createFactory(@Valid @RequestBody FactorySaveReqVO createReqVO) {
|
||||||
|
return success(factoryService.createFactory(createReqVO));
|
||||||
|
}
|
||||||
|
|
||||||
|
@PutMapping("/update")
|
||||||
|
@Operation(summary = "更新生产厂区信息")
|
||||||
|
@PreAuthorize("@ss.hasPermission('lgst:factory:update')")
|
||||||
|
public CommonResult<Boolean> updateFactory(@Valid @RequestBody FactorySaveReqVO updateReqVO) {
|
||||||
|
factoryService.updateFactory(updateReqVO);
|
||||||
|
return success(true);
|
||||||
|
}
|
||||||
|
|
||||||
|
@DeleteMapping("/delete")
|
||||||
|
@Operation(summary = "删除生产厂区信息")
|
||||||
|
@Parameter(name = "id", description = "编号", required = true)
|
||||||
|
@PreAuthorize("@ss.hasPermission('lgst:factory:delete')")
|
||||||
|
public CommonResult<Boolean> deleteFactory(@RequestParam("id") Long id) {
|
||||||
|
factoryService.deleteFactory(id);
|
||||||
|
return success(true);
|
||||||
|
}
|
||||||
|
|
||||||
|
@DeleteMapping("/delete-list")
|
||||||
|
@Parameter(name = "ids", description = "编号", required = true)
|
||||||
|
@Operation(summary = "批量删除生产厂区信息")
|
||||||
|
@PreAuthorize("@ss.hasPermission('lgst:factory:delete')")
|
||||||
|
public CommonResult<Boolean> deleteFactoryList(@RequestBody BatchDeleteReqVO req) {
|
||||||
|
factoryService.deleteFactoryListByIds(req.getIds());
|
||||||
|
return success(true);
|
||||||
|
}
|
||||||
|
|
||||||
|
@GetMapping("/get")
|
||||||
|
@Operation(summary = "获得生产厂区信息")
|
||||||
|
@Parameter(name = "id", description = "编号", required = true, example = "1024")
|
||||||
|
@PreAuthorize("@ss.hasPermission('lgst:factory:query')")
|
||||||
|
public CommonResult<FactoryRespVO> getFactory(@RequestParam("id") Long id) {
|
||||||
|
FactoryDO factory = factoryService.getFactory(id);
|
||||||
|
return success(BeanUtils.toBean(factory, FactoryRespVO.class));
|
||||||
|
}
|
||||||
|
|
||||||
|
@GetMapping("/page")
|
||||||
|
@Operation(summary = "获得生产厂区信息分页")
|
||||||
|
@PreAuthorize("@ss.hasPermission('lgst:factory:query')")
|
||||||
|
public CommonResult<PageResult<FactoryRespVO>> getFactoryPage(@Valid FactoryPageReqVO pageReqVO) {
|
||||||
|
PageResult<FactoryDO> pageResult = factoryService.getFactoryPage(pageReqVO);
|
||||||
|
return success(BeanUtils.toBean(pageResult, FactoryRespVO.class));
|
||||||
|
}
|
||||||
|
|
||||||
|
@GetMapping("/export-excel")
|
||||||
|
@Operation(summary = "导出生产厂区信息 Excel")
|
||||||
|
@PreAuthorize("@ss.hasPermission('lgst:factory:export')")
|
||||||
|
@ApiAccessLog(operateType = EXPORT)
|
||||||
|
public void exportFactoryExcel(@Valid FactoryPageReqVO pageReqVO,
|
||||||
|
HttpServletResponse response) throws IOException {
|
||||||
|
pageReqVO.setPageSize(PageParam.PAGE_SIZE_NONE);
|
||||||
|
List<FactoryDO> list = factoryService.getFactoryPage(pageReqVO).getList();
|
||||||
|
// 导出 Excel
|
||||||
|
ExcelUtils.write(response, "生产厂区信息.xls", "数据", FactoryRespVO.class,
|
||||||
|
BeanUtils.toBean(list, FactoryRespVO.class));
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,105 @@
|
|||||||
|
package cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.plceAchi;
|
||||||
|
|
||||||
|
import cn.iocoder.yudao.framework.apilog.core.annotation.ApiAccessLog;
|
||||||
|
import cn.iocoder.yudao.framework.business.interceptor.BusinessControllerMarker;
|
||||||
|
import cn.iocoder.yudao.framework.common.pojo.CommonResult;
|
||||||
|
import cn.iocoder.yudao.framework.common.pojo.PageParam;
|
||||||
|
import cn.iocoder.yudao.framework.common.pojo.PageResult;
|
||||||
|
import cn.iocoder.yudao.framework.common.pojo.vo.BatchDeleteReqVO;
|
||||||
|
import cn.iocoder.yudao.framework.common.util.object.BeanUtils;
|
||||||
|
import cn.iocoder.yudao.framework.excel.core.util.ExcelUtils;
|
||||||
|
import cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.plceAchi.vo.GateConfigPageReqVO;
|
||||||
|
import cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.plceAchi.vo.GateConfigRespVO;
|
||||||
|
import cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.plceAchi.vo.GateConfigSaveReqVO;
|
||||||
|
import cn.iocoder.yudao.module.backendlogistics.dal.dataobject.bseMngt.plceAchi.GateConfigDO;
|
||||||
|
import cn.iocoder.yudao.module.backendlogistics.service.bseMngt.plceAchi.GateConfigService;
|
||||||
|
import io.swagger.v3.oas.annotations.Operation;
|
||||||
|
import io.swagger.v3.oas.annotations.Parameter;
|
||||||
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||||
|
import jakarta.annotation.Resource;
|
||||||
|
import jakarta.servlet.http.HttpServletResponse;
|
||||||
|
import jakarta.validation.Valid;
|
||||||
|
import org.springframework.security.access.prepost.PreAuthorize;
|
||||||
|
import org.springframework.validation.annotation.Validated;
|
||||||
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
|
||||||
|
import java.io.IOException;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import static cn.iocoder.yudao.framework.apilog.core.enums.OperateTypeEnum.EXPORT;
|
||||||
|
import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success;
|
||||||
|
|
||||||
|
@Tag(name = "管理后台 - 门岗信息")
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/lgst/gate-config")
|
||||||
|
@Validated
|
||||||
|
public class GateConfigController implements BusinessControllerMarker {
|
||||||
|
|
||||||
|
|
||||||
|
@Resource
|
||||||
|
private GateConfigService gateConfigService;
|
||||||
|
|
||||||
|
@PostMapping("/create")
|
||||||
|
@Operation(summary = "创建门岗信息")
|
||||||
|
@PreAuthorize("@ss.hasPermission('lgst:gate-config:create')")
|
||||||
|
public CommonResult<GateConfigRespVO> createGateConfig(@Valid @RequestBody GateConfigSaveReqVO createReqVO) {
|
||||||
|
return success(gateConfigService.createGateConfig(createReqVO));
|
||||||
|
}
|
||||||
|
|
||||||
|
@PutMapping("/update")
|
||||||
|
@Operation(summary = "更新门岗信息")
|
||||||
|
@PreAuthorize("@ss.hasPermission('lgst:gate-config:update')")
|
||||||
|
public CommonResult<Boolean> updateGateConfig(@Valid @RequestBody GateConfigSaveReqVO updateReqVO) {
|
||||||
|
gateConfigService.updateGateConfig(updateReqVO);
|
||||||
|
return success(true);
|
||||||
|
}
|
||||||
|
|
||||||
|
@DeleteMapping("/delete")
|
||||||
|
@Operation(summary = "删除门岗信息")
|
||||||
|
@Parameter(name = "id", description = "编号", required = true)
|
||||||
|
@PreAuthorize("@ss.hasPermission('lgst:gate-config:delete')")
|
||||||
|
public CommonResult<Boolean> deleteGateConfig(@RequestParam("id") Long id) {
|
||||||
|
gateConfigService.deleteGateConfig(id);
|
||||||
|
return success(true);
|
||||||
|
}
|
||||||
|
|
||||||
|
@DeleteMapping("/delete-list")
|
||||||
|
@Parameter(name = "ids", description = "编号", required = true)
|
||||||
|
@Operation(summary = "批量删除门岗信息")
|
||||||
|
@PreAuthorize("@ss.hasPermission('lgst:gate-config:delete')")
|
||||||
|
public CommonResult<Boolean> deleteGateConfigList(@RequestBody BatchDeleteReqVO req) {
|
||||||
|
gateConfigService.deleteGateConfigListByIds(req.getIds());
|
||||||
|
return success(true);
|
||||||
|
}
|
||||||
|
|
||||||
|
@GetMapping("/get")
|
||||||
|
@Operation(summary = "获得门岗信息")
|
||||||
|
@Parameter(name = "id", description = "编号", required = true, example = "1024")
|
||||||
|
@PreAuthorize("@ss.hasPermission('lgst:gate-config:query')")
|
||||||
|
public CommonResult<GateConfigRespVO> getGateConfig(@RequestParam("id") Long id) {
|
||||||
|
GateConfigDO gateConfig = gateConfigService.getGateConfig(id);
|
||||||
|
return success(BeanUtils.toBean(gateConfig, GateConfigRespVO.class));
|
||||||
|
}
|
||||||
|
|
||||||
|
@GetMapping("/page")
|
||||||
|
@Operation(summary = "获得门岗信息分页")
|
||||||
|
@PreAuthorize("@ss.hasPermission('lgst:gate-config:query')")
|
||||||
|
public CommonResult<PageResult<GateConfigRespVO>> getGateConfigPage(@Valid GateConfigPageReqVO pageReqVO) {
|
||||||
|
PageResult<GateConfigDO> pageResult = gateConfigService.getGateConfigPage(pageReqVO);
|
||||||
|
return success(BeanUtils.toBean(pageResult, GateConfigRespVO.class));
|
||||||
|
}
|
||||||
|
|
||||||
|
@GetMapping("/export-excel")
|
||||||
|
@Operation(summary = "导出门岗信息 Excel")
|
||||||
|
@PreAuthorize("@ss.hasPermission('lgst:gate-config:export')")
|
||||||
|
@ApiAccessLog(operateType = EXPORT)
|
||||||
|
public void exportGateConfigExcel(@Valid GateConfigPageReqVO pageReqVO,
|
||||||
|
HttpServletResponse response) throws IOException {
|
||||||
|
pageReqVO.setPageSize(PageParam.PAGE_SIZE_NONE);
|
||||||
|
List<GateConfigDO> list = gateConfigService.getGateConfigPage(pageReqVO).getList();
|
||||||
|
// 导出 Excel
|
||||||
|
ExcelUtils.write(response, "门岗信息.xls", "数据", GateConfigRespVO.class,
|
||||||
|
BeanUtils.toBean(list, GateConfigRespVO.class));
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,105 @@
|
|||||||
|
package cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.plceAchi;
|
||||||
|
|
||||||
|
import cn.iocoder.yudao.framework.apilog.core.annotation.ApiAccessLog;
|
||||||
|
import cn.iocoder.yudao.framework.business.interceptor.BusinessControllerMarker;
|
||||||
|
import cn.iocoder.yudao.framework.common.pojo.CommonResult;
|
||||||
|
import cn.iocoder.yudao.framework.common.pojo.PageParam;
|
||||||
|
import cn.iocoder.yudao.framework.common.pojo.PageResult;
|
||||||
|
import cn.iocoder.yudao.framework.common.pojo.vo.BatchDeleteReqVO;
|
||||||
|
import cn.iocoder.yudao.framework.common.util.object.BeanUtils;
|
||||||
|
import cn.iocoder.yudao.framework.excel.core.util.ExcelUtils;
|
||||||
|
import cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.plceAchi.vo.PlaceArchiveMaterialPageReqVO;
|
||||||
|
import cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.plceAchi.vo.PlaceArchiveMaterialRespVO;
|
||||||
|
import cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.plceAchi.vo.PlaceArchiveMaterialSaveReqVO;
|
||||||
|
import cn.iocoder.yudao.module.backendlogistics.dal.dataobject.bseMngt.plceAchi.PlaceArchiveMaterialDO;
|
||||||
|
import cn.iocoder.yudao.module.backendlogistics.service.bseMngt.plceAchi.PlaceArchiveMaterialService;
|
||||||
|
import io.swagger.v3.oas.annotations.Operation;
|
||||||
|
import io.swagger.v3.oas.annotations.Parameter;
|
||||||
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||||
|
import jakarta.annotation.Resource;
|
||||||
|
import jakarta.servlet.http.HttpServletResponse;
|
||||||
|
import jakarta.validation.Valid;
|
||||||
|
import org.springframework.security.access.prepost.PreAuthorize;
|
||||||
|
import org.springframework.validation.annotation.Validated;
|
||||||
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
|
||||||
|
import java.io.IOException;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import static cn.iocoder.yudao.framework.apilog.core.enums.OperateTypeEnum.EXPORT;
|
||||||
|
import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success;
|
||||||
|
|
||||||
|
@Tag(name = "管理后台 - 地点档案物料信息")
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/lgst/place-archive-material")
|
||||||
|
@Validated
|
||||||
|
public class PlaceArchiveMaterialController implements BusinessControllerMarker {
|
||||||
|
|
||||||
|
|
||||||
|
@Resource
|
||||||
|
private PlaceArchiveMaterialService placeArchiveMaterialService;
|
||||||
|
|
||||||
|
@PostMapping("/create")
|
||||||
|
@Operation(summary = "创建地点档案物料信息")
|
||||||
|
@PreAuthorize("@ss.hasPermission('lgst:place-archive-material:create')")
|
||||||
|
public CommonResult<PlaceArchiveMaterialRespVO> createPlaceArchiveMaterial(@Valid @RequestBody PlaceArchiveMaterialSaveReqVO createReqVO) {
|
||||||
|
return success(placeArchiveMaterialService.createPlaceArchiveMaterial(createReqVO));
|
||||||
|
}
|
||||||
|
|
||||||
|
@PutMapping("/update")
|
||||||
|
@Operation(summary = "更新地点档案物料信息")
|
||||||
|
@PreAuthorize("@ss.hasPermission('lgst:place-archive-material:update')")
|
||||||
|
public CommonResult<Boolean> updatePlaceArchiveMaterial(@Valid @RequestBody PlaceArchiveMaterialSaveReqVO updateReqVO) {
|
||||||
|
placeArchiveMaterialService.updatePlaceArchiveMaterial(updateReqVO);
|
||||||
|
return success(true);
|
||||||
|
}
|
||||||
|
|
||||||
|
@DeleteMapping("/delete")
|
||||||
|
@Operation(summary = "删除地点档案物料信息")
|
||||||
|
@Parameter(name = "id", description = "编号", required = true)
|
||||||
|
@PreAuthorize("@ss.hasPermission('lgst:place-archive-material:delete')")
|
||||||
|
public CommonResult<Boolean> deletePlaceArchiveMaterial(@RequestParam("id") Long id) {
|
||||||
|
placeArchiveMaterialService.deletePlaceArchiveMaterial(id);
|
||||||
|
return success(true);
|
||||||
|
}
|
||||||
|
|
||||||
|
@DeleteMapping("/delete-list")
|
||||||
|
@Parameter(name = "ids", description = "编号", required = true)
|
||||||
|
@Operation(summary = "批量删除地点档案物料信息")
|
||||||
|
@PreAuthorize("@ss.hasPermission('lgst:place-archive-material:delete')")
|
||||||
|
public CommonResult<Boolean> deletePlaceArchiveMaterialList(@RequestBody BatchDeleteReqVO req) {
|
||||||
|
placeArchiveMaterialService.deletePlaceArchiveMaterialListByIds(req.getIds());
|
||||||
|
return success(true);
|
||||||
|
}
|
||||||
|
|
||||||
|
@GetMapping("/get")
|
||||||
|
@Operation(summary = "获得地点档案物料信息")
|
||||||
|
@Parameter(name = "id", description = "编号", required = true, example = "1024")
|
||||||
|
@PreAuthorize("@ss.hasPermission('lgst:place-archive-material:query')")
|
||||||
|
public CommonResult<PlaceArchiveMaterialRespVO> getPlaceArchiveMaterial(@RequestParam("id") Long id) {
|
||||||
|
PlaceArchiveMaterialDO placeArchiveMaterial = placeArchiveMaterialService.getPlaceArchiveMaterial(id);
|
||||||
|
return success(BeanUtils.toBean(placeArchiveMaterial, PlaceArchiveMaterialRespVO.class));
|
||||||
|
}
|
||||||
|
|
||||||
|
@GetMapping("/page")
|
||||||
|
@Operation(summary = "获得地点档案物料信息分页")
|
||||||
|
@PreAuthorize("@ss.hasPermission('lgst:place-archive-material:query')")
|
||||||
|
public CommonResult<PageResult<PlaceArchiveMaterialRespVO>> getPlaceArchiveMaterialPage(@Valid PlaceArchiveMaterialPageReqVO pageReqVO) {
|
||||||
|
PageResult<PlaceArchiveMaterialDO> pageResult = placeArchiveMaterialService.getPlaceArchiveMaterialPage(pageReqVO);
|
||||||
|
return success(BeanUtils.toBean(pageResult, PlaceArchiveMaterialRespVO.class));
|
||||||
|
}
|
||||||
|
|
||||||
|
@GetMapping("/export-excel")
|
||||||
|
@Operation(summary = "导出地点档案物料信息 Excel")
|
||||||
|
@PreAuthorize("@ss.hasPermission('lgst:place-archive-material:export')")
|
||||||
|
@ApiAccessLog(operateType = EXPORT)
|
||||||
|
public void exportPlaceArchiveMaterialExcel(@Valid PlaceArchiveMaterialPageReqVO pageReqVO,
|
||||||
|
HttpServletResponse response) throws IOException {
|
||||||
|
pageReqVO.setPageSize(PageParam.PAGE_SIZE_NONE);
|
||||||
|
List<PlaceArchiveMaterialDO> list = placeArchiveMaterialService.getPlaceArchiveMaterialPage(pageReqVO).getList();
|
||||||
|
// 导出 Excel
|
||||||
|
ExcelUtils.write(response, "地点档案物料信息.xls", "数据", PlaceArchiveMaterialRespVO.class,
|
||||||
|
BeanUtils.toBean(list, PlaceArchiveMaterialRespVO.class));
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,105 @@
|
|||||||
|
package cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.plceAchi;
|
||||||
|
|
||||||
|
import cn.iocoder.yudao.framework.apilog.core.annotation.ApiAccessLog;
|
||||||
|
import cn.iocoder.yudao.framework.business.interceptor.BusinessControllerMarker;
|
||||||
|
import cn.iocoder.yudao.framework.common.pojo.CommonResult;
|
||||||
|
import cn.iocoder.yudao.framework.common.pojo.PageParam;
|
||||||
|
import cn.iocoder.yudao.framework.common.pojo.PageResult;
|
||||||
|
import cn.iocoder.yudao.framework.common.pojo.vo.BatchDeleteReqVO;
|
||||||
|
import cn.iocoder.yudao.framework.common.util.object.BeanUtils;
|
||||||
|
import cn.iocoder.yudao.framework.excel.core.util.ExcelUtils;
|
||||||
|
import cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.plceAchi.vo.PortPageReqVO;
|
||||||
|
import cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.plceAchi.vo.PortRespVO;
|
||||||
|
import cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.plceAchi.vo.PortSaveReqVO;
|
||||||
|
import cn.iocoder.yudao.module.backendlogistics.dal.dataobject.bseMngt.plceAchi.PortDO;
|
||||||
|
import cn.iocoder.yudao.module.backendlogistics.service.bseMngt.plceAchi.PortService;
|
||||||
|
import io.swagger.v3.oas.annotations.Operation;
|
||||||
|
import io.swagger.v3.oas.annotations.Parameter;
|
||||||
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||||
|
import jakarta.annotation.Resource;
|
||||||
|
import jakarta.servlet.http.HttpServletResponse;
|
||||||
|
import jakarta.validation.Valid;
|
||||||
|
import org.springframework.security.access.prepost.PreAuthorize;
|
||||||
|
import org.springframework.validation.annotation.Validated;
|
||||||
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
|
||||||
|
import java.io.IOException;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import static cn.iocoder.yudao.framework.apilog.core.enums.OperateTypeEnum.EXPORT;
|
||||||
|
import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success;
|
||||||
|
|
||||||
|
@Tag(name = "管理后台 - 港口信息")
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/lgst/port")
|
||||||
|
@Validated
|
||||||
|
public class PortController implements BusinessControllerMarker {
|
||||||
|
|
||||||
|
|
||||||
|
@Resource
|
||||||
|
private PortService portService;
|
||||||
|
|
||||||
|
@PostMapping("/create")
|
||||||
|
@Operation(summary = "创建港口信息")
|
||||||
|
@PreAuthorize("@ss.hasPermission('lgst:port:create')")
|
||||||
|
public CommonResult<PortRespVO> createPort(@Valid @RequestBody PortSaveReqVO createReqVO) {
|
||||||
|
return success(portService.createPort(createReqVO));
|
||||||
|
}
|
||||||
|
|
||||||
|
@PutMapping("/update")
|
||||||
|
@Operation(summary = "更新港口信息")
|
||||||
|
@PreAuthorize("@ss.hasPermission('lgst:port:update')")
|
||||||
|
public CommonResult<Boolean> updatePort(@Valid @RequestBody PortSaveReqVO updateReqVO) {
|
||||||
|
portService.updatePort(updateReqVO);
|
||||||
|
return success(true);
|
||||||
|
}
|
||||||
|
|
||||||
|
@DeleteMapping("/delete")
|
||||||
|
@Operation(summary = "删除港口信息")
|
||||||
|
@Parameter(name = "id", description = "编号", required = true)
|
||||||
|
@PreAuthorize("@ss.hasPermission('lgst:port:delete')")
|
||||||
|
public CommonResult<Boolean> deletePort(@RequestParam("id") Long id) {
|
||||||
|
portService.deletePort(id);
|
||||||
|
return success(true);
|
||||||
|
}
|
||||||
|
|
||||||
|
@DeleteMapping("/delete-list")
|
||||||
|
@Parameter(name = "ids", description = "编号", required = true)
|
||||||
|
@Operation(summary = "批量删除港口信息")
|
||||||
|
@PreAuthorize("@ss.hasPermission('lgst:port:delete')")
|
||||||
|
public CommonResult<Boolean> deletePortList(@RequestBody BatchDeleteReqVO req) {
|
||||||
|
portService.deletePortListByIds(req.getIds());
|
||||||
|
return success(true);
|
||||||
|
}
|
||||||
|
|
||||||
|
@GetMapping("/get")
|
||||||
|
@Operation(summary = "获得港口信息")
|
||||||
|
@Parameter(name = "id", description = "编号", required = true, example = "1024")
|
||||||
|
@PreAuthorize("@ss.hasPermission('lgst:port:query')")
|
||||||
|
public CommonResult<PortRespVO> getPort(@RequestParam("id") Long id) {
|
||||||
|
PortDO port = portService.getPort(id);
|
||||||
|
return success(BeanUtils.toBean(port, PortRespVO.class));
|
||||||
|
}
|
||||||
|
|
||||||
|
@GetMapping("/page")
|
||||||
|
@Operation(summary = "获得港口信息分页")
|
||||||
|
@PreAuthorize("@ss.hasPermission('lgst:port:query')")
|
||||||
|
public CommonResult<PageResult<PortRespVO>> getPortPage(@Valid PortPageReqVO pageReqVO) {
|
||||||
|
PageResult<PortDO> pageResult = portService.getPortPage(pageReqVO);
|
||||||
|
return success(BeanUtils.toBean(pageResult, PortRespVO.class));
|
||||||
|
}
|
||||||
|
|
||||||
|
@GetMapping("/export-excel")
|
||||||
|
@Operation(summary = "导出港口信息 Excel")
|
||||||
|
@PreAuthorize("@ss.hasPermission('lgst:port:export')")
|
||||||
|
@ApiAccessLog(operateType = EXPORT)
|
||||||
|
public void exportPortExcel(@Valid PortPageReqVO pageReqVO,
|
||||||
|
HttpServletResponse response) throws IOException {
|
||||||
|
pageReqVO.setPageSize(PageParam.PAGE_SIZE_NONE);
|
||||||
|
List<PortDO> list = portService.getPortPage(pageReqVO).getList();
|
||||||
|
// 导出 Excel
|
||||||
|
ExcelUtils.write(response, "港口信息.xls", "数据", PortRespVO.class,
|
||||||
|
BeanUtils.toBean(list, PortRespVO.class));
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,105 @@
|
|||||||
|
package cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.plceAchi;
|
||||||
|
|
||||||
|
import cn.iocoder.yudao.framework.apilog.core.annotation.ApiAccessLog;
|
||||||
|
import cn.iocoder.yudao.framework.business.interceptor.BusinessControllerMarker;
|
||||||
|
import cn.iocoder.yudao.framework.common.pojo.CommonResult;
|
||||||
|
import cn.iocoder.yudao.framework.common.pojo.PageParam;
|
||||||
|
import cn.iocoder.yudao.framework.common.pojo.PageResult;
|
||||||
|
import cn.iocoder.yudao.framework.common.pojo.vo.BatchDeleteReqVO;
|
||||||
|
import cn.iocoder.yudao.framework.common.util.object.BeanUtils;
|
||||||
|
import cn.iocoder.yudao.framework.excel.core.util.ExcelUtils;
|
||||||
|
import cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.plceAchi.vo.RailwayStationPageReqVO;
|
||||||
|
import cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.plceAchi.vo.RailwayStationRespVO;
|
||||||
|
import cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.plceAchi.vo.RailwayStationSaveReqVO;
|
||||||
|
import cn.iocoder.yudao.module.backendlogistics.dal.dataobject.bseMngt.plceAchi.RailwayStationDO;
|
||||||
|
import cn.iocoder.yudao.module.backendlogistics.service.bseMngt.plceAchi.RailwayStationService;
|
||||||
|
import io.swagger.v3.oas.annotations.Operation;
|
||||||
|
import io.swagger.v3.oas.annotations.Parameter;
|
||||||
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||||
|
import jakarta.annotation.Resource;
|
||||||
|
import jakarta.servlet.http.HttpServletResponse;
|
||||||
|
import jakarta.validation.Valid;
|
||||||
|
import org.springframework.security.access.prepost.PreAuthorize;
|
||||||
|
import org.springframework.validation.annotation.Validated;
|
||||||
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
|
||||||
|
import java.io.IOException;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import static cn.iocoder.yudao.framework.apilog.core.enums.OperateTypeEnum.EXPORT;
|
||||||
|
import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success;
|
||||||
|
|
||||||
|
@Tag(name = "管理后台 - 铁路站点维护")
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/lgst/railway-station")
|
||||||
|
@Validated
|
||||||
|
public class RailwayStationController implements BusinessControllerMarker {
|
||||||
|
|
||||||
|
|
||||||
|
@Resource
|
||||||
|
private RailwayStationService railwayStationService;
|
||||||
|
|
||||||
|
@PostMapping("/create")
|
||||||
|
@Operation(summary = "创建铁路站点维护")
|
||||||
|
@PreAuthorize("@ss.hasPermission('lgst:railway-station:create')")
|
||||||
|
public CommonResult<RailwayStationRespVO> createRailwayStation(@Valid @RequestBody RailwayStationSaveReqVO createReqVO) {
|
||||||
|
return success(railwayStationService.createRailwayStation(createReqVO));
|
||||||
|
}
|
||||||
|
|
||||||
|
@PutMapping("/update")
|
||||||
|
@Operation(summary = "更新铁路站点维护")
|
||||||
|
@PreAuthorize("@ss.hasPermission('lgst:railway-station:update')")
|
||||||
|
public CommonResult<Boolean> updateRailwayStation(@Valid @RequestBody RailwayStationSaveReqVO updateReqVO) {
|
||||||
|
railwayStationService.updateRailwayStation(updateReqVO);
|
||||||
|
return success(true);
|
||||||
|
}
|
||||||
|
|
||||||
|
@DeleteMapping("/delete")
|
||||||
|
@Operation(summary = "删除铁路站点维护")
|
||||||
|
@Parameter(name = "id", description = "编号", required = true)
|
||||||
|
@PreAuthorize("@ss.hasPermission('lgst:railway-station:delete')")
|
||||||
|
public CommonResult<Boolean> deleteRailwayStation(@RequestParam("id") Long id) {
|
||||||
|
railwayStationService.deleteRailwayStation(id);
|
||||||
|
return success(true);
|
||||||
|
}
|
||||||
|
|
||||||
|
@DeleteMapping("/delete-list")
|
||||||
|
@Parameter(name = "ids", description = "编号", required = true)
|
||||||
|
@Operation(summary = "批量删除铁路站点维护")
|
||||||
|
@PreAuthorize("@ss.hasPermission('lgst:railway-station:delete')")
|
||||||
|
public CommonResult<Boolean> deleteRailwayStationList(@RequestBody BatchDeleteReqVO req) {
|
||||||
|
railwayStationService.deleteRailwayStationListByIds(req.getIds());
|
||||||
|
return success(true);
|
||||||
|
}
|
||||||
|
|
||||||
|
@GetMapping("/get")
|
||||||
|
@Operation(summary = "获得铁路站点维护")
|
||||||
|
@Parameter(name = "id", description = "编号", required = true, example = "1024")
|
||||||
|
@PreAuthorize("@ss.hasPermission('lgst:railway-station:query')")
|
||||||
|
public CommonResult<RailwayStationRespVO> getRailwayStation(@RequestParam("id") Long id) {
|
||||||
|
RailwayStationDO railwayStation = railwayStationService.getRailwayStation(id);
|
||||||
|
return success(BeanUtils.toBean(railwayStation, RailwayStationRespVO.class));
|
||||||
|
}
|
||||||
|
|
||||||
|
@GetMapping("/page")
|
||||||
|
@Operation(summary = "获得铁路站点维护分页")
|
||||||
|
@PreAuthorize("@ss.hasPermission('lgst:railway-station:query')")
|
||||||
|
public CommonResult<PageResult<RailwayStationRespVO>> getRailwayStationPage(@Valid RailwayStationPageReqVO pageReqVO) {
|
||||||
|
PageResult<RailwayStationDO> pageResult = railwayStationService.getRailwayStationPage(pageReqVO);
|
||||||
|
return success(BeanUtils.toBean(pageResult, RailwayStationRespVO.class));
|
||||||
|
}
|
||||||
|
|
||||||
|
@GetMapping("/export-excel")
|
||||||
|
@Operation(summary = "导出铁路站点维护 Excel")
|
||||||
|
@PreAuthorize("@ss.hasPermission('lgst:railway-station:export')")
|
||||||
|
@ApiAccessLog(operateType = EXPORT)
|
||||||
|
public void exportRailwayStationExcel(@Valid RailwayStationPageReqVO pageReqVO,
|
||||||
|
HttpServletResponse response) throws IOException {
|
||||||
|
pageReqVO.setPageSize(PageParam.PAGE_SIZE_NONE);
|
||||||
|
List<RailwayStationDO> list = railwayStationService.getRailwayStationPage(pageReqVO).getList();
|
||||||
|
// 导出 Excel
|
||||||
|
ExcelUtils.write(response, "铁路站点维护.xls", "数据", RailwayStationRespVO.class,
|
||||||
|
BeanUtils.toBean(list, RailwayStationRespVO.class));
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,111 @@
|
|||||||
|
package cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.plceAchi;
|
||||||
|
|
||||||
|
import cn.iocoder.yudao.framework.apilog.core.annotation.ApiAccessLog;
|
||||||
|
import cn.iocoder.yudao.framework.business.interceptor.BusinessControllerMarker;
|
||||||
|
import cn.iocoder.yudao.framework.common.pojo.CommonResult;
|
||||||
|
import cn.iocoder.yudao.framework.common.pojo.PageParam;
|
||||||
|
import cn.iocoder.yudao.framework.common.pojo.PageResult;
|
||||||
|
import cn.iocoder.yudao.framework.common.pojo.vo.BatchDeleteReqVO;
|
||||||
|
import cn.iocoder.yudao.framework.common.util.object.BeanUtils;
|
||||||
|
import cn.iocoder.yudao.framework.excel.core.util.ExcelUtils;
|
||||||
|
import cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.plceAchi.vo.WarehousePageReqVO;
|
||||||
|
import cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.plceAchi.vo.WarehouseRespVO;
|
||||||
|
import cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.plceAchi.vo.WarehouseSaveReqVO;
|
||||||
|
import cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.plceAchi.vo.WarehouseUpdateReqVO;
|
||||||
|
import cn.iocoder.yudao.module.backendlogistics.dal.dataobject.bseMngt.plceAchi.WarehouseDO;
|
||||||
|
import cn.iocoder.yudao.module.backendlogistics.service.bseMngt.plceAchi.WarehouseService;
|
||||||
|
import io.swagger.v3.oas.annotations.Operation;
|
||||||
|
import io.swagger.v3.oas.annotations.Parameter;
|
||||||
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||||
|
import jakarta.annotation.Resource;
|
||||||
|
import jakarta.annotation.security.PermitAll;
|
||||||
|
import jakarta.servlet.http.HttpServletResponse;
|
||||||
|
import jakarta.validation.Valid;
|
||||||
|
import org.springframework.security.access.prepost.PreAuthorize;
|
||||||
|
import org.springframework.validation.annotation.Validated;
|
||||||
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
|
||||||
|
import java.io.IOException;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import static cn.iocoder.yudao.framework.apilog.core.enums.OperateTypeEnum.EXPORT;
|
||||||
|
import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success;
|
||||||
|
|
||||||
|
@Tag(name = "管理后台 - 仓库信息")
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/lgst/warehouse")
|
||||||
|
@Validated
|
||||||
|
public class WarehouseController implements BusinessControllerMarker {
|
||||||
|
|
||||||
|
|
||||||
|
@Resource
|
||||||
|
private WarehouseService warehouseService;
|
||||||
|
|
||||||
|
@PostMapping("/create")
|
||||||
|
@Operation(summary = "创建仓库信息")
|
||||||
|
@PermitAll
|
||||||
|
// @PreAuthorize("@ss.hasPermission('lgst:warehouse:create')")
|
||||||
|
public CommonResult<WarehouseRespVO> createWarehouse(@Valid @RequestBody WarehouseSaveReqVO createReqVO) {
|
||||||
|
return success(warehouseService.createWarehouse(createReqVO));
|
||||||
|
}
|
||||||
|
|
||||||
|
@PutMapping("/update")
|
||||||
|
@Operation(summary = "更新仓库信息")
|
||||||
|
@PermitAll
|
||||||
|
// @PreAuthorize("@ss.hasPermission('lgst:warehouse:update')")
|
||||||
|
public CommonResult<Boolean> updateWarehouse(@Valid @RequestBody WarehouseUpdateReqVO updateReqVO) {
|
||||||
|
warehouseService.updateWarehouse(updateReqVO);
|
||||||
|
return success(true);
|
||||||
|
}
|
||||||
|
|
||||||
|
@DeleteMapping("/delete")
|
||||||
|
@Operation(summary = "删除仓库信息")
|
||||||
|
@Parameter(name = "id", description = "编号", required = true)
|
||||||
|
@PermitAll
|
||||||
|
// @PreAuthorize("@ss.hasPermission('lgst:warehouse:delete')")
|
||||||
|
public CommonResult<Boolean> deleteWarehouse(@RequestParam("id") Long id) {
|
||||||
|
warehouseService.deleteWarehouse(id);
|
||||||
|
return success(true);
|
||||||
|
}
|
||||||
|
|
||||||
|
@DeleteMapping("/delete-list")
|
||||||
|
@Parameter(name = "ids", description = "编号", required = true)
|
||||||
|
@Operation(summary = "批量删除仓库信息")
|
||||||
|
@PermitAll
|
||||||
|
// @PreAuthorize("@ss.hasPermission('lgst:warehouse:delete')")
|
||||||
|
public CommonResult<Boolean> deleteWarehouseList(@RequestBody BatchDeleteReqVO req) {
|
||||||
|
warehouseService.deleteWarehouseListByIds(req.getIds());
|
||||||
|
return success(true);
|
||||||
|
}
|
||||||
|
|
||||||
|
@GetMapping("/get")
|
||||||
|
@Operation(summary = "获得仓库信息")
|
||||||
|
@Parameter(name = "id", description = "编号", required = true, example = "1024")
|
||||||
|
@PreAuthorize("@ss.hasPermission('lgst:warehouse:query')")
|
||||||
|
public CommonResult<WarehouseRespVO> getWarehouse(@RequestParam("id") Long id) {
|
||||||
|
WarehouseDO warehouse = warehouseService.getWarehouse(id);
|
||||||
|
return success(BeanUtils.toBean(warehouse, WarehouseRespVO.class));
|
||||||
|
}
|
||||||
|
|
||||||
|
@GetMapping("/page")
|
||||||
|
@Operation(summary = "获得仓库信息分页")
|
||||||
|
@PreAuthorize("@ss.hasPermission('lgst:warehouse:query')")
|
||||||
|
public CommonResult<PageResult<WarehouseRespVO>> getWarehousePage(@Valid WarehousePageReqVO pageReqVO) {
|
||||||
|
PageResult<WarehouseDO> pageResult = warehouseService.getWarehousePage(pageReqVO);
|
||||||
|
return success(BeanUtils.toBean(pageResult, WarehouseRespVO.class));
|
||||||
|
}
|
||||||
|
|
||||||
|
@GetMapping("/export-excel")
|
||||||
|
@Operation(summary = "导出仓库信息 Excel")
|
||||||
|
@PreAuthorize("@ss.hasPermission('lgst:warehouse:export')")
|
||||||
|
@ApiAccessLog(operateType = EXPORT)
|
||||||
|
public void exportWarehouseExcel(@Valid WarehousePageReqVO pageReqVO,
|
||||||
|
HttpServletResponse response) throws IOException {
|
||||||
|
pageReqVO.setPageSize(PageParam.PAGE_SIZE_NONE);
|
||||||
|
List<WarehouseDO> list = warehouseService.getWarehousePage(pageReqVO).getList();
|
||||||
|
// 导出 Excel
|
||||||
|
ExcelUtils.write(response, "仓库信息.xls", "数据", WarehouseRespVO.class,
|
||||||
|
BeanUtils.toBean(list, WarehouseRespVO.class));
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,17 @@
|
|||||||
|
package cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.plceAchi.vo;
|
||||||
|
|
||||||
|
import cn.iocoder.yudao.framework.common.pojo.PageParam;
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
@Schema(description = "管理后台 - 计量点配置分页 Request VO")
|
||||||
|
@Data
|
||||||
|
public class AuncelConfigPageReqVO extends PageParam {
|
||||||
|
|
||||||
|
@Schema(description = "计量点名称", example = "张三")
|
||||||
|
private String auncelName;
|
||||||
|
|
||||||
|
@Schema(description = "计量点编码")
|
||||||
|
private String auncelCoding;
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,67 @@
|
|||||||
|
package cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.plceAchi.vo;
|
||||||
|
|
||||||
|
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
|
||||||
|
import com.alibaba.excel.annotation.ExcelProperty;
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
|
||||||
|
@Schema(description = "管理后台 - 计量点配置 Response VO")
|
||||||
|
@Data
|
||||||
|
@ExcelIgnoreUnannotated
|
||||||
|
public class AuncelConfigRespVO {
|
||||||
|
|
||||||
|
@Schema(description = "id", requiredMode = Schema.RequiredMode.REQUIRED, example = "15341")
|
||||||
|
@ExcelProperty("id")
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
@Schema(description = "公司编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "13313")
|
||||||
|
@ExcelProperty("公司编号")
|
||||||
|
private Long companyId;
|
||||||
|
|
||||||
|
@Schema(description = "公司名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "王五")
|
||||||
|
@ExcelProperty("公司名称")
|
||||||
|
private String companyName;
|
||||||
|
|
||||||
|
@Schema(description = "计量点名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "张三")
|
||||||
|
@ExcelProperty("计量点名称")
|
||||||
|
private String auncelName;
|
||||||
|
|
||||||
|
@Schema(description = "计量点编码", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||||
|
@ExcelProperty("计量点编码")
|
||||||
|
private String auncelCoding;
|
||||||
|
|
||||||
|
@Schema(description = "省(直辖市)")
|
||||||
|
@ExcelProperty("省(直辖市)")
|
||||||
|
private String state;
|
||||||
|
|
||||||
|
@Schema(description = "市(区)")
|
||||||
|
@ExcelProperty("市(区)")
|
||||||
|
private String municipality;
|
||||||
|
|
||||||
|
@Schema(description = "计量点类型", example = "2")
|
||||||
|
@ExcelProperty("计量点类型")
|
||||||
|
private String auncelType;
|
||||||
|
|
||||||
|
@Schema(description = "地理位置")
|
||||||
|
@ExcelProperty("地理位置")
|
||||||
|
private String location;
|
||||||
|
|
||||||
|
@Schema(description = "空重限制")
|
||||||
|
@ExcelProperty("空重限制")
|
||||||
|
private String limit;
|
||||||
|
|
||||||
|
@Schema(description = "计量作业系统")
|
||||||
|
@ExcelProperty("计量作业系统")
|
||||||
|
private String system;
|
||||||
|
|
||||||
|
@Schema(description = "经度")
|
||||||
|
@ExcelProperty("经度")
|
||||||
|
private BigDecimal longitude;
|
||||||
|
|
||||||
|
@Schema(description = "纬度")
|
||||||
|
@ExcelProperty("纬度")
|
||||||
|
private BigDecimal latitude;
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,57 @@
|
|||||||
|
package cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.plceAchi.vo;
|
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import jakarta.validation.constraints.NotEmpty;
|
||||||
|
import jakarta.validation.constraints.NotNull;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
|
||||||
|
@Schema(description = "管理后台 - 计量点配置新增/修改 Request VO")
|
||||||
|
@Data
|
||||||
|
public class AuncelConfigSaveReqVO {
|
||||||
|
|
||||||
|
@Schema(description = "id", requiredMode = Schema.RequiredMode.REQUIRED, example = "15341")
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
@Schema(description = "公司编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "13313")
|
||||||
|
@NotNull(message = "公司编号不能为空")
|
||||||
|
private Long companyId;
|
||||||
|
|
||||||
|
@Schema(description = "公司名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "王五")
|
||||||
|
@NotEmpty(message = "公司名称不能为空")
|
||||||
|
private String companyName;
|
||||||
|
|
||||||
|
@Schema(description = "计量点名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "张三")
|
||||||
|
@NotEmpty(message = "计量点名称不能为空")
|
||||||
|
private String auncelName;
|
||||||
|
|
||||||
|
@Schema(description = "计量点编码", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||||
|
@NotEmpty(message = "计量点编码不能为空")
|
||||||
|
private String auncelCoding;
|
||||||
|
|
||||||
|
@Schema(description = "省(直辖市)")
|
||||||
|
private String state;
|
||||||
|
|
||||||
|
@Schema(description = "市(区)")
|
||||||
|
private String municipality;
|
||||||
|
|
||||||
|
@Schema(description = "计量点类型", example = "2")
|
||||||
|
private String auncelType;
|
||||||
|
|
||||||
|
@Schema(description = "地理位置")
|
||||||
|
private String location;
|
||||||
|
|
||||||
|
@Schema(description = "空重限制")
|
||||||
|
private String limit;
|
||||||
|
|
||||||
|
@Schema(description = "计量作业系统")
|
||||||
|
private String system;
|
||||||
|
|
||||||
|
@Schema(description = "经度")
|
||||||
|
private BigDecimal longitude;
|
||||||
|
|
||||||
|
@Schema(description = "纬度")
|
||||||
|
private BigDecimal latitude;
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,17 @@
|
|||||||
|
package cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.plceAchi.vo;
|
||||||
|
|
||||||
|
import cn.iocoder.yudao.framework.common.pojo.PageParam;
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
@Schema(description = "管理后台 - 客户收货地址分页 Request VO")
|
||||||
|
@Data
|
||||||
|
public class ConsigneeAddressPageReqVO extends PageParam {
|
||||||
|
|
||||||
|
@Schema(description = "地点名称", example = "王五")
|
||||||
|
private String placeName;
|
||||||
|
|
||||||
|
@Schema(description = "地点编码")
|
||||||
|
private String placeCoding;
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,71 @@
|
|||||||
|
package cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.plceAchi.vo;
|
||||||
|
|
||||||
|
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
|
||||||
|
import com.alibaba.excel.annotation.ExcelProperty;
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
|
||||||
|
@Schema(description = "管理后台 - 客户收货地址 Response VO")
|
||||||
|
@Data
|
||||||
|
@ExcelIgnoreUnannotated
|
||||||
|
public class ConsigneeAddressRespVO {
|
||||||
|
|
||||||
|
@Schema(description = "id", requiredMode = Schema.RequiredMode.REQUIRED, example = "16510")
|
||||||
|
@ExcelProperty("id")
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
@Schema(description = "公司编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "13384")
|
||||||
|
@ExcelProperty("公司编号")
|
||||||
|
private Long companyId;
|
||||||
|
|
||||||
|
@Schema(description = "公司名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "张三")
|
||||||
|
@ExcelProperty("公司名称")
|
||||||
|
private String companyName;
|
||||||
|
|
||||||
|
@Schema(description = "地点名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "王五")
|
||||||
|
@ExcelProperty("地点名称")
|
||||||
|
private String placeName;
|
||||||
|
|
||||||
|
@Schema(description = "地点编码", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||||
|
@ExcelProperty("地点编码")
|
||||||
|
private String placeCoding;
|
||||||
|
|
||||||
|
@Schema(description = "客户名称", example = "芋艿")
|
||||||
|
@ExcelProperty("客户名称")
|
||||||
|
private String customerName;
|
||||||
|
|
||||||
|
@Schema(description = "MDM编码")
|
||||||
|
@ExcelProperty("MDM编码")
|
||||||
|
private String mDMCoding;
|
||||||
|
|
||||||
|
@Schema(description = "SAP编码")
|
||||||
|
@ExcelProperty("SAP编码")
|
||||||
|
private String sAPCoding;
|
||||||
|
|
||||||
|
@Schema(description = "省(直辖市)")
|
||||||
|
@ExcelProperty("省(直辖市)")
|
||||||
|
private String state;
|
||||||
|
|
||||||
|
@Schema(description = "市(区)")
|
||||||
|
@ExcelProperty("市(区)")
|
||||||
|
private String municipality;
|
||||||
|
|
||||||
|
@Schema(description = "详细地址")
|
||||||
|
@ExcelProperty("详细地址")
|
||||||
|
private String location;
|
||||||
|
|
||||||
|
@Schema(description = "首选")
|
||||||
|
@ExcelProperty("首选")
|
||||||
|
private String first;
|
||||||
|
|
||||||
|
@Schema(description = "经度")
|
||||||
|
@ExcelProperty("经度")
|
||||||
|
private BigDecimal longitude;
|
||||||
|
|
||||||
|
@Schema(description = "纬度")
|
||||||
|
@ExcelProperty("纬度")
|
||||||
|
private BigDecimal latitude;
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,60 @@
|
|||||||
|
package cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.plceAchi.vo;
|
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import jakarta.validation.constraints.NotEmpty;
|
||||||
|
import jakarta.validation.constraints.NotNull;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
|
||||||
|
@Schema(description = "管理后台 - 客户收货地址新增/修改 Request VO")
|
||||||
|
@Data
|
||||||
|
public class ConsigneeAddressSaveReqVO {
|
||||||
|
|
||||||
|
@Schema(description = "id", requiredMode = Schema.RequiredMode.REQUIRED, example = "16510")
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
@Schema(description = "公司编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "13384")
|
||||||
|
@NotNull(message = "公司编号不能为空")
|
||||||
|
private Long companyId;
|
||||||
|
|
||||||
|
@Schema(description = "公司名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "张三")
|
||||||
|
@NotEmpty(message = "公司名称不能为空")
|
||||||
|
private String companyName;
|
||||||
|
|
||||||
|
@Schema(description = "地点名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "王五")
|
||||||
|
@NotEmpty(message = "地点名称不能为空")
|
||||||
|
private String placeName;
|
||||||
|
|
||||||
|
@Schema(description = "地点编码", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||||
|
@NotEmpty(message = "地点编码不能为空")
|
||||||
|
private String placeCoding;
|
||||||
|
|
||||||
|
@Schema(description = "客户名称", example = "芋艿")
|
||||||
|
private String customerName;
|
||||||
|
|
||||||
|
@Schema(description = "MDM编码")
|
||||||
|
private String mDMCoding;
|
||||||
|
|
||||||
|
@Schema(description = "SAP编码")
|
||||||
|
private String sAPCoding;
|
||||||
|
|
||||||
|
@Schema(description = "省(直辖市)")
|
||||||
|
private String state;
|
||||||
|
|
||||||
|
@Schema(description = "市(区)")
|
||||||
|
private String municipality;
|
||||||
|
|
||||||
|
@Schema(description = "详细地址")
|
||||||
|
private String location;
|
||||||
|
|
||||||
|
@Schema(description = "首选")
|
||||||
|
private String first;
|
||||||
|
|
||||||
|
@Schema(description = "经度")
|
||||||
|
private BigDecimal longitude;
|
||||||
|
|
||||||
|
@Schema(description = "纬度")
|
||||||
|
private BigDecimal latitude;
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,17 @@
|
|||||||
|
package cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.plceAchi.vo;
|
||||||
|
|
||||||
|
import cn.iocoder.yudao.framework.common.pojo.PageParam;
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
@Schema(description = "管理后台 - 生产厂区信息分页 Request VO")
|
||||||
|
@Data
|
||||||
|
public class FactoryPageReqVO extends PageParam {
|
||||||
|
|
||||||
|
@Schema(description = "厂区名称", example = "李四")
|
||||||
|
private String factoryName;
|
||||||
|
|
||||||
|
@Schema(description = "厂区编码")
|
||||||
|
private String factoryCoding;
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,71 @@
|
|||||||
|
package cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.plceAchi.vo;
|
||||||
|
|
||||||
|
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
|
||||||
|
import com.alibaba.excel.annotation.ExcelProperty;
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
|
||||||
|
@Schema(description = "管理后台 - 生产厂区信息 Response VO")
|
||||||
|
@Data
|
||||||
|
@ExcelIgnoreUnannotated
|
||||||
|
public class FactoryRespVO {
|
||||||
|
|
||||||
|
@Schema(description = "id", requiredMode = Schema.RequiredMode.REQUIRED, example = "20496")
|
||||||
|
@ExcelProperty("id")
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
@Schema(description = "公司编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "24201")
|
||||||
|
@ExcelProperty("公司编号")
|
||||||
|
private Long companyId;
|
||||||
|
|
||||||
|
@Schema(description = "公司名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "王五")
|
||||||
|
@ExcelProperty("公司名称")
|
||||||
|
private String companyName;
|
||||||
|
|
||||||
|
@Schema(description = "厂区名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "李四")
|
||||||
|
@ExcelProperty("厂区名称")
|
||||||
|
private String factoryName;
|
||||||
|
|
||||||
|
@Schema(description = "厂区编码", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||||
|
@ExcelProperty("厂区编码")
|
||||||
|
private String factoryCoding;
|
||||||
|
|
||||||
|
@Schema(description = "是否境外")
|
||||||
|
@ExcelProperty("是否境外")
|
||||||
|
private String isForeign;
|
||||||
|
|
||||||
|
@Schema(description = "国内区域")
|
||||||
|
@ExcelProperty("国内区域")
|
||||||
|
private String internalArea;
|
||||||
|
|
||||||
|
@Schema(description = "国外区域")
|
||||||
|
@ExcelProperty("国外区域")
|
||||||
|
private String foreignArea;
|
||||||
|
|
||||||
|
@Schema(description = "省(直辖市)")
|
||||||
|
@ExcelProperty("省(直辖市)")
|
||||||
|
private String state;
|
||||||
|
|
||||||
|
@Schema(description = "市(区)")
|
||||||
|
@ExcelProperty("市(区)")
|
||||||
|
private String municipality;
|
||||||
|
|
||||||
|
@Schema(description = "是否开启队列")
|
||||||
|
@ExcelProperty("是否开启队列")
|
||||||
|
private String isQueue;
|
||||||
|
|
||||||
|
@Schema(description = "排队方式")
|
||||||
|
@ExcelProperty("排队方式")
|
||||||
|
private String queueWay;
|
||||||
|
|
||||||
|
@Schema(description = "经度")
|
||||||
|
@ExcelProperty("经度")
|
||||||
|
private BigDecimal longitude;
|
||||||
|
|
||||||
|
@Schema(description = "纬度")
|
||||||
|
@ExcelProperty("纬度")
|
||||||
|
private BigDecimal latitude;
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,60 @@
|
|||||||
|
package cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.plceAchi.vo;
|
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import jakarta.validation.constraints.NotEmpty;
|
||||||
|
import jakarta.validation.constraints.NotNull;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
|
||||||
|
@Schema(description = "管理后台 - 生产厂区信息新增/修改 Request VO")
|
||||||
|
@Data
|
||||||
|
public class FactorySaveReqVO {
|
||||||
|
|
||||||
|
@Schema(description = "id", requiredMode = Schema.RequiredMode.REQUIRED, example = "20496")
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
@Schema(description = "公司编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "24201")
|
||||||
|
@NotNull(message = "公司编号不能为空")
|
||||||
|
private Long companyId;
|
||||||
|
|
||||||
|
@Schema(description = "公司名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "王五")
|
||||||
|
@NotEmpty(message = "公司名称不能为空")
|
||||||
|
private String companyName;
|
||||||
|
|
||||||
|
@Schema(description = "厂区名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "李四")
|
||||||
|
@NotEmpty(message = "厂区名称不能为空")
|
||||||
|
private String factoryName;
|
||||||
|
|
||||||
|
@Schema(description = "厂区编码", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||||
|
@NotEmpty(message = "厂区编码不能为空")
|
||||||
|
private String factoryCoding;
|
||||||
|
|
||||||
|
@Schema(description = "是否境外")
|
||||||
|
private String isForeign;
|
||||||
|
|
||||||
|
@Schema(description = "国内区域")
|
||||||
|
private String internalArea;
|
||||||
|
|
||||||
|
@Schema(description = "国外区域")
|
||||||
|
private String foreignArea;
|
||||||
|
|
||||||
|
@Schema(description = "省(直辖市)")
|
||||||
|
private String state;
|
||||||
|
|
||||||
|
@Schema(description = "市(区)")
|
||||||
|
private String municipality;
|
||||||
|
|
||||||
|
@Schema(description = "是否开启队列")
|
||||||
|
private String isQueue;
|
||||||
|
|
||||||
|
@Schema(description = "排队方式")
|
||||||
|
private String queueWay;
|
||||||
|
|
||||||
|
@Schema(description = "经度")
|
||||||
|
private BigDecimal longitude;
|
||||||
|
|
||||||
|
@Schema(description = "纬度")
|
||||||
|
private BigDecimal latitude;
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,17 @@
|
|||||||
|
package cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.plceAchi.vo;
|
||||||
|
|
||||||
|
import cn.iocoder.yudao.framework.common.pojo.PageParam;
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
@Schema(description = "管理后台 - 门岗信息分页 Request VO")
|
||||||
|
@Data
|
||||||
|
public class GateConfigPageReqVO extends PageParam {
|
||||||
|
|
||||||
|
@Schema(description = "地点名称", example = "李四")
|
||||||
|
private String gateName;
|
||||||
|
|
||||||
|
@Schema(description = "地点编码")
|
||||||
|
private String gateCoding;
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,75 @@
|
|||||||
|
package cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.plceAchi.vo;
|
||||||
|
|
||||||
|
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
|
||||||
|
import com.alibaba.excel.annotation.ExcelProperty;
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
|
||||||
|
@Schema(description = "管理后台 - 门岗信息 Response VO")
|
||||||
|
@Data
|
||||||
|
@ExcelIgnoreUnannotated
|
||||||
|
public class GateConfigRespVO {
|
||||||
|
|
||||||
|
@Schema(description = "id", requiredMode = Schema.RequiredMode.REQUIRED, example = "15119")
|
||||||
|
@ExcelProperty("id")
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
@Schema(description = "公司编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "16394")
|
||||||
|
@ExcelProperty("公司编号")
|
||||||
|
private Long companyId;
|
||||||
|
|
||||||
|
@Schema(description = "公司名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋艿")
|
||||||
|
@ExcelProperty("公司名称")
|
||||||
|
private String companyName;
|
||||||
|
|
||||||
|
@Schema(description = "地点名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "李四")
|
||||||
|
@ExcelProperty("地点名称")
|
||||||
|
private String gateName;
|
||||||
|
|
||||||
|
@Schema(description = "地点编码", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||||
|
@ExcelProperty("地点编码")
|
||||||
|
private String gateCoding;
|
||||||
|
|
||||||
|
@Schema(description = "地点别名")
|
||||||
|
@ExcelProperty("地点别名")
|
||||||
|
private String gateAlias;
|
||||||
|
|
||||||
|
@Schema(description = "地理位置")
|
||||||
|
@ExcelProperty("地理位置")
|
||||||
|
private String location;
|
||||||
|
|
||||||
|
@Schema(description = "省(直辖市)")
|
||||||
|
@ExcelProperty("省(直辖市)")
|
||||||
|
private String state;
|
||||||
|
|
||||||
|
@Schema(description = "市(区)")
|
||||||
|
@ExcelProperty("市(区)")
|
||||||
|
private String municipality;
|
||||||
|
|
||||||
|
@Schema(description = "管理区域")
|
||||||
|
@ExcelProperty("管理区域")
|
||||||
|
private String managementArea;
|
||||||
|
|
||||||
|
@Schema(description = "首选")
|
||||||
|
@ExcelProperty("首选")
|
||||||
|
private String first;
|
||||||
|
|
||||||
|
@Schema(description = "进出限制")
|
||||||
|
@ExcelProperty("进出限制")
|
||||||
|
private String limit;
|
||||||
|
|
||||||
|
@Schema(description = "作业系统")
|
||||||
|
@ExcelProperty("作业系统")
|
||||||
|
private String system;
|
||||||
|
|
||||||
|
@Schema(description = "经度")
|
||||||
|
@ExcelProperty("经度")
|
||||||
|
private BigDecimal longitude;
|
||||||
|
|
||||||
|
@Schema(description = "纬度")
|
||||||
|
@ExcelProperty("纬度")
|
||||||
|
private BigDecimal latitude;
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,64 @@
|
|||||||
|
package cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.plceAchi.vo;
|
||||||
|
|
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import jakarta.validation.constraints.NotEmpty;
|
||||||
|
import jakarta.validation.constraints.NotNull;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
|
||||||
|
@Schema(description = "管理后台 - 门岗信息新增/修改 Request VO")
|
||||||
|
@Data
|
||||||
|
public class GateConfigSaveReqVO {
|
||||||
|
|
||||||
|
@Schema(description = "id", requiredMode = Schema.RequiredMode.REQUIRED, example = "15119")
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
@Schema(description = "公司编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "16394")
|
||||||
|
@NotNull(message = "公司编号不能为空")
|
||||||
|
private Long companyId;
|
||||||
|
|
||||||
|
@Schema(description = "公司名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋艿")
|
||||||
|
@NotEmpty(message = "公司名称不能为空")
|
||||||
|
private String companyName;
|
||||||
|
|
||||||
|
@Schema(description = "地点名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "李四")
|
||||||
|
@NotEmpty(message = "地点名称不能为空")
|
||||||
|
private String gateName;
|
||||||
|
|
||||||
|
@Schema(description = "地点编码", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||||
|
@NotEmpty(message = "地点编码不能为空")
|
||||||
|
private String gateCoding;
|
||||||
|
|
||||||
|
@Schema(description = "地点别名")
|
||||||
|
private String gateAlias;
|
||||||
|
|
||||||
|
@Schema(description = "地理位置")
|
||||||
|
private String location;
|
||||||
|
|
||||||
|
@Schema(description = "省(直辖市)")
|
||||||
|
private String state;
|
||||||
|
|
||||||
|
@Schema(description = "市(区)")
|
||||||
|
private String municipality;
|
||||||
|
|
||||||
|
@Schema(description = "管理区域")
|
||||||
|
private String managementArea;
|
||||||
|
|
||||||
|
@Schema(description = "首选")
|
||||||
|
private String first;
|
||||||
|
|
||||||
|
@Schema(description = "进出限制")
|
||||||
|
private String limit;
|
||||||
|
|
||||||
|
@Schema(description = "作业系统")
|
||||||
|
private String system;
|
||||||
|
|
||||||
|
@Schema(description = "经度")
|
||||||
|
private BigDecimal longitude;
|
||||||
|
|
||||||
|
@Schema(description = "纬度")
|
||||||
|
private BigDecimal latitude;
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,17 @@
|
|||||||
|
package cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.plceAchi.vo;
|
||||||
|
|
||||||
|
import cn.iocoder.yudao.framework.common.pojo.PageParam;
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
@Schema(description = "管理后台 - 地点档案物料信息分页 Request VO")
|
||||||
|
@Data
|
||||||
|
public class PlaceArchiveMaterialPageReqVO extends PageParam {
|
||||||
|
|
||||||
|
@Schema(description = "MDM编码")
|
||||||
|
private String mDMCoding;
|
||||||
|
|
||||||
|
@Schema(description = "物料名称", example = "李四")
|
||||||
|
private String materialName;
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,97 @@
|
|||||||
|
package cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.plceAchi.vo;
|
||||||
|
|
||||||
|
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
|
||||||
|
import com.alibaba.excel.annotation.ExcelProperty;
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
@Schema(description = "管理后台 - 地点档案物料信息 Response VO")
|
||||||
|
@Data
|
||||||
|
@ExcelIgnoreUnannotated
|
||||||
|
public class PlaceArchiveMaterialRespVO {
|
||||||
|
|
||||||
|
@Schema(description = "id", requiredMode = Schema.RequiredMode.REQUIRED, example = "11100")
|
||||||
|
@ExcelProperty("id")
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
@Schema(description = "公司编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "2988")
|
||||||
|
@ExcelProperty("公司编号")
|
||||||
|
private Long companyId;
|
||||||
|
|
||||||
|
@Schema(description = "公司名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋艿")
|
||||||
|
@ExcelProperty("公司名称")
|
||||||
|
private String companyName;
|
||||||
|
|
||||||
|
@Schema(description = "SAP编码")
|
||||||
|
@ExcelProperty("SAP编码")
|
||||||
|
private String sapCoding;
|
||||||
|
|
||||||
|
@Schema(description = "MDM编码")
|
||||||
|
@ExcelProperty("MDM编码")
|
||||||
|
private String mDMCoding;
|
||||||
|
|
||||||
|
@Schema(description = "物料名称", example = "李四")
|
||||||
|
@ExcelProperty("物料名称")
|
||||||
|
private String materialName;
|
||||||
|
|
||||||
|
@Schema(description = "长描述")
|
||||||
|
@ExcelProperty("长描述")
|
||||||
|
private String logoDescription;
|
||||||
|
|
||||||
|
@Schema(description = "计量单位")
|
||||||
|
@ExcelProperty("计量单位")
|
||||||
|
private String materialUnit;
|
||||||
|
|
||||||
|
@Schema(description = "物料类型", example = "1")
|
||||||
|
@ExcelProperty("物料类型")
|
||||||
|
private String materialType;
|
||||||
|
|
||||||
|
@Schema(description = "型号")
|
||||||
|
@ExcelProperty("型号")
|
||||||
|
private String model;
|
||||||
|
|
||||||
|
@Schema(description = "规格")
|
||||||
|
@ExcelProperty("规格")
|
||||||
|
private String specification;
|
||||||
|
|
||||||
|
@Schema(description = "材质")
|
||||||
|
@ExcelProperty("材质")
|
||||||
|
private String materialQuality;
|
||||||
|
|
||||||
|
@Schema(description = "图号")
|
||||||
|
@ExcelProperty("图号")
|
||||||
|
private String graphNo;
|
||||||
|
|
||||||
|
@Schema(description = "其他参数")
|
||||||
|
@ExcelProperty("其他参数")
|
||||||
|
private String otherParameter;
|
||||||
|
|
||||||
|
@Schema(description = "大类代码")
|
||||||
|
@ExcelProperty("大类代码")
|
||||||
|
private String bigTypeCode;
|
||||||
|
|
||||||
|
@Schema(description = "大类名称", example = "赵六")
|
||||||
|
@ExcelProperty("大类名称")
|
||||||
|
private String bigTypeName;
|
||||||
|
|
||||||
|
@Schema(description = "中类代码")
|
||||||
|
@ExcelProperty("中类代码")
|
||||||
|
private String middleTypeCode;
|
||||||
|
|
||||||
|
@Schema(description = "中类名称", example = "赵六")
|
||||||
|
@ExcelProperty("中类名称")
|
||||||
|
private String middleTypeName;
|
||||||
|
|
||||||
|
@Schema(description = "小类代码")
|
||||||
|
@ExcelProperty("小类代码")
|
||||||
|
private String smallTypeCode;
|
||||||
|
|
||||||
|
@Schema(description = "小类名称", example = "李四")
|
||||||
|
@ExcelProperty("小类名称")
|
||||||
|
private String smallTypeName;
|
||||||
|
|
||||||
|
@Schema(description = "地点类型", example = "2")
|
||||||
|
@ExcelProperty("地点类型")
|
||||||
|
private String placeType;
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,77 @@
|
|||||||
|
package cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.plceAchi.vo;
|
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import jakarta.validation.constraints.NotEmpty;
|
||||||
|
import jakarta.validation.constraints.NotNull;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
@Schema(description = "管理后台 - 地点档案物料信息新增/修改 Request VO")
|
||||||
|
@Data
|
||||||
|
public class PlaceArchiveMaterialSaveReqVO {
|
||||||
|
|
||||||
|
@Schema(description = "id", requiredMode = Schema.RequiredMode.REQUIRED, example = "11100")
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
@Schema(description = "公司编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "2988")
|
||||||
|
@NotNull(message = "公司编号不能为空")
|
||||||
|
private Long companyId;
|
||||||
|
|
||||||
|
@Schema(description = "公司名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋艿")
|
||||||
|
@NotEmpty(message = "公司名称不能为空")
|
||||||
|
private String companyName;
|
||||||
|
|
||||||
|
@Schema(description = "SAP编码")
|
||||||
|
private String sapCoding;
|
||||||
|
|
||||||
|
@Schema(description = "MDM编码")
|
||||||
|
private String mDMCoding;
|
||||||
|
|
||||||
|
@Schema(description = "物料名称", example = "李四")
|
||||||
|
private String materialName;
|
||||||
|
|
||||||
|
@Schema(description = "长描述")
|
||||||
|
private String logoDescription;
|
||||||
|
|
||||||
|
@Schema(description = "计量单位")
|
||||||
|
private String materialUnit;
|
||||||
|
|
||||||
|
@Schema(description = "物料类型", example = "1")
|
||||||
|
private String materialType;
|
||||||
|
|
||||||
|
@Schema(description = "型号")
|
||||||
|
private String model;
|
||||||
|
|
||||||
|
@Schema(description = "规格")
|
||||||
|
private String specification;
|
||||||
|
|
||||||
|
@Schema(description = "材质")
|
||||||
|
private String materialQuality;
|
||||||
|
|
||||||
|
@Schema(description = "图号")
|
||||||
|
private String graphNo;
|
||||||
|
|
||||||
|
@Schema(description = "其他参数")
|
||||||
|
private String otherParameter;
|
||||||
|
|
||||||
|
@Schema(description = "大类代码")
|
||||||
|
private String bigTypeCode;
|
||||||
|
|
||||||
|
@Schema(description = "大类名称", example = "赵六")
|
||||||
|
private String bigTypeName;
|
||||||
|
|
||||||
|
@Schema(description = "中类代码")
|
||||||
|
private String middleTypeCode;
|
||||||
|
|
||||||
|
@Schema(description = "中类名称", example = "赵六")
|
||||||
|
private String middleTypeName;
|
||||||
|
|
||||||
|
@Schema(description = "小类代码")
|
||||||
|
private String smallTypeCode;
|
||||||
|
|
||||||
|
@Schema(description = "小类名称", example = "李四")
|
||||||
|
private String smallTypeName;
|
||||||
|
|
||||||
|
@Schema(description = "地点类型", example = "2")
|
||||||
|
private String placeType;
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,17 @@
|
|||||||
|
package cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.plceAchi.vo;
|
||||||
|
|
||||||
|
import cn.iocoder.yudao.framework.common.pojo.PageParam;
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
@Schema(description = "管理后台 - 港口信息分页 Request VO")
|
||||||
|
@Data
|
||||||
|
public class PortPageReqVO extends PageParam {
|
||||||
|
|
||||||
|
@Schema(description = "港口名称", example = "赵六")
|
||||||
|
private String portName;
|
||||||
|
|
||||||
|
@Schema(description = "港口编码")
|
||||||
|
private String portCoding;
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,87 @@
|
|||||||
|
package cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.plceAchi.vo;
|
||||||
|
|
||||||
|
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
|
||||||
|
import com.alibaba.excel.annotation.ExcelProperty;
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
|
||||||
|
@Schema(description = "管理后台 - 港口信息 Response VO")
|
||||||
|
@Data
|
||||||
|
@ExcelIgnoreUnannotated
|
||||||
|
public class PortRespVO {
|
||||||
|
|
||||||
|
@Schema(description = "id", requiredMode = Schema.RequiredMode.REQUIRED, example = "30663")
|
||||||
|
@ExcelProperty("id")
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
@Schema(description = "公司编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "20255")
|
||||||
|
@ExcelProperty("公司编号")
|
||||||
|
private Long companyId;
|
||||||
|
|
||||||
|
@Schema(description = "公司名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "李四")
|
||||||
|
@ExcelProperty("公司名称")
|
||||||
|
private String companyName;
|
||||||
|
|
||||||
|
@Schema(description = "港口名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "赵六")
|
||||||
|
@ExcelProperty("港口名称")
|
||||||
|
private String portName;
|
||||||
|
|
||||||
|
@Schema(description = "港口编码", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||||
|
@ExcelProperty("港口编码")
|
||||||
|
private String portCoding;
|
||||||
|
|
||||||
|
@Schema(description = "是否境外")
|
||||||
|
@ExcelProperty("是否境外")
|
||||||
|
private String isForeign;
|
||||||
|
|
||||||
|
@Schema(description = "国内区域")
|
||||||
|
@ExcelProperty("国内区域")
|
||||||
|
private String internalArea;
|
||||||
|
|
||||||
|
@Schema(description = "国外区域")
|
||||||
|
@ExcelProperty("国外区域")
|
||||||
|
private String foreignArea;
|
||||||
|
|
||||||
|
@Schema(description = "省(直辖市)")
|
||||||
|
@ExcelProperty("省(直辖市)")
|
||||||
|
private String state;
|
||||||
|
|
||||||
|
@Schema(description = "市(区)")
|
||||||
|
@ExcelProperty("市(区)")
|
||||||
|
private String municipality;
|
||||||
|
|
||||||
|
@Schema(description = "港口类型", example = "2")
|
||||||
|
@ExcelProperty("港口类型")
|
||||||
|
private String portType;
|
||||||
|
|
||||||
|
@Schema(description = "港口水深")
|
||||||
|
@ExcelProperty("港口水深")
|
||||||
|
private BigDecimal portWaterDepth;
|
||||||
|
|
||||||
|
@Schema(description = "泊位数量")
|
||||||
|
@ExcelProperty("泊位数量")
|
||||||
|
private BigDecimal berthQuantity;
|
||||||
|
|
||||||
|
@Schema(description = "最大吞吐量")
|
||||||
|
@ExcelProperty("最大吞吐量")
|
||||||
|
private BigDecimal maximumThroughput;
|
||||||
|
|
||||||
|
@Schema(description = "主营资源")
|
||||||
|
@ExcelProperty("主营资源")
|
||||||
|
private String mainResource;
|
||||||
|
|
||||||
|
@Schema(description = "关联仓储")
|
||||||
|
@ExcelProperty("关联仓储")
|
||||||
|
private String correlationWarehouse;
|
||||||
|
|
||||||
|
@Schema(description = "经度")
|
||||||
|
@ExcelProperty("经度")
|
||||||
|
private BigDecimal longitude;
|
||||||
|
|
||||||
|
@Schema(description = "纬度")
|
||||||
|
@ExcelProperty("纬度")
|
||||||
|
private BigDecimal latitude;
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,72 @@
|
|||||||
|
package cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.plceAchi.vo;
|
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import jakarta.validation.constraints.NotEmpty;
|
||||||
|
import jakarta.validation.constraints.NotNull;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
|
||||||
|
@Schema(description = "管理后台 - 港口信息新增/修改 Request VO")
|
||||||
|
@Data
|
||||||
|
public class PortSaveReqVO {
|
||||||
|
|
||||||
|
@Schema(description = "id", requiredMode = Schema.RequiredMode.REQUIRED, example = "30663")
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
@Schema(description = "公司编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "20255")
|
||||||
|
@NotNull(message = "公司编号不能为空")
|
||||||
|
private Long companyId;
|
||||||
|
|
||||||
|
@Schema(description = "公司名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "李四")
|
||||||
|
@NotEmpty(message = "公司名称不能为空")
|
||||||
|
private String companyName;
|
||||||
|
|
||||||
|
@Schema(description = "港口名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "赵六")
|
||||||
|
@NotEmpty(message = "港口名称不能为空")
|
||||||
|
private String portName;
|
||||||
|
|
||||||
|
@Schema(description = "港口编码", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||||
|
@NotEmpty(message = "港口编码不能为空")
|
||||||
|
private String portCoding;
|
||||||
|
|
||||||
|
@Schema(description = "是否境外")
|
||||||
|
private String isForeign;
|
||||||
|
|
||||||
|
@Schema(description = "国内区域")
|
||||||
|
private String internalArea;
|
||||||
|
|
||||||
|
@Schema(description = "国外区域")
|
||||||
|
private String foreignArea;
|
||||||
|
|
||||||
|
@Schema(description = "省(直辖市)")
|
||||||
|
private String state;
|
||||||
|
|
||||||
|
@Schema(description = "市(区)")
|
||||||
|
private String municipality;
|
||||||
|
|
||||||
|
@Schema(description = "港口类型", example = "2")
|
||||||
|
private String portType;
|
||||||
|
|
||||||
|
@Schema(description = "港口水深")
|
||||||
|
private BigDecimal portWaterDepth;
|
||||||
|
|
||||||
|
@Schema(description = "泊位数量")
|
||||||
|
private BigDecimal berthQuantity;
|
||||||
|
|
||||||
|
@Schema(description = "最大吞吐量")
|
||||||
|
private BigDecimal maximumThroughput;
|
||||||
|
|
||||||
|
@Schema(description = "主营资源")
|
||||||
|
private String mainResource;
|
||||||
|
|
||||||
|
@Schema(description = "关联仓储")
|
||||||
|
private String correlationWarehouse;
|
||||||
|
|
||||||
|
@Schema(description = "经度")
|
||||||
|
private BigDecimal longitude;
|
||||||
|
|
||||||
|
@Schema(description = "纬度")
|
||||||
|
private BigDecimal latitude;
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,17 @@
|
|||||||
|
package cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.plceAchi.vo;
|
||||||
|
|
||||||
|
import cn.iocoder.yudao.framework.common.pojo.PageParam;
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
@Schema(description = "管理后台 - 铁路站点维护分页 Request VO")
|
||||||
|
@Data
|
||||||
|
public class RailwayStationPageReqVO extends PageParam {
|
||||||
|
|
||||||
|
@Schema(description = "车站名称", example = "王五")
|
||||||
|
private String railwayStationName;
|
||||||
|
|
||||||
|
@Schema(description = "车站代码")
|
||||||
|
private String railwayStationCoding;
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,59 @@
|
|||||||
|
package cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.plceAchi.vo;
|
||||||
|
|
||||||
|
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
|
||||||
|
import com.alibaba.excel.annotation.ExcelProperty;
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
|
||||||
|
@Schema(description = "管理后台 - 铁路站点维护 Response VO")
|
||||||
|
@Data
|
||||||
|
@ExcelIgnoreUnannotated
|
||||||
|
public class RailwayStationRespVO {
|
||||||
|
|
||||||
|
@Schema(description = "id", requiredMode = Schema.RequiredMode.REQUIRED, example = "15032")
|
||||||
|
@ExcelProperty("id")
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
@Schema(description = "公司编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "24500")
|
||||||
|
@ExcelProperty("公司编号")
|
||||||
|
private Long companyId;
|
||||||
|
|
||||||
|
@Schema(description = "公司名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋艿")
|
||||||
|
@ExcelProperty("公司名称")
|
||||||
|
private String companyName;
|
||||||
|
|
||||||
|
@Schema(description = "车站名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "王五")
|
||||||
|
@ExcelProperty("车站名称")
|
||||||
|
private String railwayStationName;
|
||||||
|
|
||||||
|
@Schema(description = "车站代码", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||||
|
@ExcelProperty("车站代码")
|
||||||
|
private String railwayStationCoding;
|
||||||
|
|
||||||
|
@Schema(description = "路局")
|
||||||
|
@ExcelProperty("路局")
|
||||||
|
private String railwayBureau;
|
||||||
|
|
||||||
|
@Schema(description = "省(直辖市)")
|
||||||
|
@ExcelProperty("省(直辖市)")
|
||||||
|
private String state;
|
||||||
|
|
||||||
|
@Schema(description = "市(区)")
|
||||||
|
@ExcelProperty("市(区)")
|
||||||
|
private String municipality;
|
||||||
|
|
||||||
|
@Schema(description = "业务范围")
|
||||||
|
@ExcelProperty("业务范围")
|
||||||
|
private String businessScope;
|
||||||
|
|
||||||
|
@Schema(description = "经度")
|
||||||
|
@ExcelProperty("经度")
|
||||||
|
private BigDecimal longitude;
|
||||||
|
|
||||||
|
@Schema(description = "纬度")
|
||||||
|
@ExcelProperty("纬度")
|
||||||
|
private BigDecimal latitude;
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,51 @@
|
|||||||
|
package cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.plceAchi.vo;
|
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import jakarta.validation.constraints.NotEmpty;
|
||||||
|
import jakarta.validation.constraints.NotNull;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
|
||||||
|
@Schema(description = "管理后台 - 铁路站点维护新增/修改 Request VO")
|
||||||
|
@Data
|
||||||
|
public class RailwayStationSaveReqVO {
|
||||||
|
|
||||||
|
@Schema(description = "id", requiredMode = Schema.RequiredMode.REQUIRED, example = "15032")
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
@Schema(description = "公司编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "24500")
|
||||||
|
@NotNull(message = "公司编号不能为空")
|
||||||
|
private Long companyId;
|
||||||
|
|
||||||
|
@Schema(description = "公司名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋艿")
|
||||||
|
@NotEmpty(message = "公司名称不能为空")
|
||||||
|
private String companyName;
|
||||||
|
|
||||||
|
@Schema(description = "车站名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "王五")
|
||||||
|
@NotEmpty(message = "车站名称不能为空")
|
||||||
|
private String railwayStationName;
|
||||||
|
|
||||||
|
@Schema(description = "车站代码", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||||
|
@NotEmpty(message = "车站代码不能为空")
|
||||||
|
private String railwayStationCoding;
|
||||||
|
|
||||||
|
@Schema(description = "路局")
|
||||||
|
private String railwayBureau;
|
||||||
|
|
||||||
|
@Schema(description = "省(直辖市)")
|
||||||
|
private String state;
|
||||||
|
|
||||||
|
@Schema(description = "市(区)")
|
||||||
|
private String municipality;
|
||||||
|
|
||||||
|
@Schema(description = "业务范围")
|
||||||
|
private String businessScope;
|
||||||
|
|
||||||
|
@Schema(description = "经度")
|
||||||
|
private BigDecimal longitude;
|
||||||
|
|
||||||
|
@Schema(description = "纬度")
|
||||||
|
private BigDecimal latitude;
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,17 @@
|
|||||||
|
package cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.plceAchi.vo;
|
||||||
|
|
||||||
|
import cn.iocoder.yudao.framework.common.pojo.PageParam;
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
@Schema(description = "管理后台 - 仓库信息分页 Request VO")
|
||||||
|
@Data
|
||||||
|
public class WarehousePageReqVO extends PageParam {
|
||||||
|
|
||||||
|
@Schema(description = "仓库名称", example = "李四")
|
||||||
|
private String warehouseName;
|
||||||
|
|
||||||
|
@Schema(description = "仓库编码")
|
||||||
|
private String warehouseCoding;
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,75 @@
|
|||||||
|
package cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.plceAchi.vo;
|
||||||
|
|
||||||
|
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
|
||||||
|
import com.alibaba.excel.annotation.ExcelProperty;
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
|
||||||
|
@Schema(description = "管理后台 - 仓库信息 Response VO")
|
||||||
|
@Data
|
||||||
|
@ExcelIgnoreUnannotated
|
||||||
|
public class WarehouseRespVO {
|
||||||
|
|
||||||
|
@Schema(description = "id", requiredMode = Schema.RequiredMode.REQUIRED, example = "3591")
|
||||||
|
@ExcelProperty("id")
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
@Schema(description = "公司编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "6693")
|
||||||
|
@ExcelProperty("公司编号")
|
||||||
|
private Long companyId;
|
||||||
|
|
||||||
|
@Schema(description = "公司名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "王五")
|
||||||
|
@ExcelProperty("公司名称")
|
||||||
|
private String companyName;
|
||||||
|
|
||||||
|
@Schema(description = "仓库名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "李四")
|
||||||
|
@ExcelProperty("仓库名称")
|
||||||
|
private String warehouseName;
|
||||||
|
|
||||||
|
@Schema(description = "仓库编码", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||||
|
@ExcelProperty("仓库编码")
|
||||||
|
private String warehouseCoding;
|
||||||
|
|
||||||
|
@Schema(description = "仓库类型", example = "1")
|
||||||
|
@ExcelProperty("仓库类型")
|
||||||
|
private String warehouseType;
|
||||||
|
|
||||||
|
@Schema(description = "关联工厂")
|
||||||
|
@ExcelProperty("关联工厂")
|
||||||
|
private String correlationFactory;
|
||||||
|
|
||||||
|
@Schema(description = "仓库性质")
|
||||||
|
@ExcelProperty("仓库性质")
|
||||||
|
private String warehouseNature;
|
||||||
|
|
||||||
|
@Schema(description = "是否境外")
|
||||||
|
@ExcelProperty("是否境外")
|
||||||
|
private String isForeign;
|
||||||
|
|
||||||
|
@Schema(description = "国外区域")
|
||||||
|
@ExcelProperty("国外区域")
|
||||||
|
private String foreignArea;
|
||||||
|
|
||||||
|
@Schema(description = "省(直辖市)")
|
||||||
|
@ExcelProperty("省(直辖市)")
|
||||||
|
private String state;
|
||||||
|
|
||||||
|
@Schema(description = "市(区)")
|
||||||
|
@ExcelProperty("市(区)")
|
||||||
|
private String municipality;
|
||||||
|
|
||||||
|
@Schema(description = "国内区域")
|
||||||
|
@ExcelProperty("国内区域")
|
||||||
|
private String internalArea;
|
||||||
|
|
||||||
|
@Schema(description = "经度")
|
||||||
|
@ExcelProperty("经度")
|
||||||
|
private BigDecimal longitude;
|
||||||
|
|
||||||
|
@Schema(description = "纬度")
|
||||||
|
@ExcelProperty("纬度")
|
||||||
|
private BigDecimal latitude;
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,64 @@
|
|||||||
|
package cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.plceAchi.vo;
|
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import jakarta.validation.constraints.NotEmpty;
|
||||||
|
import jakarta.validation.constraints.NotNull;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
|
||||||
|
@Schema(description = "管理后台 - 仓库信息新增 Request VO")
|
||||||
|
@Data
|
||||||
|
public class WarehouseSaveReqVO {
|
||||||
|
@Schema(description = "租户标识", hidden = true)
|
||||||
|
private Long tenantId;
|
||||||
|
|
||||||
|
@Schema(description = "公司编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "6693")
|
||||||
|
@NotNull(message = "公司编号不能为空")
|
||||||
|
private Long companyId;
|
||||||
|
|
||||||
|
@Schema(description = "公司名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "王五")
|
||||||
|
@NotEmpty(message = "公司名称不能为空")
|
||||||
|
private String companyName;
|
||||||
|
|
||||||
|
@Schema(description = "仓库名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "李四")
|
||||||
|
@NotEmpty(message = "仓库名称不能为空")
|
||||||
|
private String warehouseName;
|
||||||
|
|
||||||
|
@Schema(description = "仓库编码", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||||
|
@NotEmpty(message = "仓库编码不能为空")
|
||||||
|
private String warehouseCoding;
|
||||||
|
|
||||||
|
@Schema(description = "仓库类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "数据字典warehouse_type")
|
||||||
|
@NotEmpty(message = "仓库类型不能为空")
|
||||||
|
private String warehouseType;
|
||||||
|
|
||||||
|
@Schema(description = "关联工厂id")
|
||||||
|
private String correlationFactory;
|
||||||
|
|
||||||
|
@Schema(description = "仓库性质", example = "数据字典warehouse_nature")
|
||||||
|
private String warehouseNature;
|
||||||
|
|
||||||
|
@Schema(description = "是否境外", requiredMode = Schema.RequiredMode.REQUIRED, example = "数据字典infra_boolean_string")
|
||||||
|
@NotEmpty(message = "是否境外不能为空")
|
||||||
|
private String isForeign;
|
||||||
|
|
||||||
|
@Schema(description = "国外区域")
|
||||||
|
private String foreignArea;
|
||||||
|
|
||||||
|
@Schema(description = "省(直辖市)")
|
||||||
|
private String state;
|
||||||
|
|
||||||
|
@Schema(description = "市(区)")
|
||||||
|
private String municipality;
|
||||||
|
|
||||||
|
@Schema(description = "国内区域")
|
||||||
|
private String internalArea;
|
||||||
|
|
||||||
|
@Schema(description = "经度")
|
||||||
|
private BigDecimal longitude;
|
||||||
|
|
||||||
|
@Schema(description = "纬度")
|
||||||
|
private BigDecimal latitude;
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
package cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.plceAchi.vo;
|
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import jakarta.validation.constraints.NotNull;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
@Schema(description = "管理后台 - 仓库信息修改 Request VO")
|
||||||
|
@Data
|
||||||
|
public class WarehouseUpdateReqVO extends WarehouseSaveReqVO{
|
||||||
|
|
||||||
|
@Schema(description = "id", requiredMode = Schema.RequiredMode.REQUIRED, example = "3591")
|
||||||
|
@NotNull(message = "id不能为空")
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,84 @@
|
|||||||
|
package cn.iocoder.yudao.module.backendlogistics.dal.dataobject.bseMngt.plceAchi;
|
||||||
|
|
||||||
|
import cn.iocoder.yudao.framework.mybatis.core.dataobject.BusinessBaseDO;
|
||||||
|
import com.baomidou.mybatisplus.annotation.*;
|
||||||
|
import lombok.*;
|
||||||
|
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
/**
|
||||||
|
* 计量点配置 DO
|
||||||
|
*
|
||||||
|
* @author 后台管理
|
||||||
|
*/
|
||||||
|
@TableName("lgst_aun_cfg")
|
||||||
|
@KeySequence("lgst_aun_cfg_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
|
||||||
|
@Data
|
||||||
|
@EqualsAndHashCode(callSuper = true)
|
||||||
|
@ToString(callSuper = true)
|
||||||
|
@Builder
|
||||||
|
@NoArgsConstructor
|
||||||
|
@AllArgsConstructor
|
||||||
|
/**
|
||||||
|
* 支持业务基类继承:isBusiness=true 时继承 BusinessBaseDO,否则继承 BaseDO
|
||||||
|
*/
|
||||||
|
public class AuncelConfigDO extends BusinessBaseDO {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* id
|
||||||
|
*/
|
||||||
|
@TableId(type = IdType.ASSIGN_ID)
|
||||||
|
private Long id;
|
||||||
|
/**
|
||||||
|
* 计量点名称
|
||||||
|
*/
|
||||||
|
@TableField("AUN_NAME")
|
||||||
|
private String auncelName;
|
||||||
|
/**
|
||||||
|
* 计量点编码
|
||||||
|
*/
|
||||||
|
@TableField("AUN_CDG")
|
||||||
|
private String auncelCoding;
|
||||||
|
/**
|
||||||
|
* 省(直辖市)
|
||||||
|
*/
|
||||||
|
@TableField("STA")
|
||||||
|
private String state;
|
||||||
|
/**
|
||||||
|
* 市(区)
|
||||||
|
*/
|
||||||
|
@TableField("MUN")
|
||||||
|
private String municipality;
|
||||||
|
/**
|
||||||
|
* 计量点类型
|
||||||
|
*/
|
||||||
|
@TableField("AUN_TP")
|
||||||
|
private String auncelType;
|
||||||
|
/**
|
||||||
|
* 地理位置
|
||||||
|
*/
|
||||||
|
@TableField("LOC")
|
||||||
|
private String location;
|
||||||
|
/**
|
||||||
|
* 空重限制
|
||||||
|
*/
|
||||||
|
@TableField("LIM")
|
||||||
|
private String limit;
|
||||||
|
/**
|
||||||
|
* 计量作业系统
|
||||||
|
*/
|
||||||
|
@TableField("SYS")
|
||||||
|
private String system;
|
||||||
|
/**
|
||||||
|
* 经度
|
||||||
|
*/
|
||||||
|
@TableField("LNG")
|
||||||
|
private BigDecimal longitude;
|
||||||
|
/**
|
||||||
|
* 纬度
|
||||||
|
*/
|
||||||
|
@TableField("LAT")
|
||||||
|
private BigDecimal latitude;
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,89 @@
|
|||||||
|
package cn.iocoder.yudao.module.backendlogistics.dal.dataobject.bseMngt.plceAchi;
|
||||||
|
|
||||||
|
import cn.iocoder.yudao.framework.mybatis.core.dataobject.BusinessBaseDO;
|
||||||
|
import com.baomidou.mybatisplus.annotation.*;
|
||||||
|
import lombok.*;
|
||||||
|
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
/**
|
||||||
|
* 客户收货地址 DO
|
||||||
|
*
|
||||||
|
* @author 后台管理
|
||||||
|
*/
|
||||||
|
@TableName("lgst_csg_adr")
|
||||||
|
@KeySequence("lgst_csg_adr_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
|
||||||
|
@Data
|
||||||
|
@EqualsAndHashCode(callSuper = true)
|
||||||
|
@ToString(callSuper = true)
|
||||||
|
@Builder
|
||||||
|
@NoArgsConstructor
|
||||||
|
@AllArgsConstructor
|
||||||
|
/**
|
||||||
|
* 支持业务基类继承:isBusiness=true 时继承 BusinessBaseDO,否则继承 BaseDO
|
||||||
|
*/
|
||||||
|
public class ConsigneeAddressDO extends BusinessBaseDO {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* id
|
||||||
|
*/
|
||||||
|
@TableId(type = IdType.ASSIGN_ID)
|
||||||
|
private Long id;
|
||||||
|
/**
|
||||||
|
* 地点名称
|
||||||
|
*/
|
||||||
|
@TableField("PLCE_NAME")
|
||||||
|
private String placeName;
|
||||||
|
/**
|
||||||
|
* 地点编码
|
||||||
|
*/
|
||||||
|
@TableField("PLCE_CDG")
|
||||||
|
private String placeCoding;
|
||||||
|
/**
|
||||||
|
* 客户名称
|
||||||
|
*/
|
||||||
|
@TableField("CSTM_NAME")
|
||||||
|
private String customerName;
|
||||||
|
/**
|
||||||
|
* MDM编码
|
||||||
|
*/
|
||||||
|
@TableField("MDM_CDG")
|
||||||
|
private String mDMCoding;
|
||||||
|
/**
|
||||||
|
* SAP编码
|
||||||
|
*/
|
||||||
|
@TableField("SAP_CDG")
|
||||||
|
private String sAPCoding;
|
||||||
|
/**
|
||||||
|
* 省(直辖市)
|
||||||
|
*/
|
||||||
|
@TableField("STA")
|
||||||
|
private String state;
|
||||||
|
/**
|
||||||
|
* 市(区)
|
||||||
|
*/
|
||||||
|
@TableField("MUN")
|
||||||
|
private String municipality;
|
||||||
|
/**
|
||||||
|
* 详细地址
|
||||||
|
*/
|
||||||
|
@TableField("LOC")
|
||||||
|
private String location;
|
||||||
|
/**
|
||||||
|
* 首选
|
||||||
|
*/
|
||||||
|
@TableField("FST")
|
||||||
|
private String first;
|
||||||
|
/**
|
||||||
|
* 经度
|
||||||
|
*/
|
||||||
|
@TableField("LNG")
|
||||||
|
private BigDecimal longitude;
|
||||||
|
/**
|
||||||
|
* 纬度
|
||||||
|
*/
|
||||||
|
@TableField("LAT")
|
||||||
|
private BigDecimal latitude;
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,89 @@
|
|||||||
|
package cn.iocoder.yudao.module.backendlogistics.dal.dataobject.bseMngt.plceAchi;
|
||||||
|
|
||||||
|
import cn.iocoder.yudao.framework.mybatis.core.dataobject.BusinessBaseDO;
|
||||||
|
import com.baomidou.mybatisplus.annotation.*;
|
||||||
|
import lombok.*;
|
||||||
|
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
/**
|
||||||
|
* 生产厂区信息 DO
|
||||||
|
*
|
||||||
|
* @author 后台管理
|
||||||
|
*/
|
||||||
|
@TableName("lgst_fact")
|
||||||
|
@KeySequence("lgst_fact_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
|
||||||
|
@Data
|
||||||
|
@EqualsAndHashCode(callSuper = true)
|
||||||
|
@ToString(callSuper = true)
|
||||||
|
@Builder
|
||||||
|
@NoArgsConstructor
|
||||||
|
@AllArgsConstructor
|
||||||
|
/**
|
||||||
|
* 支持业务基类继承:isBusiness=true 时继承 BusinessBaseDO,否则继承 BaseDO
|
||||||
|
*/
|
||||||
|
public class FactoryDO extends BusinessBaseDO {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* id
|
||||||
|
*/
|
||||||
|
@TableId(type = IdType.ASSIGN_ID)
|
||||||
|
private Long id;
|
||||||
|
/**
|
||||||
|
* 厂区名称
|
||||||
|
*/
|
||||||
|
@TableField("FACT_NAME")
|
||||||
|
private String factoryName;
|
||||||
|
/**
|
||||||
|
* 厂区编码
|
||||||
|
*/
|
||||||
|
@TableField("FACT_CDG")
|
||||||
|
private String factoryCoding;
|
||||||
|
/**
|
||||||
|
* 是否境外
|
||||||
|
*/
|
||||||
|
@TableField("IS_FRN")
|
||||||
|
private String isForeign;
|
||||||
|
/**
|
||||||
|
* 国内区域
|
||||||
|
*/
|
||||||
|
@TableField("INTL_ARE")
|
||||||
|
private String internalArea;
|
||||||
|
/**
|
||||||
|
* 国外区域
|
||||||
|
*/
|
||||||
|
@TableField("FRN_ARE")
|
||||||
|
private String foreignArea;
|
||||||
|
/**
|
||||||
|
* 省(直辖市)
|
||||||
|
*/
|
||||||
|
@TableField("STA")
|
||||||
|
private String state;
|
||||||
|
/**
|
||||||
|
* 市(区)
|
||||||
|
*/
|
||||||
|
@TableField("MUN")
|
||||||
|
private String municipality;
|
||||||
|
/**
|
||||||
|
* 是否开启队列
|
||||||
|
*/
|
||||||
|
@TableField("IS_QUE")
|
||||||
|
private String isQueue;
|
||||||
|
/**
|
||||||
|
* 排队方式
|
||||||
|
*/
|
||||||
|
@TableField("QUE_WY")
|
||||||
|
private String queueWay;
|
||||||
|
/**
|
||||||
|
* 经度
|
||||||
|
*/
|
||||||
|
@TableField("LNG")
|
||||||
|
private BigDecimal longitude;
|
||||||
|
/**
|
||||||
|
* 纬度
|
||||||
|
*/
|
||||||
|
@TableField("LAT")
|
||||||
|
private BigDecimal latitude;
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,94 @@
|
|||||||
|
package cn.iocoder.yudao.module.backendlogistics.dal.dataobject.bseMngt.plceAchi;
|
||||||
|
|
||||||
|
import cn.iocoder.yudao.framework.mybatis.core.dataobject.BusinessBaseDO;
|
||||||
|
import com.baomidou.mybatisplus.annotation.*;
|
||||||
|
import lombok.*;
|
||||||
|
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
/**
|
||||||
|
* 门岗信息 DO
|
||||||
|
*
|
||||||
|
* @author 后台管理
|
||||||
|
*/
|
||||||
|
@TableName("lgst_gte_cfg")
|
||||||
|
@KeySequence("lgst_gte_cfg_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
|
||||||
|
@Data
|
||||||
|
@EqualsAndHashCode(callSuper = true)
|
||||||
|
@ToString(callSuper = true)
|
||||||
|
@Builder
|
||||||
|
@NoArgsConstructor
|
||||||
|
@AllArgsConstructor
|
||||||
|
/**
|
||||||
|
* 支持业务基类继承:isBusiness=true 时继承 BusinessBaseDO,否则继承 BaseDO
|
||||||
|
*/
|
||||||
|
public class GateConfigDO extends BusinessBaseDO {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* id
|
||||||
|
*/
|
||||||
|
@TableId(type = IdType.ASSIGN_ID)
|
||||||
|
private Long id;
|
||||||
|
/**
|
||||||
|
* 地点名称
|
||||||
|
*/
|
||||||
|
@TableField("GTE_NAME")
|
||||||
|
private String gateName;
|
||||||
|
/**
|
||||||
|
* 地点编码
|
||||||
|
*/
|
||||||
|
@TableField("GTE_CDG")
|
||||||
|
private String gateCoding;
|
||||||
|
/**
|
||||||
|
* 地点别名
|
||||||
|
*/
|
||||||
|
@TableField("GTE_ALS")
|
||||||
|
private String gateAlias;
|
||||||
|
/**
|
||||||
|
* 地理位置
|
||||||
|
*/
|
||||||
|
@TableField("LOC")
|
||||||
|
private String location;
|
||||||
|
/**
|
||||||
|
* 省(直辖市)
|
||||||
|
*/
|
||||||
|
@TableField("STA")
|
||||||
|
private String state;
|
||||||
|
/**
|
||||||
|
* 市(区)
|
||||||
|
*/
|
||||||
|
@TableField("MUN")
|
||||||
|
private String municipality;
|
||||||
|
/**
|
||||||
|
* 管理区域
|
||||||
|
*/
|
||||||
|
@TableField("MNGT_ARE")
|
||||||
|
private String managementArea;
|
||||||
|
/**
|
||||||
|
* 首选
|
||||||
|
*/
|
||||||
|
@TableField("FST")
|
||||||
|
private String first;
|
||||||
|
/**
|
||||||
|
* 进出限制
|
||||||
|
*/
|
||||||
|
@TableField("LIM")
|
||||||
|
private String limit;
|
||||||
|
/**
|
||||||
|
* 作业系统
|
||||||
|
*/
|
||||||
|
@TableField("SYS")
|
||||||
|
private String system;
|
||||||
|
/**
|
||||||
|
* 经度
|
||||||
|
*/
|
||||||
|
@TableField("LNG")
|
||||||
|
private BigDecimal longitude;
|
||||||
|
/**
|
||||||
|
* 纬度
|
||||||
|
*/
|
||||||
|
@TableField("LAT")
|
||||||
|
private BigDecimal latitude;
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,122 @@
|
|||||||
|
package cn.iocoder.yudao.module.backendlogistics.dal.dataobject.bseMngt.plceAchi;
|
||||||
|
|
||||||
|
import cn.iocoder.yudao.framework.mybatis.core.dataobject.BusinessBaseDO;
|
||||||
|
import com.baomidou.mybatisplus.annotation.*;
|
||||||
|
import lombok.*;
|
||||||
|
/**
|
||||||
|
* 地点档案物料信息 DO
|
||||||
|
*
|
||||||
|
* @author 后台管理
|
||||||
|
*/
|
||||||
|
@TableName("lgst_plce_achi_mtrl")
|
||||||
|
@KeySequence("lgst_plce_achi_mtrl_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
|
||||||
|
@Data
|
||||||
|
@EqualsAndHashCode(callSuper = true)
|
||||||
|
@ToString(callSuper = true)
|
||||||
|
@Builder
|
||||||
|
@NoArgsConstructor
|
||||||
|
@AllArgsConstructor
|
||||||
|
/**
|
||||||
|
* 支持业务基类继承:isBusiness=true 时继承 BusinessBaseDO,否则继承 BaseDO
|
||||||
|
*/
|
||||||
|
public class PlaceArchiveMaterialDO extends BusinessBaseDO {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* id
|
||||||
|
*/
|
||||||
|
@TableId(type = IdType.ASSIGN_ID)
|
||||||
|
private Long id;
|
||||||
|
/**
|
||||||
|
* SAP编码
|
||||||
|
*/
|
||||||
|
@TableField("SAP_CDG")
|
||||||
|
private String sapCoding;
|
||||||
|
/**
|
||||||
|
* MDM编码
|
||||||
|
*/
|
||||||
|
@TableField("MDM_CDG")
|
||||||
|
private String mDMCoding;
|
||||||
|
/**
|
||||||
|
* 物料名称
|
||||||
|
*/
|
||||||
|
@TableField("MTRL_NAME")
|
||||||
|
private String materialName;
|
||||||
|
/**
|
||||||
|
* 长描述
|
||||||
|
*/
|
||||||
|
@TableField("LG_DSP")
|
||||||
|
private String logoDescription;
|
||||||
|
/**
|
||||||
|
* 计量单位
|
||||||
|
*/
|
||||||
|
@TableField("MTRL_UNT")
|
||||||
|
private String materialUnit;
|
||||||
|
/**
|
||||||
|
* 物料类型
|
||||||
|
*/
|
||||||
|
@TableField("MTRL_TP")
|
||||||
|
private String materialType;
|
||||||
|
/**
|
||||||
|
* 型号
|
||||||
|
*/
|
||||||
|
@TableField("MDL")
|
||||||
|
private String model;
|
||||||
|
/**
|
||||||
|
* 规格
|
||||||
|
*/
|
||||||
|
@TableField("SPEC")
|
||||||
|
private String specification;
|
||||||
|
/**
|
||||||
|
* 材质
|
||||||
|
*/
|
||||||
|
@TableField("MTRL_QLT")
|
||||||
|
private String materialQuality;
|
||||||
|
/**
|
||||||
|
* 图号
|
||||||
|
*/
|
||||||
|
@TableField("FIG_NO")
|
||||||
|
private String graphNo;
|
||||||
|
/**
|
||||||
|
* 其他参数
|
||||||
|
*/
|
||||||
|
@TableField("OTH_PRM")
|
||||||
|
private String otherParameter;
|
||||||
|
/**
|
||||||
|
* 大类代码
|
||||||
|
*/
|
||||||
|
@TableField("BIG_TP_CD")
|
||||||
|
private String bigTypeCode;
|
||||||
|
/**
|
||||||
|
* 大类名称
|
||||||
|
*/
|
||||||
|
@TableField("BIG_TP_NAME")
|
||||||
|
private String bigTypeName;
|
||||||
|
/**
|
||||||
|
* 中类代码
|
||||||
|
*/
|
||||||
|
@TableField("MID_TP_CD")
|
||||||
|
private String middleTypeCode;
|
||||||
|
/**
|
||||||
|
* 中类名称
|
||||||
|
*/
|
||||||
|
@TableField("MID_TP_NAME")
|
||||||
|
private String middleTypeName;
|
||||||
|
/**
|
||||||
|
* 小类代码
|
||||||
|
*/
|
||||||
|
@TableField("SMAL_TP_CD")
|
||||||
|
private String smallTypeCode;
|
||||||
|
/**
|
||||||
|
* 小类名称
|
||||||
|
*/
|
||||||
|
@TableField("SMAL_TP_NAME")
|
||||||
|
private String smallTypeName;
|
||||||
|
/**
|
||||||
|
* 地点类型
|
||||||
|
*/
|
||||||
|
@TableField("PLCE_TP")
|
||||||
|
private String placeType;
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,115 @@
|
|||||||
|
package cn.iocoder.yudao.module.backendlogistics.dal.dataobject.bseMngt.plceAchi;
|
||||||
|
|
||||||
|
import lombok.*;
|
||||||
|
import java.util.*;
|
||||||
|
import java.time.LocalDateTime;
|
||||||
|
import java.time.LocalDateTime;
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import com.baomidou.mybatisplus.annotation.*;
|
||||||
|
import cn.iocoder.yudao.framework.mybatis.core.dataobject.BusinessBaseDO;
|
||||||
|
/**
|
||||||
|
* 港口信息 DO
|
||||||
|
*
|
||||||
|
* @author 后台管理
|
||||||
|
*/
|
||||||
|
@TableName("lgst_prt")
|
||||||
|
@KeySequence("lgst_prt_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
|
||||||
|
@Data
|
||||||
|
@EqualsAndHashCode(callSuper = true)
|
||||||
|
@ToString(callSuper = true)
|
||||||
|
@Builder
|
||||||
|
@NoArgsConstructor
|
||||||
|
@AllArgsConstructor
|
||||||
|
/**
|
||||||
|
* 支持业务基类继承:isBusiness=true 时继承 BusinessBaseDO,否则继承 BaseDO
|
||||||
|
*/
|
||||||
|
public class PortDO extends BusinessBaseDO {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* id
|
||||||
|
*/
|
||||||
|
@TableId(type = IdType.ASSIGN_ID)
|
||||||
|
private Long id;
|
||||||
|
/**
|
||||||
|
* 港口名称
|
||||||
|
*/
|
||||||
|
@TableField("PRT_NAME")
|
||||||
|
private String portName;
|
||||||
|
/**
|
||||||
|
* 港口编码
|
||||||
|
*/
|
||||||
|
@TableField("PRT_CDG")
|
||||||
|
private String portCoding;
|
||||||
|
/**
|
||||||
|
* 是否境外
|
||||||
|
*/
|
||||||
|
@TableField("IS_FRN")
|
||||||
|
private String isForeign;
|
||||||
|
/**
|
||||||
|
* 国内区域
|
||||||
|
*/
|
||||||
|
@TableField("INTL_ARE")
|
||||||
|
private String internalArea;
|
||||||
|
/**
|
||||||
|
* 国外区域
|
||||||
|
*/
|
||||||
|
@TableField("FRN_ARE")
|
||||||
|
private String foreignArea;
|
||||||
|
/**
|
||||||
|
* 省(直辖市)
|
||||||
|
*/
|
||||||
|
@TableField("STA")
|
||||||
|
private String state;
|
||||||
|
/**
|
||||||
|
* 市(区)
|
||||||
|
*/
|
||||||
|
@TableField("MUN")
|
||||||
|
private String municipality;
|
||||||
|
/**
|
||||||
|
* 港口类型
|
||||||
|
*/
|
||||||
|
@TableField("PRT_TP")
|
||||||
|
private String portType;
|
||||||
|
/**
|
||||||
|
* 港口水深
|
||||||
|
*/
|
||||||
|
@TableField("PRT_WTR_DPTH")
|
||||||
|
private BigDecimal portWaterDepth;
|
||||||
|
/**
|
||||||
|
* 泊位数量
|
||||||
|
*/
|
||||||
|
@TableField("BTH_QTY")
|
||||||
|
private BigDecimal berthQuantity;
|
||||||
|
/**
|
||||||
|
* 最大吞吐量
|
||||||
|
*/
|
||||||
|
@TableField("MAX_TPT")
|
||||||
|
private BigDecimal maximumThroughput;
|
||||||
|
/**
|
||||||
|
* 主营资源
|
||||||
|
*/
|
||||||
|
@TableField("MAIN_RSRC")
|
||||||
|
private String mainResource;
|
||||||
|
/**
|
||||||
|
* 关联仓储
|
||||||
|
*/
|
||||||
|
@TableField("CORR_WRH")
|
||||||
|
private String correlationWarehouse;
|
||||||
|
/**
|
||||||
|
* 经度
|
||||||
|
*/
|
||||||
|
@TableField("LNG")
|
||||||
|
private BigDecimal longitude;
|
||||||
|
/**
|
||||||
|
* 纬度
|
||||||
|
*/
|
||||||
|
@TableField("LAT")
|
||||||
|
private BigDecimal latitude;
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,74 @@
|
|||||||
|
package cn.iocoder.yudao.module.backendlogistics.dal.dataobject.bseMngt.plceAchi;
|
||||||
|
|
||||||
|
import cn.iocoder.yudao.framework.mybatis.core.dataobject.BusinessBaseDO;
|
||||||
|
import com.baomidou.mybatisplus.annotation.*;
|
||||||
|
import lombok.*;
|
||||||
|
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
/**
|
||||||
|
* 铁路站点维护 DO
|
||||||
|
*
|
||||||
|
* @author 后台管理
|
||||||
|
*/
|
||||||
|
@TableName("lgst_rlwy_stn")
|
||||||
|
@KeySequence("lgst_rlwy_stn_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
|
||||||
|
@Data
|
||||||
|
@EqualsAndHashCode(callSuper = true)
|
||||||
|
@ToString(callSuper = true)
|
||||||
|
@Builder
|
||||||
|
@NoArgsConstructor
|
||||||
|
@AllArgsConstructor
|
||||||
|
/**
|
||||||
|
* 支持业务基类继承:isBusiness=true 时继承 BusinessBaseDO,否则继承 BaseDO
|
||||||
|
*/
|
||||||
|
public class RailwayStationDO extends BusinessBaseDO {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* id
|
||||||
|
*/
|
||||||
|
@TableId(type = IdType.ASSIGN_ID)
|
||||||
|
private Long id;
|
||||||
|
/**
|
||||||
|
* 车站名称
|
||||||
|
*/
|
||||||
|
@TableField("RLWY_STN_NAME")
|
||||||
|
private String railwayStationName;
|
||||||
|
/**
|
||||||
|
* 车站代码
|
||||||
|
*/
|
||||||
|
@TableField("RLWY_STN_CDG")
|
||||||
|
private String railwayStationCoding;
|
||||||
|
/**
|
||||||
|
* 路局
|
||||||
|
*/
|
||||||
|
@TableField("RLWY_BU")
|
||||||
|
private String railwayBureau;
|
||||||
|
/**
|
||||||
|
* 省(直辖市)
|
||||||
|
*/
|
||||||
|
@TableField("STA")
|
||||||
|
private String state;
|
||||||
|
/**
|
||||||
|
* 市(区)
|
||||||
|
*/
|
||||||
|
@TableField("MUN")
|
||||||
|
private String municipality;
|
||||||
|
/**
|
||||||
|
* 业务范围
|
||||||
|
*/
|
||||||
|
@TableField("BSN_SCO")
|
||||||
|
private String businessScope;
|
||||||
|
/**
|
||||||
|
* 经度
|
||||||
|
*/
|
||||||
|
@TableField("LNG")
|
||||||
|
private BigDecimal longitude;
|
||||||
|
/**
|
||||||
|
* 纬度
|
||||||
|
*/
|
||||||
|
@TableField("LAT")
|
||||||
|
private BigDecimal latitude;
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,94 @@
|
|||||||
|
package cn.iocoder.yudao.module.backendlogistics.dal.dataobject.bseMngt.plceAchi;
|
||||||
|
|
||||||
|
import cn.iocoder.yudao.framework.mybatis.core.dataobject.BusinessBaseDO;
|
||||||
|
import com.baomidou.mybatisplus.annotation.*;
|
||||||
|
import lombok.*;
|
||||||
|
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
/**
|
||||||
|
* 仓库信息 DO
|
||||||
|
*
|
||||||
|
* @author 后台管理
|
||||||
|
*/
|
||||||
|
@TableName("lgst_wrh")
|
||||||
|
@KeySequence("lgst_wrh_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。
|
||||||
|
@Data
|
||||||
|
@EqualsAndHashCode(callSuper = true)
|
||||||
|
@ToString(callSuper = true)
|
||||||
|
@Builder
|
||||||
|
@NoArgsConstructor
|
||||||
|
@AllArgsConstructor
|
||||||
|
/**
|
||||||
|
* 支持业务基类继承:isBusiness=true 时继承 BusinessBaseDO,否则继承 BaseDO
|
||||||
|
*/
|
||||||
|
public class WarehouseDO extends BusinessBaseDO {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* id
|
||||||
|
*/
|
||||||
|
@TableId(type = IdType.ASSIGN_ID)
|
||||||
|
private Long id;
|
||||||
|
/**
|
||||||
|
* 仓库名称
|
||||||
|
*/
|
||||||
|
@TableField("WRH_NAME")
|
||||||
|
private String warehouseName;
|
||||||
|
/**
|
||||||
|
* 仓库编码
|
||||||
|
*/
|
||||||
|
@TableField("WRH_CDG")
|
||||||
|
private String warehouseCoding;
|
||||||
|
/**
|
||||||
|
* 仓库类型
|
||||||
|
*/
|
||||||
|
@TableField("WRH_TP")
|
||||||
|
private String warehouseType;
|
||||||
|
/**
|
||||||
|
* 关联工厂
|
||||||
|
*/
|
||||||
|
@TableField("CORR_FACT")
|
||||||
|
private String correlationFactory;
|
||||||
|
/**
|
||||||
|
* 仓库性质
|
||||||
|
*/
|
||||||
|
@TableField("WRH_NTR")
|
||||||
|
private String warehouseNature;
|
||||||
|
/**
|
||||||
|
* 是否境外
|
||||||
|
*/
|
||||||
|
@TableField("IS_FRN")
|
||||||
|
private String isForeign;
|
||||||
|
/**
|
||||||
|
* 国外区域
|
||||||
|
*/
|
||||||
|
@TableField("FRN_ARE")
|
||||||
|
private String foreignArea;
|
||||||
|
/**
|
||||||
|
* 省(直辖市)
|
||||||
|
*/
|
||||||
|
@TableField("STA")
|
||||||
|
private String state;
|
||||||
|
/**
|
||||||
|
* 市(区)
|
||||||
|
*/
|
||||||
|
@TableField("MUN")
|
||||||
|
private String municipality;
|
||||||
|
/**
|
||||||
|
* 国内区域
|
||||||
|
*/
|
||||||
|
@TableField("INTL_ARE")
|
||||||
|
private String internalArea;
|
||||||
|
/**
|
||||||
|
* 经度
|
||||||
|
*/
|
||||||
|
@TableField("LNG")
|
||||||
|
private BigDecimal longitude;
|
||||||
|
/**
|
||||||
|
* 纬度
|
||||||
|
*/
|
||||||
|
@TableField("LAT")
|
||||||
|
private BigDecimal latitude;
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,25 @@
|
|||||||
|
package cn.iocoder.yudao.module.backendlogistics.dal.mysql.bseMngt.plceAchi;
|
||||||
|
|
||||||
|
import cn.iocoder.yudao.framework.common.pojo.PageResult;
|
||||||
|
import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
|
||||||
|
import cn.iocoder.yudao.framework.mybatis.core.query.LambdaQueryWrapperX;
|
||||||
|
import cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.plceAchi.vo.AuncelConfigPageReqVO;
|
||||||
|
import cn.iocoder.yudao.module.backendlogistics.dal.dataobject.bseMngt.plceAchi.AuncelConfigDO;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 计量点配置 Mapper
|
||||||
|
*
|
||||||
|
* @author 后台管理
|
||||||
|
*/
|
||||||
|
@Mapper
|
||||||
|
public interface AuncelConfigMapper extends BaseMapperX<AuncelConfigDO> {
|
||||||
|
|
||||||
|
default PageResult<AuncelConfigDO> selectPage(AuncelConfigPageReqVO reqVO) {
|
||||||
|
return selectPage(reqVO, new LambdaQueryWrapperX<AuncelConfigDO>()
|
||||||
|
.likeIfPresent(AuncelConfigDO::getAuncelName, reqVO.getAuncelName())
|
||||||
|
.likeIfPresent(AuncelConfigDO::getAuncelCoding, reqVO.getAuncelCoding())
|
||||||
|
.orderByDesc(AuncelConfigDO::getId));
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,25 @@
|
|||||||
|
package cn.iocoder.yudao.module.backendlogistics.dal.mysql.bseMngt.plceAchi;
|
||||||
|
|
||||||
|
import cn.iocoder.yudao.framework.common.pojo.PageResult;
|
||||||
|
import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
|
||||||
|
import cn.iocoder.yudao.framework.mybatis.core.query.LambdaQueryWrapperX;
|
||||||
|
import cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.plceAchi.vo.ConsigneeAddressPageReqVO;
|
||||||
|
import cn.iocoder.yudao.module.backendlogistics.dal.dataobject.bseMngt.plceAchi.ConsigneeAddressDO;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 客户收货地址 Mapper
|
||||||
|
*
|
||||||
|
* @author 后台管理
|
||||||
|
*/
|
||||||
|
@Mapper
|
||||||
|
public interface ConsigneeAddressMapper extends BaseMapperX<ConsigneeAddressDO> {
|
||||||
|
|
||||||
|
default PageResult<ConsigneeAddressDO> selectPage(ConsigneeAddressPageReqVO reqVO) {
|
||||||
|
return selectPage(reqVO, new LambdaQueryWrapperX<ConsigneeAddressDO>()
|
||||||
|
.likeIfPresent(ConsigneeAddressDO::getPlaceName, reqVO.getPlaceName())
|
||||||
|
.likeIfPresent(ConsigneeAddressDO::getPlaceCoding, reqVO.getPlaceCoding())
|
||||||
|
.orderByDesc(ConsigneeAddressDO::getId));
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,25 @@
|
|||||||
|
package cn.iocoder.yudao.module.backendlogistics.dal.mysql.bseMngt.plceAchi;
|
||||||
|
|
||||||
|
import cn.iocoder.yudao.framework.common.pojo.PageResult;
|
||||||
|
import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
|
||||||
|
import cn.iocoder.yudao.framework.mybatis.core.query.LambdaQueryWrapperX;
|
||||||
|
import cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.plceAchi.vo.FactoryPageReqVO;
|
||||||
|
import cn.iocoder.yudao.module.backendlogistics.dal.dataobject.bseMngt.plceAchi.FactoryDO;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 生产厂区信息 Mapper
|
||||||
|
*
|
||||||
|
* @author 后台管理
|
||||||
|
*/
|
||||||
|
@Mapper
|
||||||
|
public interface FactoryMapper extends BaseMapperX<FactoryDO> {
|
||||||
|
|
||||||
|
default PageResult<FactoryDO> selectPage(FactoryPageReqVO reqVO) {
|
||||||
|
return selectPage(reqVO, new LambdaQueryWrapperX<FactoryDO>()
|
||||||
|
.likeIfPresent(FactoryDO::getFactoryName, reqVO.getFactoryName())
|
||||||
|
.likeIfPresent(FactoryDO::getFactoryCoding, reqVO.getFactoryCoding())
|
||||||
|
.orderByDesc(FactoryDO::getId));
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,25 @@
|
|||||||
|
package cn.iocoder.yudao.module.backendlogistics.dal.mysql.bseMngt.plceAchi;
|
||||||
|
|
||||||
|
import cn.iocoder.yudao.framework.common.pojo.PageResult;
|
||||||
|
import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
|
||||||
|
import cn.iocoder.yudao.framework.mybatis.core.query.LambdaQueryWrapperX;
|
||||||
|
import cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.plceAchi.vo.GateConfigPageReqVO;
|
||||||
|
import cn.iocoder.yudao.module.backendlogistics.dal.dataobject.bseMngt.plceAchi.GateConfigDO;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 门岗信息 Mapper
|
||||||
|
*
|
||||||
|
* @author 后台管理
|
||||||
|
*/
|
||||||
|
@Mapper
|
||||||
|
public interface GateConfigMapper extends BaseMapperX<GateConfigDO> {
|
||||||
|
|
||||||
|
default PageResult<GateConfigDO> selectPage(GateConfigPageReqVO reqVO) {
|
||||||
|
return selectPage(reqVO, new LambdaQueryWrapperX<GateConfigDO>()
|
||||||
|
.likeIfPresent(GateConfigDO::getGateName, reqVO.getGateName())
|
||||||
|
.likeIfPresent(GateConfigDO::getGateCoding, reqVO.getGateCoding())
|
||||||
|
.orderByDesc(GateConfigDO::getId));
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,25 @@
|
|||||||
|
package cn.iocoder.yudao.module.backendlogistics.dal.mysql.bseMngt.plceAchi;
|
||||||
|
|
||||||
|
import cn.iocoder.yudao.framework.common.pojo.PageResult;
|
||||||
|
import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
|
||||||
|
import cn.iocoder.yudao.framework.mybatis.core.query.LambdaQueryWrapperX;
|
||||||
|
import cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.plceAchi.vo.PlaceArchiveMaterialPageReqVO;
|
||||||
|
import cn.iocoder.yudao.module.backendlogistics.dal.dataobject.bseMngt.plceAchi.PlaceArchiveMaterialDO;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 地点档案物料信息 Mapper
|
||||||
|
*
|
||||||
|
* @author 后台管理
|
||||||
|
*/
|
||||||
|
@Mapper
|
||||||
|
public interface PlaceArchiveMaterialMapper extends BaseMapperX<PlaceArchiveMaterialDO> {
|
||||||
|
|
||||||
|
default PageResult<PlaceArchiveMaterialDO> selectPage(PlaceArchiveMaterialPageReqVO reqVO) {
|
||||||
|
return selectPage(reqVO, new LambdaQueryWrapperX<PlaceArchiveMaterialDO>()
|
||||||
|
.likeIfPresent(PlaceArchiveMaterialDO::getMDMCoding, reqVO.getMDMCoding())
|
||||||
|
.likeIfPresent(PlaceArchiveMaterialDO::getMaterialName, reqVO.getMaterialName())
|
||||||
|
.orderByDesc(PlaceArchiveMaterialDO::getId));
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,25 @@
|
|||||||
|
package cn.iocoder.yudao.module.backendlogistics.dal.mysql.bseMngt.plceAchi;
|
||||||
|
|
||||||
|
import cn.iocoder.yudao.framework.common.pojo.PageResult;
|
||||||
|
import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
|
||||||
|
import cn.iocoder.yudao.framework.mybatis.core.query.LambdaQueryWrapperX;
|
||||||
|
import cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.plceAchi.vo.PortPageReqVO;
|
||||||
|
import cn.iocoder.yudao.module.backendlogistics.dal.dataobject.bseMngt.plceAchi.PortDO;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 港口信息 Mapper
|
||||||
|
*
|
||||||
|
* @author 后台管理
|
||||||
|
*/
|
||||||
|
@Mapper
|
||||||
|
public interface PortMapper extends BaseMapperX<PortDO> {
|
||||||
|
|
||||||
|
default PageResult<PortDO> selectPage(PortPageReqVO reqVO) {
|
||||||
|
return selectPage(reqVO, new LambdaQueryWrapperX<PortDO>()
|
||||||
|
.likeIfPresent(PortDO::getPortName, reqVO.getPortName())
|
||||||
|
.likeIfPresent(PortDO::getPortCoding, reqVO.getPortCoding())
|
||||||
|
.orderByDesc(PortDO::getId));
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,25 @@
|
|||||||
|
package cn.iocoder.yudao.module.backendlogistics.dal.mysql.bseMngt.plceAchi;
|
||||||
|
|
||||||
|
import cn.iocoder.yudao.framework.common.pojo.PageResult;
|
||||||
|
import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
|
||||||
|
import cn.iocoder.yudao.framework.mybatis.core.query.LambdaQueryWrapperX;
|
||||||
|
import cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.plceAchi.vo.RailwayStationPageReqVO;
|
||||||
|
import cn.iocoder.yudao.module.backendlogistics.dal.dataobject.bseMngt.plceAchi.RailwayStationDO;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 铁路站点维护 Mapper
|
||||||
|
*
|
||||||
|
* @author 后台管理
|
||||||
|
*/
|
||||||
|
@Mapper
|
||||||
|
public interface RailwayStationMapper extends BaseMapperX<RailwayStationDO> {
|
||||||
|
|
||||||
|
default PageResult<RailwayStationDO> selectPage(RailwayStationPageReqVO reqVO) {
|
||||||
|
return selectPage(reqVO, new LambdaQueryWrapperX<RailwayStationDO>()
|
||||||
|
.likeIfPresent(RailwayStationDO::getRailwayStationName, reqVO.getRailwayStationName())
|
||||||
|
.likeIfPresent(RailwayStationDO::getRailwayStationCoding, reqVO.getRailwayStationCoding())
|
||||||
|
.orderByDesc(RailwayStationDO::getId));
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,25 @@
|
|||||||
|
package cn.iocoder.yudao.module.backendlogistics.dal.mysql.bseMngt.plceAchi;
|
||||||
|
|
||||||
|
import cn.iocoder.yudao.framework.common.pojo.PageResult;
|
||||||
|
import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
|
||||||
|
import cn.iocoder.yudao.framework.mybatis.core.query.LambdaQueryWrapperX;
|
||||||
|
import cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.plceAchi.vo.WarehousePageReqVO;
|
||||||
|
import cn.iocoder.yudao.module.backendlogistics.dal.dataobject.bseMngt.plceAchi.WarehouseDO;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 仓库信息 Mapper
|
||||||
|
*
|
||||||
|
* @author 后台管理
|
||||||
|
*/
|
||||||
|
@Mapper
|
||||||
|
public interface WarehouseMapper extends BaseMapperX<WarehouseDO> {
|
||||||
|
|
||||||
|
default PageResult<WarehouseDO> selectPage(WarehousePageReqVO reqVO) {
|
||||||
|
return selectPage(reqVO, new LambdaQueryWrapperX<WarehouseDO>()
|
||||||
|
.likeIfPresent(WarehouseDO::getWarehouseName, reqVO.getWarehouseName())
|
||||||
|
.likeIfPresent(WarehouseDO::getWarehouseCoding, reqVO.getWarehouseCoding())
|
||||||
|
.orderByDesc(WarehouseDO::getId));
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,64 @@
|
|||||||
|
package cn.iocoder.yudao.module.backendlogistics.service.bseMngt.plceAchi;
|
||||||
|
|
||||||
|
import cn.iocoder.yudao.framework.common.pojo.PageResult;
|
||||||
|
import cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.plceAchi.vo.AuncelConfigPageReqVO;
|
||||||
|
import cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.plceAchi.vo.AuncelConfigRespVO;
|
||||||
|
import cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.plceAchi.vo.AuncelConfigSaveReqVO;
|
||||||
|
import cn.iocoder.yudao.module.backendlogistics.dal.dataobject.bseMngt.plceAchi.AuncelConfigDO;
|
||||||
|
import jakarta.validation.Valid;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 计量点配置 Service 接口
|
||||||
|
*
|
||||||
|
* @author 后台管理
|
||||||
|
*/
|
||||||
|
public interface AuncelConfigService {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 创建计量点配置
|
||||||
|
*
|
||||||
|
* @param createReqVO 创建信息
|
||||||
|
* @return 编号
|
||||||
|
*/
|
||||||
|
AuncelConfigRespVO createAuncelConfig(@Valid AuncelConfigSaveReqVO createReqVO);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 更新计量点配置
|
||||||
|
*
|
||||||
|
* @param updateReqVO 更新信息
|
||||||
|
*/
|
||||||
|
void updateAuncelConfig(@Valid AuncelConfigSaveReqVO updateReqVO);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除计量点配置
|
||||||
|
*
|
||||||
|
* @param id 编号
|
||||||
|
*/
|
||||||
|
void deleteAuncelConfig(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除计量点配置
|
||||||
|
*
|
||||||
|
* @param ids 编号
|
||||||
|
*/
|
||||||
|
void deleteAuncelConfigListByIds(List<Long> ids);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获得计量点配置
|
||||||
|
*
|
||||||
|
* @param id 编号
|
||||||
|
* @return 计量点配置
|
||||||
|
*/
|
||||||
|
AuncelConfigDO getAuncelConfig(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获得计量点配置分页
|
||||||
|
*
|
||||||
|
* @param pageReqVO 分页查询
|
||||||
|
* @return 计量点配置分页
|
||||||
|
*/
|
||||||
|
PageResult<AuncelConfigDO> getAuncelConfigPage(AuncelConfigPageReqVO pageReqVO);
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,90 @@
|
|||||||
|
package cn.iocoder.yudao.module.backendlogistics.service.bseMngt.plceAchi;
|
||||||
|
|
||||||
|
import cn.hutool.core.collection.CollUtil;
|
||||||
|
import cn.iocoder.yudao.framework.common.pojo.PageResult;
|
||||||
|
import cn.iocoder.yudao.framework.common.util.object.BeanUtils;
|
||||||
|
import cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.plceAchi.vo.AuncelConfigPageReqVO;
|
||||||
|
import cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.plceAchi.vo.AuncelConfigRespVO;
|
||||||
|
import cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.plceAchi.vo.AuncelConfigSaveReqVO;
|
||||||
|
import cn.iocoder.yudao.module.backendlogistics.dal.dataobject.bseMngt.plceAchi.AuncelConfigDO;
|
||||||
|
import cn.iocoder.yudao.module.backendlogistics.dal.mysql.bseMngt.plceAchi.AuncelConfigMapper;
|
||||||
|
import jakarta.annotation.Resource;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import org.springframework.validation.annotation.Validated;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import static cn.iocoder.yudao.framework.common.exception.util.ServiceExceptionUtil.exception;
|
||||||
|
import static cn.iocoder.yudao.module.backendlogistics.enums.ErrorCodeConstants.AUNCEL_CONFIG_NOT_EXISTS;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 计量点配置 Service 实现类
|
||||||
|
*
|
||||||
|
* @author 后台管理
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
@Validated
|
||||||
|
public class AuncelConfigServiceImpl implements AuncelConfigService {
|
||||||
|
|
||||||
|
@Resource
|
||||||
|
private AuncelConfigMapper auncelConfigMapper;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public AuncelConfigRespVO createAuncelConfig(AuncelConfigSaveReqVO createReqVO) {
|
||||||
|
// 插入
|
||||||
|
AuncelConfigDO auncelConfig = BeanUtils.toBean(createReqVO, AuncelConfigDO.class);
|
||||||
|
auncelConfigMapper.insert(auncelConfig);
|
||||||
|
// 返回
|
||||||
|
return BeanUtils.toBean(auncelConfig, AuncelConfigRespVO.class);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void updateAuncelConfig(AuncelConfigSaveReqVO updateReqVO) {
|
||||||
|
// 校验存在
|
||||||
|
validateAuncelConfigExists(updateReqVO.getId());
|
||||||
|
// 更新
|
||||||
|
AuncelConfigDO updateObj = BeanUtils.toBean(updateReqVO, AuncelConfigDO.class);
|
||||||
|
auncelConfigMapper.updateById(updateObj);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void deleteAuncelConfig(Long id) {
|
||||||
|
// 校验存在
|
||||||
|
validateAuncelConfigExists(id);
|
||||||
|
// 删除
|
||||||
|
auncelConfigMapper.deleteById(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void deleteAuncelConfigListByIds(List<Long> ids) {
|
||||||
|
// 校验存在
|
||||||
|
validateAuncelConfigExists(ids);
|
||||||
|
// 删除
|
||||||
|
auncelConfigMapper.deleteByIds(ids);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void validateAuncelConfigExists(List<Long> ids) {
|
||||||
|
List<AuncelConfigDO> list = auncelConfigMapper.selectByIds(ids);
|
||||||
|
if (CollUtil.isEmpty(list) || list.size() != ids.size()) {
|
||||||
|
throw exception(AUNCEL_CONFIG_NOT_EXISTS);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void validateAuncelConfigExists(Long id) {
|
||||||
|
if (auncelConfigMapper.selectById(id) == null) {
|
||||||
|
throw exception(AUNCEL_CONFIG_NOT_EXISTS);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public AuncelConfigDO getAuncelConfig(Long id) {
|
||||||
|
return auncelConfigMapper.selectById(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public PageResult<AuncelConfigDO> getAuncelConfigPage(AuncelConfigPageReqVO pageReqVO) {
|
||||||
|
return auncelConfigMapper.selectPage(pageReqVO);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,64 @@
|
|||||||
|
package cn.iocoder.yudao.module.backendlogistics.service.bseMngt.plceAchi;
|
||||||
|
|
||||||
|
import cn.iocoder.yudao.framework.common.pojo.PageResult;
|
||||||
|
import cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.plceAchi.vo.ConsigneeAddressPageReqVO;
|
||||||
|
import cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.plceAchi.vo.ConsigneeAddressRespVO;
|
||||||
|
import cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.plceAchi.vo.ConsigneeAddressSaveReqVO;
|
||||||
|
import cn.iocoder.yudao.module.backendlogistics.dal.dataobject.bseMngt.plceAchi.ConsigneeAddressDO;
|
||||||
|
import jakarta.validation.Valid;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 客户收货地址 Service 接口
|
||||||
|
*
|
||||||
|
* @author 后台管理
|
||||||
|
*/
|
||||||
|
public interface ConsigneeAddressService {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 创建客户收货地址
|
||||||
|
*
|
||||||
|
* @param createReqVO 创建信息
|
||||||
|
* @return 编号
|
||||||
|
*/
|
||||||
|
ConsigneeAddressRespVO createConsigneeAddress(@Valid ConsigneeAddressSaveReqVO createReqVO);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 更新客户收货地址
|
||||||
|
*
|
||||||
|
* @param updateReqVO 更新信息
|
||||||
|
*/
|
||||||
|
void updateConsigneeAddress(@Valid ConsigneeAddressSaveReqVO updateReqVO);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除客户收货地址
|
||||||
|
*
|
||||||
|
* @param id 编号
|
||||||
|
*/
|
||||||
|
void deleteConsigneeAddress(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除客户收货地址
|
||||||
|
*
|
||||||
|
* @param ids 编号
|
||||||
|
*/
|
||||||
|
void deleteConsigneeAddressListByIds(List<Long> ids);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获得客户收货地址
|
||||||
|
*
|
||||||
|
* @param id 编号
|
||||||
|
* @return 客户收货地址
|
||||||
|
*/
|
||||||
|
ConsigneeAddressDO getConsigneeAddress(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获得客户收货地址分页
|
||||||
|
*
|
||||||
|
* @param pageReqVO 分页查询
|
||||||
|
* @return 客户收货地址分页
|
||||||
|
*/
|
||||||
|
PageResult<ConsigneeAddressDO> getConsigneeAddressPage(ConsigneeAddressPageReqVO pageReqVO);
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,90 @@
|
|||||||
|
package cn.iocoder.yudao.module.backendlogistics.service.bseMngt.plceAchi;
|
||||||
|
|
||||||
|
import cn.hutool.core.collection.CollUtil;
|
||||||
|
import cn.iocoder.yudao.framework.common.pojo.PageResult;
|
||||||
|
import cn.iocoder.yudao.framework.common.util.object.BeanUtils;
|
||||||
|
import cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.plceAchi.vo.ConsigneeAddressPageReqVO;
|
||||||
|
import cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.plceAchi.vo.ConsigneeAddressRespVO;
|
||||||
|
import cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.plceAchi.vo.ConsigneeAddressSaveReqVO;
|
||||||
|
import cn.iocoder.yudao.module.backendlogistics.dal.dataobject.bseMngt.plceAchi.ConsigneeAddressDO;
|
||||||
|
import cn.iocoder.yudao.module.backendlogistics.dal.mysql.bseMngt.plceAchi.ConsigneeAddressMapper;
|
||||||
|
import jakarta.annotation.Resource;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import org.springframework.validation.annotation.Validated;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import static cn.iocoder.yudao.framework.common.exception.util.ServiceExceptionUtil.exception;
|
||||||
|
import static cn.iocoder.yudao.module.backendlogistics.enums.ErrorCodeConstants.CONSIGNEE_ADDRESS_NOT_EXISTS;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 客户收货地址 Service 实现类
|
||||||
|
*
|
||||||
|
* @author 后台管理
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
@Validated
|
||||||
|
public class ConsigneeAddressServiceImpl implements ConsigneeAddressService {
|
||||||
|
|
||||||
|
@Resource
|
||||||
|
private ConsigneeAddressMapper consigneeAddressMapper;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public ConsigneeAddressRespVO createConsigneeAddress(ConsigneeAddressSaveReqVO createReqVO) {
|
||||||
|
// 插入
|
||||||
|
ConsigneeAddressDO consigneeAddress = BeanUtils.toBean(createReqVO, ConsigneeAddressDO.class);
|
||||||
|
consigneeAddressMapper.insert(consigneeAddress);
|
||||||
|
// 返回
|
||||||
|
return BeanUtils.toBean(consigneeAddress, ConsigneeAddressRespVO.class);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void updateConsigneeAddress(ConsigneeAddressSaveReqVO updateReqVO) {
|
||||||
|
// 校验存在
|
||||||
|
validateConsigneeAddressExists(updateReqVO.getId());
|
||||||
|
// 更新
|
||||||
|
ConsigneeAddressDO updateObj = BeanUtils.toBean(updateReqVO, ConsigneeAddressDO.class);
|
||||||
|
consigneeAddressMapper.updateById(updateObj);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void deleteConsigneeAddress(Long id) {
|
||||||
|
// 校验存在
|
||||||
|
validateConsigneeAddressExists(id);
|
||||||
|
// 删除
|
||||||
|
consigneeAddressMapper.deleteById(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void deleteConsigneeAddressListByIds(List<Long> ids) {
|
||||||
|
// 校验存在
|
||||||
|
validateConsigneeAddressExists(ids);
|
||||||
|
// 删除
|
||||||
|
consigneeAddressMapper.deleteByIds(ids);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void validateConsigneeAddressExists(List<Long> ids) {
|
||||||
|
List<ConsigneeAddressDO> list = consigneeAddressMapper.selectByIds(ids);
|
||||||
|
if (CollUtil.isEmpty(list) || list.size() != ids.size()) {
|
||||||
|
throw exception(CONSIGNEE_ADDRESS_NOT_EXISTS);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void validateConsigneeAddressExists(Long id) {
|
||||||
|
if (consigneeAddressMapper.selectById(id) == null) {
|
||||||
|
throw exception(CONSIGNEE_ADDRESS_NOT_EXISTS);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public ConsigneeAddressDO getConsigneeAddress(Long id) {
|
||||||
|
return consigneeAddressMapper.selectById(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public PageResult<ConsigneeAddressDO> getConsigneeAddressPage(ConsigneeAddressPageReqVO pageReqVO) {
|
||||||
|
return consigneeAddressMapper.selectPage(pageReqVO);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,64 @@
|
|||||||
|
package cn.iocoder.yudao.module.backendlogistics.service.bseMngt.plceAchi;
|
||||||
|
|
||||||
|
import cn.iocoder.yudao.framework.common.pojo.PageResult;
|
||||||
|
import cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.plceAchi.vo.FactoryPageReqVO;
|
||||||
|
import cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.plceAchi.vo.FactoryRespVO;
|
||||||
|
import cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.plceAchi.vo.FactorySaveReqVO;
|
||||||
|
import cn.iocoder.yudao.module.backendlogistics.dal.dataobject.bseMngt.plceAchi.FactoryDO;
|
||||||
|
import jakarta.validation.Valid;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 生产厂区信息 Service 接口
|
||||||
|
*
|
||||||
|
* @author 后台管理
|
||||||
|
*/
|
||||||
|
public interface FactoryService {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 创建生产厂区信息
|
||||||
|
*
|
||||||
|
* @param createReqVO 创建信息
|
||||||
|
* @return 编号
|
||||||
|
*/
|
||||||
|
FactoryRespVO createFactory(@Valid FactorySaveReqVO createReqVO);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 更新生产厂区信息
|
||||||
|
*
|
||||||
|
* @param updateReqVO 更新信息
|
||||||
|
*/
|
||||||
|
void updateFactory(@Valid FactorySaveReqVO updateReqVO);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除生产厂区信息
|
||||||
|
*
|
||||||
|
* @param id 编号
|
||||||
|
*/
|
||||||
|
void deleteFactory(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除生产厂区信息
|
||||||
|
*
|
||||||
|
* @param ids 编号
|
||||||
|
*/
|
||||||
|
void deleteFactoryListByIds(List<Long> ids);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获得生产厂区信息
|
||||||
|
*
|
||||||
|
* @param id 编号
|
||||||
|
* @return 生产厂区信息
|
||||||
|
*/
|
||||||
|
FactoryDO getFactory(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获得生产厂区信息分页
|
||||||
|
*
|
||||||
|
* @param pageReqVO 分页查询
|
||||||
|
* @return 生产厂区信息分页
|
||||||
|
*/
|
||||||
|
PageResult<FactoryDO> getFactoryPage(FactoryPageReqVO pageReqVO);
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,89 @@
|
|||||||
|
package cn.iocoder.yudao.module.backendlogistics.service.bseMngt.plceAchi;
|
||||||
|
|
||||||
|
import cn.hutool.core.collection.CollUtil;
|
||||||
|
import cn.iocoder.yudao.framework.common.pojo.PageResult;
|
||||||
|
import cn.iocoder.yudao.framework.common.util.object.BeanUtils;
|
||||||
|
import cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.plceAchi.vo.FactoryPageReqVO;
|
||||||
|
import cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.plceAchi.vo.FactoryRespVO;
|
||||||
|
import cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.plceAchi.vo.FactorySaveReqVO;
|
||||||
|
import cn.iocoder.yudao.module.backendlogistics.dal.dataobject.bseMngt.plceAchi.FactoryDO;
|
||||||
|
import cn.iocoder.yudao.module.backendlogistics.dal.mysql.bseMngt.plceAchi.FactoryMapper;
|
||||||
|
import jakarta.annotation.Resource;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import org.springframework.validation.annotation.Validated;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import static cn.iocoder.yudao.framework.common.exception.util.ServiceExceptionUtil.exception;
|
||||||
|
import static cn.iocoder.yudao.module.backendlogistics.enums.ErrorCodeConstants.FACTORY_NOT_EXISTS;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 生产厂区信息 Service 实现类
|
||||||
|
*
|
||||||
|
* @author 后台管理
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
@Validated
|
||||||
|
public class FactoryServiceImpl implements FactoryService {
|
||||||
|
|
||||||
|
@Resource
|
||||||
|
private FactoryMapper factoryMapper;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public FactoryRespVO createFactory(FactorySaveReqVO createReqVO) {
|
||||||
|
// 插入
|
||||||
|
FactoryDO factory = BeanUtils.toBean(createReqVO, FactoryDO.class);
|
||||||
|
factoryMapper.insert(factory);
|
||||||
|
// 返回
|
||||||
|
return BeanUtils.toBean(factory, FactoryRespVO.class);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void updateFactory(FactorySaveReqVO updateReqVO) {
|
||||||
|
// 校验存在
|
||||||
|
validateFactoryExists(updateReqVO.getId());
|
||||||
|
// 更新
|
||||||
|
FactoryDO updateObj = BeanUtils.toBean(updateReqVO, FactoryDO.class);
|
||||||
|
factoryMapper.updateById(updateObj);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void deleteFactory(Long id) {
|
||||||
|
// 校验存在
|
||||||
|
validateFactoryExists(id);
|
||||||
|
// 删除
|
||||||
|
factoryMapper.deleteById(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void deleteFactoryListByIds(List<Long> ids) {
|
||||||
|
// 校验存在
|
||||||
|
validateFactoryExists(ids);
|
||||||
|
// 删除
|
||||||
|
factoryMapper.deleteByIds(ids);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void validateFactoryExists(List<Long> ids) {
|
||||||
|
List<FactoryDO> list = factoryMapper.selectByIds(ids);
|
||||||
|
if (CollUtil.isEmpty(list) || list.size() != ids.size()) {
|
||||||
|
throw exception(FACTORY_NOT_EXISTS);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void validateFactoryExists(Long id) {
|
||||||
|
if (factoryMapper.selectById(id) == null) {
|
||||||
|
throw exception(FACTORY_NOT_EXISTS);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public FactoryDO getFactory(Long id) {
|
||||||
|
return factoryMapper.selectById(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public PageResult<FactoryDO> getFactoryPage(FactoryPageReqVO pageReqVO) {
|
||||||
|
return factoryMapper.selectPage(pageReqVO);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,64 @@
|
|||||||
|
package cn.iocoder.yudao.module.backendlogistics.service.bseMngt.plceAchi;
|
||||||
|
|
||||||
|
import cn.iocoder.yudao.framework.common.pojo.PageResult;
|
||||||
|
import cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.plceAchi.vo.GateConfigPageReqVO;
|
||||||
|
import cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.plceAchi.vo.GateConfigRespVO;
|
||||||
|
import cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.plceAchi.vo.GateConfigSaveReqVO;
|
||||||
|
import cn.iocoder.yudao.module.backendlogistics.dal.dataobject.bseMngt.plceAchi.GateConfigDO;
|
||||||
|
import jakarta.validation.Valid;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 门岗信息 Service 接口
|
||||||
|
*
|
||||||
|
* @author 后台管理
|
||||||
|
*/
|
||||||
|
public interface GateConfigService {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 创建门岗信息
|
||||||
|
*
|
||||||
|
* @param createReqVO 创建信息
|
||||||
|
* @return 编号
|
||||||
|
*/
|
||||||
|
GateConfigRespVO createGateConfig(@Valid GateConfigSaveReqVO createReqVO);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 更新门岗信息
|
||||||
|
*
|
||||||
|
* @param updateReqVO 更新信息
|
||||||
|
*/
|
||||||
|
void updateGateConfig(@Valid GateConfigSaveReqVO updateReqVO);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除门岗信息
|
||||||
|
*
|
||||||
|
* @param id 编号
|
||||||
|
*/
|
||||||
|
void deleteGateConfig(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除门岗信息
|
||||||
|
*
|
||||||
|
* @param ids 编号
|
||||||
|
*/
|
||||||
|
void deleteGateConfigListByIds(List<Long> ids);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获得门岗信息
|
||||||
|
*
|
||||||
|
* @param id 编号
|
||||||
|
* @return 门岗信息
|
||||||
|
*/
|
||||||
|
GateConfigDO getGateConfig(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获得门岗信息分页
|
||||||
|
*
|
||||||
|
* @param pageReqVO 分页查询
|
||||||
|
* @return 门岗信息分页
|
||||||
|
*/
|
||||||
|
PageResult<GateConfigDO> getGateConfigPage(GateConfigPageReqVO pageReqVO);
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,90 @@
|
|||||||
|
package cn.iocoder.yudao.module.backendlogistics.service.bseMngt.plceAchi;
|
||||||
|
|
||||||
|
import cn.hutool.core.collection.CollUtil;
|
||||||
|
import cn.iocoder.yudao.framework.common.pojo.PageResult;
|
||||||
|
import cn.iocoder.yudao.framework.common.util.object.BeanUtils;
|
||||||
|
import cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.plceAchi.vo.GateConfigPageReqVO;
|
||||||
|
import cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.plceAchi.vo.GateConfigRespVO;
|
||||||
|
import cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.plceAchi.vo.GateConfigSaveReqVO;
|
||||||
|
import cn.iocoder.yudao.module.backendlogistics.dal.dataobject.bseMngt.plceAchi.GateConfigDO;
|
||||||
|
import cn.iocoder.yudao.module.backendlogistics.dal.mysql.bseMngt.plceAchi.GateConfigMapper;
|
||||||
|
import jakarta.annotation.Resource;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import org.springframework.validation.annotation.Validated;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import static cn.iocoder.yudao.framework.common.exception.util.ServiceExceptionUtil.exception;
|
||||||
|
import static cn.iocoder.yudao.module.backendlogistics.enums.ErrorCodeConstants.GATE_CONFIG_NOT_EXISTS;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 门岗信息 Service 实现类
|
||||||
|
*
|
||||||
|
* @author 后台管理
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
@Validated
|
||||||
|
public class GateConfigServiceImpl implements GateConfigService {
|
||||||
|
|
||||||
|
@Resource
|
||||||
|
private GateConfigMapper gateConfigMapper;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public GateConfigRespVO createGateConfig(GateConfigSaveReqVO createReqVO) {
|
||||||
|
// 插入
|
||||||
|
GateConfigDO gateConfig = BeanUtils.toBean(createReqVO, GateConfigDO.class);
|
||||||
|
gateConfigMapper.insert(gateConfig);
|
||||||
|
// 返回
|
||||||
|
return BeanUtils.toBean(gateConfig, GateConfigRespVO.class);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void updateGateConfig(GateConfigSaveReqVO updateReqVO) {
|
||||||
|
// 校验存在
|
||||||
|
validateGateConfigExists(updateReqVO.getId());
|
||||||
|
// 更新
|
||||||
|
GateConfigDO updateObj = BeanUtils.toBean(updateReqVO, GateConfigDO.class);
|
||||||
|
gateConfigMapper.updateById(updateObj);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void deleteGateConfig(Long id) {
|
||||||
|
// 校验存在
|
||||||
|
validateGateConfigExists(id);
|
||||||
|
// 删除
|
||||||
|
gateConfigMapper.deleteById(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void deleteGateConfigListByIds(List<Long> ids) {
|
||||||
|
// 校验存在
|
||||||
|
validateGateConfigExists(ids);
|
||||||
|
// 删除
|
||||||
|
gateConfigMapper.deleteByIds(ids);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void validateGateConfigExists(List<Long> ids) {
|
||||||
|
List<GateConfigDO> list = gateConfigMapper.selectByIds(ids);
|
||||||
|
if (CollUtil.isEmpty(list) || list.size() != ids.size()) {
|
||||||
|
throw exception(GATE_CONFIG_NOT_EXISTS);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void validateGateConfigExists(Long id) {
|
||||||
|
if (gateConfigMapper.selectById(id) == null) {
|
||||||
|
throw exception(GATE_CONFIG_NOT_EXISTS);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public GateConfigDO getGateConfig(Long id) {
|
||||||
|
return gateConfigMapper.selectById(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public PageResult<GateConfigDO> getGateConfigPage(GateConfigPageReqVO pageReqVO) {
|
||||||
|
return gateConfigMapper.selectPage(pageReqVO);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,64 @@
|
|||||||
|
package cn.iocoder.yudao.module.backendlogistics.service.bseMngt.plceAchi;
|
||||||
|
|
||||||
|
import cn.iocoder.yudao.framework.common.pojo.PageResult;
|
||||||
|
import cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.plceAchi.vo.PlaceArchiveMaterialPageReqVO;
|
||||||
|
import cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.plceAchi.vo.PlaceArchiveMaterialRespVO;
|
||||||
|
import cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.plceAchi.vo.PlaceArchiveMaterialSaveReqVO;
|
||||||
|
import cn.iocoder.yudao.module.backendlogistics.dal.dataobject.bseMngt.plceAchi.PlaceArchiveMaterialDO;
|
||||||
|
import jakarta.validation.Valid;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 地点档案物料信息 Service 接口
|
||||||
|
*
|
||||||
|
* @author 后台管理
|
||||||
|
*/
|
||||||
|
public interface PlaceArchiveMaterialService {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 创建地点档案物料信息
|
||||||
|
*
|
||||||
|
* @param createReqVO 创建信息
|
||||||
|
* @return 编号
|
||||||
|
*/
|
||||||
|
PlaceArchiveMaterialRespVO createPlaceArchiveMaterial(@Valid PlaceArchiveMaterialSaveReqVO createReqVO);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 更新地点档案物料信息
|
||||||
|
*
|
||||||
|
* @param updateReqVO 更新信息
|
||||||
|
*/
|
||||||
|
void updatePlaceArchiveMaterial(@Valid PlaceArchiveMaterialSaveReqVO updateReqVO);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除地点档案物料信息
|
||||||
|
*
|
||||||
|
* @param id 编号
|
||||||
|
*/
|
||||||
|
void deletePlaceArchiveMaterial(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除地点档案物料信息
|
||||||
|
*
|
||||||
|
* @param ids 编号
|
||||||
|
*/
|
||||||
|
void deletePlaceArchiveMaterialListByIds(List<Long> ids);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获得地点档案物料信息
|
||||||
|
*
|
||||||
|
* @param id 编号
|
||||||
|
* @return 地点档案物料信息
|
||||||
|
*/
|
||||||
|
PlaceArchiveMaterialDO getPlaceArchiveMaterial(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获得地点档案物料信息分页
|
||||||
|
*
|
||||||
|
* @param pageReqVO 分页查询
|
||||||
|
* @return 地点档案物料信息分页
|
||||||
|
*/
|
||||||
|
PageResult<PlaceArchiveMaterialDO> getPlaceArchiveMaterialPage(PlaceArchiveMaterialPageReqVO pageReqVO);
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,90 @@
|
|||||||
|
package cn.iocoder.yudao.module.backendlogistics.service.bseMngt.plceAchi;
|
||||||
|
|
||||||
|
import cn.hutool.core.collection.CollUtil;
|
||||||
|
import cn.iocoder.yudao.framework.common.pojo.PageResult;
|
||||||
|
import cn.iocoder.yudao.framework.common.util.object.BeanUtils;
|
||||||
|
import cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.plceAchi.vo.PlaceArchiveMaterialPageReqVO;
|
||||||
|
import cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.plceAchi.vo.PlaceArchiveMaterialRespVO;
|
||||||
|
import cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.plceAchi.vo.PlaceArchiveMaterialSaveReqVO;
|
||||||
|
import cn.iocoder.yudao.module.backendlogistics.dal.dataobject.bseMngt.plceAchi.PlaceArchiveMaterialDO;
|
||||||
|
import cn.iocoder.yudao.module.backendlogistics.dal.mysql.bseMngt.plceAchi.PlaceArchiveMaterialMapper;
|
||||||
|
import jakarta.annotation.Resource;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import org.springframework.validation.annotation.Validated;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import static cn.iocoder.yudao.framework.common.exception.util.ServiceExceptionUtil.exception;
|
||||||
|
import static cn.iocoder.yudao.module.backendlogistics.enums.ErrorCodeConstants.PLACE_ARCHIVE_MATERIAL_NOT_EXISTS;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 地点档案物料信息 Service 实现类
|
||||||
|
*
|
||||||
|
* @author 后台管理
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
@Validated
|
||||||
|
public class PlaceArchiveMaterialServiceImpl implements PlaceArchiveMaterialService {
|
||||||
|
|
||||||
|
@Resource
|
||||||
|
private PlaceArchiveMaterialMapper placeArchiveMaterialMapper;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public PlaceArchiveMaterialRespVO createPlaceArchiveMaterial(PlaceArchiveMaterialSaveReqVO createReqVO) {
|
||||||
|
// 插入
|
||||||
|
PlaceArchiveMaterialDO placeArchiveMaterial = BeanUtils.toBean(createReqVO, PlaceArchiveMaterialDO.class);
|
||||||
|
placeArchiveMaterialMapper.insert(placeArchiveMaterial);
|
||||||
|
// 返回
|
||||||
|
return BeanUtils.toBean(placeArchiveMaterial, PlaceArchiveMaterialRespVO.class);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void updatePlaceArchiveMaterial(PlaceArchiveMaterialSaveReqVO updateReqVO) {
|
||||||
|
// 校验存在
|
||||||
|
validatePlaceArchiveMaterialExists(updateReqVO.getId());
|
||||||
|
// 更新
|
||||||
|
PlaceArchiveMaterialDO updateObj = BeanUtils.toBean(updateReqVO, PlaceArchiveMaterialDO.class);
|
||||||
|
placeArchiveMaterialMapper.updateById(updateObj);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void deletePlaceArchiveMaterial(Long id) {
|
||||||
|
// 校验存在
|
||||||
|
validatePlaceArchiveMaterialExists(id);
|
||||||
|
// 删除
|
||||||
|
placeArchiveMaterialMapper.deleteById(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void deletePlaceArchiveMaterialListByIds(List<Long> ids) {
|
||||||
|
// 校验存在
|
||||||
|
validatePlaceArchiveMaterialExists(ids);
|
||||||
|
// 删除
|
||||||
|
placeArchiveMaterialMapper.deleteByIds(ids);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void validatePlaceArchiveMaterialExists(List<Long> ids) {
|
||||||
|
List<PlaceArchiveMaterialDO> list = placeArchiveMaterialMapper.selectByIds(ids);
|
||||||
|
if (CollUtil.isEmpty(list) || list.size() != ids.size()) {
|
||||||
|
throw exception(PLACE_ARCHIVE_MATERIAL_NOT_EXISTS);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void validatePlaceArchiveMaterialExists(Long id) {
|
||||||
|
if (placeArchiveMaterialMapper.selectById(id) == null) {
|
||||||
|
throw exception(PLACE_ARCHIVE_MATERIAL_NOT_EXISTS);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public PlaceArchiveMaterialDO getPlaceArchiveMaterial(Long id) {
|
||||||
|
return placeArchiveMaterialMapper.selectById(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public PageResult<PlaceArchiveMaterialDO> getPlaceArchiveMaterialPage(PlaceArchiveMaterialPageReqVO pageReqVO) {
|
||||||
|
return placeArchiveMaterialMapper.selectPage(pageReqVO);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,64 @@
|
|||||||
|
package cn.iocoder.yudao.module.backendlogistics.service.bseMngt.plceAchi;
|
||||||
|
|
||||||
|
import cn.iocoder.yudao.framework.common.pojo.PageResult;
|
||||||
|
import cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.plceAchi.vo.PortPageReqVO;
|
||||||
|
import cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.plceAchi.vo.PortRespVO;
|
||||||
|
import cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.plceAchi.vo.PortSaveReqVO;
|
||||||
|
import cn.iocoder.yudao.module.backendlogistics.dal.dataobject.bseMngt.plceAchi.PortDO;
|
||||||
|
import jakarta.validation.Valid;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 港口信息 Service 接口
|
||||||
|
*
|
||||||
|
* @author 后台管理
|
||||||
|
*/
|
||||||
|
public interface PortService {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 创建港口信息
|
||||||
|
*
|
||||||
|
* @param createReqVO 创建信息
|
||||||
|
* @return 编号
|
||||||
|
*/
|
||||||
|
PortRespVO createPort(@Valid PortSaveReqVO createReqVO);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 更新港口信息
|
||||||
|
*
|
||||||
|
* @param updateReqVO 更新信息
|
||||||
|
*/
|
||||||
|
void updatePort(@Valid PortSaveReqVO updateReqVO);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除港口信息
|
||||||
|
*
|
||||||
|
* @param id 编号
|
||||||
|
*/
|
||||||
|
void deletePort(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除港口信息
|
||||||
|
*
|
||||||
|
* @param ids 编号
|
||||||
|
*/
|
||||||
|
void deletePortListByIds(List<Long> ids);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获得港口信息
|
||||||
|
*
|
||||||
|
* @param id 编号
|
||||||
|
* @return 港口信息
|
||||||
|
*/
|
||||||
|
PortDO getPort(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获得港口信息分页
|
||||||
|
*
|
||||||
|
* @param pageReqVO 分页查询
|
||||||
|
* @return 港口信息分页
|
||||||
|
*/
|
||||||
|
PageResult<PortDO> getPortPage(PortPageReqVO pageReqVO);
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,90 @@
|
|||||||
|
package cn.iocoder.yudao.module.backendlogistics.service.bseMngt.plceAchi;
|
||||||
|
|
||||||
|
import cn.hutool.core.collection.CollUtil;
|
||||||
|
import cn.iocoder.yudao.framework.common.pojo.PageResult;
|
||||||
|
import cn.iocoder.yudao.framework.common.util.object.BeanUtils;
|
||||||
|
import cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.plceAchi.vo.PortPageReqVO;
|
||||||
|
import cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.plceAchi.vo.PortRespVO;
|
||||||
|
import cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.plceAchi.vo.PortSaveReqVO;
|
||||||
|
import cn.iocoder.yudao.module.backendlogistics.dal.dataobject.bseMngt.plceAchi.PortDO;
|
||||||
|
import cn.iocoder.yudao.module.backendlogistics.dal.mysql.bseMngt.plceAchi.PortMapper;
|
||||||
|
import jakarta.annotation.Resource;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import org.springframework.validation.annotation.Validated;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import static cn.iocoder.yudao.framework.common.exception.util.ServiceExceptionUtil.exception;
|
||||||
|
import static cn.iocoder.yudao.module.backendlogistics.enums.ErrorCodeConstants.PORT_NOT_EXISTS;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 港口信息 Service 实现类
|
||||||
|
*
|
||||||
|
* @author 后台管理
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
@Validated
|
||||||
|
public class PortServiceImpl implements PortService {
|
||||||
|
|
||||||
|
@Resource
|
||||||
|
private PortMapper portMapper;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public PortRespVO createPort(PortSaveReqVO createReqVO) {
|
||||||
|
// 插入
|
||||||
|
PortDO port = BeanUtils.toBean(createReqVO, PortDO.class);
|
||||||
|
portMapper.insert(port);
|
||||||
|
// 返回
|
||||||
|
return BeanUtils.toBean(port, PortRespVO.class);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void updatePort(PortSaveReqVO updateReqVO) {
|
||||||
|
// 校验存在
|
||||||
|
validatePortExists(updateReqVO.getId());
|
||||||
|
// 更新
|
||||||
|
PortDO updateObj = BeanUtils.toBean(updateReqVO, PortDO.class);
|
||||||
|
portMapper.updateById(updateObj);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void deletePort(Long id) {
|
||||||
|
// 校验存在
|
||||||
|
validatePortExists(id);
|
||||||
|
// 删除
|
||||||
|
portMapper.deleteById(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void deletePortListByIds(List<Long> ids) {
|
||||||
|
// 校验存在
|
||||||
|
validatePortExists(ids);
|
||||||
|
// 删除
|
||||||
|
portMapper.deleteByIds(ids);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void validatePortExists(List<Long> ids) {
|
||||||
|
List<PortDO> list = portMapper.selectByIds(ids);
|
||||||
|
if (CollUtil.isEmpty(list) || list.size() != ids.size()) {
|
||||||
|
throw exception(PORT_NOT_EXISTS);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void validatePortExists(Long id) {
|
||||||
|
if (portMapper.selectById(id) == null) {
|
||||||
|
throw exception(PORT_NOT_EXISTS);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public PortDO getPort(Long id) {
|
||||||
|
return portMapper.selectById(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public PageResult<PortDO> getPortPage(PortPageReqVO pageReqVO) {
|
||||||
|
return portMapper.selectPage(pageReqVO);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,64 @@
|
|||||||
|
package cn.iocoder.yudao.module.backendlogistics.service.bseMngt.plceAchi;
|
||||||
|
|
||||||
|
import cn.iocoder.yudao.framework.common.pojo.PageResult;
|
||||||
|
import cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.plceAchi.vo.RailwayStationPageReqVO;
|
||||||
|
import cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.plceAchi.vo.RailwayStationRespVO;
|
||||||
|
import cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.plceAchi.vo.RailwayStationSaveReqVO;
|
||||||
|
import cn.iocoder.yudao.module.backendlogistics.dal.dataobject.bseMngt.plceAchi.RailwayStationDO;
|
||||||
|
import jakarta.validation.Valid;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 铁路站点维护 Service 接口
|
||||||
|
*
|
||||||
|
* @author 后台管理
|
||||||
|
*/
|
||||||
|
public interface RailwayStationService {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 创建铁路站点维护
|
||||||
|
*
|
||||||
|
* @param createReqVO 创建信息
|
||||||
|
* @return 编号
|
||||||
|
*/
|
||||||
|
RailwayStationRespVO createRailwayStation(@Valid RailwayStationSaveReqVO createReqVO);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 更新铁路站点维护
|
||||||
|
*
|
||||||
|
* @param updateReqVO 更新信息
|
||||||
|
*/
|
||||||
|
void updateRailwayStation(@Valid RailwayStationSaveReqVO updateReqVO);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除铁路站点维护
|
||||||
|
*
|
||||||
|
* @param id 编号
|
||||||
|
*/
|
||||||
|
void deleteRailwayStation(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除铁路站点维护
|
||||||
|
*
|
||||||
|
* @param ids 编号
|
||||||
|
*/
|
||||||
|
void deleteRailwayStationListByIds(List<Long> ids);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获得铁路站点维护
|
||||||
|
*
|
||||||
|
* @param id 编号
|
||||||
|
* @return 铁路站点维护
|
||||||
|
*/
|
||||||
|
RailwayStationDO getRailwayStation(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获得铁路站点维护分页
|
||||||
|
*
|
||||||
|
* @param pageReqVO 分页查询
|
||||||
|
* @return 铁路站点维护分页
|
||||||
|
*/
|
||||||
|
PageResult<RailwayStationDO> getRailwayStationPage(RailwayStationPageReqVO pageReqVO);
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,90 @@
|
|||||||
|
package cn.iocoder.yudao.module.backendlogistics.service.bseMngt.plceAchi;
|
||||||
|
|
||||||
|
import cn.hutool.core.collection.CollUtil;
|
||||||
|
import cn.iocoder.yudao.framework.common.pojo.PageResult;
|
||||||
|
import cn.iocoder.yudao.framework.common.util.object.BeanUtils;
|
||||||
|
import cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.plceAchi.vo.RailwayStationPageReqVO;
|
||||||
|
import cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.plceAchi.vo.RailwayStationRespVO;
|
||||||
|
import cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.plceAchi.vo.RailwayStationSaveReqVO;
|
||||||
|
import cn.iocoder.yudao.module.backendlogistics.dal.dataobject.bseMngt.plceAchi.RailwayStationDO;
|
||||||
|
import cn.iocoder.yudao.module.backendlogistics.dal.mysql.bseMngt.plceAchi.RailwayStationMapper;
|
||||||
|
import jakarta.annotation.Resource;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import org.springframework.validation.annotation.Validated;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import static cn.iocoder.yudao.framework.common.exception.util.ServiceExceptionUtil.exception;
|
||||||
|
import static cn.iocoder.yudao.module.backendlogistics.enums.ErrorCodeConstants.RAILWAY_STATION_NOT_EXISTS;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 铁路站点维护 Service 实现类
|
||||||
|
*
|
||||||
|
* @author 后台管理
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
@Validated
|
||||||
|
public class RailwayStationServiceImpl implements RailwayStationService {
|
||||||
|
|
||||||
|
@Resource
|
||||||
|
private RailwayStationMapper railwayStationMapper;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public RailwayStationRespVO createRailwayStation(RailwayStationSaveReqVO createReqVO) {
|
||||||
|
// 插入
|
||||||
|
RailwayStationDO railwayStation = BeanUtils.toBean(createReqVO, RailwayStationDO.class);
|
||||||
|
railwayStationMapper.insert(railwayStation);
|
||||||
|
// 返回
|
||||||
|
return BeanUtils.toBean(railwayStation, RailwayStationRespVO.class);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void updateRailwayStation(RailwayStationSaveReqVO updateReqVO) {
|
||||||
|
// 校验存在
|
||||||
|
validateRailwayStationExists(updateReqVO.getId());
|
||||||
|
// 更新
|
||||||
|
RailwayStationDO updateObj = BeanUtils.toBean(updateReqVO, RailwayStationDO.class);
|
||||||
|
railwayStationMapper.updateById(updateObj);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void deleteRailwayStation(Long id) {
|
||||||
|
// 校验存在
|
||||||
|
validateRailwayStationExists(id);
|
||||||
|
// 删除
|
||||||
|
railwayStationMapper.deleteById(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void deleteRailwayStationListByIds(List<Long> ids) {
|
||||||
|
// 校验存在
|
||||||
|
validateRailwayStationExists(ids);
|
||||||
|
// 删除
|
||||||
|
railwayStationMapper.deleteByIds(ids);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void validateRailwayStationExists(List<Long> ids) {
|
||||||
|
List<RailwayStationDO> list = railwayStationMapper.selectByIds(ids);
|
||||||
|
if (CollUtil.isEmpty(list) || list.size() != ids.size()) {
|
||||||
|
throw exception(RAILWAY_STATION_NOT_EXISTS);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void validateRailwayStationExists(Long id) {
|
||||||
|
if (railwayStationMapper.selectById(id) == null) {
|
||||||
|
throw exception(RAILWAY_STATION_NOT_EXISTS);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public RailwayStationDO getRailwayStation(Long id) {
|
||||||
|
return railwayStationMapper.selectById(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public PageResult<RailwayStationDO> getRailwayStationPage(RailwayStationPageReqVO pageReqVO) {
|
||||||
|
return railwayStationMapper.selectPage(pageReqVO);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,65 @@
|
|||||||
|
package cn.iocoder.yudao.module.backendlogistics.service.bseMngt.plceAchi;
|
||||||
|
|
||||||
|
import cn.iocoder.yudao.framework.common.pojo.PageResult;
|
||||||
|
import cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.plceAchi.vo.WarehousePageReqVO;
|
||||||
|
import cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.plceAchi.vo.WarehouseRespVO;
|
||||||
|
import cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.plceAchi.vo.WarehouseSaveReqVO;
|
||||||
|
import cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.plceAchi.vo.WarehouseUpdateReqVO;
|
||||||
|
import cn.iocoder.yudao.module.backendlogistics.dal.dataobject.bseMngt.plceAchi.WarehouseDO;
|
||||||
|
import jakarta.validation.Valid;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 仓库信息 Service 接口
|
||||||
|
*
|
||||||
|
* @author 后台管理
|
||||||
|
*/
|
||||||
|
public interface WarehouseService {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 创建仓库信息
|
||||||
|
*
|
||||||
|
* @param createReqVO 创建信息
|
||||||
|
* @return 编号
|
||||||
|
*/
|
||||||
|
WarehouseRespVO createWarehouse(@Valid WarehouseSaveReqVO createReqVO);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 更新仓库信息
|
||||||
|
*
|
||||||
|
* @param updateReqVO 更新信息
|
||||||
|
*/
|
||||||
|
void updateWarehouse(@Valid WarehouseUpdateReqVO updateReqVO);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除仓库信息
|
||||||
|
*
|
||||||
|
* @param id 编号
|
||||||
|
*/
|
||||||
|
void deleteWarehouse(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除仓库信息
|
||||||
|
*
|
||||||
|
* @param ids 编号
|
||||||
|
*/
|
||||||
|
void deleteWarehouseListByIds(List<Long> ids);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获得仓库信息
|
||||||
|
*
|
||||||
|
* @param id 编号
|
||||||
|
* @return 仓库信息
|
||||||
|
*/
|
||||||
|
WarehouseDO getWarehouse(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获得仓库信息分页
|
||||||
|
*
|
||||||
|
* @param pageReqVO 分页查询
|
||||||
|
* @return 仓库信息分页
|
||||||
|
*/
|
||||||
|
PageResult<WarehouseDO> getWarehousePage(WarehousePageReqVO pageReqVO);
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,114 @@
|
|||||||
|
package cn.iocoder.yudao.module.backendlogistics.service.bseMngt.plceAchi;
|
||||||
|
|
||||||
|
import cn.hutool.core.collection.CollUtil;
|
||||||
|
import cn.iocoder.yudao.framework.common.pojo.PageResult;
|
||||||
|
import cn.iocoder.yudao.framework.common.util.object.BeanUtils;
|
||||||
|
import cn.iocoder.yudao.framework.security.core.LoginUser;
|
||||||
|
import cn.iocoder.yudao.framework.security.core.util.SecurityFrameworkUtils;
|
||||||
|
import cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.plceAchi.vo.WarehousePageReqVO;
|
||||||
|
import cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.plceAchi.vo.WarehouseRespVO;
|
||||||
|
import cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.plceAchi.vo.WarehouseSaveReqVO;
|
||||||
|
import cn.iocoder.yudao.module.backendlogistics.controller.admin.backendlogistics.bseMngt.plceAchi.vo.WarehouseUpdateReqVO;
|
||||||
|
import cn.iocoder.yudao.module.backendlogistics.dal.dataobject.bseMngt.plceAchi.WarehouseDO;
|
||||||
|
import cn.iocoder.yudao.module.backendlogistics.dal.mysql.bseMngt.plceAchi.WarehouseMapper;
|
||||||
|
import cn.iocoder.yudao.module.backendlogistics.enums.bseMngt.plceAchi.WrhTpEnum;
|
||||||
|
import jakarta.annotation.Resource;
|
||||||
|
import org.apache.commons.lang3.StringUtils;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import org.springframework.validation.annotation.Validated;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import static cn.iocoder.yudao.framework.common.exception.util.ServiceExceptionUtil.exception;
|
||||||
|
import static cn.iocoder.yudao.module.backendlogistics.enums.ErrorCodeConstants.CORR_FACT_NOT_EXISTS;
|
||||||
|
import static cn.iocoder.yudao.module.backendlogistics.enums.ErrorCodeConstants.WAREHOUSE_NOT_EXISTS;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 仓库信息 Service 实现类
|
||||||
|
*
|
||||||
|
* @author 后台管理
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
@Validated
|
||||||
|
public class WarehouseServiceImpl implements WarehouseService {
|
||||||
|
|
||||||
|
@Resource
|
||||||
|
private WarehouseMapper warehouseMapper;
|
||||||
|
|
||||||
|
//仓库类别=厂内库时需关联工厂(选择工厂信息)
|
||||||
|
private void validateCorrelationFactory(WarehouseSaveReqVO vo){
|
||||||
|
String warehouseType = vo.getWarehouseType();
|
||||||
|
if(WrhTpEnum.FAW.getCode().equals(warehouseType)){
|
||||||
|
if(StringUtils.isBlank(vo.getCorrelationFactory())){
|
||||||
|
throw exception(CORR_FACT_NOT_EXISTS);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public WarehouseRespVO createWarehouse(WarehouseSaveReqVO createReqVO) {
|
||||||
|
LoginUser loginUser = SecurityFrameworkUtils.getLoginUser();
|
||||||
|
// 校验
|
||||||
|
validateCorrelationFactory(createReqVO);
|
||||||
|
// 插入
|
||||||
|
WarehouseDO warehouse = BeanUtils.toBean(createReqVO, WarehouseDO.class);
|
||||||
|
warehouseMapper.insert(warehouse);
|
||||||
|
// 返回
|
||||||
|
return BeanUtils.toBean(warehouse, WarehouseRespVO.class);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void updateWarehouse(WarehouseUpdateReqVO updateReqVO) {
|
||||||
|
// 校验存在
|
||||||
|
validateWarehouseExists(updateReqVO.getId());
|
||||||
|
validateCorrelationFactory(updateReqVO);
|
||||||
|
// 更新
|
||||||
|
WarehouseDO updateObj = BeanUtils.toBean(updateReqVO, WarehouseDO.class);
|
||||||
|
warehouseMapper.updateById(updateObj);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void deleteWarehouse(Long id) {
|
||||||
|
// 校验存在
|
||||||
|
validateWarehouseExists(id);
|
||||||
|
// 删除
|
||||||
|
warehouseMapper.deleteById(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void deleteWarehouseListByIds(List<Long> ids) {
|
||||||
|
// 校验存在
|
||||||
|
validateWarehouseExists(ids);
|
||||||
|
// 删除
|
||||||
|
warehouseMapper.deleteByIds(ids);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void validateWarehouseExists(List<Long> ids) {
|
||||||
|
List<WarehouseDO> list = warehouseMapper.selectByIds(ids);
|
||||||
|
if (CollUtil.isEmpty(list) || list.size() != ids.size()) {
|
||||||
|
throw exception(WAREHOUSE_NOT_EXISTS);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void validateWarehouseExists(Long id) {
|
||||||
|
if (warehouseMapper.selectById(id) == null) {
|
||||||
|
throw exception(WAREHOUSE_NOT_EXISTS);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void validateWarehouseExists(String name, String code) {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public WarehouseDO getWarehouse(Long id) {
|
||||||
|
return warehouseMapper.selectById(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public PageResult<WarehouseDO> getWarehousePage(WarehousePageReqVO pageReqVO) {
|
||||||
|
return warehouseMapper.selectPage(pageReqVO);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="cn.iocoder.yudao.module.backendlogistics.dal.mysql.bseMngt.plceAchi.AuncelConfigMapper">
|
||||||
|
|
||||||
|
<!--
|
||||||
|
一般情况下,尽可能使用 Mapper 进行 CRUD 增删改查即可。
|
||||||
|
无法满足的场景,例如说多表关联查询,才使用 XML 编写 SQL。
|
||||||
|
代码生成器暂时只生成 Mapper XML 文件本身,更多推荐 MybatisX 快速开发插件来生成查询。
|
||||||
|
文档可见:https://www.iocoder.cn/MyBatis/x-plugins/
|
||||||
|
-->
|
||||||
|
|
||||||
|
</mapper>
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="cn.iocoder.yudao.module.backendlogistics.dal.mysql.bseMngt.plceAchi.ConsigneeAddressMapper">
|
||||||
|
|
||||||
|
<!--
|
||||||
|
一般情况下,尽可能使用 Mapper 进行 CRUD 增删改查即可。
|
||||||
|
无法满足的场景,例如说多表关联查询,才使用 XML 编写 SQL。
|
||||||
|
代码生成器暂时只生成 Mapper XML 文件本身,更多推荐 MybatisX 快速开发插件来生成查询。
|
||||||
|
文档可见:https://www.iocoder.cn/MyBatis/x-plugins/
|
||||||
|
-->
|
||||||
|
|
||||||
|
</mapper>
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="cn.iocoder.yudao.module.backendlogistics.dal.mysql.bseMngt.plceAchi.FactoryMapper">
|
||||||
|
|
||||||
|
<!--
|
||||||
|
一般情况下,尽可能使用 Mapper 进行 CRUD 增删改查即可。
|
||||||
|
无法满足的场景,例如说多表关联查询,才使用 XML 编写 SQL。
|
||||||
|
代码生成器暂时只生成 Mapper XML 文件本身,更多推荐 MybatisX 快速开发插件来生成查询。
|
||||||
|
文档可见:https://www.iocoder.cn/MyBatis/x-plugins/
|
||||||
|
-->
|
||||||
|
|
||||||
|
</mapper>
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="cn.iocoder.yudao.module.backendlogistics.dal.mysql.bseMngt.plceAchi.GateConfigMapper">
|
||||||
|
|
||||||
|
<!--
|
||||||
|
一般情况下,尽可能使用 Mapper 进行 CRUD 增删改查即可。
|
||||||
|
无法满足的场景,例如说多表关联查询,才使用 XML 编写 SQL。
|
||||||
|
代码生成器暂时只生成 Mapper XML 文件本身,更多推荐 MybatisX 快速开发插件来生成查询。
|
||||||
|
文档可见:https://www.iocoder.cn/MyBatis/x-plugins/
|
||||||
|
-->
|
||||||
|
|
||||||
|
</mapper>
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="cn.iocoder.yudao.module.backendlogistics.dal.mysql.bseMngt.plceAchi.PlaceArchiveMaterialMapper">
|
||||||
|
|
||||||
|
<!--
|
||||||
|
一般情况下,尽可能使用 Mapper 进行 CRUD 增删改查即可。
|
||||||
|
无法满足的场景,例如说多表关联查询,才使用 XML 编写 SQL。
|
||||||
|
代码生成器暂时只生成 Mapper XML 文件本身,更多推荐 MybatisX 快速开发插件来生成查询。
|
||||||
|
文档可见:https://www.iocoder.cn/MyBatis/x-plugins/
|
||||||
|
-->
|
||||||
|
|
||||||
|
</mapper>
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="cn.iocoder.yudao.module.backendlogistics.dal.mysql.bseMngt.plceAchi.PortMapper">
|
||||||
|
|
||||||
|
<!--
|
||||||
|
一般情况下,尽可能使用 Mapper 进行 CRUD 增删改查即可。
|
||||||
|
无法满足的场景,例如说多表关联查询,才使用 XML 编写 SQL。
|
||||||
|
代码生成器暂时只生成 Mapper XML 文件本身,更多推荐 MybatisX 快速开发插件来生成查询。
|
||||||
|
文档可见:https://www.iocoder.cn/MyBatis/x-plugins/
|
||||||
|
-->
|
||||||
|
|
||||||
|
</mapper>
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="cn.iocoder.yudao.module.backendlogistics.dal.mysql.bseMngt.plceAchi.RailwayStationMapper">
|
||||||
|
|
||||||
|
<!--
|
||||||
|
一般情况下,尽可能使用 Mapper 进行 CRUD 增删改查即可。
|
||||||
|
无法满足的场景,例如说多表关联查询,才使用 XML 编写 SQL。
|
||||||
|
代码生成器暂时只生成 Mapper XML 文件本身,更多推荐 MybatisX 快速开发插件来生成查询。
|
||||||
|
文档可见:https://www.iocoder.cn/MyBatis/x-plugins/
|
||||||
|
-->
|
||||||
|
|
||||||
|
</mapper>
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="cn.iocoder.yudao.module.backendlogistics.dal.mysql.bseMngt.plceAchi.WarehouseMapper">
|
||||||
|
|
||||||
|
<!--
|
||||||
|
一般情况下,尽可能使用 Mapper 进行 CRUD 增删改查即可。
|
||||||
|
无法满足的场景,例如说多表关联查询,才使用 XML 编写 SQL。
|
||||||
|
代码生成器暂时只生成 Mapper XML 文件本身,更多推荐 MybatisX 快速开发插件来生成查询。
|
||||||
|
文档可见:https://www.iocoder.cn/MyBatis/x-plugins/
|
||||||
|
-->
|
||||||
|
|
||||||
|
</mapper>
|
||||||
Reference in New Issue
Block a user