Bläddra i källkod

钢产品执行标准页面增删改查。轮次描述计划下发量逻辑调整,已接收不允许再下发,展开编辑不显示已接收的订单,修改代码缺失调整

QuietShadow 3 år sedan
förälder
incheckning
b32424570e

+ 16 - 16
src/main/java/com/steerinfo/ems/emsprodplanround/controller/EmsProdplanRoundController.java

@@ -221,21 +221,21 @@ public class EmsProdplanRoundController extends BaseRESTfulController {
             id.add(model.getId());
             monthid = model.getParentid();
             model.setIssuedTime(new Date());
-            if(model.getState().equals("1")){
+            if(model.getState().equals("1") || model.getState().equals("2")){
                 return  failed(null,"存在已下发的计划,无法再次做下发");
-            }
-            if (model.getState().equals("3")) {
+            } else if (model.getState().equals("3")) {
                 return  failed(null,"存在审核不通过的计划, 无法下发");
-            }
-            model.setState("1");
+            } else {
+                model.setState("1");
             //emsProdplanRoundMapper.updateByPrimaryKey(model);
             emsProdplanRoundMapper.updateByPrimaryKeySelective(model);
+            EmsProdplanRound sumPlanWeight = emsProdplanRoundService.getSumPlanWeight(model.getId());
+            EmsGmPcJh emsGmPcJh = emsGmPcJhMapper.selectByPrimaryKey(monthid);
+            emsGmPcJh.setKxfWeight(emsGmPcJh.getPlanWeight().subtract(emsGmPcJh.getYxfWeight().add(sumPlanWeight.getPlanWeight())));
+            emsGmPcJh.setYxfWeight(emsGmPcJh.getYxfWeight().add(sumPlanWeight.getPlanWeight()));
+            emsGmPcJhMapper.updateByPrimaryKey(emsGmPcJh);
+            }
         }
-        EmsProdplanRound sumPlanWeight = emsProdplanRoundService.getSumPlanWeight(id);
-        EmsGmPcJh emsGmPcJh = emsGmPcJhMapper.selectByPrimaryKey(monthid);
-        emsGmPcJh.setKxfWeight(emsGmPcJh.getPlanWeight().subtract(emsGmPcJh.getYxfWeight().add(sumPlanWeight.getPlanWeight())));
-        emsGmPcJh.setYxfWeight(emsGmPcJh.getYxfWeight().add(sumPlanWeight.getPlanWeight()));
-        emsGmPcJhMapper.updateByPrimaryKey(emsGmPcJh);
         return  success();
     }
     @ApiOperation(value="取消下发", notes="根据models修改对象")
@@ -261,13 +261,13 @@ public class EmsProdplanRoundController extends BaseRESTfulController {
             model.setState("0");
             //emsProdplanRoundMapper.updateByPrimaryKey(model);
             emsProdplanRoundMapper.updateByPrimaryKeySelective(model);
+            EmsProdplanRound sumPlanWeight = emsProdplanRoundService.getSumPlanWeight(model.getId());
+            EmsGmPcJh emsGmPcJh = emsGmPcJhMapper.selectByPrimaryKey(monthid);
+            // 取消下发操作
+            emsGmPcJh.setKxfWeight(emsGmPcJh.getKxfWeight().add(sumPlanWeight.getPlanWeight()));
+            emsGmPcJh.setYxfWeight(emsGmPcJh.getYxfWeight().subtract(sumPlanWeight.getPlanWeight()));
+            emsGmPcJhMapper.updateByPrimaryKey(emsGmPcJh);
         }
-        EmsProdplanRound sumPlanWeight = emsProdplanRoundService.getSumPlanWeight(id);
-        EmsGmPcJh emsGmPcJh = emsGmPcJhMapper.selectByPrimaryKey(monthid);
-        // 取消下发操作
-        emsGmPcJh.setKxfWeight(emsGmPcJh.getKxfWeight().add(sumPlanWeight.getPlanWeight()));
-        emsGmPcJh.setYxfWeight(emsGmPcJh.getYxfWeight().subtract(sumPlanWeight.getPlanWeight()));
-        emsGmPcJhMapper.updateByPrimaryKey(emsGmPcJh);
         return  success();
     }
 

+ 1 - 1
src/main/java/com/steerinfo/ems/emsprodplanround/mapper/EmsProdplanRoundMapper.java

@@ -14,7 +14,7 @@ public interface EmsProdplanRoundMapper extends IBaseMapper<EmsProdplanRound, St
 
     EmsProdplanRound getbeyondWeight(HashMap<String,Object> parmas);
 
-    EmsProdplanRound getSumPlanWeight(List ids);
+    EmsProdplanRound getSumPlanWeight(String id);
     //获取编号
     String getMaxidAsGm(EmsProdplanRound emsProdplanRound);
     //获取编号

+ 23 - 7
src/main/java/com/steerinfo/ems/emsprodplanround/mapper/EmsProdplanRoundMapper.xml

@@ -566,10 +566,22 @@
         READ_FLAG = #{readFlag,jdbcType=VARCHAR},
       </if>
       <if test="parentid != null and parentid != ''">
-       PARENTID = #{parentid,jdbcType=VARCHAR}
+       PARENTID = #{parentid,jdbcType=VARCHAR},
+      </if>
+      <if test="iateralArea != null and iateralArea != ''">
+        IATERAL_AREA = #{iateralArea,jdbcType=VARCHAR},
+      </if>
+      <if test="lengthTimesWidth != null and lengthTimesWidth != ''">
+        LENGTH_TIMES_WIDTH = #{lengthTimesWidth,jdbcType=VARCHAR},
+      </if>
+      <if test="dimension != null and dimension != ''">
+        DIMENSION = #{dimension,jdbcType=VARCHAR},
+      </if>
+      <if test="goinfo != null and goinfo != ''">
+        GOINFO = #{goinfo,jdbcType=VARCHAR},
       </if>
       <if test="tag != null and tag != ''">
-        TAG = #{tag,jdbcType=VARCHAR}
+        TAG = #{tag,jdbcType=VARCHAR},
       </if>
     </set>
     where ID = #{id,jdbcType=VARCHAR}
@@ -736,11 +748,12 @@
        </if>
      </where>
   </select>
-  <select id="getSumPlanWeight" parameterType="java.util.List"  resultMap="BaseResultMap">
-    select  nvl(sum(t.plan_weight),0) plan_weight from EMS_PRODPLAN_ROUND t  where t.id in
-     <foreach collection="list" item="id" open="(" close=")" separator=",">
-       #{id}
-     </foreach>
+  <select id="getSumPlanWeight" parameterType="java.lang.String"  resultMap="BaseResultMap">
+    select  nvl(sum(t.plan_weight),0) plan_weight from EMS_PRODPLAN_ROUND t  where id = #{id}
+<!--    parameterType="java.util.List" t.id in-->
+<!--     <foreach collection="list" item="id" open="(" close=")" separator=",">-->
+<!--       #{id}-->
+<!--     </foreach>-->
   </select>
   <select id="getMaxidAsGm" parameterType="com.steerinfo.ems.emsprodplanround.model.EmsProdplanRound" resultType="java.lang.String">
       select #{parentid} || '-' || to_char(nvl(max(substr(ID, 18, 2) + 1), 1),'fm00') as id
@@ -827,6 +840,9 @@
        <if test="id != null and id != '' ">
          and PARENTID in (${id})
        </if>
+       <if test="state != null and state != '' ">
+         and STATE != #{state}
+       </if>
      </where>
      order by state
    </select>

+ 2 - 4
src/main/java/com/steerinfo/ems/emsprodplanround/service/IEmsProdplanRoundService.java

@@ -1,11 +1,9 @@
 package com.steerinfo.ems.emsprodplanround.service;
 
-import com.steerinfo.framework.service.IBaseService;
 import com.steerinfo.ems.emsprodplanround.model.EmsProdplanRound;
+import com.steerinfo.framework.service.IBaseService;
 import com.steerinfo.framework.service.pagehelper.PageList;
 
-import java.util.Date;
-import java.math.BigDecimal;
 import java.util.HashMap;
 import java.util.List;
 import java.util.Map;
@@ -26,7 +24,7 @@ import java.util.Map;
 public interface IEmsProdplanRoundService extends IBaseService<EmsProdplanRound, String>{
     EmsProdplanRound getbeyondWeight(HashMap<String,Object> parmas);
 
-    EmsProdplanRound getSumPlanWeight(List ids);
+    EmsProdplanRound getSumPlanWeight(String id);
 
     //获取编号
     String getMaxidAsGm(EmsProdplanRound emsProdplanRound);

+ 2 - 2
src/main/java/com/steerinfo/ems/emsprodplanround/service/impl/EmsProdplanRoundServiceImpl.java

@@ -46,8 +46,8 @@ public class EmsProdplanRoundServiceImpl extends BaseServiceImpl<EmsProdplanRoun
     }
 
     @Override
-    public EmsProdplanRound getSumPlanWeight(List ids) {
-        return emsProdplanRoundMapper.getSumPlanWeight(ids);
+    public EmsProdplanRound getSumPlanWeight(String id) {
+        return emsProdplanRoundMapper.getSumPlanWeight(id);
     }
 
     @Override

+ 144 - 0
src/main/java/com/steerinfo/ems/emsproductsexecutivestandard/controller/EmsProductsExecutiveStandardController.java

@@ -0,0 +1,144 @@
+package com.steerinfo.ems.emsproductsexecutivestandard.controller;
+
+import com.steerinfo.auth.utils.JwtUtil;
+import com.steerinfo.ems.emsproductsexecutivestandard.model.EmsProductsExecutiveStandard;
+import com.steerinfo.ems.emsproductsexecutivestandard.service.IEmsProductsExecutiveStandardService;
+import com.steerinfo.framework.controller.BaseRESTfulController;
+import com.steerinfo.framework.controller.RESTfulResult;
+import com.steerinfo.framework.service.pagehelper.PageList;
+import com.steerinfo.framework.utils.collection.ListUtils;
+import io.swagger.annotations.ApiImplicitParam;
+import io.swagger.annotations.ApiImplicitParams;
+import io.swagger.annotations.ApiOperation;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.*;
+
+import java.util.Arrays;
+import java.util.Date;
+import java.util.HashMap;
+import java.util.List;
+
+/**
+ * EmsProductsExecutiveStandard RESTful接口:
+ * @author generator
+ * @version 1.0-SNAPSHORT 2022-03-25 02:05
+ * 类描述
+ * 修订历史:
+ * 日期:2022-03-25
+ * 作者:generator
+ * 参考:
+ * 描述:EmsProductsExecutiveStandard RESTful接口
+ * @see null
+ * @Copyright 湖南视拓信息技术股份有限公司. All rights reserved.
+ */
+@RestController
+@RequestMapping("/${api.version}/emsproductsexecutivestandards")
+public class EmsProductsExecutiveStandardController extends BaseRESTfulController {
+
+    @Autowired
+    IEmsProductsExecutiveStandardService emsProductsExecutiveStandardService;
+
+    @ApiOperation(value="获取列表", notes="分页查询")
+    @ApiImplicitParams({
+        @ApiImplicitParam(name = "pageNum", value = "查询页数", required = false, dataType = "Integer"),
+        @ApiImplicitParam(name = "pageSize", value = "每页记录数", required = false, dataType = "Integer")
+    })
+    //@RequiresPermissions("emsproductsexecutivestandard:view")
+    @GetMapping(value = "/")
+    public RESTfulResult list(@RequestParam HashMap parmas,Integer pageNum, Integer pageSize){
+        PageList<EmsProductsExecutiveStandard> list = emsProductsExecutiveStandardService.queryForPage(parmas, pageNum, pageSize);
+        return success(list);
+    }
+
+    @ApiOperation(value="获取列表", notes="分页模糊查询")
+    @ApiImplicitParams({
+        @ApiImplicitParam(name = "pageNum", value = "查询页数", required = false, dataType = "Integer"),
+        @ApiImplicitParam(name = "pageSize", value = "每页记录数", required = false, dataType = "Integer")
+    })
+    //@RequiresPermissions("emsproductsexecutivestandard:view")
+    @GetMapping(value = "/like/")
+    public RESTfulResult listLike(@RequestParam HashMap parmas,Integer pageNum, Integer pageSize){
+        PageList<EmsProductsExecutiveStandard> list = emsProductsExecutiveStandardService.queryLikeForPage(parmas, pageNum, pageSize);
+        return success(list);
+    }
+    
+    @ApiOperation(value="创建", notes="根据EmsProductsExecutiveStandard对象创建")
+    @ApiImplicitParam(name = "emsProductsExecutiveStandard", value = "详细实体emsProductsExecutiveStandard", required = true, dataType = "EmsProductsExecutiveStandard")
+    //@RequiresPermissions("emsproductsexecutivestandard:create")
+    @PostMapping(value = "/")
+    public RESTfulResult add(@ModelAttribute EmsProductsExecutiveStandard model){
+        model.setCreateman(JwtUtil.getUseridByToken());
+        model.setCreatetime(new Date());
+        EmsProductsExecutiveStandard emsProductsExecutiveStandard = emsProductsExecutiveStandardService.add(model);
+        return success(emsProductsExecutiveStandard);
+    }
+
+    @ApiOperation(value="获取详细信息", notes="根据url的id来获取详细信息")
+    @ApiImplicitParam(paramType = "path", name = "id", value = "ID", required = true, dataType = "Short")
+    //@RequiresPermissions("emsproductsexecutivestandard:view")
+    @GetMapping(value = "/{id}")
+    public RESTfulResult get(@PathVariable Short id){
+        EmsProductsExecutiveStandard emsProductsExecutiveStandard = emsProductsExecutiveStandardService.getById(id);
+        return success(emsProductsExecutiveStandard);
+    }
+
+    @ApiOperation(value="更新详细信息", notes="根据url的id来指定更新对象,并根据传过来的emsProductsExecutiveStandard信息来更新详细信息")
+    @ApiImplicitParams({
+        @ApiImplicitParam(paramType = "path", name = "id", value = "ID", required = true, dataType = "Short"),
+        @ApiImplicitParam(name = "emsProductsExecutiveStandard", value = "详细实体emsProductsExecutiveStandard", required = true, dataType = "EmsProductsExecutiveStandard")
+    })
+    //@RequiresPermissions("emsproductsexecutivestandard:update")
+    @PutMapping(value = "/{id}", produces  = "application/json;charset=UTF-8")
+    public RESTfulResult update(@PathVariable String id, @RequestBody EmsProductsExecutiveStandard model){
+        model.setId(id);
+        EmsProductsExecutiveStandard emsProductsExecutiveStandard = emsProductsExecutiveStandardService.modify(model);
+        return success(emsProductsExecutiveStandard);
+    }
+
+    @ApiOperation(value="删除", notes="根据url的id来指定删除对象")
+    @ApiImplicitParam(paramType = "path", name = "id", value = "ID", required = true, dataType = "Short")
+    //@RequiresPermissions("emsproductsexecutivestandard:delete")
+    @DeleteMapping(value = "/{id}")//Short
+    public RESTfulResult delete(@PathVariable String id){
+    	List<String> list = Arrays.asList(id.split(","));
+    	if(ListUtils.isNotEmpty(list)) {
+	    	List<Short> ids = ListUtils.convertList(list);
+			  emsProductsExecutiveStandardService.delete(ids);
+    	}
+      return success();
+    }
+
+    @ApiOperation(value="获取树状数据", notes="获取钢产品类型的树形数据")
+    @GetMapping(value = "/getTree/")
+    public RESTfulResult getTree(@RequestParam HashMap parameters){
+        List<EmsProductsExecutiveStandard> lists = emsProductsExecutiveStandardService.queryLike(parameters);
+        return success(lists);
+    }
+    @ApiOperation(value="批量修改数据", notes="批量修改钢产品执行标准数据")
+    @PutMapping(value = "/batchupdate", produces  = "application/json;charset=UTF-8")
+    public RESTfulResult batchupdate(@RequestBody EmsProductsExecutiveStandard[] models) {
+        String userId = JwtUtil.getUseridByToken();
+        for (int i = 0; i < models.length; i++) {
+            EmsProductsExecutiveStandard model = models[i];
+            if (model.getId() == null || model.getId().equals("")) {
+                return failed(null, "修改失败。id为空");
+            }
+            if (model.getProduct() == null || model.getProduct().equals("")) {
+                return failed(null, "钢产品类型不能为空");
+            }
+            if (model.getBrand() == null || model.getBrand().equals("")) {
+                return failed(null, "钢种不能为空");
+            }
+            model.setUpdateman(userId);
+            model.setUpdatetime(new Date());
+        }
+        try {
+            if(emsProductsExecutiveStandardService.batchUpdate(Arrays.asList(models))>0){
+                return success();
+            }
+        } catch (Exception e) {
+            return failed();
+        }
+        return failed();
+    }
+}

+ 9 - 0
src/main/java/com/steerinfo/ems/emsproductsexecutivestandard/mapper/EmsProductsExecutiveStandardMapper.java

@@ -0,0 +1,9 @@
+package com.steerinfo.ems.emsproductsexecutivestandard.mapper;
+
+import com.steerinfo.ems.emsproductsexecutivestandard.model.EmsProductsExecutiveStandard;
+import com.steerinfo.framework.mapper.IBaseMapper;
+import org.apache.ibatis.annotations.Mapper;
+
+@Mapper
+public interface EmsProductsExecutiveStandardMapper extends IBaseMapper<EmsProductsExecutiveStandard, Short> {
+}

+ 344 - 0
src/main/java/com/steerinfo/ems/emsproductsexecutivestandard/mapper/EmsProductsExecutiveStandardMapper.xml

@@ -0,0 +1,344 @@
+<?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="com.steerinfo.ems.emsproductsexecutivestandard.mapper.EmsProductsExecutiveStandardMapper">
+  <resultMap id="BaseResultMap" type="com.steerinfo.ems.emsproductsexecutivestandard.model.EmsProductsExecutiveStandard">
+    <id column="STANDARD_ID" jdbcType="VARCHAR" property="standardId" />
+    <result column="PRODUCT" jdbcType="VARCHAR" property="product" />
+    <result column="BRAND" jdbcType="VARCHAR" property="brand" />
+    <result column="FACTORY_STANDARD" jdbcType="VARCHAR" property="factoryStandard" />
+    <result column="SURFACE_STANDARD" jdbcType="VARCHAR" property="surfaceStandard" />
+    <result column="CREATEMAN" jdbcType="VARCHAR" property="createman" />
+    <result column="CREATETIME" jdbcType="TIMESTAMP" property="createtime" />
+    <result column="UPDATEMAN" jdbcType="VARCHAR" property="updateman" />
+    <result column="UPDATETIME" jdbcType="TIMESTAMP" property="updatetime" />
+    <result column="MEMO" jdbcType="VARCHAR" property="memo" />
+  </resultMap>
+  <sql id="columns">
+    STANDARD_ID, PRODUCT, BRAND, FACTORY_STANDARD, SURFACE_STANDARD, CREATEMAN, CREATETIME, 
+    UPDATEMAN, UPDATETIME, MEMO
+  </sql>
+  <sql id="columns_alias">
+    t.STANDARD_ID, t.PRODUCT, t.BRAND, t.FACTORY_STANDARD, t.SURFACE_STANDARD, t.CREATEMAN, 
+    t.CREATETIME, t.UPDATEMAN, t.UPDATETIME, t.MEMO
+  </sql>
+  <sql id="select">
+    SELECT <include refid="columns"/> FROM EMS_PRODUCTS_EXECUTIVE_STANDARD
+  </sql>
+  <sql id="select_alias">
+    SELECT <include refid="columns_alias"/> FROM EMS_PRODUCTS_EXECUTIVE_STANDARD t
+  </sql>
+  <sql id="where">
+    <where> 
+      <if test="standardId != null">
+        and STANDARD_ID = #{standardId}
+      </if>
+      <if test="product != null and product != ''">
+        and PRODUCT = #{product}
+      </if>
+      <if test="brand != null and brand != ''">
+        and BRAND = #{brand}
+      </if>
+      <if test="factoryStandard != null and factoryStandard != ''">
+        and FACTORY_STANDARD = #{factoryStandard}
+      </if>
+      <if test="surfaceStandard != null and surfaceStandard != ''">
+        and SURFACE_STANDARD = #{surfaceStandard}
+      </if>
+      <if test="createman != null and createman != ''">
+        and CREATEMAN = #{createman}
+      </if>
+      <if test="createtime != null">
+        and TO_CHAR(CREATETIME,'yyyy-MM-dd') = #{createtime}
+      </if>
+      <if test="updateman != null and updateman != ''">
+        and UPDATEMAN = #{updateman}
+      </if>
+      <if test="updatetime != null">
+        and TO_CHAR(UPDATETIME,'yyyy-MM-dd') = #{updatetime}
+      </if>
+      <if test="memo != null and memo != ''">
+        and MEMO = #{memo}
+      </if>
+    </where>
+  </sql>
+  <sql id="whereLike">
+    <where> 
+      <if test="standardId != null">
+        and STANDARD_ID = #{standardId}
+      </if>
+      <if test="product != null and product != ''">
+        and PRODUCT LIKE '%${product}%'
+      </if>
+      <if test="brand != null and brand != ''">
+        and BRAND LIKE '%${brand}%'
+      </if>
+      <if test="factoryStandard != null and factoryStandard != ''">
+        and FACTORY_STANDARD LIKE '%${factoryStandard}%'
+      </if>
+      <if test="surfaceStandard != null and surfaceStandard != ''">
+        and SURFACE_STANDARD LIKE '%${surfaceStandard}%'
+      </if>
+      <if test="createman != null and createman != ''">
+        and CREATEMAN LIKE '%${createman}%'
+      </if>
+      <if test="createtime != null">
+        and TO_CHAR(CREATETIME,'yyyy-MM-dd') = #{createtime}
+      </if>
+      <if test="updateman != null and updateman != ''">
+        and UPDATEMAN LIKE '%${updateman}%'
+      </if>
+      <if test="updatetime != null">
+        and TO_CHAR(UPDATETIME,'yyyy-MM-dd') = #{updatetime}
+      </if>
+      <if test="memo != null and memo != ''">
+        and MEMO LIKE '%${memo}%'
+      </if>
+    </where>
+  </sql>
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.Short">
+    delete from EMS_PRODUCTS_EXECUTIVE_STANDARD
+    where STANDARD_ID = #{standardId,jdbcType=VARCHAR}
+  </delete>
+  <delete id="deleteBySelectiveElement" parameterType="java.util.HashMap">
+    delete from EMS_PRODUCTS_EXECUTIVE_STANDARD
+    where 1!=1 
+      <if test="product != null and product != ''">
+        or PRODUCT = #{product}
+      </if>
+      <if test="brand != null and brand != ''">
+        or BRAND = #{brand}
+      </if>
+      <if test="factoryStandard != null and factoryStandard != ''">
+        or FACTORY_STANDARD = #{factoryStandard}
+      </if>
+      <if test="surfaceStandard != null and surfaceStandard != ''">
+        or SURFACE_STANDARD = #{surfaceStandard}
+      </if>
+      <if test="createman != null and createman != ''">
+        or CREATEMAN = #{createman}
+      </if>
+      <if test="createtime != null">
+        or TO_CHAR(CREATETIME,'yyyy-MM-dd') = '#{createtime}'
+      </if>
+      <if test="updateman != null and updateman != ''">
+        or UPDATEMAN = #{updateman}
+      </if>
+      <if test="updatetime != null">
+        or TO_CHAR(UPDATETIME,'yyyy-MM-dd') = '#{updatetime}'
+      </if>
+      <if test="memo != null and memo != ''">
+        or MEMO = #{memo}
+      </if>
+  </delete>
+  <insert id="insert" parameterType="com.steerinfo.ems.emsproductsexecutivestandard.model.EmsProductsExecutiveStandard">
+    insert into EMS_PRODUCTS_EXECUTIVE_STANDARD (STANDARD_ID, PRODUCT, BRAND, 
+      FACTORY_STANDARD, SURFACE_STANDARD, CREATEMAN, 
+      CREATETIME, UPDATEMAN, UPDATETIME, 
+      MEMO)
+    values (#{standardId,jdbcType=VARCHAR}, #{product,jdbcType=VARCHAR}, #{brand,jdbcType=VARCHAR},
+      #{factoryStandard,jdbcType=VARCHAR}, #{surfaceStandard,jdbcType=VARCHAR}, #{createman,jdbcType=VARCHAR}, 
+      #{createtime,jdbcType=TIMESTAMP}, #{updateman,jdbcType=VARCHAR}, #{updatetime,jdbcType=TIMESTAMP}, 
+      #{memo,jdbcType=VARCHAR})
+  </insert>
+  <insert id="insertSelective" parameterType="com.steerinfo.ems.emsproductsexecutivestandard.model.EmsProductsExecutiveStandard">
+    insert into EMS_PRODUCTS_EXECUTIVE_STANDARD
+    <trim prefix="(" suffix=")" suffixOverrides=",">
+      <if test="standardId != null">
+        STANDARD_ID,
+      </if>
+      <if test="product != null">
+        PRODUCT,
+      </if>
+      <if test="brand != null">
+        BRAND,
+      </if>
+      <if test="factoryStandard != null">
+        FACTORY_STANDARD,
+      </if>
+      <if test="surfaceStandard != null">
+        SURFACE_STANDARD,
+      </if>
+      <if test="createman != null">
+        CREATEMAN,
+      </if>
+      <if test="createtime != null">
+        CREATETIME,
+      </if>
+      <if test="updateman != null">
+        UPDATEMAN,
+      </if>
+      <if test="updatetime != null">
+        UPDATETIME,
+      </if>
+      <if test="memo != null">
+        MEMO,
+      </if>
+    </trim>
+    <trim prefix="values (" suffix=")" suffixOverrides=",">
+      <if test="standardId != null">
+        #{standardId,jdbcType=VARCHAR},
+      </if>
+      <if test="product != null">
+        #{product,jdbcType=VARCHAR},
+      </if>
+      <if test="brand != null">
+        #{brand,jdbcType=VARCHAR},
+      </if>
+      <if test="factoryStandard != null">
+        #{factoryStandard,jdbcType=VARCHAR},
+      </if>
+      <if test="surfaceStandard != null">
+        #{surfaceStandard,jdbcType=VARCHAR},
+      </if>
+      <if test="createman != null">
+        #{createman,jdbcType=VARCHAR},
+      </if>
+      <if test="createtime != null">
+        #{createtime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="updateman != null">
+        #{updateman,jdbcType=VARCHAR},
+      </if>
+      <if test="updatetime != null">
+        #{updatetime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="memo != null">
+        #{memo,jdbcType=VARCHAR},
+      </if>
+    </trim>
+  </insert>
+  <update id="updateByPrimaryKey" parameterType="com.steerinfo.ems.emsproductsexecutivestandard.model.EmsProductsExecutiveStandard">
+    update EMS_PRODUCTS_EXECUTIVE_STANDARD
+    set PRODUCT = #{product,jdbcType=VARCHAR},
+      BRAND = #{brand,jdbcType=VARCHAR},
+      FACTORY_STANDARD = #{factoryStandard,jdbcType=VARCHAR},
+      SURFACE_STANDARD = #{surfaceStandard,jdbcType=VARCHAR},
+      CREATEMAN = #{createman,jdbcType=VARCHAR},
+      CREATETIME = #{createtime,jdbcType=TIMESTAMP},
+      UPDATEMAN = #{updateman,jdbcType=VARCHAR},
+      UPDATETIME = #{updatetime,jdbcType=TIMESTAMP},
+      MEMO = #{memo,jdbcType=VARCHAR}
+    where STANDARD_ID = #{standardId,jdbcType=VARCHAR}
+  </update>
+  <update id="updateByPrimaryKeySelective" parameterType="com.steerinfo.ems.emsproductsexecutivestandard.model.EmsProductsExecutiveStandard">
+    update EMS_PRODUCTS_EXECUTIVE_STANDARD
+    <set>
+      <if test="product != null">
+        PRODUCT = #{product,jdbcType=VARCHAR},
+      </if>
+      <if test="brand != null">
+        BRAND = #{brand,jdbcType=VARCHAR},
+      </if>
+      <if test="factoryStandard != null">
+        FACTORY_STANDARD = #{factoryStandard,jdbcType=VARCHAR},
+      </if>
+      <if test="surfaceStandard != null">
+        SURFACE_STANDARD = #{surfaceStandard,jdbcType=VARCHAR},
+      </if>
+      <if test="createman != null">
+        CREATEMAN = #{createman,jdbcType=VARCHAR},
+      </if>
+      <if test="createtime != null">
+        CREATETIME = #{createtime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="updateman != null">
+        UPDATEMAN = #{updateman,jdbcType=VARCHAR},
+      </if>
+      <if test="updatetime != null">
+        UPDATETIME = #{updatetime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="memo != null">
+        MEMO = #{memo,jdbcType=VARCHAR},
+      </if>
+    </set>
+    where STANDARD_ID = #{standardId,jdbcType=VARCHAR}
+  </update>
+  <select id="selectByPrimaryKey" parameterType="java.lang.Short" resultMap="BaseResultMap">
+    <include refid="select"/>
+    where STANDARD_ID = #{standardId,jdbcType=VARCHAR}
+  </select>
+  <select id="selectByParameters" parameterType="java.util.HashMap" resultMap="BaseResultMap">
+    <include refid="select"/>
+    <include refid="where"/>
+    ORDER BY LENGTH(PRODUCT),PRODUCT
+  </select>
+  <select id="selectLikeByParameters" parameterType="java.util.HashMap" resultMap="BaseResultMap">
+    <include refid="select"/>
+    <include refid="whereLike"/>
+    ORDER BY LENGTH(PRODUCT),PRODUCT
+  </select>
+  <insert id="batchInsert" parameterType="java.util.List">
+    insert into EMS_PRODUCTS_EXECUTIVE_STANDARD 
+      (STANDARD_ID, 
+      PRODUCT, BRAND, FACTORY_STANDARD, 
+      SURFACE_STANDARD, CREATEMAN, CREATETIME, 
+      UPDATEMAN, UPDATETIME, MEMO
+      )
+    ( <foreach collection="list" item="item" separator="union all"> 
+   select  
+      #{item.standardId,jdbcType=VARCHAR},
+      #{item.product,jdbcType=VARCHAR}, #{item.brand,jdbcType=VARCHAR}, #{item.factoryStandard,jdbcType=VARCHAR}, 
+      #{item.surfaceStandard,jdbcType=VARCHAR}, #{item.createman,jdbcType=VARCHAR}, #{item.createtime,jdbcType=TIMESTAMP}, 
+      #{item.updateman,jdbcType=VARCHAR}, #{item.updatetime,jdbcType=TIMESTAMP}, #{item.memo,jdbcType=VARCHAR}
+       from dual  
+   </foreach> )
+  </insert>
+  <update id="batchUpdate" parameterType="java.util.List">
+     update EMS_PRODUCTS_EXECUTIVE_STANDARD
+     set
+       STANDARD_ID=
+       <foreach collection="list" item="item" index="index" separator=" " open="case STANDARD_ID" close="end">
+          when #{item.standardId,jdbcType=VARCHAR} then #{item.standardId,jdbcType=VARCHAR}
+       </foreach>
+       ,PRODUCT=
+       <foreach collection="list" item="item" index="index" separator=" " open="case STANDARD_ID" close="end">
+          when #{item.standardId,jdbcType=VARCHAR} then #{item.product,jdbcType=VARCHAR}
+       </foreach>
+       ,BRAND=
+       <foreach collection="list" item="item" index="index" separator=" " open="case STANDARD_ID" close="end">
+          when #{item.standardId,jdbcType=VARCHAR} then #{item.brand,jdbcType=VARCHAR}
+       </foreach>
+       ,FACTORY_STANDARD=
+       <foreach collection="list" item="item" index="index" separator=" " open="case STANDARD_ID" close="end">
+          when #{item.standardId,jdbcType=VARCHAR} then #{item.factoryStandard,jdbcType=VARCHAR}
+       </foreach>
+       ,SURFACE_STANDARD=
+       <foreach collection="list" item="item" index="index" separator=" " open="case STANDARD_ID" close="end">
+          when #{item.standardId,jdbcType=VARCHAR} then #{item.surfaceStandard,jdbcType=VARCHAR}
+       </foreach>
+       ,CREATEMAN=
+       <foreach collection="list" item="item" index="index" separator=" " open="case STANDARD_ID" close="end">
+          when #{item.standardId,jdbcType=VARCHAR} then #{item.createman,jdbcType=VARCHAR}
+       </foreach>
+       ,CREATETIME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case STANDARD_ID" close="end">
+          when #{item.standardId,jdbcType=VARCHAR} then #{item.createtime,jdbcType=TIMESTAMP}
+       </foreach>
+       ,UPDATEMAN=
+       <foreach collection="list" item="item" index="index" separator=" " open="case STANDARD_ID" close="end">
+          when #{item.standardId,jdbcType=VARCHAR} then #{item.updateman,jdbcType=VARCHAR}
+       </foreach>
+       ,UPDATETIME=
+       <foreach collection="list" item="item" index="index" separator=" " open="case STANDARD_ID" close="end">
+          when #{item.standardId,jdbcType=VARCHAR} then #{item.updatetime,jdbcType=TIMESTAMP}
+       </foreach>
+       ,MEMO=
+       <foreach collection="list" item="item" index="index" separator=" " open="case STANDARD_ID" close="end">
+          when #{item.standardId,jdbcType=VARCHAR} then #{item.memo,jdbcType=VARCHAR}
+       </foreach>
+     where STANDARD_ID in 
+     <foreach collection="list" index="index" item="item" separator="," open="(" close=")">
+    #{item.standardId,jdbcType=VARCHAR}
+     </foreach> 
+  </update>
+  <delete id="batchDelete" parameterType="java.util.List">
+    delete from EMS_PRODUCTS_EXECUTIVE_STANDARD
+    where STANDARD_ID in 
+    <foreach collection="list" item="id" open="(" close=")" separator=",">
+      #{id}
+    </foreach>
+  </delete>
+  <!-- 友情提示!!!-->
+  <!-- 请将自己写的代码放在此标签之下,方便以后粘贴复制。-->
+  
+</mapper>

+ 183 - 0
src/main/java/com/steerinfo/ems/emsproductsexecutivestandard/model/EmsProductsExecutiveStandard.java

@@ -0,0 +1,183 @@
+package com.steerinfo.ems.emsproductsexecutivestandard.model;
+
+import com.steerinfo.framework.model.IBasePO;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+
+import java.util.Date;
+
+@ApiModel(value="钢产品执行标准")
+public class EmsProductsExecutiveStandard implements IBasePO<String> {
+    /**
+     * 钢产品执行标准ID(STANDARD_ID,DECIMAL,0)
+     */
+    @ApiModelProperty(value="钢产品执行标准ID",required=true)
+    private String standardId;
+
+    /**
+     * 钢产品执行标准产品类型(PRODUCT,VARCHAR,50)
+     */
+    @ApiModelProperty(value="钢产品执行标准产品类型",required=false)
+    private String product;
+
+    /**
+     * 钢产品执行标准产品牌号(BRAND,VARCHAR,50)
+     */
+    @ApiModelProperty(value="钢产品执行标准产品牌号",required=false)
+    private String brand;
+
+    /**
+     * 钢产品出厂执行标准(FACTORY_STANDARD,VARCHAR,100)
+     */
+    @ApiModelProperty(value="钢产品出厂执行标准",required=false)
+    private String factoryStandard;
+
+    /**
+     * 钢产品表面执行标准(SURFACE_STANDARD,VARCHAR,100)
+     */
+    @ApiModelProperty(value="钢产品表面执行标准",required=false)
+    private String surfaceStandard;
+
+    /**
+     * 创建人(CREATEMAN,VARCHAR,50)
+     */
+    @ApiModelProperty(value="创建人",required=false)
+    private String createman;
+
+    /**
+     * 创建时间(CREATETIME,TIMESTAMP,7)
+     */
+    @ApiModelProperty(value="创建时间",required=false)
+    private Date createtime;
+
+    /**
+     * 修改人(UPDATEMAN,VARCHAR,50)
+     */
+    @ApiModelProperty(value="修改人",required=false)
+    private String updateman;
+
+    /**
+     * 修改时间(UPDATETIME,TIMESTAMP,7)
+     */
+    @ApiModelProperty(value="修改时间",required=false)
+    private Date updatetime;
+
+    /**
+     * 备注(MEMO,VARCHAR,255)
+     */
+    @ApiModelProperty(value="备注",required=false)
+    private String memo;
+
+    private static final long serialVersionUID = 1L;
+
+    @Override
+    public String getId() {
+        return this.standardId == null ? null : this.standardId.trim() ;
+    }
+
+    @Override
+    public void setId(String standardId) {
+        this.standardId = standardId == null ? null : standardId.trim();
+    }
+
+    public String getStandardId() {
+        return standardId;
+    }
+
+    public void setStandardId(String standardId) {
+        this.standardId = standardId;
+    }
+
+    public String getProduct() {
+        return product;
+    }
+
+    public void setProduct(String product) {
+        this.product = product == null ? null : product.trim();
+    }
+
+    public String getBrand() {
+        return brand;
+    }
+
+    public void setBrand(String brand) {
+        this.brand = brand == null ? null : brand.trim();
+    }
+
+    public String getFactoryStandard() {
+        return factoryStandard;
+    }
+
+    public void setFactoryStandard(String factoryStandard) {
+        this.factoryStandard = factoryStandard == null ? null : factoryStandard.trim();
+    }
+
+    public String getSurfaceStandard() {
+        return surfaceStandard;
+    }
+
+    public void setSurfaceStandard(String surfaceStandard) {
+        this.surfaceStandard = surfaceStandard == null ? null : surfaceStandard.trim();
+    }
+
+    public String getCreateman() {
+        return createman;
+    }
+
+    public void setCreateman(String createman) {
+        this.createman = createman == null ? null : createman.trim();
+    }
+
+    public Date getCreatetime() {
+        return createtime;
+    }
+
+    public void setCreatetime(Date createtime) {
+        this.createtime = createtime;
+    }
+
+    public String getUpdateman() {
+        return updateman;
+    }
+
+    public void setUpdateman(String updateman) {
+        this.updateman = updateman == null ? null : updateman.trim();
+    }
+
+    public Date getUpdatetime() {
+        return updatetime;
+    }
+
+    public void setUpdatetime(Date updatetime) {
+        this.updatetime = updatetime;
+    }
+
+    public String getMemo() {
+        return memo;
+    }
+
+    public void setMemo(String memo) {
+        this.memo = memo == null ? null : memo.trim();
+    }
+
+    @Override
+    public String toString() {
+        StringBuilder sb = new StringBuilder();
+        sb.append(getClass().getSimpleName());
+        sb.append(" [");
+        sb.append("Hash = ").append(hashCode());
+        sb.append(", standardId=").append(standardId);
+        sb.append(", product=").append(product);
+        sb.append(", brand=").append(brand);
+        sb.append(", factoryStandard=").append(factoryStandard);
+        sb.append(", surfaceStandard=").append(surfaceStandard);
+        sb.append(", createman=").append(createman);
+        sb.append(", createtime=").append(createtime);
+        sb.append(", updateman=").append(updateman);
+        sb.append(", updatetime=").append(updatetime);
+        sb.append(", memo=").append(memo);
+        sb.append(", serialVersionUID=").append(serialVersionUID);
+        sb.append("]");
+        return sb.toString();
+    }
+}

+ 21 - 0
src/main/java/com/steerinfo/ems/emsproductsexecutivestandard/service/IEmsProductsExecutiveStandardService.java

@@ -0,0 +1,21 @@
+package com.steerinfo.ems.emsproductsexecutivestandard.service;
+
+import com.steerinfo.ems.emsproductsexecutivestandard.model.EmsProductsExecutiveStandard;
+import com.steerinfo.framework.service.IBaseService;
+
+/**
+ * EmsProductsExecutiveStandard服务接口:
+ * @author generator
+ * @version 1.0-SNAPSHORT 2022-03-25 02:05
+ * 类描述
+ * 修订历史:
+ * 日期:2022-03-25
+ * 作者:generator
+ * 参考:
+ * 描述:EmsProductsExecutiveStandard服务接口
+ * @see null
+ * @Copyright 湖南视拓信息技术股份有限公司. All rights reserved.
+ */
+public interface IEmsProductsExecutiveStandardService extends IBaseService<EmsProductsExecutiveStandard, Short>{
+
+}

+ 34 - 0
src/main/java/com/steerinfo/ems/emsproductsexecutivestandard/service/impl/EmsProductsExecutiveStandardServiceImpl.java

@@ -0,0 +1,34 @@
+package com.steerinfo.ems.emsproductsexecutivestandard.service.impl;
+
+import com.steerinfo.ems.emsproductsexecutivestandard.mapper.EmsProductsExecutiveStandardMapper;
+import com.steerinfo.ems.emsproductsexecutivestandard.model.EmsProductsExecutiveStandard;
+import com.steerinfo.ems.emsproductsexecutivestandard.service.IEmsProductsExecutiveStandardService;
+import com.steerinfo.framework.mapper.IBaseMapper;
+import com.steerinfo.framework.service.impl.BaseServiceImpl;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+/**
+ * EmsProductsExecutiveStandard服务实现:
+ * @author generator
+ * @version 1.0-SNAPSHORT 2022-03-25 02:05
+ * 类描述
+ * 修订历史:
+ * 日期:2022-03-25
+ * 作者:generator
+ * 参考:
+ * 描述:EmsProductsExecutiveStandard服务实现
+ * @see null
+ * @Copyright 湖南视拓信息技术股份有限公司. All rights reserved.
+ */
+@Service(value = "emsProductsExecutiveStandardService")
+public class EmsProductsExecutiveStandardServiceImpl extends BaseServiceImpl<EmsProductsExecutiveStandard, Short> implements IEmsProductsExecutiveStandardService {
+
+    @Autowired
+    private EmsProductsExecutiveStandardMapper emsProductsExecutiveStandardMapper;
+
+    @Override
+    protected IBaseMapper<EmsProductsExecutiveStandard, Short> getMapper() {
+        return emsProductsExecutiveStandardMapper;
+    }
+}