From 2c76a7447fdc5697090580d2c9acbdb4feedf5da Mon Sep 17 00:00:00 2001 From: baoge <751575283@qq.com> Date: Wed, 24 Jan 2024 15:11:55 +0800 Subject: [PATCH] =?UTF-8?q?add:=E5=A2=9E=E5=8A=A0mapper=E7=94=9F=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/SchBasePointController.java | 96 ++++++ .../sch/point/dao/BstIvtPackageinfoivt.java | 161 ++++++++++ .../nl/b_lms/sch/point/dao/SchBasePoint.java | 300 ++++++++++++++++++ .../sch/point/dao/StIvtCoolregionio.java | 203 ++++++++++++ .../b_lms/sch/point/dao/StIvtCutpointivt.java | 214 +++++++++++++ .../sch/point/dao/StIvtDeliverypointivt.java | 154 +++++++++ .../sch/point/dao/StIvtEmptytubeivt.java | 148 +++++++++ .../point/dao/StIvtEmptyvehiclerecord.java | 161 ++++++++++ .../b_lms/sch/point/dao/StIvtHotpointivt.java | 208 ++++++++++++ .../b_lms/sch/point/dao/StIvtSbpointivt.java | 146 +++++++++ .../nl/b_lms/sch/point/dao/StIvtShaftivt.java | 208 ++++++++++++ .../mapper/BstIvtPackageinfoivtMapper.java | 15 + .../point/dao/mapper/SchBasePointMapper.java | 15 + .../dao/mapper/StIvtCoolregionioMapper.java | 15 + .../dao/mapper/StIvtCutpointivtMapper.java | 15 + .../mapper/StIvtDeliverypointivtMapper.java | 15 + .../dao/mapper/StIvtEmptytubeivtMapper.java | 15 + .../mapper/StIvtEmptyvehiclerecordMapper.java | 15 + .../dao/mapper/StIvtHotpointivtMapper.java | 15 + .../dao/mapper/StIvtSbpointivtMapper.java | 15 + .../point/dao/mapper/StIvtShaftivtMapper.java | 15 + .../dao/xml/BstIvtPackageinfoivtMapper.xml | 6 + .../sch/point/dao/xml/SchBasePointMapper.xml | 6 + .../point/dao/xml/StIvtCoolregionioMapper.xml | 6 + .../point/dao/xml/StIvtCutpointivtMapper.xml | 6 + .../dao/xml/StIvtDeliverypointivtMapper.xml | 6 + .../point/dao/xml/StIvtEmptytubeivtMapper.xml | 6 + .../dao/xml/StIvtEmptyvehiclerecordMapper.xml | 6 + .../point/dao/xml/StIvtHotpointivtMapper.xml | 6 + .../point/dao/xml/StIvtSbpointivtMapper.xml | 6 + .../sch/point/dao/xml/StIvtShaftivtMapper.xml | 6 + .../sch/point/dto/SchBasePointQuery.java | 26 ++ .../service/IbstIvtPackageinfoivtService.java | 57 ++++ .../point/service/IschBasePointService.java | 57 ++++ .../service/IstIvtCoolregionioService.java | 57 ++++ .../service/IstIvtCutpointivtService.java | 57 ++++ .../IstIvtDeliverypointivtService.java | 57 ++++ .../service/IstIvtEmptytubeivtService.java | 57 ++++ .../IstIvtEmptyvehiclerecordService.java | 57 ++++ .../service/IstIvtHotpointivtService.java | 57 ++++ .../service/IstIvtSbpointivtService.java | 57 ++++ .../point/service/IstIvtShaftivtService.java | 57 ++++ .../impl/BstIvtPackageinfoivtServiceImpl.java | 105 ++++++ .../service/impl/SchBasePointServiceImpl.java | 105 ++++++ .../impl/StIvtCoolregionioServiceImpl.java | 105 ++++++ .../impl/StIvtCutpointivtServiceImpl.java | 105 ++++++ .../StIvtDeliverypointivtServiceImpl.java | 105 ++++++ .../impl/StIvtEmptytubeivtServiceImpl.java | 105 ++++++ .../StIvtEmptyvehiclerecordServiceImpl.java | 105 ++++++ .../impl/StIvtHotpointivtServiceImpl.java | 105 ++++++ .../impl/StIvtSbpointivtServiceImpl.java | 105 ++++++ .../impl/StIvtShaftivtServiceImpl.java | 105 ++++++ .../controller/SchBaseRegionController.java | 96 ++++++ .../b_lms/sch/region/dao/SchBaseRegion.java | 123 +++++++ .../dao/mapper/SchBaseRegionMapper.java | 15 + .../region/dao/mapper/SchBaseRegionMapper.xml | 6 + .../sch/region/dto/SchBaseRegionQuery.java | 19 ++ .../region/service/IschBaseRegionService.java | 57 ++++ .../impl/SchBaseRegionServiceImpl.java | 114 +++++++ .../controller/SchBaseTaskController.java | 96 ++++++ .../nl/b_lms/sch/task/dao/SchBaseTask.java | 293 +++++++++++++++++ .../task/dao/mapper/SchBaseTaskMapper.java | 15 + .../sch/task/dao/mapper/SchBaseTaskMapper.xml | 6 + .../b_lms/sch/task/dto/SchBaseTaskQuery.java | 22 ++ .../sch/task/service/IschBaseTaskService.java | 57 ++++ .../service/impl/SchBaseTaskServiceImpl.java | 113 +++++++ .../java/org/nl/common/api/CommonResult.java | 141 ++++++++ .../java/org/nl/common/api/IErrorCode.java | 19 ++ .../nl/common/api/RestBusinessTemplate.java | 119 +++++++ .../java/org/nl/common/api/ResultCode.java | 77 +++++ .../common/exception/BizCoreException.java | 89 ++++++ 71 files changed, 5332 insertions(+) create mode 100644 lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/controller/SchBasePointController.java create mode 100644 lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/dao/BstIvtPackageinfoivt.java create mode 100644 lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/dao/SchBasePoint.java create mode 100644 lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/dao/StIvtCoolregionio.java create mode 100644 lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/dao/StIvtCutpointivt.java create mode 100644 lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/dao/StIvtDeliverypointivt.java create mode 100644 lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/dao/StIvtEmptytubeivt.java create mode 100644 lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/dao/StIvtEmptyvehiclerecord.java create mode 100644 lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/dao/StIvtHotpointivt.java create mode 100644 lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/dao/StIvtSbpointivt.java create mode 100644 lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/dao/StIvtShaftivt.java create mode 100644 lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/dao/mapper/BstIvtPackageinfoivtMapper.java create mode 100644 lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/dao/mapper/SchBasePointMapper.java create mode 100644 lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/dao/mapper/StIvtCoolregionioMapper.java create mode 100644 lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/dao/mapper/StIvtCutpointivtMapper.java create mode 100644 lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/dao/mapper/StIvtDeliverypointivtMapper.java create mode 100644 lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/dao/mapper/StIvtEmptytubeivtMapper.java create mode 100644 lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/dao/mapper/StIvtEmptyvehiclerecordMapper.java create mode 100644 lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/dao/mapper/StIvtHotpointivtMapper.java create mode 100644 lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/dao/mapper/StIvtSbpointivtMapper.java create mode 100644 lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/dao/mapper/StIvtShaftivtMapper.java create mode 100644 lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/dao/xml/BstIvtPackageinfoivtMapper.xml create mode 100644 lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/dao/xml/SchBasePointMapper.xml create mode 100644 lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/dao/xml/StIvtCoolregionioMapper.xml create mode 100644 lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/dao/xml/StIvtCutpointivtMapper.xml create mode 100644 lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/dao/xml/StIvtDeliverypointivtMapper.xml create mode 100644 lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/dao/xml/StIvtEmptytubeivtMapper.xml create mode 100644 lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/dao/xml/StIvtEmptyvehiclerecordMapper.xml create mode 100644 lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/dao/xml/StIvtHotpointivtMapper.xml create mode 100644 lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/dao/xml/StIvtSbpointivtMapper.xml create mode 100644 lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/dao/xml/StIvtShaftivtMapper.xml create mode 100644 lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/dto/SchBasePointQuery.java create mode 100644 lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/service/IbstIvtPackageinfoivtService.java create mode 100644 lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/service/IschBasePointService.java create mode 100644 lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/service/IstIvtCoolregionioService.java create mode 100644 lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/service/IstIvtCutpointivtService.java create mode 100644 lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/service/IstIvtDeliverypointivtService.java create mode 100644 lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/service/IstIvtEmptytubeivtService.java create mode 100644 lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/service/IstIvtEmptyvehiclerecordService.java create mode 100644 lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/service/IstIvtHotpointivtService.java create mode 100644 lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/service/IstIvtSbpointivtService.java create mode 100644 lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/service/IstIvtShaftivtService.java create mode 100644 lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/service/impl/BstIvtPackageinfoivtServiceImpl.java create mode 100644 lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/service/impl/SchBasePointServiceImpl.java create mode 100644 lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/service/impl/StIvtCoolregionioServiceImpl.java create mode 100644 lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/service/impl/StIvtCutpointivtServiceImpl.java create mode 100644 lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/service/impl/StIvtDeliverypointivtServiceImpl.java create mode 100644 lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/service/impl/StIvtEmptytubeivtServiceImpl.java create mode 100644 lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/service/impl/StIvtEmptyvehiclerecordServiceImpl.java create mode 100644 lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/service/impl/StIvtHotpointivtServiceImpl.java create mode 100644 lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/service/impl/StIvtSbpointivtServiceImpl.java create mode 100644 lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/service/impl/StIvtShaftivtServiceImpl.java create mode 100644 lms/nladmin-system/src/main/java/org/nl/b_lms/sch/region/controller/SchBaseRegionController.java create mode 100644 lms/nladmin-system/src/main/java/org/nl/b_lms/sch/region/dao/SchBaseRegion.java create mode 100644 lms/nladmin-system/src/main/java/org/nl/b_lms/sch/region/dao/mapper/SchBaseRegionMapper.java create mode 100644 lms/nladmin-system/src/main/java/org/nl/b_lms/sch/region/dao/mapper/SchBaseRegionMapper.xml create mode 100644 lms/nladmin-system/src/main/java/org/nl/b_lms/sch/region/dto/SchBaseRegionQuery.java create mode 100644 lms/nladmin-system/src/main/java/org/nl/b_lms/sch/region/service/IschBaseRegionService.java create mode 100644 lms/nladmin-system/src/main/java/org/nl/b_lms/sch/region/service/impl/SchBaseRegionServiceImpl.java create mode 100644 lms/nladmin-system/src/main/java/org/nl/b_lms/sch/task/controller/SchBaseTaskController.java create mode 100644 lms/nladmin-system/src/main/java/org/nl/b_lms/sch/task/dao/SchBaseTask.java create mode 100644 lms/nladmin-system/src/main/java/org/nl/b_lms/sch/task/dao/mapper/SchBaseTaskMapper.java create mode 100644 lms/nladmin-system/src/main/java/org/nl/b_lms/sch/task/dao/mapper/SchBaseTaskMapper.xml create mode 100644 lms/nladmin-system/src/main/java/org/nl/b_lms/sch/task/dto/SchBaseTaskQuery.java create mode 100644 lms/nladmin-system/src/main/java/org/nl/b_lms/sch/task/service/IschBaseTaskService.java create mode 100644 lms/nladmin-system/src/main/java/org/nl/b_lms/sch/task/service/impl/SchBaseTaskServiceImpl.java create mode 100644 lms/nladmin-system/src/main/java/org/nl/common/api/CommonResult.java create mode 100644 lms/nladmin-system/src/main/java/org/nl/common/api/IErrorCode.java create mode 100644 lms/nladmin-system/src/main/java/org/nl/common/api/RestBusinessTemplate.java create mode 100644 lms/nladmin-system/src/main/java/org/nl/common/api/ResultCode.java create mode 100644 lms/nladmin-system/src/main/java/org/nl/modules/common/exception/BizCoreException.java diff --git a/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/controller/SchBasePointController.java b/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/controller/SchBasePointController.java new file mode 100644 index 000000000..1ef66a5a5 --- /dev/null +++ b/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/controller/SchBasePointController.java @@ -0,0 +1,96 @@ +package org.nl.b_lms.sch.point.controller; + +import java.util.Set; +import java.util.Map; + +import org.nl.b_lms.sch.point.dao.SchBasePoint; +import org.nl.common.TableDataInfo; +import org.springframework.web.bind.annotation.*; +import lombok.RequiredArgsConstructor; + +import javax.annotation.Resource; + +import lombok.extern.slf4j.Slf4j; +import org.nl.common.domain.query.PageQuery; +import org.springframework.http.HttpStatus; +import org.springframework.http.ResponseEntity; +import org.nl.modules.logging.annotation.Log; +import org.nl.b_lms.sch.point.service.IschBasePointService; + + +/** + * {@code @Description:} 点位基础表(SchBasePoint)控制层 + * {@code @Author:} gbx + * + * @since 2024-01-24 + */ +@RestController +@RequiredArgsConstructor +@RequestMapping("/api/schBasePoint") +@Slf4j +public class SchBasePointController { + + + @Resource + private IschBasePointService schBasePointService; + + + /** + * 分页查询 + * + * @param whereJson 查询条件 + * @param page 分页参数 + */ + @GetMapping + @Log("查询点位基础表") + public ResponseEntity query(@RequestParam Map whereJson, PageQuery page) { + return new ResponseEntity<>(TableDataInfo.build(schBasePointService.queryAll(whereJson, page)), HttpStatus.OK); + } + + + /** + * 新增数据 + * + * @param entity 实体对象 + * @return 新增结果 + */ + @PostMapping + @Log("新增点位基础表") + public ResponseEntity create(SchBasePoint entity) { + schBasePointService.create(entity); + return new ResponseEntity<>(HttpStatus.OK); + } + + + /** + * 修改数据 + * + * @param entity 实体对象 + * @return 修改结果 + */ + @PutMapping + @Log("修改点位基础表") + //@SaCheckPermission("@el.check(SchBasePoint:edit')") + public ResponseEntity update(SchBasePoint entity) { + schBasePointService.update(entity); + return new ResponseEntity<>(HttpStatus.OK); + } + + + /** + * 删除数据 + * + * @param ids 多个主键Id + * @return 删除结果 + */ + @Log("删除点位基础表") + //@SaCheckPermission("@el.check(SchBasePoint:del')") + @DeleteMapping + public ResponseEntity delete(@RequestBody Set ids) { + schBasePointService.deleteAll(ids); + return new ResponseEntity<>(HttpStatus.OK); + } + + +} + diff --git a/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/dao/BstIvtPackageinfoivt.java b/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/dao/BstIvtPackageinfoivt.java new file mode 100644 index 000000000..3839e9589 --- /dev/null +++ b/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/dao/BstIvtPackageinfoivt.java @@ -0,0 +1,161 @@ +package org.nl.b_lms.sch.point.dao; + +import java.math.BigDecimal; +import java.io.Serializable; +import java.math.BigDecimal; + +import lombok.*; +import lombok.Data; +import lombok.Builder; +import lombok.NoArgsConstructor; +import lombok.EqualsAndHashCode; +import lombok.AllArgsConstructor; +import com.baomidou.mybatisplus.annotation.*; +import com.baomidou.mybatisplus.annotation.TableName; +import com.baomidou.mybatisplus.extension.activerecord.Model; + + +/** + * {@code @Description:} 装箱区点位库存表(BstIvtPackageinfoivt)实体类 + * {@code @Author:} gbx + * + * @since 2024-01-24 + */ +@Data +@Builder +@ToString +@NoArgsConstructor +@AllArgsConstructor +@EqualsAndHashCode(callSuper = false) +@SuppressWarnings("serial") +@TableName("bst_ivt_packageinfoivt") +public class BstIvtPackageinfoivt extends Model { + + private static final long serialVersionUID = -7739291296662381393L; + + + @TableId(value = "ivt_id", type = IdType.NONE) + /** + * 库存记录标识 + */ + private Long ivt_id; + + + /** + * 点位编码 + */ + private String point_code; + + + /** + * 点位名称 + */ + private String point_name; + + + /** + * 子卷号 + */ + private String container_name; + + + /** + * 点位类型 + */ + private String point_status; + + + /** + * 库存状态 + */ + private String ivt_status; + + + /** + * 区块 + */ + private String block; + + + /** + * 位置 + */ + private String point_location; + + + /** + * 顺序号 + */ + private BigDecimal sort_seq; + + + /** + * 是否启用 + */ + private String is_used; + + + /** + * 备注 + */ + private String remark; + + + /** + * 创建人 + */ + private Long create_id; + + + /** + * 创建人 + */ + private String create_name; + + + /** + * 创建时间 + */ + @TableField(fill = FieldFill.INSERT) + private String create_time; + + + /** + * 修改人 + */ + private Long update_optid; + + + /** + * 修改人 + */ + private String update_optname; + + + /** + * 修改时间 + */ + @TableField(fill = FieldFill.INSERT_UPDATE) + private String update_time; + + + /** + * 规划 + */ + private String plan; + + + /** + * 获取主键值 + * + * @return 主键值 + */ + @Override + protected Serializable pkVal() { + return this.ivt_id; + } + +} + + + diff --git a/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/dao/SchBasePoint.java b/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/dao/SchBasePoint.java new file mode 100644 index 000000000..671279fb3 --- /dev/null +++ b/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/dao/SchBasePoint.java @@ -0,0 +1,300 @@ +package org.nl.b_lms.sch.point.dao; + +import java.math.BigDecimal; +import java.io.Serializable; +import java.math.BigDecimal; + +import lombok.*; +import lombok.Data; +import lombok.Builder; +import lombok.NoArgsConstructor; +import lombok.EqualsAndHashCode; +import lombok.AllArgsConstructor; +import com.baomidou.mybatisplus.annotation.*; +import com.baomidou.mybatisplus.annotation.TableName; +import com.baomidou.mybatisplus.extension.activerecord.Model; + + +/** + * {@code @Description:} 点位基础表(SchBasePoint)实体类 + * {@code @Author:} gbx + * + * @since 2024-01-24 + */ +@Data +@Builder +@ToString +@NoArgsConstructor +@AllArgsConstructor +@EqualsAndHashCode(callSuper = false) +@SuppressWarnings("serial") +@TableName("sch_base_point") +public class SchBasePoint extends Model { + + private static final long serialVersionUID = -7739291296662381393L; + + + @TableId(value = "point_id", type = IdType.NONE) + /** + * 点位标识 + */ + private Long point_id; + + + /** + * 点位编码 + */ + private String point_code; + + + /** + * 点位名称 + */ + private String point_name; + + + /** + * 所属区域 + */ + private Long region_id; + + + /** + * 区域编码 + */ + private String region_code; + + + /** + * 区域名称 + */ + private String region_name; + + + /** + * 点位类型 + */ + private String point_type; + + + /** + * 点位状态 + */ + private String point_status; + + + /** + * 锁定类型 + */ + private String lock_type; + + + /** + * 物料标识 + */ + private Long material_id; + + + /** + * 设备编码 + */ + private String device_code; + + + /** + * MES设备编码 + */ + private String mes_device_code; + + + /** + * 允许的载具类型 + */ + private String can_vehicle_type; + + + /** + * 载具允许最大数量 + */ + private BigDecimal vehicle_max_qty; + + + /** + * 载具类型 + */ + private String vehicle_type; + + + /** + * 载具编码 + */ + private String vehicle_code; + + + /** + * 载具数量 + */ + private BigDecimal vehicle_qty; + + + /** + * 块 + */ + private BigDecimal block_num; + + + /** + * 排 + */ + private BigDecimal row_num; + + + /** + * 列 + */ + private BigDecimal col_num; + + + /** + * 层 + */ + private BigDecimal layer_num; + + + /** + * 入库顺序 + */ + private BigDecimal in_order_seq; + + + /** + * 出库顺序 + */ + private BigDecimal out_order_seq; + + + /** + * 入空载具顺序 + */ + private BigDecimal in_empty_seq; + + + /** + * 出空载具顺序 + */ + private BigDecimal out_empty_seq; + + + /** + * 点位组编码 + */ + private String point_group_code; + + + /** + * 是否建工单 + */ + private String is_have_workder; + + + /** + * 在执行的任务标识 + */ + private Long task_id; + + + /** + * 生产区域 + */ + private String product_area; + + + /** + * 备注 + */ + private String remark; + + + /** + * 来源标识 + */ + private Long source_id; + + + /** + * 是否启用 + */ + private String is_used; + + + /** + * 是否删除 + */ + @TableField(fill = FieldFill.INSERT) + private String is_delete; + + + /** + * 创建人 + */ + private Long create_id; + + + /** + * 创建人 + */ + private String create_name; + + + /** + * 创建时间 + */ + @TableField(fill = FieldFill.INSERT) + private String create_time; + + + /** + * 修改人 + */ + private Long update_optid; + + + /** + * 修改人 + */ + private String update_optname; + + + /** + * 修改时间 + */ + @TableField(fill = FieldFill.INSERT_UPDATE) + private String update_time; + + + /** + * 位置 + */ + private String point_location; + + + /** + * 物料编码 + */ + private String material_code; + + + /** + * 获取主键值 + * + * @return 主键值 + */ + @Override + protected Serializable pkVal() { + return this.point_id; + } + +} + + + diff --git a/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/dao/StIvtCoolregionio.java b/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/dao/StIvtCoolregionio.java new file mode 100644 index 000000000..a1281fc43 --- /dev/null +++ b/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/dao/StIvtCoolregionio.java @@ -0,0 +1,203 @@ +package org.nl.b_lms.sch.point.dao; + +import java.math.BigDecimal; +import java.io.Serializable; +import java.math.BigDecimal; + +import lombok.*; +import lombok.Data; +import lombok.Builder; +import lombok.NoArgsConstructor; +import lombok.EqualsAndHashCode; +import lombok.AllArgsConstructor; +import com.baomidou.mybatisplus.annotation.*; +import com.baomidou.mybatisplus.annotation.TableName; +import com.baomidou.mybatisplus.extension.activerecord.Model; + + +/** + * {@code @Description:} 冷却区出入表(StIvtCoolregionio)实体类 + * {@code @Author:} gbx + * + * @since 2024-01-24 + */ +@Data +@Builder +@ToString +@NoArgsConstructor +@AllArgsConstructor +@EqualsAndHashCode(callSuper = false) +@SuppressWarnings("serial") +@TableName("st_ivt_coolregionio") +public class StIvtCoolregionio extends Model { + + private static final long serialVersionUID = -7739291296662381393L; + + @TableId(value = "iostorinv_id", type = IdType.NONE) + /** + * 出入单标识 + */ + private Long iostorinv_id; + + + /** + * 单据编号 + */ + private String bill_code; + + + /** + * 出入类型 + */ + private String io_type; + + + /** + * 物料标识 + */ + private Long material_id; + + + /** + * 批次 + */ + private String pcsn; + + + /** + * 载具编码 + */ + private String vehicle_code; + + + /** + * 数量 + */ + private BigDecimal qty; + + + /** + * 数量单位标识 + */ + private Long qty_unit_id; + + + /** + * 单据状态 + */ + private String bill_status; + + + /** + * 起始点位编码 + */ + private String start_point_code; + + + /** + * 终点点位编码 + */ + private String end_point_code; + + + /** + * 客户标识 + */ + private Long cust_id; + + + /** + * 生成方式 + */ + private String create_mode; + + + /** + * 任务标识 + */ + private Long task_id; + + + /** + * 备注 + */ + private String remark; + + + /** + * 创建人 + */ + private Long create_id; + + + /** + * 创建人姓名 + */ + private String create_name; + + + /** + * 创建时间 + */ + @TableField(fill = FieldFill.INSERT) + private String create_time; + + + /** + * 修改人 + */ + private Long update_optid; + + + /** + * 修改人姓名 + */ + private String update_optname; + + + /** + * 修改时间 + */ + @TableField(fill = FieldFill.INSERT_UPDATE) + private String update_time; + + + /** + * 确认人 + */ + private Long confirm_optid; + + + /** + * 确认人姓名 + */ + private String confirm_optname; + + + /** + * 确认时间 + */ + private String confirm_time; + + + /** + * 是否删除 + */ + @TableField(fill = FieldFill.INSERT) + private String is_delete; + + + /** + * 获取主键值 + * + * @return 主键值 + */ + @Override + protected Serializable pkVal() { + return this.iostorinv_id; + } + +} + + + diff --git a/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/dao/StIvtCutpointivt.java b/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/dao/StIvtCutpointivt.java new file mode 100644 index 000000000..8ea6fbbab --- /dev/null +++ b/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/dao/StIvtCutpointivt.java @@ -0,0 +1,214 @@ +package org.nl.b_lms.sch.point.dao; + +import java.math.BigDecimal; +import java.io.Serializable; +import java.math.BigDecimal; + +import lombok.*; +import lombok.Data; +import lombok.Builder; +import lombok.NoArgsConstructor; +import lombok.EqualsAndHashCode; +import lombok.AllArgsConstructor; +import com.baomidou.mybatisplus.annotation.*; +import com.baomidou.mybatisplus.annotation.TableName; +import com.baomidou.mybatisplus.extension.activerecord.Model; + + +/** + * {@code @Description:} 分切区点位库存表(StIvtCutpointivt)实体类 + * {@code @Author:} gbx + * + * @since 2024-01-24 + */ +@Data +@Builder +@ToString +@NoArgsConstructor +@AllArgsConstructor +@EqualsAndHashCode(callSuper = false) +@SuppressWarnings("serial") +@TableName("st_ivt_cutpointivt") +public class StIvtCutpointivt extends Model { + + private static final long serialVersionUID = -7739291296662381393L; + + @TableId(value = "ivt_id", type = IdType.NONE) + /** + * 库存记录标识 + */ + private Long ivt_id; + + + /** + * 点位编码 + */ + private String point_code; + + + /** + * 满轴位编码 + */ + private String full_point_code; + + + /** + * 满轴位状态 + */ + private String full_point_status; + + + /** + * 母卷号 + */ + private String container_name; + + + /** + * 母卷轴编码 + */ + private String full_vehicle_code; + + + /** + * 空轴位编码 + */ + private String empty_point_code; + + + /** + * 空轴位状态 + */ + private String empty_point_status; + + + /** + * 空轴编码 + */ + private String empty_vehicle_code; + + + /** + * 生产区域 + */ + private String product_area; + + + /** + * 位置 + */ + private String point_location; + + + /** + * 分切下料位上轴点位 + */ + private String up_point_code; + + + /** + * 分切下料位下轴点位 + */ + private String down_point_code; + + + /** + * 顺序号 + */ + private BigDecimal sort_seq; + + + /** + * 是否启用 + */ + private String is_used; + + + /** + * 备注 + */ + private String remark; + + + /** + * 创建人 + */ + private Long create_id; + + + /** + * 创建人姓名 + */ + private String create_name; + + + /** + * 创建时间 + */ + @TableField(fill = FieldFill.INSERT) + private String create_time; + + + /** + * 修改人 + */ + private Long update_optid; + + + /** + * 修改人姓名 + */ + private String update_optname; + + + /** + * 修改时间 + */ + @TableField(fill = FieldFill.INSERT_UPDATE) + private String update_time; + + + /** + * 规划 + */ + private String plan; + + + /** + * 对应MES系统设备编码 + */ + private String ext_code; + + + /** + * 分切下料位上轴 + */ + private String up_qzzno; + + + /** + * 分切下料位下轴 + */ + private String down_qzzno; + + + /** + * 气胀轴代数 + */ + private String qzz_generation; + + + /** + * 获取主键值 + * + * @return 主键值 + */ + @Override + protected Serializable pkVal() { + return this.ivt_id; + } + +} + + + diff --git a/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/dao/StIvtDeliverypointivt.java b/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/dao/StIvtDeliverypointivt.java new file mode 100644 index 000000000..3639b9915 --- /dev/null +++ b/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/dao/StIvtDeliverypointivt.java @@ -0,0 +1,154 @@ +package org.nl.b_lms.sch.point.dao; + +import java.math.BigDecimal; +import java.io.Serializable; +import java.math.BigDecimal; + +import lombok.*; +import lombok.Data; +import lombok.Builder; +import lombok.NoArgsConstructor; +import lombok.EqualsAndHashCode; +import lombok.AllArgsConstructor; +import com.baomidou.mybatisplus.annotation.*; +import com.baomidou.mybatisplus.annotation.TableName; +import com.baomidou.mybatisplus.extension.activerecord.Model; + + +/** + * {@code @Description:} 分切输送线点位库存表(StIvtDeliverypointivt)实体类 + * {@code @Author:} gbx + * + * @since 2024-01-24 + */ +@Data +@Builder +@ToString +@NoArgsConstructor +@AllArgsConstructor +@EqualsAndHashCode(callSuper = false) +@SuppressWarnings("serial") +@TableName("st_ivt_deliverypointivt") +public class StIvtDeliverypointivt extends Model { + + private static final long serialVersionUID = -7739291296662381393L; + + @TableId(value = "ivt_id", type = IdType.NONE) + /** + * 库存记录标识 + */ + private Long ivt_id; + + + /** + * 点位编码 + */ + private String point_code; + + + /** + * 生产区域 + */ + private String product_area; + + + /** + * 位置 + */ + private String point_location; + + + /** + * 顺序号 + */ + private BigDecimal sort_seq; + + + /** + * 是否启用 + */ + private String is_used; + + + /** + * 备注 + */ + private String remark; + + + /** + * 创建人 + */ + private Long create_id; + + + /** + * 创建人姓名 + */ + private String create_name; + + + /** + * 创建时间 + */ + @TableField(fill = FieldFill.INSERT) + private String create_time; + + + /** + * 修改人 + */ + private Long update_optid; + + + /** + * 修改人姓名 + */ + private String update_optname; + + + /** + * 修改时间 + */ + @TableField(fill = FieldFill.INSERT_UPDATE) + private String update_time; + + + /** + * 规划 + */ + private String plan; + + + /** + * 气涨轴编码 + */ + private String qzzno; + + + /** + * 载具码 + */ + private String vehicle_code; + + + /** + * 点位状态 + */ + private String point_status; + + + /** + * 获取主键值 + * + * @return 主键值 + */ + @Override + protected Serializable pkVal() { + return this.ivt_id; + } + +} + + + diff --git a/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/dao/StIvtEmptytubeivt.java b/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/dao/StIvtEmptytubeivt.java new file mode 100644 index 000000000..ec4fdc158 --- /dev/null +++ b/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/dao/StIvtEmptytubeivt.java @@ -0,0 +1,148 @@ +package org.nl.b_lms.sch.point.dao; + +import java.math.BigDecimal; +import java.io.Serializable; +import java.math.BigDecimal; + +import lombok.*; +import lombok.Data; +import lombok.Builder; +import lombok.NoArgsConstructor; +import lombok.EqualsAndHashCode; +import lombok.AllArgsConstructor; +import com.baomidou.mybatisplus.annotation.*; +import com.baomidou.mybatisplus.annotation.TableName; +import com.baomidou.mybatisplus.extension.activerecord.Model; + + +/** + * {@code @Description:} 空纸管库区点位库存表(StIvtEmptytubeivt)实体类 + * {@code @Author:} gbx + * + * @since 2024-01-24 + */ +@Data +@Builder +@ToString +@NoArgsConstructor +@AllArgsConstructor +@EqualsAndHashCode(callSuper = false) +@SuppressWarnings("serial") +@TableName("st_ivt_emptytubeivt") +public class StIvtEmptytubeivt extends Model { + + private static final long serialVersionUID = -7739291296662381393L; + + @TableId(value = "ivt_id", type = IdType.NONE) + /** + * 库存记录标识 + */ + private Long ivt_id; + + + /** + * 点位编码 + */ + private String point_code; + + + /** + * 生产区域 + */ + private String product_area; + + + /** + * 物料编码 + */ + private String material_code; + + + /** + * 物料名称 + */ + private String material_name; + + + /** + * 数量 + */ + private BigDecimal qty; + + + /** + * 顺序号 + */ + private BigDecimal sort_seq; + + + /** + * 是否启用 + */ + private String is_used; + + + /** + * 备注 + */ + private String remark; + + + /** + * 创建人 + */ + private Long create_id; + + + /** + * 创建人 + */ + private String create_name; + + + /** + * 创建时间 + */ + @TableField(fill = FieldFill.INSERT) + private String create_time; + + + /** + * 修改人 + */ + private Long update_optid; + + + /** + * 修改人 + */ + private String update_optname; + + + /** + * 修改时间 + */ + @TableField(fill = FieldFill.INSERT_UPDATE) + private String update_time; + + + /** + * 规划 + */ + private String plan; + + + /** + * 获取主键值 + * + * @return 主键值 + */ + @Override + protected Serializable pkVal() { + return this.ivt_id; + } + +} + + + diff --git a/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/dao/StIvtEmptyvehiclerecord.java b/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/dao/StIvtEmptyvehiclerecord.java new file mode 100644 index 000000000..3f2ce4009 --- /dev/null +++ b/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/dao/StIvtEmptyvehiclerecord.java @@ -0,0 +1,161 @@ +package org.nl.b_lms.sch.point.dao; + +import java.math.BigDecimal; +import java.io.Serializable; +import java.math.BigDecimal; + +import lombok.*; +import lombok.Data; +import lombok.Builder; +import lombok.NoArgsConstructor; +import lombok.EqualsAndHashCode; +import lombok.AllArgsConstructor; +import com.baomidou.mybatisplus.annotation.*; +import com.baomidou.mybatisplus.annotation.TableName; +import com.baomidou.mybatisplus.extension.activerecord.Model; + + +/** + * {@code @Description:} 空载具作业记录表(StIvtEmptyvehiclerecord)实体类 + * {@code @Author:} gbx + * + * @since 2024-01-24 + */ +@Data +@Builder +@ToString +@NoArgsConstructor +@AllArgsConstructor +@EqualsAndHashCode(callSuper = false) +@SuppressWarnings("serial") +@TableName("st_ivt_emptyvehiclerecord") +public class StIvtEmptyvehiclerecord extends Model { + + private static final long serialVersionUID = -7739291296662381393L; + + @TableId(value = "record_uuid", type = IdType.NONE) + /** + * 记录标识 + */ + private Long record_uuid; + + + /** + * 单据编号 + */ + private String bill_code; + + + /** + * 单据类型 + */ + private String io_type; + + + /** + * 单据状态 + */ + private String bill_status; + + + /** + * 载具数量 + */ + private BigDecimal vehicle_qty; + + + /** + * 起始点位 + */ + private String start_point_code; + + + /** + * 下一点位 + */ + private String next_point_code; + + + /** + * 起始区域 + */ + private Long start_region_id; + + + /** + * 终点区域 + */ + private Long end_region_id; + + + /** + * 任务标识 + */ + private Long task_uuid; + + + /** + * 备注 + */ + private String remark; + + + /** + * 创建人 + */ + private Long create_id; + + + /** + * 创建人姓名 + */ + private String create_name; + + + /** + * 创建时间 + */ + @TableField(fill = FieldFill.INSERT) + private String create_time; + + + /** + * 修改人 + */ + private Long update_optid; + + + /** + * 修改人姓名 + */ + private String update_optname; + + + /** + * 修改时间 + */ + @TableField(fill = FieldFill.INSERT_UPDATE) + private String update_time; + + + /** + * 是否删除 + */ + @TableField(fill = FieldFill.INSERT) + private String is_delete; + + + /** + * 获取主键值 + * + * @return 主键值 + */ + @Override + protected Serializable pkVal() { + return this.record_uuid; + } + +} + + + diff --git a/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/dao/StIvtHotpointivt.java b/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/dao/StIvtHotpointivt.java new file mode 100644 index 000000000..8a876d53c --- /dev/null +++ b/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/dao/StIvtHotpointivt.java @@ -0,0 +1,208 @@ +package org.nl.b_lms.sch.point.dao; + +import java.math.BigDecimal; +import java.io.Serializable; +import java.math.BigDecimal; + +import lombok.*; +import lombok.Data; +import lombok.Builder; +import lombok.NoArgsConstructor; +import lombok.EqualsAndHashCode; +import lombok.AllArgsConstructor; +import com.baomidou.mybatisplus.annotation.*; +import com.baomidou.mybatisplus.annotation.TableName; +import com.baomidou.mybatisplus.extension.activerecord.Model; + + +/** + * {@code @Description:} 烘烤区点位库存表(StIvtHotpointivt)实体类 + * {@code @Author:} gbx + * + * @since 2024-01-24 + */ +@Data +@Builder +@ToString +@NoArgsConstructor +@AllArgsConstructor +@EqualsAndHashCode(callSuper = false) +@SuppressWarnings("serial") +@TableName("st_ivt_hotpointivt") +public class StIvtHotpointivt extends Model { + + private static final long serialVersionUID = -7739291296662381393L; + + @TableId(value = "ivt_id", type = IdType.NONE) + /** + * 库存记录标识 + */ + private Long ivt_id; + + + /** + * 点位编码 + */ + private String point_code; + + + /** + * 点位状态 + */ + private String point_status; + + + /** + * 母卷号 + */ + private String container_name; + + + /** + * 母卷工单标识 + */ + private String workorder_id; + + + /** + * 母卷轴编码 + */ + private String full_vehicle_code; + + + /** + * 批次 + */ + private String pcsn; + + + /** + * 库存数 + */ + private BigDecimal ivt_qty; + + + /** + * 计量单位标识 + */ + private Long qty_unit_id; + + + /** + * 入库时间 + */ + private String instorage_time; + + + /** + * 生产区域 + */ + private String product_area; + + + /** + * 温度 + */ + private BigDecimal temperature; + + + /** + * 组别 + */ + private String group_name; + + + /** + * 位置 + */ + private String point_location; + + + /** + * 顺序号 + */ + private BigDecimal sort_seq; + + + /** + * 是否启用 + */ + private String is_used; + + + /** + * 备注 + */ + private String remark; + + + /** + * 创建人 + */ + private Long create_id; + + + /** + * 创建人姓名 + */ + private String create_name; + + + /** + * 创建时间 + */ + @TableField(fill = FieldFill.INSERT) + private String create_time; + + + /** + * 修改人 + */ + private Long update_optid; + + + /** + * 修改人姓名 + */ + private String update_optname; + + + /** + * 修改时间 + */ + @TableField(fill = FieldFill.INSERT_UPDATE) + private String update_time; + + + /** + * 规划 + */ + private String plan; + + + /** + * 外部编码 + */ + private String ext_code; + + + /** + * 倒计时 + */ + private String last_time; + + + /** + * 获取主键值 + * + * @return 主键值 + */ + @Override + protected Serializable pkVal() { + return this.ivt_id; + } + +} + + + diff --git a/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/dao/StIvtSbpointivt.java b/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/dao/StIvtSbpointivt.java new file mode 100644 index 000000000..dc17bd594 --- /dev/null +++ b/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/dao/StIvtSbpointivt.java @@ -0,0 +1,146 @@ +package org.nl.b_lms.sch.point.dao; + +import java.io.Serializable; +import java.math.BigDecimal; + +import lombok.*; +import lombok.Data; +import lombok.Builder; +import lombok.NoArgsConstructor; +import lombok.EqualsAndHashCode; +import lombok.AllArgsConstructor; +import com.baomidou.mybatisplus.annotation.*; +import com.baomidou.mybatisplus.annotation.TableName; +import com.baomidou.mybatisplus.extension.activerecord.Model; + + +/** + * {@code @Description:} 生箔点位库存表(StIvtSbpointivt)实体类 + * {@code @Author:} gbx + * + * @since 2024-01-24 + */ +@Data +@Builder +@ToString +@NoArgsConstructor +@AllArgsConstructor +@EqualsAndHashCode(callSuper = false) +@TableName("st_ivt_sbpointivt") +public class StIvtSbpointivt extends Model { + + private static final long serialVersionUID = -7739291296662381393L; + + @TableId(value = "point_id", type = IdType.NONE) + /** + * 点位标识 + */ + private Long point_id; + + + /** + * 点位编码 + */ + private String point_code; + + + /** + * 载具编码 + */ + private String vehicle_code; + + + /** + * 生产区域 + */ + private String product_area; + + + /** + * 位置 + */ + private String point_location; + + + /** + * 外部编码 + */ + private String ext_code; + + + /** + * 备注 + */ + private String remark; + + + /** + * 是否启用 + */ + private String is_used; + + + /** + * 创建人 + */ + private Long create_id; + + + /** + * 创建人 + */ + private String create_name; + + + /** + * 创建时间 + */ + @TableField(fill = FieldFill.INSERT) + private String create_time; + + + /** + * 修改人 + */ + private Long update_optid; + + + /** + * 修改人 + */ + private String update_optname; + + + /** + * 修改时间 + */ + @TableField(fill = FieldFill.INSERT_UPDATE) + private String update_time; + + + /** + * 规划 + */ + private String plan; + + + /** + * MES启用 + */ + private String mes_used; + + + /** + * 获取主键值 + * + * @return 主键值 + */ + @Override + protected Serializable pkVal() { + return this.point_id; + } + +} + + + diff --git a/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/dao/StIvtShaftivt.java b/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/dao/StIvtShaftivt.java new file mode 100644 index 000000000..e781d4e88 --- /dev/null +++ b/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/dao/StIvtShaftivt.java @@ -0,0 +1,208 @@ +package org.nl.b_lms.sch.point.dao; + +import java.math.BigDecimal; +import java.io.Serializable; +import java.math.BigDecimal; + +import lombok.*; +import lombok.Data; +import lombok.Builder; +import lombok.NoArgsConstructor; +import lombok.EqualsAndHashCode; +import lombok.AllArgsConstructor; +import com.baomidou.mybatisplus.annotation.*; +import com.baomidou.mybatisplus.annotation.TableName; +import com.baomidou.mybatisplus.extension.activerecord.Model; + + +/** + * {@code @Description:} 内包间点位库存表(StIvtShaftivt)实体类 + * {@code @Author:} gbx + * + * @since 2024-01-24 + */ +@Data +@Builder +@ToString +@NoArgsConstructor +@AllArgsConstructor +@EqualsAndHashCode(callSuper = false) +@SuppressWarnings("serial") +@TableName("st_ivt_shaftivt") +public class StIvtShaftivt extends Model { + + private static final long serialVersionUID = -7739291296662381393L; + + @TableId(value = "ivt_id", type = IdType.NONE) + /** + * 库存记录标识 + */ + private Long ivt_id; + + + /** + * 点位编码 + */ + private String point_code; + + + /** + * 生产区域 + */ + private String product_area; + + + /** + * 是否有轴 + */ + private String have_qzz; + + + /** + * 气涨轴尺寸 + */ + private String qzz_size; + + + /** + * 气涨轴代数 + */ + private String qzz_generation; + + + /** + * 纸管1编码 + */ + private String tube_code1; + + + /** + * 纸管1描述 + */ + private String tube_name1; + + + /** + * 纸管2编码 + */ + private String tube_code2; + + + /** + * 纸管2描述 + */ + private String tube_name2; + + + /** + * 点位类型 + */ + private String point_type; + + + /** + * 排 + */ + private BigDecimal row_num; + + + /** + * 列 + */ + private BigDecimal col_num; + + + /** + * 层 + */ + private BigDecimal layer_num; + + + /** + * 顺序号 + */ + private BigDecimal sort_seq; + + + /** + * 创建人 + */ + private Long create_id; + + + /** + * 创建人 + */ + private String create_name; + + + /** + * 创建时间 + */ + @TableField(fill = FieldFill.INSERT) + private String create_time; + + + /** + * 修改人 + */ + private Long update_optid; + + + /** + * 修改人 + */ + private String update_optname; + + + /** + * 修改时间 + */ + @TableField(fill = FieldFill.INSERT_UPDATE) + private String update_time; + + + /** + * 规划 + */ + private String plan; + + + /** + * 子卷号1 + */ + private String container_name1; + + + /** + * 子卷号2 + */ + private String container_name2; + + + /** + * 位置 + */ + private String point_location; + + + /** + * 是否启用 + */ + private String is_used; + + + /** + * 获取主键值 + * + * @return 主键值 + */ + @Override + protected Serializable pkVal() { + return this.ivt_id; + } + +} + + + diff --git a/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/dao/mapper/BstIvtPackageinfoivtMapper.java b/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/dao/mapper/BstIvtPackageinfoivtMapper.java new file mode 100644 index 000000000..4d6bd0105 --- /dev/null +++ b/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/dao/mapper/BstIvtPackageinfoivtMapper.java @@ -0,0 +1,15 @@ +package org.nl.b_lms.sch.point.dao.mapper; + +import org.nl.b_lms.sch.point.dao.BstIvtPackageinfoivt; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; + +/** + * {@code @Description:} 装箱区点位库存表(BstIvtPackageinfoivt)数据持久层 + * {@code @Author:} gbx + * + * @since 2024-01-24 + */ +public interface BstIvtPackageinfoivtMapper extends BaseMapper { + + +} diff --git a/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/dao/mapper/SchBasePointMapper.java b/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/dao/mapper/SchBasePointMapper.java new file mode 100644 index 000000000..61200a5a2 --- /dev/null +++ b/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/dao/mapper/SchBasePointMapper.java @@ -0,0 +1,15 @@ +package org.nl.b_lms.sch.point.dao.mapper; + +import org.nl.b_lms.sch.point.dao.SchBasePoint; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; + +/** + * {@code @Description:} 点位基础表(SchBasePoint)数据持久层 + * {@code @Author:} gbx + * + * @since 2024-01-24 + */ +public interface SchBasePointMapper extends BaseMapper { + + +} diff --git a/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/dao/mapper/StIvtCoolregionioMapper.java b/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/dao/mapper/StIvtCoolregionioMapper.java new file mode 100644 index 000000000..045173846 --- /dev/null +++ b/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/dao/mapper/StIvtCoolregionioMapper.java @@ -0,0 +1,15 @@ +package org.nl.b_lms.sch.point.dao.mapper; + +import org.nl.b_lms.sch.point.dao.StIvtCoolregionio; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; + +/** + * {@code @Description:} 冷却区出入表(StIvtCoolregionio)数据持久层 + * {@code @Author:} gbx + * + * @since 2024-01-24 + */ +public interface StIvtCoolregionioMapper extends BaseMapper { + + +} diff --git a/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/dao/mapper/StIvtCutpointivtMapper.java b/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/dao/mapper/StIvtCutpointivtMapper.java new file mode 100644 index 000000000..349f7c3c7 --- /dev/null +++ b/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/dao/mapper/StIvtCutpointivtMapper.java @@ -0,0 +1,15 @@ +package org.nl.b_lms.sch.point.dao.mapper; + +import org.nl.b_lms.sch.point.dao.StIvtCutpointivt; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; + +/** + * {@code @Description:} 分切区点位库存表(StIvtCutpointivt)数据持久层 + * {@code @Author:} gbx + * + * @since 2024-01-24 + */ +public interface StIvtCutpointivtMapper extends BaseMapper { + + +} diff --git a/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/dao/mapper/StIvtDeliverypointivtMapper.java b/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/dao/mapper/StIvtDeliverypointivtMapper.java new file mode 100644 index 000000000..ddde0eb63 --- /dev/null +++ b/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/dao/mapper/StIvtDeliverypointivtMapper.java @@ -0,0 +1,15 @@ +package org.nl.b_lms.sch.point.dao.mapper; + +import org.nl.b_lms.sch.point.dao.StIvtDeliverypointivt; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; + +/** + * {@code @Description:} 分切输送线点位库存表(StIvtDeliverypointivt)数据持久层 + * {@code @Author:} gbx + * + * @since 2024-01-24 + */ +public interface StIvtDeliverypointivtMapper extends BaseMapper { + + +} diff --git a/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/dao/mapper/StIvtEmptytubeivtMapper.java b/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/dao/mapper/StIvtEmptytubeivtMapper.java new file mode 100644 index 000000000..ade9db066 --- /dev/null +++ b/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/dao/mapper/StIvtEmptytubeivtMapper.java @@ -0,0 +1,15 @@ +package org.nl.b_lms.sch.point.dao.mapper; + +import org.nl.b_lms.sch.point.dao.StIvtEmptytubeivt; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; + +/** + * {@code @Description:} 空纸管库区点位库存表(StIvtEmptytubeivt)数据持久层 + * {@code @Author:} gbx + * + * @since 2024-01-24 + */ +public interface StIvtEmptytubeivtMapper extends BaseMapper { + + +} diff --git a/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/dao/mapper/StIvtEmptyvehiclerecordMapper.java b/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/dao/mapper/StIvtEmptyvehiclerecordMapper.java new file mode 100644 index 000000000..225ddd1c8 --- /dev/null +++ b/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/dao/mapper/StIvtEmptyvehiclerecordMapper.java @@ -0,0 +1,15 @@ +package org.nl.b_lms.sch.point.dao.mapper; + +import org.nl.b_lms.sch.point.dao.StIvtEmptyvehiclerecord; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; + +/** + * {@code @Description:} 空载具作业记录表(StIvtEmptyvehiclerecord)数据持久层 + * {@code @Author:} gbx + * + * @since 2024-01-24 + */ +public interface StIvtEmptyvehiclerecordMapper extends BaseMapper { + + +} diff --git a/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/dao/mapper/StIvtHotpointivtMapper.java b/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/dao/mapper/StIvtHotpointivtMapper.java new file mode 100644 index 000000000..30f118264 --- /dev/null +++ b/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/dao/mapper/StIvtHotpointivtMapper.java @@ -0,0 +1,15 @@ +package org.nl.b_lms.sch.point.dao.mapper; + +import org.nl.b_lms.sch.point.dao.StIvtHotpointivt; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; + +/** + * {@code @Description:} 烘烤区点位库存表(StIvtHotpointivt)数据持久层 + * {@code @Author:} gbx + * + * @since 2024-01-24 + */ +public interface StIvtHotpointivtMapper extends BaseMapper { + + +} diff --git a/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/dao/mapper/StIvtSbpointivtMapper.java b/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/dao/mapper/StIvtSbpointivtMapper.java new file mode 100644 index 000000000..5e780ca1f --- /dev/null +++ b/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/dao/mapper/StIvtSbpointivtMapper.java @@ -0,0 +1,15 @@ +package org.nl.b_lms.sch.point.dao.mapper; + +import org.nl.b_lms.sch.point.dao.StIvtSbpointivt; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; + +/** + * {@code @Description:} 生箔点位库存表(StIvtSbpointivt)数据持久层 + * {@code @Author:} gbx + * + * @since 2024-01-24 + */ +public interface StIvtSbpointivtMapper extends BaseMapper { + + +} diff --git a/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/dao/mapper/StIvtShaftivtMapper.java b/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/dao/mapper/StIvtShaftivtMapper.java new file mode 100644 index 000000000..c22174451 --- /dev/null +++ b/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/dao/mapper/StIvtShaftivtMapper.java @@ -0,0 +1,15 @@ +package org.nl.b_lms.sch.point.dao.mapper; + +import org.nl.b_lms.sch.point.dao.StIvtShaftivt; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; + +/** + * {@code @Description:} 内包间点位库存表(StIvtShaftivt)数据持久层 + * {@code @Author:} gbx + * + * @since 2024-01-24 + */ +public interface StIvtShaftivtMapper extends BaseMapper { + + +} diff --git a/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/dao/xml/BstIvtPackageinfoivtMapper.xml b/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/dao/xml/BstIvtPackageinfoivtMapper.xml new file mode 100644 index 000000000..ae2a70f0b --- /dev/null +++ b/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/dao/xml/BstIvtPackageinfoivtMapper.xml @@ -0,0 +1,6 @@ + + + + + + diff --git a/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/dao/xml/SchBasePointMapper.xml b/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/dao/xml/SchBasePointMapper.xml new file mode 100644 index 000000000..1f63febf6 --- /dev/null +++ b/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/dao/xml/SchBasePointMapper.xml @@ -0,0 +1,6 @@ + + + + + + diff --git a/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/dao/xml/StIvtCoolregionioMapper.xml b/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/dao/xml/StIvtCoolregionioMapper.xml new file mode 100644 index 000000000..89e130fd8 --- /dev/null +++ b/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/dao/xml/StIvtCoolregionioMapper.xml @@ -0,0 +1,6 @@ + + + + + + diff --git a/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/dao/xml/StIvtCutpointivtMapper.xml b/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/dao/xml/StIvtCutpointivtMapper.xml new file mode 100644 index 000000000..d5c75f8aa --- /dev/null +++ b/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/dao/xml/StIvtCutpointivtMapper.xml @@ -0,0 +1,6 @@ + + + + + + diff --git a/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/dao/xml/StIvtDeliverypointivtMapper.xml b/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/dao/xml/StIvtDeliverypointivtMapper.xml new file mode 100644 index 000000000..7c82eddb6 --- /dev/null +++ b/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/dao/xml/StIvtDeliverypointivtMapper.xml @@ -0,0 +1,6 @@ + + + + + + diff --git a/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/dao/xml/StIvtEmptytubeivtMapper.xml b/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/dao/xml/StIvtEmptytubeivtMapper.xml new file mode 100644 index 000000000..a665d5243 --- /dev/null +++ b/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/dao/xml/StIvtEmptytubeivtMapper.xml @@ -0,0 +1,6 @@ + + + + + + diff --git a/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/dao/xml/StIvtEmptyvehiclerecordMapper.xml b/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/dao/xml/StIvtEmptyvehiclerecordMapper.xml new file mode 100644 index 000000000..9499ba6d1 --- /dev/null +++ b/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/dao/xml/StIvtEmptyvehiclerecordMapper.xml @@ -0,0 +1,6 @@ + + + + + + diff --git a/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/dao/xml/StIvtHotpointivtMapper.xml b/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/dao/xml/StIvtHotpointivtMapper.xml new file mode 100644 index 000000000..627d4991e --- /dev/null +++ b/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/dao/xml/StIvtHotpointivtMapper.xml @@ -0,0 +1,6 @@ + + + + + + diff --git a/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/dao/xml/StIvtSbpointivtMapper.xml b/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/dao/xml/StIvtSbpointivtMapper.xml new file mode 100644 index 000000000..c2844afea --- /dev/null +++ b/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/dao/xml/StIvtSbpointivtMapper.xml @@ -0,0 +1,6 @@ + + + + + + diff --git a/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/dao/xml/StIvtShaftivtMapper.xml b/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/dao/xml/StIvtShaftivtMapper.xml new file mode 100644 index 000000000..eed59a06d --- /dev/null +++ b/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/dao/xml/StIvtShaftivtMapper.xml @@ -0,0 +1,6 @@ + + + + + + diff --git a/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/dto/SchBasePointQuery.java b/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/dto/SchBasePointQuery.java new file mode 100644 index 000000000..3b069a9d5 --- /dev/null +++ b/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/dto/SchBasePointQuery.java @@ -0,0 +1,26 @@ +package org.nl.b_lms.sch.point.dto; + + +import java.math.BigDecimal; + + +import lombok.Data; +import lombok.Builder; +import lombok.EqualsAndHashCode; +import lombok.NoArgsConstructor; +import org.nl.b_lms.sch.point.dao.SchBasePoint; +import org.nl.common.domain.query.BaseQuery; + +/** + * {@code @Description:} 生箔点位库存表(StIvtSbpointivt)参数类 + * {@code @Author:} gbx + * + * @since 2024-01-24 + */ +@EqualsAndHashCode(callSuper = true) +@Data +@Builder +@NoArgsConstructor +public class SchBasePointQuery extends BaseQuery { + +} diff --git a/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/service/IbstIvtPackageinfoivtService.java b/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/service/IbstIvtPackageinfoivtService.java new file mode 100644 index 000000000..f9c6faf00 --- /dev/null +++ b/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/service/IbstIvtPackageinfoivtService.java @@ -0,0 +1,57 @@ +package org.nl.b_lms.sch.point.service; + +import org.nl.b_lms.sch.point.dao.BstIvtPackageinfoivt; +import com.baomidou.mybatisplus.extension.service.IService; + +import java.util.Map; +import java.util.Set; + +import com.baomidou.mybatisplus.core.metadata.IPage; +import org.nl.common.domain.query.PageQuery; + + +/** + * {@code @Description:} 装箱区点位库存表(BstIvtPackageinfoivt)服务接口层 + * {@code @Author:} gbx + * + * @since 2024-01-24 + */ +public interface IbstIvtPackageinfoivtService extends IService { + + + /** + * 查询数据分页 + * + * @param whereJson 查询条件 + * @param pageable 分页参数 + * @return IPage + */ + IPage queryAll(Map whereJson, PageQuery pageable); + + + /** + * 创建 + * + * @param entity / + */ + void create(BstIvtPackageinfoivt entity); + + + /** + * 编辑 + * + * @param entity / + */ + void update(BstIvtPackageinfoivt entity); + + /** + * 多选删除 + * + * @param ids / + */ + void deleteAll(Set ids); + + +} + + diff --git a/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/service/IschBasePointService.java b/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/service/IschBasePointService.java new file mode 100644 index 000000000..510358e62 --- /dev/null +++ b/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/service/IschBasePointService.java @@ -0,0 +1,57 @@ +package org.nl.b_lms.sch.point.service; + +import org.nl.b_lms.sch.point.dao.SchBasePoint; +import com.baomidou.mybatisplus.extension.service.IService; + +import java.util.Map; +import java.util.Set; + +import com.baomidou.mybatisplus.core.metadata.IPage; +import org.nl.common.domain.query.PageQuery; + + +/** + * {@code @Description:} 点位基础表(SchBasePoint)服务接口层 + * {@code @Author:} gbx + * + * @since 2024-01-24 + */ +public interface IschBasePointService extends IService { + + + /** + * 查询数据分页 + * + * @param whereJson 查询条件 + * @param pageable 分页参数 + * @return IPage + */ + IPage queryAll(Map whereJson, PageQuery pageable); + + + /** + * 创建 + * + * @param entity / + */ + void create(SchBasePoint entity); + + + /** + * 编辑 + * + * @param entity / + */ + void update(SchBasePoint entity); + + /** + * 多选删除 + * + * @param ids / + */ + void deleteAll(Set ids); + + +} + + diff --git a/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/service/IstIvtCoolregionioService.java b/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/service/IstIvtCoolregionioService.java new file mode 100644 index 000000000..6e999e606 --- /dev/null +++ b/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/service/IstIvtCoolregionioService.java @@ -0,0 +1,57 @@ +package org.nl.b_lms.sch.point.service; + +import org.nl.b_lms.sch.point.dao.StIvtCoolregionio; +import com.baomidou.mybatisplus.extension.service.IService; + +import java.util.Map; +import java.util.Set; + +import com.baomidou.mybatisplus.core.metadata.IPage; +import org.nl.common.domain.query.PageQuery; + + +/** + * {@code @Description:} 冷却区出入表(StIvtCoolregionio)服务接口层 + * {@code @Author:} gbx + * + * @since 2024-01-24 + */ +public interface IstIvtCoolregionioService extends IService { + + + /** + * 查询数据分页 + * + * @param whereJson 查询条件 + * @param pageable 分页参数 + * @return IPage + */ + IPage queryAll(Map whereJson, PageQuery pageable); + + + /** + * 创建 + * + * @param entity / + */ + void create(StIvtCoolregionio entity); + + + /** + * 编辑 + * + * @param entity / + */ + void update(StIvtCoolregionio entity); + + /** + * 多选删除 + * + * @param ids / + */ + void deleteAll(Set ids); + + +} + + diff --git a/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/service/IstIvtCutpointivtService.java b/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/service/IstIvtCutpointivtService.java new file mode 100644 index 000000000..cd07a8902 --- /dev/null +++ b/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/service/IstIvtCutpointivtService.java @@ -0,0 +1,57 @@ +package org.nl.b_lms.sch.point.service; + +import org.nl.b_lms.sch.point.dao.StIvtCutpointivt; +import com.baomidou.mybatisplus.extension.service.IService; + +import java.util.Map; +import java.util.Set; + +import com.baomidou.mybatisplus.core.metadata.IPage; +import org.nl.common.domain.query.PageQuery; + + +/** + * {@code @Description:} 分切区点位库存表(StIvtCutpointivt)服务接口层 + * {@code @Author:} gbx + * + * @since 2024-01-24 + */ +public interface IstIvtCutpointivtService extends IService { + + + /** + * 查询数据分页 + * + * @param whereJson 查询条件 + * @param pageable 分页参数 + * @return IPage + */ + IPage queryAll(Map whereJson, PageQuery pageable); + + + /** + * 创建 + * + * @param entity / + */ + void create(StIvtCutpointivt entity); + + + /** + * 编辑 + * + * @param entity / + */ + void update(StIvtCutpointivt entity); + + /** + * 多选删除 + * + * @param ids / + */ + void deleteAll(Set ids); + + +} + + diff --git a/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/service/IstIvtDeliverypointivtService.java b/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/service/IstIvtDeliverypointivtService.java new file mode 100644 index 000000000..3d1135518 --- /dev/null +++ b/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/service/IstIvtDeliverypointivtService.java @@ -0,0 +1,57 @@ +package org.nl.b_lms.sch.point.service; + +import org.nl.b_lms.sch.point.dao.StIvtDeliverypointivt; +import com.baomidou.mybatisplus.extension.service.IService; + +import java.util.Map; +import java.util.Set; + +import com.baomidou.mybatisplus.core.metadata.IPage; +import org.nl.common.domain.query.PageQuery; + + +/** + * {@code @Description:} 分切输送线点位库存表(StIvtDeliverypointivt)服务接口层 + * {@code @Author:} gbx + * + * @since 2024-01-24 + */ +public interface IstIvtDeliverypointivtService extends IService { + + + /** + * 查询数据分页 + * + * @param whereJson 查询条件 + * @param pageable 分页参数 + * @return IPage + */ + IPage queryAll(Map whereJson, PageQuery pageable); + + + /** + * 创建 + * + * @param entity / + */ + void create(StIvtDeliverypointivt entity); + + + /** + * 编辑 + * + * @param entity / + */ + void update(StIvtDeliverypointivt entity); + + /** + * 多选删除 + * + * @param ids / + */ + void deleteAll(Set ids); + + +} + + diff --git a/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/service/IstIvtEmptytubeivtService.java b/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/service/IstIvtEmptytubeivtService.java new file mode 100644 index 000000000..2bda5085d --- /dev/null +++ b/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/service/IstIvtEmptytubeivtService.java @@ -0,0 +1,57 @@ +package org.nl.b_lms.sch.point.service; + +import org.nl.b_lms.sch.point.dao.StIvtEmptytubeivt; +import com.baomidou.mybatisplus.extension.service.IService; + +import java.util.Map; +import java.util.Set; + +import com.baomidou.mybatisplus.core.metadata.IPage; +import org.nl.common.domain.query.PageQuery; + + +/** + * {@code @Description:} 空纸管库区点位库存表(StIvtEmptytubeivt)服务接口层 + * {@code @Author:} gbx + * + * @since 2024-01-24 + */ +public interface IstIvtEmptytubeivtService extends IService { + + + /** + * 查询数据分页 + * + * @param whereJson 查询条件 + * @param pageable 分页参数 + * @return IPage + */ + IPage queryAll(Map whereJson, PageQuery pageable); + + + /** + * 创建 + * + * @param entity / + */ + void create(StIvtEmptytubeivt entity); + + + /** + * 编辑 + * + * @param entity / + */ + void update(StIvtEmptytubeivt entity); + + /** + * 多选删除 + * + * @param ids / + */ + void deleteAll(Set ids); + + +} + + diff --git a/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/service/IstIvtEmptyvehiclerecordService.java b/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/service/IstIvtEmptyvehiclerecordService.java new file mode 100644 index 000000000..2ea267b8a --- /dev/null +++ b/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/service/IstIvtEmptyvehiclerecordService.java @@ -0,0 +1,57 @@ +package org.nl.b_lms.sch.point.service; + +import org.nl.b_lms.sch.point.dao.StIvtEmptyvehiclerecord; +import com.baomidou.mybatisplus.extension.service.IService; + +import java.util.Map; +import java.util.Set; + +import com.baomidou.mybatisplus.core.metadata.IPage; +import org.nl.common.domain.query.PageQuery; + + +/** + * {@code @Description:} 空载具作业记录表(StIvtEmptyvehiclerecord)服务接口层 + * {@code @Author:} gbx + * + * @since 2024-01-24 + */ +public interface IstIvtEmptyvehiclerecordService extends IService { + + + /** + * 查询数据分页 + * + * @param whereJson 查询条件 + * @param pageable 分页参数 + * @return IPage + */ + IPage queryAll(Map whereJson, PageQuery pageable); + + + /** + * 创建 + * + * @param entity / + */ + void create(StIvtEmptyvehiclerecord entity); + + + /** + * 编辑 + * + * @param entity / + */ + void update(StIvtEmptyvehiclerecord entity); + + /** + * 多选删除 + * + * @param ids / + */ + void deleteAll(Set ids); + + +} + + diff --git a/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/service/IstIvtHotpointivtService.java b/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/service/IstIvtHotpointivtService.java new file mode 100644 index 000000000..19d9d15a6 --- /dev/null +++ b/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/service/IstIvtHotpointivtService.java @@ -0,0 +1,57 @@ +package org.nl.b_lms.sch.point.service; + +import org.nl.b_lms.sch.point.dao.StIvtHotpointivt; +import com.baomidou.mybatisplus.extension.service.IService; + +import java.util.Map; +import java.util.Set; + +import com.baomidou.mybatisplus.core.metadata.IPage; +import org.nl.common.domain.query.PageQuery; + + +/** + * {@code @Description:} 烘烤区点位库存表(StIvtHotpointivt)服务接口层 + * {@code @Author:} gbx + * + * @since 2024-01-24 + */ +public interface IstIvtHotpointivtService extends IService { + + + /** + * 查询数据分页 + * + * @param whereJson 查询条件 + * @param pageable 分页参数 + * @return IPage + */ + IPage queryAll(Map whereJson, PageQuery pageable); + + + /** + * 创建 + * + * @param entity / + */ + void create(StIvtHotpointivt entity); + + + /** + * 编辑 + * + * @param entity / + */ + void update(StIvtHotpointivt entity); + + /** + * 多选删除 + * + * @param ids / + */ + void deleteAll(Set ids); + + +} + + diff --git a/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/service/IstIvtSbpointivtService.java b/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/service/IstIvtSbpointivtService.java new file mode 100644 index 000000000..64036ed54 --- /dev/null +++ b/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/service/IstIvtSbpointivtService.java @@ -0,0 +1,57 @@ +package org.nl.b_lms.sch.point.service; + +import org.nl.b_lms.sch.point.dao.StIvtSbpointivt; +import com.baomidou.mybatisplus.extension.service.IService; + +import java.util.Map; +import java.util.Set; + +import com.baomidou.mybatisplus.core.metadata.IPage; +import org.nl.common.domain.query.PageQuery; + + +/** + * {@code @Description:} 生箔点位库存表(StIvtSbpointivt)服务接口层 + * {@code @Author:} gbx + * + * @since 2024-01-24 + */ +public interface IstIvtSbpointivtService extends IService { + + + /** + * 查询数据分页 + * + * @param whereJson 查询条件 + * @param pageable 分页参数 + * @return IPage + */ + IPage queryAll(Map whereJson, PageQuery pageable); + + + /** + * 创建 + * + * @param entity / + */ + void create(StIvtSbpointivt entity); + + + /** + * 编辑 + * + * @param entity / + */ + void update(StIvtSbpointivt entity); + + /** + * 多选删除 + * + * @param ids / + */ + void deleteAll(Set ids); + + +} + + diff --git a/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/service/IstIvtShaftivtService.java b/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/service/IstIvtShaftivtService.java new file mode 100644 index 000000000..c2b94a587 --- /dev/null +++ b/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/service/IstIvtShaftivtService.java @@ -0,0 +1,57 @@ +package org.nl.b_lms.sch.point.service; + +import org.nl.b_lms.sch.point.dao.StIvtShaftivt; +import com.baomidou.mybatisplus.extension.service.IService; + +import java.util.Map; +import java.util.Set; + +import com.baomidou.mybatisplus.core.metadata.IPage; +import org.nl.common.domain.query.PageQuery; + + +/** + * {@code @Description:} 内包间点位库存表(StIvtShaftivt)服务接口层 + * {@code @Author:} gbx + * + * @since 2024-01-24 + */ +public interface IstIvtShaftivtService extends IService { + + + /** + * 查询数据分页 + * + * @param whereJson 查询条件 + * @param pageable 分页参数 + * @return IPage + */ + IPage queryAll(Map whereJson, PageQuery pageable); + + + /** + * 创建 + * + * @param entity / + */ + void create(StIvtShaftivt entity); + + + /** + * 编辑 + * + * @param entity / + */ + void update(StIvtShaftivt entity); + + /** + * 多选删除 + * + * @param ids / + */ + void deleteAll(Set ids); + + +} + + diff --git a/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/service/impl/BstIvtPackageinfoivtServiceImpl.java b/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/service/impl/BstIvtPackageinfoivtServiceImpl.java new file mode 100644 index 000000000..57c1e8192 --- /dev/null +++ b/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/service/impl/BstIvtPackageinfoivtServiceImpl.java @@ -0,0 +1,105 @@ +package org.nl.b_lms.sch.point.service.impl; + +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import org.nl.b_lms.sch.point.dao.BstIvtPackageinfoivt; +import org.nl.b_lms.sch.point.dao.mapper.BstIvtPackageinfoivtMapper; +import org.nl.b_lms.sch.point.service.IbstIvtPackageinfoivtService; +import cn.hutool.core.date.DateUtil; +import org.nl.common.utils.SecurityUtils; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import org.springframework.stereotype.Service; +import com.baomidou.mybatisplus.core.metadata.IPage; +import org.nl.common.domain.query.PageQuery; + +import javax.annotation.Resource; +import java.util.Map; +import java.util.Set; + + +/** + * {@code @Description:} 装箱区点位库存表(BstIvtPackageinfoivt)服务实现层 + * {@code @Author:} gbx + * + * @since 2024-01-24 + */ +@Service("bstIvtPackageinfoivtService") +public class BstIvtPackageinfoivtServiceImpl extends ServiceImpl implements IbstIvtPackageinfoivtService { + + + @Resource + private BstIvtPackageinfoivtMapper bstIvtPackageinfoivtMapper; + + + /** + * 查询数据分页 + * + * @param whereJson 查询条件 + * @param page 分页参数 + */ + @Override + public IPage queryAll(Map whereJson, PageQuery page) { + return bstIvtPackageinfoivtMapper.selectPage(new Page<>(page.getPage() + 1, page.getSize()), new QueryWrapper() + .lambda()); + } + + + /** + * 创建 + * + * @param entity 对象实体 + */ + @Override + public void create(BstIvtPackageinfoivt entity) { + bstIvtPackageinfoivtMapper.insert(getBasicInfo(entity, true)); + } + + + /** + * 编辑 + * + * @param entity 对象实体 + */ + @Override + public void update(BstIvtPackageinfoivt entity) { + // BstIvtPackageinfoivt dto = bstIvtPackageinfoivtMapper.selectById(entity.getId); + // if (dto == null) { + // throw new BadRequestException("不存在该数据!"); + // } + bstIvtPackageinfoivtMapper.updateById(getBasicInfo(entity, false)); + } + + + /** + * 多选删除 + * + * @param ids 多个Id主键 + */ + @Override + public void deleteAll(Set ids) { + // 物理删除 + bstIvtPackageinfoivtMapper.deleteBatchIds(ids); + } + + + /** + * 获取实体基础信息 + * + * @param entity 对象实体 + * @param isCreate 是否创建 + */ + private BstIvtPackageinfoivt getBasicInfo(BstIvtPackageinfoivt entity, boolean isCreate) { + // if (isCreate) { + // entity.setCreate_id(Long.valueOf(SecurityUtils.getCurrentUserId())); + // entity.setCreate_name(SecurityUtils.getCurrentNickName()); + // entity.setCreate_time(DateUtil.now()); + // } + // entity.setUpdate_optid(Long.valueOf(SecurityUtils.getCurrentUserId())); + // entity.setUpdate_optname(SecurityUtils.getCurrentNickName()); + // entity.setUpdate_time(DateUtil.now()); + return entity; + } + + +} + diff --git a/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/service/impl/SchBasePointServiceImpl.java b/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/service/impl/SchBasePointServiceImpl.java new file mode 100644 index 000000000..b3459a2a4 --- /dev/null +++ b/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/service/impl/SchBasePointServiceImpl.java @@ -0,0 +1,105 @@ +package org.nl.b_lms.sch.point.service.impl; + +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import org.nl.b_lms.sch.point.dao.SchBasePoint; +import org.nl.b_lms.sch.point.dao.mapper.SchBasePointMapper; +import org.nl.b_lms.sch.point.service.IschBasePointService; +import cn.hutool.core.date.DateUtil; +import org.nl.common.utils.SecurityUtils; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import org.springframework.stereotype.Service; +import com.baomidou.mybatisplus.core.metadata.IPage; +import org.nl.common.domain.query.PageQuery; + +import javax.annotation.Resource; +import java.util.Map; +import java.util.Set; + + +/** + * {@code @Description:} 点位基础表(SchBasePoint)服务实现层 + * {@code @Author:} gbx + * + * @since 2024-01-24 + */ +@Service("schBasePointService") +public class SchBasePointServiceImpl extends ServiceImpl implements IschBasePointService { + + + @Resource + private SchBasePointMapper schBasePointMapper; + + + /** + * 查询数据分页 + * + * @param whereJson 查询条件 + * @param page 分页参数 + */ + @Override + public IPage queryAll(Map whereJson, PageQuery page) { + return schBasePointMapper.selectPage(new Page<>(page.getPage() + 1, page.getSize()), new QueryWrapper() + .lambda()); + } + + + /** + * 创建 + * + * @param entity 对象实体 + */ + @Override + public void create(SchBasePoint entity) { + schBasePointMapper.insert(getBasicInfo(entity, true)); + } + + + /** + * 编辑 + * + * @param entity 对象实体 + */ + @Override + public void update(SchBasePoint entity) { + // SchBasePoint dto = schBasePointMapper.selectById(entity.getId); + // if (dto == null) { + // throw new BadRequestException("不存在该数据!"); + // } + schBasePointMapper.updateById(getBasicInfo(entity, false)); + } + + + /** + * 多选删除 + * + * @param ids 多个Id主键 + */ + @Override + public void deleteAll(Set ids) { + // 物理删除 + schBasePointMapper.deleteBatchIds(ids); + } + + + /** + * 获取实体基础信息 + * + * @param entity 对象实体 + * @param isCreate 是否创建 + */ + private SchBasePoint getBasicInfo(SchBasePoint entity, boolean isCreate) { + // if (isCreate) { + // entity.setCreate_id(Long.valueOf(SecurityUtils.getCurrentUserId())); + // entity.setCreate_name(SecurityUtils.getCurrentNickName()); + // entity.setCreate_time(DateUtil.now()); + // } + // entity.setUpdate_optid(Long.valueOf(SecurityUtils.getCurrentUserId())); + // entity.setUpdate_optname(SecurityUtils.getCurrentNickName()); + // entity.setUpdate_time(DateUtil.now()); + return entity; + } + + +} + diff --git a/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/service/impl/StIvtCoolregionioServiceImpl.java b/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/service/impl/StIvtCoolregionioServiceImpl.java new file mode 100644 index 000000000..b06109714 --- /dev/null +++ b/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/service/impl/StIvtCoolregionioServiceImpl.java @@ -0,0 +1,105 @@ +package org.nl.b_lms.sch.point.service.impl; + +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import org.nl.b_lms.sch.point.dao.StIvtCoolregionio; +import org.nl.b_lms.sch.point.dao.mapper.StIvtCoolregionioMapper; +import org.nl.b_lms.sch.point.service.IstIvtCoolregionioService; +import cn.hutool.core.date.DateUtil; +import org.nl.common.utils.SecurityUtils; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import org.springframework.stereotype.Service; +import com.baomidou.mybatisplus.core.metadata.IPage; +import org.nl.common.domain.query.PageQuery; + +import javax.annotation.Resource; +import java.util.Map; +import java.util.Set; + + +/** + * {@code @Description:} 冷却区出入表(StIvtCoolregionio)服务实现层 + * {@code @Author:} gbx + * + * @since 2024-01-24 + */ +@Service("stIvtCoolregionioService") +public class StIvtCoolregionioServiceImpl extends ServiceImpl implements IstIvtCoolregionioService { + + + @Resource + private StIvtCoolregionioMapper stIvtCoolregionioMapper; + + + /** + * 查询数据分页 + * + * @param whereJson 查询条件 + * @param page 分页参数 + */ + @Override + public IPage queryAll(Map whereJson, PageQuery page) { + return stIvtCoolregionioMapper.selectPage(new Page<>(page.getPage() + 1, page.getSize()), new QueryWrapper() + .lambda()); + } + + + /** + * 创建 + * + * @param entity 对象实体 + */ + @Override + public void create(StIvtCoolregionio entity) { + stIvtCoolregionioMapper.insert(getBasicInfo(entity, true)); + } + + + /** + * 编辑 + * + * @param entity 对象实体 + */ + @Override + public void update(StIvtCoolregionio entity) { + // StIvtCoolregionio dto = stIvtCoolregionioMapper.selectById(entity.getId); + // if (dto == null) { + // throw new BadRequestException("不存在该数据!"); + // } + stIvtCoolregionioMapper.updateById(getBasicInfo(entity, false)); + } + + + /** + * 多选删除 + * + * @param ids 多个Id主键 + */ + @Override + public void deleteAll(Set ids) { + // 物理删除 + stIvtCoolregionioMapper.deleteBatchIds(ids); + } + + + /** + * 获取实体基础信息 + * + * @param entity 对象实体 + * @param isCreate 是否创建 + */ + private StIvtCoolregionio getBasicInfo(StIvtCoolregionio entity, boolean isCreate) { + // if (isCreate) { + // entity.setCreate_id(Long.valueOf(SecurityUtils.getCurrentUserId())); + // entity.setCreate_name(SecurityUtils.getCurrentNickName()); + // entity.setCreate_time(DateUtil.now()); + // } + // entity.setUpdate_optid(Long.valueOf(SecurityUtils.getCurrentUserId())); + // entity.setUpdate_optname(SecurityUtils.getCurrentNickName()); + // entity.setUpdate_time(DateUtil.now()); + return entity; + } + + +} + diff --git a/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/service/impl/StIvtCutpointivtServiceImpl.java b/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/service/impl/StIvtCutpointivtServiceImpl.java new file mode 100644 index 000000000..f6f33b6c3 --- /dev/null +++ b/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/service/impl/StIvtCutpointivtServiceImpl.java @@ -0,0 +1,105 @@ +package org.nl.b_lms.sch.point.service.impl; + +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import org.nl.b_lms.sch.point.dao.StIvtCutpointivt; +import org.nl.b_lms.sch.point.dao.mapper.StIvtCutpointivtMapper; +import org.nl.b_lms.sch.point.service.IstIvtCutpointivtService; +import cn.hutool.core.date.DateUtil; +import org.nl.common.utils.SecurityUtils; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import org.springframework.stereotype.Service; +import com.baomidou.mybatisplus.core.metadata.IPage; +import org.nl.common.domain.query.PageQuery; + +import javax.annotation.Resource; +import java.util.Map; +import java.util.Set; + + +/** + * {@code @Description:} 分切区点位库存表(StIvtCutpointivt)服务实现层 + * {@code @Author:} gbx + * + * @since 2024-01-24 + */ +@Service("stIvtCutpointivtService") +public class StIvtCutpointivtServiceImpl extends ServiceImpl implements IstIvtCutpointivtService { + + + @Resource + private StIvtCutpointivtMapper stIvtCutpointivtMapper; + + + /** + * 查询数据分页 + * + * @param whereJson 查询条件 + * @param page 分页参数 + */ + @Override + public IPage queryAll(Map whereJson, PageQuery page) { + return stIvtCutpointivtMapper.selectPage(new Page<>(page.getPage() + 1, page.getSize()), new QueryWrapper() + .lambda()); + } + + + /** + * 创建 + * + * @param entity 对象实体 + */ + @Override + public void create(StIvtCutpointivt entity) { + stIvtCutpointivtMapper.insert(getBasicInfo(entity, true)); + } + + + /** + * 编辑 + * + * @param entity 对象实体 + */ + @Override + public void update(StIvtCutpointivt entity) { + // StIvtCutpointivt dto = stIvtCutpointivtMapper.selectById(entity.getId); + // if (dto == null) { + // throw new BadRequestException("不存在该数据!"); + // } + stIvtCutpointivtMapper.updateById(getBasicInfo(entity, false)); + } + + + /** + * 多选删除 + * + * @param ids 多个Id主键 + */ + @Override + public void deleteAll(Set ids) { + // 物理删除 + stIvtCutpointivtMapper.deleteBatchIds(ids); + } + + + /** + * 获取实体基础信息 + * + * @param entity 对象实体 + * @param isCreate 是否创建 + */ + private StIvtCutpointivt getBasicInfo(StIvtCutpointivt entity, boolean isCreate) { + // if (isCreate) { + // entity.setCreate_id(Long.valueOf(SecurityUtils.getCurrentUserId())); + // entity.setCreate_name(SecurityUtils.getCurrentNickName()); + // entity.setCreate_time(DateUtil.now()); + // } + // entity.setUpdate_optid(Long.valueOf(SecurityUtils.getCurrentUserId())); + // entity.setUpdate_optname(SecurityUtils.getCurrentNickName()); + // entity.setUpdate_time(DateUtil.now()); + return entity; + } + + +} + diff --git a/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/service/impl/StIvtDeliverypointivtServiceImpl.java b/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/service/impl/StIvtDeliverypointivtServiceImpl.java new file mode 100644 index 000000000..c7cac0885 --- /dev/null +++ b/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/service/impl/StIvtDeliverypointivtServiceImpl.java @@ -0,0 +1,105 @@ +package org.nl.b_lms.sch.point.service.impl; + +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import org.nl.b_lms.sch.point.dao.StIvtDeliverypointivt; +import org.nl.b_lms.sch.point.dao.mapper.StIvtDeliverypointivtMapper; +import org.nl.b_lms.sch.point.service.IstIvtDeliverypointivtService; +import cn.hutool.core.date.DateUtil; +import org.nl.common.utils.SecurityUtils; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import org.springframework.stereotype.Service; +import com.baomidou.mybatisplus.core.metadata.IPage; +import org.nl.common.domain.query.PageQuery; + +import javax.annotation.Resource; +import java.util.Map; +import java.util.Set; + + +/** + * {@code @Description:} 分切输送线点位库存表(StIvtDeliverypointivt)服务实现层 + * {@code @Author:} gbx + * + * @since 2024-01-24 + */ +@Service("stIvtDeliverypointivtService") +public class StIvtDeliverypointivtServiceImpl extends ServiceImpl implements IstIvtDeliverypointivtService { + + + @Resource + private StIvtDeliverypointivtMapper stIvtDeliverypointivtMapper; + + + /** + * 查询数据分页 + * + * @param whereJson 查询条件 + * @param page 分页参数 + */ + @Override + public IPage queryAll(Map whereJson, PageQuery page) { + return stIvtDeliverypointivtMapper.selectPage(new Page<>(page.getPage() + 1, page.getSize()), new QueryWrapper() + .lambda()); + } + + + /** + * 创建 + * + * @param entity 对象实体 + */ + @Override + public void create(StIvtDeliverypointivt entity) { + stIvtDeliverypointivtMapper.insert(getBasicInfo(entity, true)); + } + + + /** + * 编辑 + * + * @param entity 对象实体 + */ + @Override + public void update(StIvtDeliverypointivt entity) { + // StIvtDeliverypointivt dto = stIvtDeliverypointivtMapper.selectById(entity.getId); + // if (dto == null) { + // throw new BadRequestException("不存在该数据!"); + // } + stIvtDeliverypointivtMapper.updateById(getBasicInfo(entity, false)); + } + + + /** + * 多选删除 + * + * @param ids 多个Id主键 + */ + @Override + public void deleteAll(Set ids) { + // 物理删除 + stIvtDeliverypointivtMapper.deleteBatchIds(ids); + } + + + /** + * 获取实体基础信息 + * + * @param entity 对象实体 + * @param isCreate 是否创建 + */ + private StIvtDeliverypointivt getBasicInfo(StIvtDeliverypointivt entity, boolean isCreate) { + // if (isCreate) { + // entity.setCreate_id(Long.valueOf(SecurityUtils.getCurrentUserId())); + // entity.setCreate_name(SecurityUtils.getCurrentNickName()); + // entity.setCreate_time(DateUtil.now()); + // } + // entity.setUpdate_optid(Long.valueOf(SecurityUtils.getCurrentUserId())); + // entity.setUpdate_optname(SecurityUtils.getCurrentNickName()); + // entity.setUpdate_time(DateUtil.now()); + return entity; + } + + +} + diff --git a/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/service/impl/StIvtEmptytubeivtServiceImpl.java b/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/service/impl/StIvtEmptytubeivtServiceImpl.java new file mode 100644 index 000000000..d33c1f994 --- /dev/null +++ b/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/service/impl/StIvtEmptytubeivtServiceImpl.java @@ -0,0 +1,105 @@ +package org.nl.b_lms.sch.point.service.impl; + +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import org.nl.b_lms.sch.point.dao.StIvtEmptytubeivt; +import org.nl.b_lms.sch.point.dao.mapper.StIvtEmptytubeivtMapper; +import org.nl.b_lms.sch.point.service.IstIvtEmptytubeivtService; +import cn.hutool.core.date.DateUtil; +import org.nl.common.utils.SecurityUtils; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import org.springframework.stereotype.Service; +import com.baomidou.mybatisplus.core.metadata.IPage; +import org.nl.common.domain.query.PageQuery; + +import javax.annotation.Resource; +import java.util.Map; +import java.util.Set; + + +/** + * {@code @Description:} 空纸管库区点位库存表(StIvtEmptytubeivt)服务实现层 + * {@code @Author:} gbx + * + * @since 2024-01-24 + */ +@Service("stIvtEmptytubeivtService") +public class StIvtEmptytubeivtServiceImpl extends ServiceImpl implements IstIvtEmptytubeivtService { + + + @Resource + private StIvtEmptytubeivtMapper stIvtEmptytubeivtMapper; + + + /** + * 查询数据分页 + * + * @param whereJson 查询条件 + * @param page 分页参数 + */ + @Override + public IPage queryAll(Map whereJson, PageQuery page) { + return stIvtEmptytubeivtMapper.selectPage(new Page<>(page.getPage() + 1, page.getSize()), new QueryWrapper() + .lambda()); + } + + + /** + * 创建 + * + * @param entity 对象实体 + */ + @Override + public void create(StIvtEmptytubeivt entity) { + stIvtEmptytubeivtMapper.insert(getBasicInfo(entity, true)); + } + + + /** + * 编辑 + * + * @param entity 对象实体 + */ + @Override + public void update(StIvtEmptytubeivt entity) { + // StIvtEmptytubeivt dto = stIvtEmptytubeivtMapper.selectById(entity.getId); + // if (dto == null) { + // throw new BadRequestException("不存在该数据!"); + // } + stIvtEmptytubeivtMapper.updateById(getBasicInfo(entity, false)); + } + + + /** + * 多选删除 + * + * @param ids 多个Id主键 + */ + @Override + public void deleteAll(Set ids) { + // 物理删除 + stIvtEmptytubeivtMapper.deleteBatchIds(ids); + } + + + /** + * 获取实体基础信息 + * + * @param entity 对象实体 + * @param isCreate 是否创建 + */ + private StIvtEmptytubeivt getBasicInfo(StIvtEmptytubeivt entity, boolean isCreate) { + // if (isCreate) { + // entity.setCreate_id(Long.valueOf(SecurityUtils.getCurrentUserId())); + // entity.setCreate_name(SecurityUtils.getCurrentNickName()); + // entity.setCreate_time(DateUtil.now()); + // } + // entity.setUpdate_optid(Long.valueOf(SecurityUtils.getCurrentUserId())); + // entity.setUpdate_optname(SecurityUtils.getCurrentNickName()); + // entity.setUpdate_time(DateUtil.now()); + return entity; + } + + +} + diff --git a/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/service/impl/StIvtEmptyvehiclerecordServiceImpl.java b/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/service/impl/StIvtEmptyvehiclerecordServiceImpl.java new file mode 100644 index 000000000..99e7580ac --- /dev/null +++ b/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/service/impl/StIvtEmptyvehiclerecordServiceImpl.java @@ -0,0 +1,105 @@ +package org.nl.b_lms.sch.point.service.impl; + +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import org.nl.b_lms.sch.point.dao.StIvtEmptyvehiclerecord; +import org.nl.b_lms.sch.point.dao.mapper.StIvtEmptyvehiclerecordMapper; +import org.nl.b_lms.sch.point.service.IstIvtEmptyvehiclerecordService; +import cn.hutool.core.date.DateUtil; +import org.nl.common.utils.SecurityUtils; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import org.springframework.stereotype.Service; +import com.baomidou.mybatisplus.core.metadata.IPage; +import org.nl.common.domain.query.PageQuery; + +import javax.annotation.Resource; +import java.util.Map; +import java.util.Set; + + +/** + * {@code @Description:} 空载具作业记录表(StIvtEmptyvehiclerecord)服务实现层 + * {@code @Author:} gbx + * + * @since 2024-01-24 + */ +@Service("stIvtEmptyvehiclerecordService") +public class StIvtEmptyvehiclerecordServiceImpl extends ServiceImpl implements IstIvtEmptyvehiclerecordService { + + + @Resource + private StIvtEmptyvehiclerecordMapper stIvtEmptyvehiclerecordMapper; + + + /** + * 查询数据分页 + * + * @param whereJson 查询条件 + * @param page 分页参数 + */ + @Override + public IPage queryAll(Map whereJson, PageQuery page) { + return stIvtEmptyvehiclerecordMapper.selectPage(new Page<>(page.getPage() + 1, page.getSize()), new QueryWrapper() + .lambda()); + } + + + /** + * 创建 + * + * @param entity 对象实体 + */ + @Override + public void create(StIvtEmptyvehiclerecord entity) { + stIvtEmptyvehiclerecordMapper.insert(getBasicInfo(entity, true)); + } + + + /** + * 编辑 + * + * @param entity 对象实体 + */ + @Override + public void update(StIvtEmptyvehiclerecord entity) { + // StIvtEmptyvehiclerecord dto = stIvtEmptyvehiclerecordMapper.selectById(entity.getId); + // if (dto == null) { + // throw new BadRequestException("不存在该数据!"); + // } + stIvtEmptyvehiclerecordMapper.updateById(getBasicInfo(entity, false)); + } + + + /** + * 多选删除 + * + * @param ids 多个Id主键 + */ + @Override + public void deleteAll(Set ids) { + // 物理删除 + stIvtEmptyvehiclerecordMapper.deleteBatchIds(ids); + } + + + /** + * 获取实体基础信息 + * + * @param entity 对象实体 + * @param isCreate 是否创建 + */ + private StIvtEmptyvehiclerecord getBasicInfo(StIvtEmptyvehiclerecord entity, boolean isCreate) { + // if (isCreate) { + // entity.setCreate_id(Long.valueOf(SecurityUtils.getCurrentUserId())); + // entity.setCreate_name(SecurityUtils.getCurrentNickName()); + // entity.setCreate_time(DateUtil.now()); + // } + // entity.setUpdate_optid(Long.valueOf(SecurityUtils.getCurrentUserId())); + // entity.setUpdate_optname(SecurityUtils.getCurrentNickName()); + // entity.setUpdate_time(DateUtil.now()); + return entity; + } + + +} + diff --git a/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/service/impl/StIvtHotpointivtServiceImpl.java b/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/service/impl/StIvtHotpointivtServiceImpl.java new file mode 100644 index 000000000..3757b9968 --- /dev/null +++ b/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/service/impl/StIvtHotpointivtServiceImpl.java @@ -0,0 +1,105 @@ +package org.nl.b_lms.sch.point.service.impl; + +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import org.nl.b_lms.sch.point.dao.StIvtHotpointivt; +import org.nl.b_lms.sch.point.dao.mapper.StIvtHotpointivtMapper; +import org.nl.b_lms.sch.point.service.IstIvtHotpointivtService; +import cn.hutool.core.date.DateUtil; +import org.nl.common.utils.SecurityUtils; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import org.springframework.stereotype.Service; +import com.baomidou.mybatisplus.core.metadata.IPage; +import org.nl.common.domain.query.PageQuery; + +import javax.annotation.Resource; +import java.util.Map; +import java.util.Set; + + +/** + * {@code @Description:} 烘烤区点位库存表(StIvtHotpointivt)服务实现层 + * {@code @Author:} gbx + * + * @since 2024-01-24 + */ +@Service("stIvtHotpointivtService") +public class StIvtHotpointivtServiceImpl extends ServiceImpl implements IstIvtHotpointivtService { + + + @Resource + private StIvtHotpointivtMapper stIvtHotpointivtMapper; + + + /** + * 查询数据分页 + * + * @param whereJson 查询条件 + * @param page 分页参数 + */ + @Override + public IPage queryAll(Map whereJson, PageQuery page) { + return stIvtHotpointivtMapper.selectPage(new Page<>(page.getPage() + 1, page.getSize()), new QueryWrapper() + .lambda()); + } + + + /** + * 创建 + * + * @param entity 对象实体 + */ + @Override + public void create(StIvtHotpointivt entity) { + stIvtHotpointivtMapper.insert(getBasicInfo(entity, true)); + } + + + /** + * 编辑 + * + * @param entity 对象实体 + */ + @Override + public void update(StIvtHotpointivt entity) { + // StIvtHotpointivt dto = stIvtHotpointivtMapper.selectById(entity.getId); + // if (dto == null) { + // throw new BadRequestException("不存在该数据!"); + // } + stIvtHotpointivtMapper.updateById(getBasicInfo(entity, false)); + } + + + /** + * 多选删除 + * + * @param ids 多个Id主键 + */ + @Override + public void deleteAll(Set ids) { + // 物理删除 + stIvtHotpointivtMapper.deleteBatchIds(ids); + } + + + /** + * 获取实体基础信息 + * + * @param entity 对象实体 + * @param isCreate 是否创建 + */ + private StIvtHotpointivt getBasicInfo(StIvtHotpointivt entity, boolean isCreate) { + // if (isCreate) { + // entity.setCreate_id(Long.valueOf(SecurityUtils.getCurrentUserId())); + // entity.setCreate_name(SecurityUtils.getCurrentNickName()); + // entity.setCreate_time(DateUtil.now()); + // } + // entity.setUpdate_optid(Long.valueOf(SecurityUtils.getCurrentUserId())); + // entity.setUpdate_optname(SecurityUtils.getCurrentNickName()); + // entity.setUpdate_time(DateUtil.now()); + return entity; + } + + +} + diff --git a/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/service/impl/StIvtSbpointivtServiceImpl.java b/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/service/impl/StIvtSbpointivtServiceImpl.java new file mode 100644 index 000000000..9d43b55f5 --- /dev/null +++ b/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/service/impl/StIvtSbpointivtServiceImpl.java @@ -0,0 +1,105 @@ +package org.nl.b_lms.sch.point.service.impl; + +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import org.nl.b_lms.sch.point.dao.StIvtSbpointivt; +import org.nl.b_lms.sch.point.dao.mapper.StIvtSbpointivtMapper; +import org.nl.b_lms.sch.point.service.IstIvtSbpointivtService; +import cn.hutool.core.date.DateUtil; +import org.nl.common.utils.SecurityUtils; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import org.springframework.stereotype.Service; +import com.baomidou.mybatisplus.core.metadata.IPage; +import org.nl.common.domain.query.PageQuery; + +import javax.annotation.Resource; +import java.util.Map; +import java.util.Set; + + +/** + * {@code @Description:} 生箔点位库存表(StIvtSbpointivt)服务实现层 + * {@code @Author:} gbx + * + * @since 2024-01-24 + */ +@Service("stIvtSbpointivtService") +public class StIvtSbpointivtServiceImpl extends ServiceImpl implements IstIvtSbpointivtService { + + + @Resource + private StIvtSbpointivtMapper stIvtSbpointivtMapper; + + + /** + * 查询数据分页 + * + * @param whereJson 查询条件 + * @param page 分页参数 + */ + @Override + public IPage queryAll(Map whereJson, PageQuery page) { + return stIvtSbpointivtMapper.selectPage(new Page<>(page.getPage() + 1, page.getSize()), new QueryWrapper() + .lambda()); + } + + + /** + * 创建 + * + * @param entity 对象实体 + */ + @Override + public void create(StIvtSbpointivt entity) { + stIvtSbpointivtMapper.insert(getBasicInfo(entity, true)); + } + + + /** + * 编辑 + * + * @param entity 对象实体 + */ + @Override + public void update(StIvtSbpointivt entity) { + // StIvtSbpointivt dto = stIvtSbpointivtMapper.selectById(entity.getId); + // if (dto == null) { + // throw new BadRequestException("不存在该数据!"); + // } + stIvtSbpointivtMapper.updateById(getBasicInfo(entity, false)); + } + + + /** + * 多选删除 + * + * @param ids 多个Id主键 + */ + @Override + public void deleteAll(Set ids) { + // 物理删除 + stIvtSbpointivtMapper.deleteBatchIds(ids); + } + + + /** + * 获取实体基础信息 + * + * @param entity 对象实体 + * @param isCreate 是否创建 + */ + private StIvtSbpointivt getBasicInfo(StIvtSbpointivt entity, boolean isCreate) { + // if (isCreate) { + // entity.setCreate_id(Long.valueOf(SecurityUtils.getCurrentUserId())); + // entity.setCreate_name(SecurityUtils.getCurrentNickName()); + // entity.setCreate_time(DateUtil.now()); + // } + // entity.setUpdate_optid(Long.valueOf(SecurityUtils.getCurrentUserId())); + // entity.setUpdate_optname(SecurityUtils.getCurrentNickName()); + // entity.setUpdate_time(DateUtil.now()); + return entity; + } + + +} + diff --git a/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/service/impl/StIvtShaftivtServiceImpl.java b/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/service/impl/StIvtShaftivtServiceImpl.java new file mode 100644 index 000000000..e98fe271c --- /dev/null +++ b/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/point/service/impl/StIvtShaftivtServiceImpl.java @@ -0,0 +1,105 @@ +package org.nl.b_lms.sch.point.service.impl; + +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import org.nl.b_lms.sch.point.dao.StIvtShaftivt; +import org.nl.b_lms.sch.point.dao.mapper.StIvtShaftivtMapper; +import org.nl.b_lms.sch.point.service.IstIvtShaftivtService; +import cn.hutool.core.date.DateUtil; +import org.nl.common.utils.SecurityUtils; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import org.springframework.stereotype.Service; +import com.baomidou.mybatisplus.core.metadata.IPage; +import org.nl.common.domain.query.PageQuery; + +import javax.annotation.Resource; +import java.util.Map; +import java.util.Set; + + +/** + * {@code @Description:} 内包间点位库存表(StIvtShaftivt)服务实现层 + * {@code @Author:} gbx + * + * @since 2024-01-24 + */ +@Service("stIvtShaftivtService") +public class StIvtShaftivtServiceImpl extends ServiceImpl implements IstIvtShaftivtService { + + + @Resource + private StIvtShaftivtMapper stIvtShaftivtMapper; + + + /** + * 查询数据分页 + * + * @param whereJson 查询条件 + * @param page 分页参数 + */ + @Override + public IPage queryAll(Map whereJson, PageQuery page) { + return stIvtShaftivtMapper.selectPage(new Page<>(page.getPage() + 1, page.getSize()), new QueryWrapper() + .lambda()); + } + + + /** + * 创建 + * + * @param entity 对象实体 + */ + @Override + public void create(StIvtShaftivt entity) { + stIvtShaftivtMapper.insert(getBasicInfo(entity, true)); + } + + + /** + * 编辑 + * + * @param entity 对象实体 + */ + @Override + public void update(StIvtShaftivt entity) { + // StIvtShaftivt dto = stIvtShaftivtMapper.selectById(entity.getId); + // if (dto == null) { + // throw new BadRequestException("不存在该数据!"); + // } + stIvtShaftivtMapper.updateById(getBasicInfo(entity, false)); + } + + + /** + * 多选删除 + * + * @param ids 多个Id主键 + */ + @Override + public void deleteAll(Set ids) { + // 物理删除 + stIvtShaftivtMapper.deleteBatchIds(ids); + } + + + /** + * 获取实体基础信息 + * + * @param entity 对象实体 + * @param isCreate 是否创建 + */ + private StIvtShaftivt getBasicInfo(StIvtShaftivt entity, boolean isCreate) { + // if (isCreate) { + // entity.setCreate_id(Long.valueOf(SecurityUtils.getCurrentUserId())); + // entity.setCreate_name(SecurityUtils.getCurrentNickName()); + // entity.setCreate_time(DateUtil.now()); + // } + // entity.setUpdate_optid(Long.valueOf(SecurityUtils.getCurrentUserId())); + // entity.setUpdate_optname(SecurityUtils.getCurrentNickName()); + // entity.setUpdate_time(DateUtil.now()); + return entity; + } + + +} + diff --git a/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/region/controller/SchBaseRegionController.java b/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/region/controller/SchBaseRegionController.java new file mode 100644 index 000000000..9d4dbfa79 --- /dev/null +++ b/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/region/controller/SchBaseRegionController.java @@ -0,0 +1,96 @@ +package org.nl.b_lms.sch.region.controller; + +import java.util.Set; +import java.util.Map; + +import lombok.RequiredArgsConstructor; +import org.nl.b_lms.sch.region.dao.SchBaseRegion; +import org.nl.common.TableDataInfo; +import org.springframework.web.bind.annotation.*; + +import javax.annotation.Resource; + +import lombok.extern.slf4j.Slf4j; +import org.nl.common.domain.query.PageQuery; +import org.springframework.http.HttpStatus; +import org.springframework.http.ResponseEntity; +import org.nl.modules.logging.annotation.Log; +import org.nl.b_lms.sch.region.service.IschBaseRegionService; + + +/** + * {@code @Description:} 区域基础表(SchBaseRegion)控制层 + * {@code @Author:} gbx + * + * @since 2024-01-23 19:45:03 + */ +@RestController +@RequiredArgsConstructor +@RequestMapping("/api/schBaseRegion") +@Slf4j +public class SchBaseRegionController { + + + @Resource + private IschBaseRegionService schBaseRegionService; + + + /** + * 分页查询 + * + * @param whereJson 查询条件 + * @param page 分页参数 + */ + @GetMapping + @Log("查询区域基础表") + public ResponseEntity query(@RequestParam Map whereJson, PageQuery page) { + return new ResponseEntity<>(TableDataInfo.build(schBaseRegionService.queryAll(whereJson, page)), HttpStatus.OK); + } + + + /** + * 新增数据 + * + * @param entity 实体对象 + * @return 新增结果 + */ + @PostMapping + @Log("新增区域基础表") + public ResponseEntity create(SchBaseRegion entity) { + schBaseRegionService.create(entity); + return new ResponseEntity<>(HttpStatus.OK); + } + + + /** + * 修改数据 + * + * @param entity 实体对象 + * @return 修改结果 + */ + @PutMapping + @Log("修改区域基础表") + //@SaCheckPermission("@el.check(SchBaseRegion:edit')") + public ResponseEntity update(SchBaseRegion entity) { + schBaseRegionService.update(entity); + return new ResponseEntity<>(HttpStatus.OK); + } + + + /** + * 删除数据 + * + * @param ids 多个主键Id + * @return 删除结果 + */ + @Log("删除区域基础表") + //@SaCheckPermission("@el.check(SchBaseRegion:del')") + @DeleteMapping + public ResponseEntity delete(@RequestBody Set ids) { + schBaseRegionService.deleteAll(ids); + return new ResponseEntity<>(HttpStatus.OK); + } + + +} + diff --git a/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/region/dao/SchBaseRegion.java b/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/region/dao/SchBaseRegion.java new file mode 100644 index 000000000..f77ebd1e3 --- /dev/null +++ b/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/region/dao/SchBaseRegion.java @@ -0,0 +1,123 @@ +package org.nl.b_lms.sch.region.dao; + +import java.io.Serializable; + +import lombok.*; +import com.baomidou.mybatisplus.annotation.*; +import com.baomidou.mybatisplus.annotation.TableName; +import com.baomidou.mybatisplus.extension.activerecord.Model; + + +/** + * {@code @Description:} 区域基础表(SchBaseRegion)实体类 + * {@code @Author:} gbx + * + * @since 2024-01-23 19:45:03 + */ +@Data +@Builder +@ToString +@NoArgsConstructor +@AllArgsConstructor +@EqualsAndHashCode(callSuper = false) +@SuppressWarnings("serial") +@TableName("sch_base_region") +public class SchBaseRegion extends Model { + + private static final long serialVersionUID = -7739291296662381393L; + + + /** + * 区域标识 + */ + private Long region_id; + + + /** + * 区域编码 + */ + private String region_code; + + + /** + * 区域名称 + */ + private String region_name; + + + /** + * 点位类型说明 + */ + private String point_type_explain; + + + /** + * 点位状态说明 + */ + private String point_status_explain; + + + /** + * + */ + private String product_area; + + + /** + * 备注 + */ + private String remark; + + + /** + * 创建人 + */ + private Long create_id; + + + /** + * 创建人 + */ + private String create_name; + + + /** + * 创建时间 + */ + @TableField(fill = FieldFill.INSERT) + private String create_time; + + + /** + * 修改人 + */ + private Long update_optid; + + + /** + * 修改人 + */ + private String update_optname; + + + /** + * 修改时间 + */ + @TableField(fill = FieldFill.INSERT_UPDATE) + private String update_time; + + + /** + * 获取主键值 + * + * @return 主键值 + */ + @Override + protected Serializable pkVal() { + return this.region_id; + } + +} + + + diff --git a/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/region/dao/mapper/SchBaseRegionMapper.java b/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/region/dao/mapper/SchBaseRegionMapper.java new file mode 100644 index 000000000..4f2a0badc --- /dev/null +++ b/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/region/dao/mapper/SchBaseRegionMapper.java @@ -0,0 +1,15 @@ +package org.nl.b_lms.sch.region.dao.mapper; + +import org.nl.b_lms.sch.region.dao.SchBaseRegion; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; + +/** + * {@code @Description:} 区域基础表(SchBaseRegion)数据持久层 + * {@code @Author:} gbx + * + * @since 2024-01-23 19:45:04 + */ +public interface SchBaseRegionMapper extends BaseMapper { + + +} diff --git a/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/region/dao/mapper/SchBaseRegionMapper.xml b/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/region/dao/mapper/SchBaseRegionMapper.xml new file mode 100644 index 000000000..b37f56e82 --- /dev/null +++ b/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/region/dao/mapper/SchBaseRegionMapper.xml @@ -0,0 +1,6 @@ + + + + + + diff --git a/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/region/dto/SchBaseRegionQuery.java b/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/region/dto/SchBaseRegionQuery.java new file mode 100644 index 000000000..d556e0916 --- /dev/null +++ b/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/region/dto/SchBaseRegionQuery.java @@ -0,0 +1,19 @@ +package org.nl.b_lms.sch.region.dto; + + +import lombok.Data; +import lombok.Builder; +import lombok.NoArgsConstructor; +import org.nl.b_lms.sch.region.dao.SchBaseRegion; +import org.nl.common.domain.query.BaseQuery; + +/** + * @Author: gbx + * @since 2024-01-23 19:45:04 + */ +@Data +@Builder +@NoArgsConstructor +public class SchBaseRegionQuery extends BaseQuery { + +} diff --git a/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/region/service/IschBaseRegionService.java b/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/region/service/IschBaseRegionService.java new file mode 100644 index 000000000..d4137e950 --- /dev/null +++ b/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/region/service/IschBaseRegionService.java @@ -0,0 +1,57 @@ +package org.nl.b_lms.sch.region.service; + +import org.nl.b_lms.sch.region.dao.SchBaseRegion; +import com.baomidou.mybatisplus.extension.service.IService; + +import java.util.Map; +import java.util.Set; + +import com.baomidou.mybatisplus.core.metadata.IPage; +import org.nl.common.domain.query.PageQuery; + + +/** + * {@code @Description:} 区域基础表(SchBaseRegion)服务接口层 + * {@code @Author:} gbx + * + * @since 2024-01-23 19:45:03 + */ +public interface IschBaseRegionService extends IService { + + + /** + * 查询数据分页 + * + * @param whereJson 查询条件 + * @param pageable 分页参数 + * @return IPage + */ + IPage queryAll(Map whereJson, PageQuery pageable); + + + /** + * 创建 + * + * @param entity / + */ + void create(SchBaseRegion entity); + + + /** + * 编辑 + * + * @param entity / + */ + void update(SchBaseRegion entity); + + /** + * 多选删除 + * + * @param ids / + */ + void deleteAll(Set ids); + + +} + + diff --git a/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/region/service/impl/SchBaseRegionServiceImpl.java b/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/region/service/impl/SchBaseRegionServiceImpl.java new file mode 100644 index 000000000..8e2fc0db6 --- /dev/null +++ b/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/region/service/impl/SchBaseRegionServiceImpl.java @@ -0,0 +1,114 @@ +package org.nl.b_lms.sch.region.service.impl; + +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import org.nl.b_lms.sch.region.dao.SchBaseRegion; +import org.nl.b_lms.sch.region.dao.mapper.SchBaseRegionMapper; +import org.nl.b_lms.sch.region.service.IschBaseRegionService; +import cn.hutool.core.date.DateUtil; +import org.nl.common.utils.SecurityUtils; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import org.springframework.stereotype.Service; +import com.baomidou.mybatisplus.core.metadata.IPage; +import org.nl.common.domain.query.PageQuery; +import org.springframework.beans.factory.annotation.Autowired; + +import javax.annotation.Resource; +import java.util.Map; +import java.util.Set; + + +/** + * {@code @Description:} 区域基础表(SchBaseRegion)服务实现层 + * {@code @Author:} gbx + * + * @since 2024-01-23 19:45:03 + */ +@Service("schBaseRegionService") +public class SchBaseRegionServiceImpl extends ServiceImpl implements IschBaseRegionService { + + + @Resource + private SchBaseRegionMapper schBaseRegionMapper; + + + /** + * 查询数据分页 + * + * @param whereJson 查询条件 + * @param page 分页参数 + */ + @Override + public IPage queryAll(Map whereJson, PageQuery page) { + return schBaseRegionMapper.selectPage(new Page<>(page.getPage() + 1, page.getSize()), new QueryWrapper() + .lambda() + // .like(StringUtils.isNotBlank(form.name()), User::getName, form.name()) + // .between(form.beginTime != null && form.endTime != null, User::getCreateTime, beginTime, endTime) + // .in(form.Status != null, User::getStatus + // , UserStatusEnum.NOT_SUBMITTED + // , UserStatusEnum.TO_REVIEWED) + // .orderByDesc(User::getId) + //.eq(SchBaseRegion::getIs_delete, 0) + ); + } + + + /** + * 创建 + * + * @param entity 对象实体 + */ + @Override + public void create(SchBaseRegion entity) { + schBaseRegionMapper.insert(getBasicInfo(entity, true)); + } + + + /** + * 编辑 + * + * @param entity 对象实体 + */ + @Override + public void update(SchBaseRegion entity) { + // SchBaseRegion dto = schBaseRegionMapper.selectById(entity.getId); + // if (dto == null) { + // throw new BadRequestException("不存在该数据!"); + // } + schBaseRegionMapper.updateById(getBasicInfo(entity, false)); + } + + + /** + * 多选删除 + * + * @param ids 多个Id主键 + */ + @Override + public void deleteAll(Set ids) { + // 物理删除 + schBaseRegionMapper.deleteBatchIds(ids); + } + + + /** + * 获取实体基础信息 + * + * @param entity 对象实体 + * @param isCreate 是否创建 + */ + private SchBaseRegion getBasicInfo(SchBaseRegion entity, boolean isCreate) { + // if (isCreate) { + // entity.setCreate_id(Long.valueOf(SecurityUtils.getCurrentUserId())); + // entity.setCreate_name(SecurityUtils.getCurrentNickName()); + // entity.setCreate_time(DateUtil.now()); + // } + // entity.setUpdate_optid(Long.valueOf(SecurityUtils.getCurrentUserId())); + // entity.setUpdate_optname(SecurityUtils.getCurrentNickName()); + // entity.setUpdate_time(DateUtil.now()); + return entity; + } + + +} + diff --git a/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/task/controller/SchBaseTaskController.java b/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/task/controller/SchBaseTaskController.java new file mode 100644 index 000000000..9c5cc5d82 --- /dev/null +++ b/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/task/controller/SchBaseTaskController.java @@ -0,0 +1,96 @@ +package org.nl.b_lms.sch.task.controller; + +import java.util.Set; +import java.util.Map; + +import lombok.RequiredArgsConstructor; +import org.nl.b_lms.sch.task.dao.SchBaseTask; +import org.nl.common.TableDataInfo; +import org.springframework.web.bind.annotation.*; + +import javax.annotation.Resource; + +import lombok.extern.slf4j.Slf4j; +import org.nl.common.domain.query.PageQuery; +import org.springframework.http.HttpStatus; +import org.springframework.http.ResponseEntity; +import org.nl.modules.logging.annotation.Log; +import org.nl.b_lms.sch.task.service.IschBaseTaskService; + + +/** + * {@code @Description:} 任务表(SchBaseTask)控制层 + * {@code @Author:} gbx + * + * @since 2024-01-23 16:07:13 + */ +@RestController +@RequiredArgsConstructor +@RequestMapping("/api/schBaseTask") +@Slf4j +public class SchBaseTaskController { + + + @Resource + private IschBaseTaskService schBaseTaskService; + + + /** + * 分页查询 + * + * @param whereJson 查询条件 + * @param page 分页参数 + */ + @GetMapping + @Log("查询任务表") + public ResponseEntity query(@RequestParam Map whereJson, PageQuery page) { + return new ResponseEntity<>(TableDataInfo.build(schBaseTaskService.queryAll(whereJson, page)), HttpStatus.OK); + } + + + /** + * 新增数据 + * + * @param entity 实体对象 + * @return 新增结果 + */ + @PostMapping + @Log("新增任务表") + public ResponseEntity create(SchBaseTask entity) { + schBaseTaskService.create(entity); + return new ResponseEntity<>(HttpStatus.OK); + } + + + /** + * 修改数据 + * + * @param entity 实体对象 + * @return 修改结果 + */ + @PutMapping + @Log("修改任务表") + //@SaCheckPermission("@el.check(SchBaseTask:edit')") + public ResponseEntity update(SchBaseTask entity) { + schBaseTaskService.update(entity); + return new ResponseEntity<>(HttpStatus.OK); + } + + + /** + * 删除数据 + * + * @param ids 多个主键Id + * @return 删除结果 + */ + @Log("删除任务表") + //@SaCheckPermission("@el.check(SchBaseTask:del')") + @DeleteMapping + public ResponseEntity delete(@RequestBody Set ids) { + schBaseTaskService.deleteAll(ids); + return new ResponseEntity<>(HttpStatus.OK); + } + + +} + diff --git a/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/task/dao/SchBaseTask.java b/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/task/dao/SchBaseTask.java new file mode 100644 index 000000000..ae553b3ea --- /dev/null +++ b/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/task/dao/SchBaseTask.java @@ -0,0 +1,293 @@ +package org.nl.b_lms.sch.task.dao; + +import java.math.BigDecimal; +import java.io.Serializable; + +import lombok.*; +import com.baomidou.mybatisplus.annotation.*; +import com.baomidou.mybatisplus.annotation.TableName; +import com.baomidou.mybatisplus.extension.activerecord.Model; + + +/** + * {@code @Description:} 任务表(SchBaseTask)实体类 + * {@code @Author:} gbx + * + * @since 2024-01-23 16:07:13 + */ +@Data +@Builder +@ToString +@NoArgsConstructor +@AllArgsConstructor +@EqualsAndHashCode(callSuper = false) +@SuppressWarnings("serial") +@TableName("sch_base_task") +public class SchBaseTask extends Model { + + private static final long serialVersionUID = -7739291296662381393L; + + + /** + * 任务标识 + */ + private Long task_id; + + + /** + * 任务编码 + */ + private String task_code; + + + /** + * 任务名称 + */ + private String task_name; + + + /** + * 任务类型 + */ + private String task_type; + + + /** + * 任务状态 + */ + private String task_status; + + + /** + * 任务执行步骤 + */ + private BigDecimal task_step; + + + /** + * 点位1 + */ + private String point_code1; + + + /** + * 点位2 + */ + private String point_code2; + + + /** + * 点位3 + */ + private String point_code3; + + + /** + * 点位4 + */ + private String point_code4; + + + /** + * 搬运物料信息 + */ + private Long material_info_id; + + + /** + * 物料信息 + */ + private Long material_id; + + + /** + * 物料数量 + */ + private BigDecimal material_qty; + + + /** + * 载具类型 + */ + private String vehicle_type; + + + /** + * 载具数量 + */ + private BigDecimal vehicle_qty; + + + /** + * 载具编码 + */ + private String vehicle_code; + + + /** + * 优先级 + */ + private String priority; + + + /** + * 处理类 + */ + private String handle_class; + + + /** + * 车号 + */ + private String car_no; + + + /** + * 是否自动下发 + */ + private String is_auto_issue; + + + /** + * 任务组标识 + */ + private Long task_group_id; + + + /** + * 任务组顺序号 + */ + private BigDecimal sort_seq; + + + /** + * 任务完成类型 + */ + private String finished_type; + + + /** + * acs任务类型 + */ + private String acs_task_type; + + + /** + * 生成方式 + */ + private String create_mode; + + + /** + * 业务表表名 + */ + private String table_name; + + + /** + * 业务表表名主键字段 + */ + private String table_fk; + + + /** + * 业务表表名主键值 + */ + private Long table_fk_id; + + + /** + * 生成任务的请求参数 + */ + private String request_param; + + + /** + * 下发任务的请求参数 + */ + private String response_param; + + + /** + * 生产区域 + */ + private String product_area; + + + /** + * 备注 + */ + private String remark; + + + /** + * 是否删除 + */ + @TableField(fill = FieldFill.INSERT) + private String is_delete; + + + /** + * 创建人 + */ + private Long create_id; + + + /** + * 创建人 + */ + private String create_name; + + + /** + * 创建时间 + */ + @TableField(fill = FieldFill.INSERT) + private String create_time; + + + /** + * 修改人 + */ + private Long update_optid; + + + /** + * 修改人 + */ + private String update_optname; + + + /** + * 修改时间 + */ + @TableField(fill = FieldFill.INSERT_UPDATE) + private String update_time; + + + /** + * 物料编码 + */ + private String material_code; + + + /** + * 载具编码 + */ + private String vehicle_code2; + + + /** + * 获取主键值 + * + * @return 主键值 + */ + @Override + protected Serializable pkVal() { + return this.task_id; + } + +} + + + diff --git a/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/task/dao/mapper/SchBaseTaskMapper.java b/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/task/dao/mapper/SchBaseTaskMapper.java new file mode 100644 index 000000000..b9a984195 --- /dev/null +++ b/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/task/dao/mapper/SchBaseTaskMapper.java @@ -0,0 +1,15 @@ +package org.nl.b_lms.sch.task.dao.mapper; + +import org.nl.b_lms.sch.task.dao.SchBaseTask; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; + +/** + * {@code @Description:} 任务表(SchBaseTask)数据持久层 + * {@code @Author:} gbx + * + * @since 2024-01-23 16:07:13 + */ +public interface SchBaseTaskMapper extends BaseMapper { + + +} diff --git a/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/task/dao/mapper/SchBaseTaskMapper.xml b/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/task/dao/mapper/SchBaseTaskMapper.xml new file mode 100644 index 000000000..1bf0b6878 --- /dev/null +++ b/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/task/dao/mapper/SchBaseTaskMapper.xml @@ -0,0 +1,6 @@ + + + + + + diff --git a/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/task/dto/SchBaseTaskQuery.java b/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/task/dto/SchBaseTaskQuery.java new file mode 100644 index 000000000..a13c7984e --- /dev/null +++ b/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/task/dto/SchBaseTaskQuery.java @@ -0,0 +1,22 @@ +package org.nl.b_lms.sch.task.dto; + + +import java.math.BigDecimal; + + +import lombok.Data; +import lombok.Builder; +import lombok.NoArgsConstructor; +import org.nl.b_lms.sch.task.dao.SchBaseTask; +import org.nl.common.domain.query.BaseQuery; + +/** + * @Author: gbx + * @since 2024-01-23 16:07:13 + */ +@Data +@Builder +@NoArgsConstructor +public class SchBaseTaskQuery extends BaseQuery { + +} diff --git a/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/task/service/IschBaseTaskService.java b/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/task/service/IschBaseTaskService.java new file mode 100644 index 000000000..1359f4ea6 --- /dev/null +++ b/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/task/service/IschBaseTaskService.java @@ -0,0 +1,57 @@ +package org.nl.b_lms.sch.task.service; + +import org.nl.b_lms.sch.task.dao.SchBaseTask; +import com.baomidou.mybatisplus.extension.service.IService; + +import java.util.Map; +import java.util.Set; + +import com.baomidou.mybatisplus.core.metadata.IPage; +import org.nl.common.domain.query.PageQuery; + + +/** + * {@code @Description:} 任务表(SchBaseTask)服务接口层 + * {@code @Author:} gbx + * + * @since 2024-01-23 16:07:13 + */ +public interface IschBaseTaskService extends IService { + + + /** + * 查询数据分页 + * + * @param whereJson 查询条件 + * @param pageable 分页参数 + * @return IPage + */ + IPage queryAll(Map whereJson, PageQuery pageable); + + + /** + * 创建 + * + * @param entity / + */ + void create(SchBaseTask entity); + + + /** + * 编辑 + * + * @param entity / + */ + void update(SchBaseTask entity); + + /** + * 多选删除 + * + * @param ids / + */ + void deleteAll(Set ids); + + +} + + diff --git a/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/task/service/impl/SchBaseTaskServiceImpl.java b/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/task/service/impl/SchBaseTaskServiceImpl.java new file mode 100644 index 000000000..d5332cc84 --- /dev/null +++ b/lms/nladmin-system/src/main/java/org/nl/b_lms/sch/task/service/impl/SchBaseTaskServiceImpl.java @@ -0,0 +1,113 @@ +package org.nl.b_lms.sch.task.service.impl; + +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import org.nl.b_lms.sch.task.dao.SchBaseTask; +import org.nl.b_lms.sch.task.dao.mapper.SchBaseTaskMapper; +import org.nl.b_lms.sch.task.service.IschBaseTaskService; +import cn.hutool.core.date.DateUtil; +import org.nl.common.utils.SecurityUtils; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import org.springframework.stereotype.Service; +import com.baomidou.mybatisplus.core.metadata.IPage; +import org.nl.common.domain.query.PageQuery; +import org.springframework.beans.factory.annotation.Autowired; + +import java.util.Map; +import java.util.Set; + + +/** + * {@code @Description:} 任务表(SchBaseTask)服务实现层 + * {@code @Author:} gbx + * + * @since 2024-01-23 16:07:13 + */ +@Service("schBaseTaskService") +public class SchBaseTaskServiceImpl extends ServiceImpl implements IschBaseTaskService { + + + @Autowired + private SchBaseTaskMapper schBaseTaskMapper; + + + /** + * 查询数据分页 + * + * @param whereJson 查询条件 + * @param page 分页参数 + */ + @Override + public IPage queryAll(Map whereJson, PageQuery page) { + return schBaseTaskMapper.selectPage(new Page<>(page.getPage() + 1, page.getSize()), new QueryWrapper() + .lambda() + // .like(StringUtils.isNotBlank(form.name()), User::getName, form.name()) + // .between(form.beginTime != null && form.endTime != null, User::getCreateTime, beginTime, endTime) + // .in(form.Status != null, User::getStatus + // , UserStatusEnum.NOT_SUBMITTED + // , UserStatusEnum.TO_REVIEWED) + // .orderByDesc(User::getId) + .eq(SchBaseTask::getIs_delete, 0) + ); + } + + + /** + * 创建 + * + * @param entity 对象实体 + */ + @Override + public void create(SchBaseTask entity) { + schBaseTaskMapper.insert(getBasicInfo(entity, true)); + } + + + /** + * 编辑 + * + * @param entity 对象实体 + */ + @Override + public void update(SchBaseTask entity) { + // SchBaseTask dto = schBaseTaskMapper.selectById(entity.getId); + // if (dto == null) { + // throw new BadRequestException("不存在该数据!"); + // } + schBaseTaskMapper.updateById(getBasicInfo(entity, false)); + } + + + /** + * 多选删除 + * + * @param ids 多个Id主键 + */ + @Override + public void deleteAll(Set ids) { + // 物理删除 + schBaseTaskMapper.deleteBatchIds(ids); + } + + + /** + * 获取实体基础信息 + * + * @param entity 对象实体 + * @param isCreate 是否创建 + */ + private SchBaseTask getBasicInfo(SchBaseTask entity, boolean isCreate) { + // if (isCreate) { + // entity.setCreate_id(Long.valueOf(SecurityUtils.getCurrentUserId())); + // entity.setCreate_name(SecurityUtils.getCurrentNickName()); + // entity.setCreate_time(DateUtil.now()); + // } + // entity.setUpdate_optid(Long.valueOf(SecurityUtils.getCurrentUserId())); + // entity.setUpdate_optname(SecurityUtils.getCurrentNickName()); + // entity.setUpdate_time(DateUtil.now()); + return entity; + } + + +} + diff --git a/lms/nladmin-system/src/main/java/org/nl/common/api/CommonResult.java b/lms/nladmin-system/src/main/java/org/nl/common/api/CommonResult.java new file mode 100644 index 000000000..728fb6e9a --- /dev/null +++ b/lms/nladmin-system/src/main/java/org/nl/common/api/CommonResult.java @@ -0,0 +1,141 @@ +package org.nl.common.api; + +/** + * 通用返回对象 + * + * @author gbx + * @date 2023-03-02 + */ +public class CommonResult { + private long status; + private String message; + private T data; + + public CommonResult() { + } + + public CommonResult(T data) { + this.data = data; + this.message = ResultCode.SUCCESS.getDesc(); + this.status = ResultCode.SUCCESS.getCode(); + } + + + public CommonResult(long status, String message, T data) { + this.status = status; + this.message = message; + this.data = data; + } + + /** + * 成功返回结果 + + */ + public static CommonResult success() { + return new CommonResult<>(ResultCode.SUCCESS.getCode(), ResultCode.SUCCESS.getDesc(), null); + } + + /** + * 成功返回结果 + * + * @param data 获取的数据 + */ + public static CommonResult success(T data) { + return new CommonResult<>(ResultCode.SUCCESS.getCode(), ResultCode.SUCCESS.getDesc(), data); + } + + /** + * 成功返回结果 + * + * @param data 获取的数据 + * @param message 提示信息 + */ + public static CommonResult success(T data, String message) { + return new CommonResult<>(ResultCode.SUCCESS.getCode(), message, data); + } + + /** + * 失败返回结果 + * @param errorCode 错误码 + */ + public static CommonResult failed(IErrorCode errorCode) { + return new CommonResult<>(errorCode.getCode(), errorCode.getDesc(), null); + } + + /** + * 失败返回结果 + * @param errorCode 错误码 + * @param message 错误信息 + */ + public static CommonResult failed(IErrorCode errorCode,String message) { + return new CommonResult<>(errorCode.getCode(), message, null); + } + + /** + * 失败返回结果 + * @param message 提示信息 + */ + public static CommonResult failed(String message) { + return new CommonResult<>(ResultCode.FAILED.getCode(), message, null); + } + + /** + * 失败返回结果 + */ + public static CommonResult failed() { + return failed(ResultCode.FAILED); + } + + /** + * 参数验证失败返回结果 + */ + public static CommonResult validateFailed() { + return failed(ResultCode.VALIDATE_FAILED); + } + + /** + * 参数验证失败返回结果 + * @param message 提示信息 + */ + public static CommonResult validateFailed(String message) { + return new CommonResult<>(ResultCode.VALIDATE_FAILED.getCode(), message, null); + } + + /** + * 未登录返回结果 + */ + public static CommonResult unauthorized(T data) { + return new CommonResult<>(ResultCode.UNAUTHORIZED.getCode(), ResultCode.UNAUTHORIZED.getDesc(), data); + } + + /** + * 未授权返回结果 + */ + public static CommonResult forbidden(T data) { + return new CommonResult<>(ResultCode.FORBIDDEN.getCode(), ResultCode.FORBIDDEN.getDesc(), data); + } + + public long getStatus() { + return status; + } + + public void setStatus(long status) { + this.status = status; + } + + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + public T getData() { + return data; + } + + public void setData(T data) { + this.data = data; + } +} diff --git a/lms/nladmin-system/src/main/java/org/nl/common/api/IErrorCode.java b/lms/nladmin-system/src/main/java/org/nl/common/api/IErrorCode.java new file mode 100644 index 000000000..62bc88dc7 --- /dev/null +++ b/lms/nladmin-system/src/main/java/org/nl/common/api/IErrorCode.java @@ -0,0 +1,19 @@ +package org.nl.common.api; + +/** + * 封装API的错误码 + * + * @author gbx + * @date 2023-03-02 + */ +public interface IErrorCode{ + /** + * 返回状态码 + */ + Integer getCode(); + + /** + * 返回提示 + */ + String getDesc(); +} diff --git a/lms/nladmin-system/src/main/java/org/nl/common/api/RestBusinessTemplate.java b/lms/nladmin-system/src/main/java/org/nl/common/api/RestBusinessTemplate.java new file mode 100644 index 000000000..0e69fb86a --- /dev/null +++ b/lms/nladmin-system/src/main/java/org/nl/common/api/RestBusinessTemplate.java @@ -0,0 +1,119 @@ +package org.nl.common.api; + +import lombok.extern.slf4j.Slf4j; +import org.apache.commons.lang3.StringUtils; +import org.nl.modules.common.exception.BadRequestException; +import org.nl.modules.common.exception.BizCoreException; + +/** + * 回调 + * + * @author gbx + * @date 2023-03-02 + */ +@Slf4j +public class RestBusinessTemplate{ + public static CommonResult execute(Callback callback) { + CommonResult result = new CommonResult<>(); + try { + result.setStatus(ResultCode.SUCCESS.getCode()); + result.setMessage(ResultCode.SUCCESS.getDesc()); + T object = callback.doExecute(); + if(object != null) { + result.setData(object); + } + } + catch(BizCoreException e) { + String errorMsg; + if(StringUtils.isNotBlank(e.getErrorMsg())) { + errorMsg = e.getErrorMsg(); + } + else if(e.getCode() != null) { + errorMsg = e.getCode().getDesc(); + } + else{ + errorMsg = e.getMessage(); + } + log.error(e.getErrorMsg()); + ResultCode code = e.getCode() == null ? ResultCode.FAILED : e.getCode(); + result.setStatus(code.getCode()); + result.setMessage(errorMsg); + } + catch(Exception e) { + log.error("execute error", e); + result.setStatus(ResultCode.FAILED.getCode()); + result.setMessage(ResultCode.FAILED.getDesc() + ",原因是:" + e.getMessage()); + } + return result; + } + + public static CommonResult execute(T object) { + CommonResult result = new CommonResult<>(); + try { + result.setStatus(ResultCode.SUCCESS.getCode()); + result.setMessage(ResultCode.SUCCESS.getDesc()); + if(object != null) { + result.setData(object); + } + } + catch(BizCoreException e) { + String errorMsg; + if(StringUtils.isNotBlank(e.getErrorMsg())) { + errorMsg = e.getErrorMsg(); + } + else if(e.getCode() != null) { + errorMsg = e.getCode().getDesc(); + } + else{ + errorMsg = e.getMessage(); + } + log.error(e.getErrorMsg()); + ResultCode code = e.getCode() == null ? ResultCode.FAILED : e.getCode(); + result.setStatus(code.getCode()); + result.setMessage(errorMsg); + } + catch(Exception e) { + log.error("execute error", e); + result.setStatus(ResultCode.FAILED.getCode()); + result.setMessage(ResultCode.FAILED.getDesc() + ",原因是:" + e); + } + return result; + } + + public static CommonResult execute(VoidCallback callback) { + CommonResult result = new CommonResult<>(); + try { + callback.execute(); + result.setStatus(ResultCode.SUCCESS.getCode()); + result.setMessage(ResultCode.SUCCESS.getDesc()); + } + catch(BizCoreException e) { + log.error("", e); + ResultCode code = e.getCode() == null ? ResultCode.FAILED : e.getCode(); + result.setStatus(code.getCode()); + result.setMessage(StringUtils.isBlank(e.getMessage()) ? code.getDesc() : e.getMessage()); + } + catch(Exception e) { + log.error("execute error", e); + result.setStatus(ResultCode.FAILED.getCode()); + result.setMessage(ResultCode.FAILED.getDesc()); + } + return result; + } + + /** + * 执行回调 + * + * @param + */ + public interface Callback{ + T doExecute(); + } + + /** + * 执行回调 + */ + public interface VoidCallback{ + void execute(); + } +} diff --git a/lms/nladmin-system/src/main/java/org/nl/common/api/ResultCode.java b/lms/nladmin-system/src/main/java/org/nl/common/api/ResultCode.java new file mode 100644 index 000000000..4a161040a --- /dev/null +++ b/lms/nladmin-system/src/main/java/org/nl/common/api/ResultCode.java @@ -0,0 +1,77 @@ +package org.nl.common.api; + +/** + * 枚举了一些常用API操作码 + * + * @author gbx + * @date 2023-03-02 + */ +public enum ResultCode implements IErrorCode{ + SUCCESS(200, "操作成功"), + FAILED(400, "操作失败"), + UNAUTHORIZED(401, "暂未登录或token已经过期"), + INVALID_PARAMETER(402, "无效参数"), + FORBIDDEN(403, "没有相关权限"), + VALIDATE_FAILED(404, "参数检验失败"), + INVALID_CAPTCHA(503, "验证码已失效或验证码错误"), + /** + * 员工相关异常 1000 ~ 1199 + */ + STAFF_NOT_FOUND(1000, "员工不存在"), + STAFF_EXISTED(1001, "员工已存在"), + /** + * 部门相关异常 1200 ~ 1399 + */ + DEPT_EXIST(1200, "部门已存在"), + PARENT_DEPT_STATUS_EXCEPTION(1201, "父部门状态异常"), + DEPT_NOT_EXIST(1202, "部门不存在"), + /** + * 岗位相关异常 1400 ~ 1599 + */ + POST_EXIST(1400, "岗位已存在"), + POST_NOT_EXIST(1401, "岗位不存在"), + /** + * 菜单相关异常 1600 ~ 1799 + */ + MENU_EXIST(1600, "菜单已存在"), + MENU_NOT_EXIST(1601, "菜单不存在"), + MENU_STATUS_EXCEPTION(1602, "菜单状态异常"), + /** + * 角色相关异常 1800 ~ 1999 + */ + ROLE_EXIST(1800, "角色已存在"), + ROLE_NOT_EXIST(1801, "角色不存在"), + /** + * 账户相关异常 2000 ~ 2099 + */ + ACCOUNT_EXCEPTION(2000, "账户异常"), + INVALID_RECHARGE_AMOUNT(2001, "无效金额"), + BALANCE_NOT_ENOUGH(2002, "余额不足"), + ACCOUNT_NOT_EXIST(2003, "账户不存在"), + STORAGE_NOT_ENOUGH(2004, "库存不足"), + IS_EXCHANGED(2005, "已有兑换"), + /** + * 短信相关 2100 ~ 2199 + */ + ERR_MESSAGE(2100, "短信发送失败"), + ERR_SEND_LIMIT(2101, "短信发送上限"), + ERR_PHONE(2102, "短信号码不正确"), + ERR_Content(2103, "短信内容不能为空"); + private final Integer code; + private final String desc; + + ResultCode(Integer code, String desc) { + this.code = code; + this.desc = desc; + } + + @Override + public Integer getCode() { + return code; + } + + @Override + public String getDesc() { + return desc; + } +} diff --git a/lms/nladmin-system/src/main/java/org/nl/modules/common/exception/BizCoreException.java b/lms/nladmin-system/src/main/java/org/nl/modules/common/exception/BizCoreException.java new file mode 100644 index 000000000..574b0483d --- /dev/null +++ b/lms/nladmin-system/src/main/java/org/nl/modules/common/exception/BizCoreException.java @@ -0,0 +1,89 @@ +package org.nl.modules.common.exception; + + +import org.nl.common.api.ResultCode; + +/** + * 业务异常 + * + * @author gbx + * @date 2022-03-21 + */ +public class BizCoreException extends RuntimeException{ + private static final long serialVersionUID = -430613633714952314L; + /** + * 错误描述,生成错误响应时,如果该值不为空,则返回message,否则返回code对象的描述值 + */ + private String errorMsg; + private ResultCode code = ResultCode.FAILED; + + /** + * 构造方法 + */ + public BizCoreException(String message) { + super(message); + this.errorMsg = message; + } + + /** + * 构造方法 + */ + public BizCoreException(String message, ResultCode code) { + super(message); + this.errorMsg = message; + this.code = code; + } + + /** + * 构造方法 + */ + public BizCoreException(ResultCode code) { + super(code.getDesc()); + this.code = code; + } + + /** + * 构造方法 + */ + public BizCoreException(String message, Throwable e) { + super(message, e); + this.errorMsg = message; + } + + /** + * 构造方法 + */ + public BizCoreException(String message, ResultCode code, Throwable e) { + super(message, e); + this.errorMsg = message; + this.code = code; + } + + /** + * 构造方法 + */ + public BizCoreException(Throwable e) { + super(e); + this.errorMsg = e.getMessage(); + } + + /** + * 构造方法 + */ + public BizCoreException(ResultCode code, Throwable e) { + super(e); + this.code = code; + } + + public ResultCode getCode() { + return code; + } + + public void setCode(ResultCode code) { + this.code = code; + } + + public String getErrorMsg() { + return this.errorMsg; + } +}