Ver código fonte

新增钢坯实绩异常表

qiangxuan 2 semanas atrás
pai
commit
13fa1dae05

+ 162 - 0
zgztBus/jeecg-module-sbm/src/main/java/org/jeecg/modules/actualControl/billetActual/billetActual/controller/BilletBasicInfoExceptionController.java

@@ -0,0 +1,162 @@
+package org.jeecg.modules.actualControl.billetActual.billetActual.controller;
+
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import lombok.extern.slf4j.Slf4j;
+import org.apache.shiro.authz.annotation.RequiresPermissions;
+import org.jeecg.common.api.vo.Result;
+import org.jeecg.common.aspect.annotation.AutoLog;
+import org.jeecg.common.system.base.controller.JeecgController;
+import org.jeecg.common.system.query.QueryGenerator;
+import org.jeecg.modules.actualControl.billetActual.billetActual.entity.BilletBasicInfoException;
+import org.jeecg.modules.actualControl.billetActual.billetActual.service.IBilletBasicInfoExceptionService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.*;
+import org.springframework.web.servlet.ModelAndView;
+
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+import java.util.Arrays;
+
+/**
+* @Description: 钢坯实绩异常表
+* @Author: jeecg-boot
+* @Date:   2025-05-23
+* @Version: V1.0
+*/
+@Api(tags="钢坯实绩异常表")
+@RestController
+@RequestMapping("/actualControl/billetActual/billetBasicInfoException")
+@Slf4j
+public class BilletBasicInfoExceptionController extends JeecgController<BilletBasicInfoException, IBilletBasicInfoExceptionService> {
+   @Autowired
+   private IBilletBasicInfoExceptionService billetBasicInfoExceptionService;
+
+   /**
+    * 分页列表查询
+    *
+    * @param billetBasicInfoException
+    * @param pageNo
+    * @param pageSize
+    * @param req
+    * @return
+    */
+   //@AutoLog(value = "钢坯实绩异常表-分页列表查询")
+   @ApiOperation(value="钢坯实绩异常表-分页列表查询", notes="钢坯实绩异常表-分页列表查询")
+   @GetMapping(value = "/list")
+   public Result<IPage<BilletBasicInfoException>> queryPageList(BilletBasicInfoException billetBasicInfoException,
+                                  @RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
+                                  @RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
+                                  HttpServletRequest req) {
+       QueryWrapper<BilletBasicInfoException> queryWrapper = QueryGenerator.initQueryWrapper(billetBasicInfoException, req.getParameterMap());
+       Page<BilletBasicInfoException> page = new Page<BilletBasicInfoException>(pageNo, pageSize);
+       IPage<BilletBasicInfoException> pageList = billetBasicInfoExceptionService.page(page, queryWrapper);
+       return Result.OK(pageList);
+   }
+
+   /**
+    *   添加
+    *
+    * @param billetBasicInfoException
+    * @return
+    */
+   @AutoLog(value = "钢坯实绩异常表-添加")
+   @ApiOperation(value="钢坯实绩异常表-添加", notes="钢坯实绩异常表-添加")
+   @RequiresPermissions("deviceInfosL:billet_basic_info_exception:add")
+   @PostMapping(value = "/add")
+   public Result<String> add(@RequestBody BilletBasicInfoException billetBasicInfoException) {
+       billetBasicInfoExceptionService.save(billetBasicInfoException);
+       return Result.OK("添加成功!");
+   }
+
+   /**
+    *  编辑
+    *
+    * @param billetBasicInfoException
+    * @return
+    */
+   @AutoLog(value = "钢坯实绩异常表-编辑")
+   @ApiOperation(value="钢坯实绩异常表-编辑", notes="钢坯实绩异常表-编辑")
+   @RequiresPermissions("deviceInfosL:billet_basic_info_exception:edit")
+   @RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
+   public Result<String> edit(@RequestBody BilletBasicInfoException billetBasicInfoException) {
+       billetBasicInfoExceptionService.updateById(billetBasicInfoException);
+       return Result.OK("编辑成功!");
+   }
+
+   /**
+    *   通过id删除
+    *
+    * @param id
+    * @return
+    */
+   @AutoLog(value = "钢坯实绩异常表-通过id删除")
+   @ApiOperation(value="钢坯实绩异常表-通过id删除", notes="钢坯实绩异常表-通过id删除")
+   @RequiresPermissions("deviceInfosL:billet_basic_info_exception:delete")
+   @DeleteMapping(value = "/delete")
+   public Result<String> delete(@RequestParam(name="id",required=true) String id) {
+       billetBasicInfoExceptionService.removeById(id);
+       return Result.OK("删除成功!");
+   }
+
+   /**
+    *  批量删除
+    *
+    * @param ids
+    * @return
+    */
+   @AutoLog(value = "钢坯实绩异常表-批量删除")
+   @ApiOperation(value="钢坯实绩异常表-批量删除", notes="钢坯实绩异常表-批量删除")
+   @RequiresPermissions("deviceInfosL:billet_basic_info_exception:deleteBatch")
+   @DeleteMapping(value = "/deleteBatch")
+   public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
+       this.billetBasicInfoExceptionService.removeByIds(Arrays.asList(ids.split(",")));
+       return Result.OK("批量删除成功!");
+   }
+
+   /**
+    * 通过id查询
+    *
+    * @param id
+    * @return
+    */
+   //@AutoLog(value = "钢坯实绩异常表-通过id查询")
+   @ApiOperation(value="钢坯实绩异常表-通过id查询", notes="钢坯实绩异常表-通过id查询")
+   @GetMapping(value = "/queryById")
+   public Result<BilletBasicInfoException> queryById(@RequestParam(name="id",required=true) String id) {
+       BilletBasicInfoException billetBasicInfoException = billetBasicInfoExceptionService.getById(id);
+       if(billetBasicInfoException==null) {
+           return Result.error("未找到对应数据");
+       }
+       return Result.OK(billetBasicInfoException);
+   }
+
+   /**
+   * 导出excel
+   *
+   * @param request
+   * @param billetBasicInfoException
+   */
+   @RequiresPermissions("deviceInfosL:billet_basic_info_exception:exportXls")
+   @RequestMapping(value = "/exportXls")
+   public ModelAndView exportXls(HttpServletRequest request, BilletBasicInfoException billetBasicInfoException) {
+       return super.exportXls(request, billetBasicInfoException, BilletBasicInfoException.class, "钢坯实绩异常表");
+   }
+
+   /**
+     * 通过excel导入数据
+   *
+   * @param request
+   * @param response
+   * @return
+   */
+   @RequiresPermissions("deviceInfosL:billet_basic_info_exception:importExcel")
+   @RequestMapping(value = "/importExcel", method = RequestMethod.POST)
+   public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
+       return super.importExcel(request, response, BilletBasicInfoException.class);
+   }
+
+}

+ 235 - 0
zgztBus/jeecg-module-sbm/src/main/java/org/jeecg/modules/actualControl/billetActual/billetActual/entity/BilletBasicInfoException.java

@@ -0,0 +1,235 @@
+package org.jeecg.modules.actualControl.billetActual.billetActual.entity;
+
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+import com.fasterxml.jackson.annotation.JsonFormat;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
+import lombok.experimental.Accessors;
+import org.jeecg.common.aspect.annotation.Dict;
+import org.jeecgframework.poi.excel.annotation.Excel;
+import org.springframework.format.annotation.DateTimeFormat;
+
+import java.io.Serializable;
+import java.util.Date;
+
+/**
+ * @Description: 钢坯实绩异常表
+ * @Author: jeecg-boot
+ * @Date:   2025-05-23
+ * @Version: V1.0
+ */
+@Data
+@TableName("billet_basic_info_exception")
+@Accessors(chain = true)
+@EqualsAndHashCode(callSuper = false)
+@ApiModel(value="billet_basic_info_exception对象", description="钢坯实绩异常表")
+public class BilletBasicInfoException implements Serializable {
+    private static final long serialVersionUID = 1L;
+
+    /**
+     * 主键
+     */
+    @TableId(type = IdType.ASSIGN_ID)
+    @ApiModelProperty(value = "主键")
+    private String id;
+    /**
+     * 创建人
+     */
+    @ApiModelProperty(value = "创建人")
+    private String createBy;
+    /**
+     * 创建日期
+     */
+    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
+    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
+    @ApiModelProperty(value = "创建日期")
+    private Date createTime;
+    /**
+     * 更新人
+     */
+    @ApiModelProperty(value = "更新人")
+    private String updateBy;
+    /**
+     * 更新日期
+     */
+    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
+    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
+    @ApiModelProperty(value = "更新日期")
+    private Date updateTime;
+    /**
+     * 所属部门
+     */
+    @ApiModelProperty(value = "所属部门")
+    private String sysOrgCode;
+    /**
+     * 炉号
+     */
+    @Excel(name = "炉号", width = 15)
+    @ApiModelProperty(value = "炉号", required = true)
+    private String heatNo;
+    /**
+     * 铸机号
+     */
+    @Excel(name = "铸机号", width = 15)
+    @ApiModelProperty(value = "铸机号", required = true)
+    private Integer ccmNo;
+    /**班组*/
+    @Excel(name = "班组", width = 15)
+    @ApiModelProperty(value = "班组")
+    @Dict(dicCode = "lg_bz")
+    private String shiftGroup;
+    /**班别*/
+    @Excel(name = "班别", width = 15)
+    @ApiModelProperty(value = "班别")
+    @Dict(dicCode = "lg_bb")
+    private String shift;
+
+    /**
+     * 流号
+     */
+    @Excel(name = "流号", width = 15)
+    @ApiModelProperty(value = "流号", required = true)
+    private Integer strandNo;
+    /**
+     * 拉速
+     */
+    @Excel(name = "拉速", width = 15)
+    @ApiModelProperty(value = "拉速", required = true)
+    private Double castingSpeed;
+
+    /**
+     * 坯重
+     */
+    @Excel(name = "坯重", width = 15)
+    @ApiModelProperty(value = "坯重", required = true)
+    private Double billetWeight;
+
+    /**
+     * 流号
+     */
+    @Excel(name = "钢包号", width = 15)
+    @ApiModelProperty(value = "钢包号", required = true)
+    private Integer ladleNo;
+    /**
+     * 支号
+     */
+    @Excel(name = "炉内顺序号", width = 15)
+    @ApiModelProperty(value = "炉内顺序号", required = true)
+    private Integer heatnoIndex;
+    /**
+     * 钢种
+     */
+    @Excel(name = "钢种", width = 15)
+    @ApiModelProperty(value = "钢种", required = true)
+    private String grade;
+    /**
+     * 定尺
+     */
+    @Excel(name = "定尺", width = 15)
+    @ApiModelProperty(value = "定尺", required = true)
+    private Integer length;
+    /**
+     * 实际长度
+     */
+    @Excel(name = "实际长度", width = 15)
+    @ApiModelProperty(value = "实际长度", required = true)
+    private Integer actualLength;
+    /**
+     * 宽度
+     */
+    @Excel(name = "宽度", width = 15)
+    @ApiModelProperty(value = "宽度", required = true)
+    private Integer width;
+    /**
+     * 厚度
+     */
+    @Excel(name = "厚度", width = 15)
+    @ApiModelProperty(value = "厚度", required = true)
+    private Integer thickness;
+    /**
+     * 规格
+     */
+    @Excel(name = "规格", width = 15)
+    @ApiModelProperty(value = "规格", required = true)
+    private String spec;
+    /**
+     * 定重
+     */
+    @Excel(name = "定重", width = 15)
+    @ApiModelProperty(value = "定重", required = true)
+    private Double weight;
+    /**
+     * 坯号
+     */
+    @Excel(name = "坯号", width = 15)
+    @ApiModelProperty(value = "坯号", required = true)
+    private String billetNo;
+    /**
+     * 顺序号
+     */
+    @Excel(name = "流内顺序号", width = 15)
+    @ApiModelProperty(value = "流内顺序号", required = true)
+    private Integer strandnoIndex;
+    /**
+     * 开始切割时间
+     */
+    @Excel(name = "开始切割时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
+    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
+    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
+    @ApiModelProperty(value = "开始切割时间", required = true)
+    private Date cutStartTime;
+    /**
+     * 停止切割时间
+     */
+    @Excel(name = "停止切割时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
+    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
+    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
+    @ApiModelProperty(value = "停止切割时间", required = true)
+    private Date cutStopTime;
+    /**
+     * 判级结果
+     */
+    @Excel(name = "判级结果", width = 15)
+    @ApiModelProperty(value = "判级结果", required = true)
+    private String ratingsResult;
+
+    /**
+     * 编辑条件
+     */
+    @Excel(name = "编辑条件", width = 15)
+    @ApiModelProperty(value = "编辑条件", required = true)
+    private Integer optype;
+
+    /**所属表*/
+    @Excel(name = "所属表", width = 15)
+    @ApiModelProperty(value = "所属表",required = true)
+    private String belongTable;
+
+    /**堆垛或车位关联id*/
+    @Excel(name = "堆垛或车位关联id", width = 15)
+    @ApiModelProperty(value = "堆垛或车位关联id",required = true)
+    private String stackOrCarId;
+
+    /**目的地*/
+    @Excel(name = "目的地", width = 15)
+    @ApiModelProperty(value = "目的地",required = true)
+    private String bhtcId;
+
+    /**
+     * 组坯号
+     */
+    @Excel(name = "组坯号", width = 15)
+    @ApiModelProperty(value = "组坯号", required = true)
+    private String assemblyNumber;
+
+    /**
+     * 牌号
+     */
+    @Excel(name = "牌号", width = 15)
+    @ApiModelProperty(value = "牌号")
+    private String brandNum;
+}

+ 14 - 0
zgztBus/jeecg-module-sbm/src/main/java/org/jeecg/modules/actualControl/billetActual/billetActual/mapper/BilletBasicInfoExceptionMapper.java

@@ -0,0 +1,14 @@
+package org.jeecg.modules.actualControl.billetActual.billetActual.mapper;
+
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import org.jeecg.modules.actualControl.billetActual.billetActual.entity.BilletBasicInfoException;
+
+/**
+ * @Description: 钢坯实绩异常表
+ * @Author: jeecg-boot
+ * @Date:   2025-05-23
+ * @Version: V1.0
+ */
+public interface BilletBasicInfoExceptionMapper extends BaseMapper<BilletBasicInfoException> {
+
+}

+ 5 - 0
zgztBus/jeecg-module-sbm/src/main/java/org/jeecg/modules/actualControl/billetActual/billetActual/mapper/xml/BilletBasicInfoExceptionMapper.xml

@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="org.jeecg.modules.actualControl.billetActual.billetActual.mapper.BilletBasicInfoExceptionMapper">
+
+</mapper>

+ 14 - 0
zgztBus/jeecg-module-sbm/src/main/java/org/jeecg/modules/actualControl/billetActual/billetActual/service/IBilletBasicInfoExceptionService.java

@@ -0,0 +1,14 @@
+package org.jeecg.modules.actualControl.billetActual.billetActual.service;
+import com.baomidou.mybatisplus.extension.service.IService;
+import org.jeecg.modules.actualControl.billetActual.billetActual.entity.BilletBasicInfoException;
+
+
+/**
+ * @Description: 钢坯实绩异常表
+ * @Author: jeecg-boot
+ * @Date:   2025-05-23
+ * @Version: V1.0
+ */
+public interface IBilletBasicInfoExceptionService extends IService<BilletBasicInfoException> {
+
+}

+ 32 - 0
zgztBus/jeecg-module-sbm/src/main/java/org/jeecg/modules/actualControl/billetActual/billetActual/service/impl/BilletBasicInfoExceptionServiceImpl.java

@@ -0,0 +1,32 @@
+package org.jeecg.modules.actualControl.billetActual.billetActual.service.impl;
+
+import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import lombok.extern.slf4j.Slf4j;
+import org.jeecg.common.util.DateUtils;
+import org.jeecg.common.util.oConvertUtils;
+
+import org.jeecg.modules.actualControl.billetActual.billetActual.entity.BilletBasicInfoException;
+import org.jeecg.modules.actualControl.billetActual.billetActual.mapper.BilletBasicInfoExceptionMapper;
+import org.jeecg.modules.actualControl.billetActual.billetActual.service.IBilletBasicInfoExceptionService;
+import org.springframework.beans.BeanUtils;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.data.redis.core.RedisTemplate;
+import org.springframework.stereotype.Service;
+
+import java.util.Date;
+
+/**
+ * @Description: 钢坯实绩异常表
+ * @Author: jeecg-boot
+ * @Date:   2025-05-23
+ * @Version: V1.0
+ */
+@Service
+@Slf4j
+public class BilletBasicInfoExceptionServiceImpl extends ServiceImpl<BilletBasicInfoExceptionMapper, BilletBasicInfoException> implements IBilletBasicInfoExceptionService {
+
+    @Autowired
+    RedisTemplate redisTemplate;
+
+}