1.添加设备领用养护功能相关的实体类和xml文件以及表sql
							parent
							
								
									b932e8ff24
								
							
						
					
					
						commit
						5305354837
					
				| @ -0,0 +1,89 @@ | |||||||
|  | package com.glxp.api.admin.entity.inventory; | ||||||
|  | 
 | ||||||
|  | import lombok.Data; | ||||||
|  | 
 | ||||||
|  | /** | ||||||
|  |     * 设备领用记录详情 | ||||||
|  |     */ | ||||||
|  | @Data | ||||||
|  | public class DeviceCollectOrderDetailEntity { | ||||||
|  |     /** | ||||||
|  |     * id | ||||||
|  |     */ | ||||||
|  |     private Integer id; | ||||||
|  | 
 | ||||||
|  |     /** | ||||||
|  |     * 设备领用记录号 | ||||||
|  |     */ | ||||||
|  |     private String orderIdFk; | ||||||
|  | 
 | ||||||
|  |     /** | ||||||
|  |     * 原始码 | ||||||
|  |     */ | ||||||
|  |     private String originCode; | ||||||
|  | 
 | ||||||
|  |     /** | ||||||
|  |     * 码 | ||||||
|  |     */ | ||||||
|  |     private String code; | ||||||
|  | 
 | ||||||
|  |     /** | ||||||
|  |     * 产品ID | ||||||
|  |     */ | ||||||
|  |     private String productId; | ||||||
|  | 
 | ||||||
|  |     /** | ||||||
|  |     * 产品DI | ||||||
|  |     */ | ||||||
|  |     private String nameCode; | ||||||
|  | 
 | ||||||
|  |     /** | ||||||
|  |     * 批次号 | ||||||
|  |     */ | ||||||
|  |     private String batchNo; | ||||||
|  | 
 | ||||||
|  |     /** | ||||||
|  |     * 生产日期 | ||||||
|  |     */ | ||||||
|  |     private String produceDate; | ||||||
|  | 
 | ||||||
|  |     /** | ||||||
|  |     * 失效日期 | ||||||
|  |     */ | ||||||
|  |     private String expireDate; | ||||||
|  | 
 | ||||||
|  |     /** | ||||||
|  |     * 序列号 | ||||||
|  |     */ | ||||||
|  |     private String serialNo; | ||||||
|  | 
 | ||||||
|  |     /** | ||||||
|  |     * 领用时间 | ||||||
|  |     */ | ||||||
|  |     private String createTime; | ||||||
|  | 
 | ||||||
|  |     /** | ||||||
|  |     * 更新时间 | ||||||
|  |     */ | ||||||
|  |     private String updateTime; | ||||||
|  | 
 | ||||||
|  |     /** | ||||||
|  |     * 领用仓库 | ||||||
|  |     */ | ||||||
|  |     private String invWarehouseCode; | ||||||
|  | 
 | ||||||
|  |     /** | ||||||
|  |     * 领用货位 | ||||||
|  |     */ | ||||||
|  |     private String invSpaceCode; | ||||||
|  | 
 | ||||||
|  |     /** | ||||||
|  |     * 接收仓库 | ||||||
|  |     */ | ||||||
|  |     private String receiveWarehouseCode; | ||||||
|  | 
 | ||||||
|  |     /** | ||||||
|  |     * 接收货位 | ||||||
|  |     */ | ||||||
|  |     private String receiveSpaceCode; | ||||||
|  | } | ||||||
| @ -0,0 +1,140 @@ | |||||||
|  | <?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.glxp.api.admin.dao.inventory.DeviceCollectOrderDao"> | ||||||
|  |     <resultMap id="BaseResultMap" type="com.glxp.api.admin.entity.inventory.DeviceCollectOrderEntity"> | ||||||
|  |         <id column="id" jdbcType="INTEGER" property="id"/> | ||||||
|  |         <result column="orderId" jdbcType="VARCHAR" property="orderId"/> | ||||||
|  |         <result column="deptCode" jdbcType="VARCHAR" property="deptCode"/> | ||||||
|  |         <result column="createUser" jdbcType="VARCHAR" property="createUser"/> | ||||||
|  |         <result column="auditUser" jdbcType="VARCHAR" property="auditUser"/> | ||||||
|  |         <result column="createTime" jdbcType="VARCHAR" property="createTime"/> | ||||||
|  |         <result column="updateTime" jdbcType="VARCHAR" property="updateTime"/> | ||||||
|  |         <result column="status" jdbcType="BOOLEAN" property="status"/> | ||||||
|  |     </resultMap> | ||||||
|  | 
 | ||||||
|  |     <sql id="Base_Column_List"> | ||||||
|  |         id, | ||||||
|  |         orderId, | ||||||
|  |         deptCode, | ||||||
|  |         `createUser`, | ||||||
|  |         auditUser, | ||||||
|  |         createTime, | ||||||
|  |         updateTime, | ||||||
|  |         `status` | ||||||
|  |     </sql> | ||||||
|  | 
 | ||||||
|  |     <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap"> | ||||||
|  |         select | ||||||
|  |         <include refid="Base_Column_List"/> | ||||||
|  |         from device_collect_order | ||||||
|  |         where id = #{id,jdbcType=INTEGER} | ||||||
|  |     </select> | ||||||
|  | 
 | ||||||
|  |     <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer"> | ||||||
|  |         delete | ||||||
|  |         from device_collect_order | ||||||
|  |         where id = #{id,jdbcType=INTEGER} | ||||||
|  |     </delete> | ||||||
|  | 
 | ||||||
|  |     <insert id="insert" keyColumn="id" keyProperty="id" | ||||||
|  |             parameterType="com.glxp.api.admin.entity.inventory.DeviceCollectOrderEntity" useGeneratedKeys="true"> | ||||||
|  |         insert into device_collect_order (orderId, deptCode, `createUser`, | ||||||
|  |                                           auditUser, createTime, updateTime, | ||||||
|  |                                           `status`) | ||||||
|  |         values (#{orderId,jdbcType=VARCHAR}, #{deptCode,jdbcType=VARCHAR}, #{createUser,jdbcType=VARCHAR}, | ||||||
|  |                 #{auditUser,jdbcType=VARCHAR}, #{createTime,jdbcType=VARCHAR}, #{updateTime,jdbcType=VARCHAR}, | ||||||
|  |                 #{status,jdbcType=BOOLEAN}) | ||||||
|  |     </insert> | ||||||
|  | 
 | ||||||
|  |     <insert id="insertSelective" keyColumn="id" keyProperty="id" | ||||||
|  |             parameterType="com.glxp.api.admin.entity.inventory.DeviceCollectOrderEntity" useGeneratedKeys="true"> | ||||||
|  |         insert into device_collect_order | ||||||
|  |         <trim prefix="(" suffix=")" suffixOverrides=","> | ||||||
|  |             <if test="orderId != null"> | ||||||
|  |                 orderId, | ||||||
|  |             </if> | ||||||
|  |             <if test="deptCode != null"> | ||||||
|  |                 deptCode, | ||||||
|  |             </if> | ||||||
|  |             <if test="createUser != null"> | ||||||
|  |                 `createUser`, | ||||||
|  |             </if> | ||||||
|  |             <if test="auditUser != null"> | ||||||
|  |                 auditUser, | ||||||
|  |             </if> | ||||||
|  |             <if test="createTime != null"> | ||||||
|  |                 createTime, | ||||||
|  |             </if> | ||||||
|  |             <if test="updateTime != null"> | ||||||
|  |                 updateTime, | ||||||
|  |             </if> | ||||||
|  |             <if test="status != null"> | ||||||
|  |                 `status`, | ||||||
|  |             </if> | ||||||
|  |         </trim> | ||||||
|  |         <trim prefix="values (" suffix=")" suffixOverrides=","> | ||||||
|  |             <if test="orderId != null"> | ||||||
|  |                 #{orderId,jdbcType=VARCHAR}, | ||||||
|  |             </if> | ||||||
|  |             <if test="deptCode != null"> | ||||||
|  |                 #{deptCode,jdbcType=VARCHAR}, | ||||||
|  |             </if> | ||||||
|  |             <if test="createUser != null"> | ||||||
|  |                 #{createUser,jdbcType=VARCHAR}, | ||||||
|  |             </if> | ||||||
|  |             <if test="auditUser != null"> | ||||||
|  |                 #{auditUser,jdbcType=VARCHAR}, | ||||||
|  |             </if> | ||||||
|  |             <if test="createTime != null"> | ||||||
|  |                 #{createTime,jdbcType=VARCHAR}, | ||||||
|  |             </if> | ||||||
|  |             <if test="updateTime != null"> | ||||||
|  |                 #{updateTime,jdbcType=VARCHAR}, | ||||||
|  |             </if> | ||||||
|  |             <if test="status != null"> | ||||||
|  |                 #{status,jdbcType=BOOLEAN}, | ||||||
|  |             </if> | ||||||
|  |         </trim> | ||||||
|  |     </insert> | ||||||
|  | 
 | ||||||
|  |     <update id="updateByPrimaryKeySelective" | ||||||
|  |             parameterType="com.glxp.api.admin.entity.inventory.DeviceCollectOrderEntity"> | ||||||
|  |         update device_collect_order | ||||||
|  |         <set> | ||||||
|  |             <if test="orderId != null"> | ||||||
|  |                 orderId = #{orderId,jdbcType=VARCHAR}, | ||||||
|  |             </if> | ||||||
|  |             <if test="deptCode != null"> | ||||||
|  |                 deptCode = #{deptCode,jdbcType=VARCHAR}, | ||||||
|  |             </if> | ||||||
|  |             <if test="createUser != null"> | ||||||
|  |                 `createUser` = #{createUser,jdbcType=VARCHAR}, | ||||||
|  |             </if> | ||||||
|  |             <if test="auditUser != null"> | ||||||
|  |                 auditUser = #{auditUser,jdbcType=VARCHAR}, | ||||||
|  |             </if> | ||||||
|  |             <if test="createTime != null"> | ||||||
|  |                 createTime = #{createTime,jdbcType=VARCHAR}, | ||||||
|  |             </if> | ||||||
|  |             <if test="updateTime != null"> | ||||||
|  |                 updateTime = #{updateTime,jdbcType=VARCHAR}, | ||||||
|  |             </if> | ||||||
|  |             <if test="status != null"> | ||||||
|  |                 `status` = #{status,jdbcType=BOOLEAN}, | ||||||
|  |             </if> | ||||||
|  |         </set> | ||||||
|  |         where id = #{id,jdbcType=INTEGER} | ||||||
|  |     </update> | ||||||
|  | 
 | ||||||
|  |     <update id="updateByPrimaryKey" parameterType="com.glxp.api.admin.entity.inventory.DeviceCollectOrderEntity"> | ||||||
|  |         update device_collect_order | ||||||
|  |         set orderId      = #{orderId,jdbcType=VARCHAR}, | ||||||
|  |             deptCode     = #{deptCode,jdbcType=VARCHAR}, | ||||||
|  |             `createUser` = #{createUser,jdbcType=VARCHAR}, | ||||||
|  |             auditUser    = #{auditUser,jdbcType=VARCHAR}, | ||||||
|  |             createTime   = #{createTime,jdbcType=VARCHAR}, | ||||||
|  |             updateTime   = #{updateTime,jdbcType=VARCHAR}, | ||||||
|  |             `status`     = #{status,jdbcType=BOOLEAN} | ||||||
|  |         where id = #{id,jdbcType=INTEGER} | ||||||
|  |     </update> | ||||||
|  | </mapper> | ||||||
| @ -0,0 +1,246 @@ | |||||||
|  | <?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.glxp.api.admin.dao.inventory.DeviceCollectOrderDetailDao"> | ||||||
|  |     <resultMap id="BaseResultMap" type="com.glxp.api.admin.entity.inventory.DeviceCollectOrderDetailEntity"> | ||||||
|  |         <id column="id" jdbcType="INTEGER" property="id"/> | ||||||
|  |         <result column="orderIdFk" jdbcType="VARCHAR" property="orderIdFk"/> | ||||||
|  |         <result column="originCode" jdbcType="VARCHAR" property="originCode"/> | ||||||
|  |         <result column="code" jdbcType="VARCHAR" property="code"/> | ||||||
|  |         <result column="productId" jdbcType="VARCHAR" property="productId"/> | ||||||
|  |         <result column="nameCode" jdbcType="VARCHAR" property="nameCode"/> | ||||||
|  |         <result column="batchNo" jdbcType="VARCHAR" property="batchNo"/> | ||||||
|  |         <result column="produceDate" jdbcType="VARCHAR" property="produceDate"/> | ||||||
|  |         <result column="expireDate" jdbcType="VARCHAR" property="expireDate"/> | ||||||
|  |         <result column="serialNo" jdbcType="VARCHAR" property="serialNo"/> | ||||||
|  |         <result column="createTime" jdbcType="VARCHAR" property="createTime"/> | ||||||
|  |         <result column="updateTime" jdbcType="VARCHAR" property="updateTime"/> | ||||||
|  |         <result column="invWarehouseCode" jdbcType="VARCHAR" property="invWarehouseCode"/> | ||||||
|  |         <result column="invSpaceCode" jdbcType="VARCHAR" property="invSpaceCode"/> | ||||||
|  |         <result column="receiveWarehouseCode" jdbcType="VARCHAR" property="receiveWarehouseCode"/> | ||||||
|  |         <result column="receiveSpaceCode" jdbcType="VARCHAR" property="receiveSpaceCode"/> | ||||||
|  |     </resultMap> | ||||||
|  | 
 | ||||||
|  |     <sql id="Base_Column_List"> | ||||||
|  |         id, | ||||||
|  |         orderIdFk, | ||||||
|  |         originCode, | ||||||
|  |         code, | ||||||
|  |         productId, | ||||||
|  |         nameCode, | ||||||
|  |         batchNo, | ||||||
|  |         produceDate, | ||||||
|  |         expireDate, | ||||||
|  |         serialNo, | ||||||
|  |         createTime, | ||||||
|  |         updateTime, | ||||||
|  |         invWarehouseCode, | ||||||
|  |         invSpaceCode, | ||||||
|  |         receiveWarehouseCode, | ||||||
|  |         receiveSpaceCode | ||||||
|  |     </sql> | ||||||
|  | 
 | ||||||
|  |     <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap"> | ||||||
|  |         select | ||||||
|  |         <include refid="Base_Column_List"/> | ||||||
|  |         from device_collect_order_detail | ||||||
|  |         where id = #{id,jdbcType=INTEGER} | ||||||
|  |     </select> | ||||||
|  | 
 | ||||||
|  |     <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer"> | ||||||
|  |         delete | ||||||
|  |         from device_collect_order_detail | ||||||
|  |         where id = #{id,jdbcType=INTEGER} | ||||||
|  |     </delete> | ||||||
|  |     <insert id="insert" parameterType="com.glxp.api.admin.entity.inventory.DeviceCollectOrderDetailEntity"> | ||||||
|  |         insert into device_collect_order_detail (id, orderIdFk, originCode, | ||||||
|  |                                                  code, productId, nameCode, | ||||||
|  |                                                  batchNo, produceDate, expireDate, | ||||||
|  |                                                  serialNo, createTime, updateTime, | ||||||
|  |                                                  invWarehouseCode, invSpaceCode, receiveWarehouseCode, | ||||||
|  |                                                  receiveSpaceCode) | ||||||
|  |         values (#{id,jdbcType=INTEGER}, #{orderIdFk,jdbcType=VARCHAR}, #{originCode,jdbcType=VARCHAR}, | ||||||
|  |                 #{code,jdbcType=VARCHAR}, #{productId,jdbcType=VARCHAR}, #{nameCode,jdbcType=VARCHAR}, | ||||||
|  |                 #{batchNo,jdbcType=VARCHAR}, #{produceDate,jdbcType=VARCHAR}, #{expireDate,jdbcType=VARCHAR}, | ||||||
|  |                 #{serialNo,jdbcType=VARCHAR}, #{createTime,jdbcType=VARCHAR}, #{updateTime,jdbcType=VARCHAR}, | ||||||
|  |                 #{invWarehouseCode,jdbcType=VARCHAR}, #{invSpaceCode,jdbcType=VARCHAR}, | ||||||
|  |                 #{receiveWarehouseCode,jdbcType=VARCHAR}, | ||||||
|  |                 #{receiveSpaceCode,jdbcType=VARCHAR}) | ||||||
|  |     </insert> | ||||||
|  | 
 | ||||||
|  |     <insert id="insertSelective" parameterType="com.glxp.api.admin.entity.inventory.DeviceCollectOrderDetailEntity"> | ||||||
|  |         insert into device_collect_order_detail | ||||||
|  |         <trim prefix="(" suffix=")" suffixOverrides=","> | ||||||
|  |             <if test="id != null"> | ||||||
|  |                 id, | ||||||
|  |             </if> | ||||||
|  |             <if test="orderIdFk != null"> | ||||||
|  |                 orderIdFk, | ||||||
|  |             </if> | ||||||
|  |             <if test="originCode != null"> | ||||||
|  |                 originCode, | ||||||
|  |             </if> | ||||||
|  |             <if test="code != null"> | ||||||
|  |                 code, | ||||||
|  |             </if> | ||||||
|  |             <if test="productId != null"> | ||||||
|  |                 productId, | ||||||
|  |             </if> | ||||||
|  |             <if test="nameCode != null"> | ||||||
|  |                 nameCode, | ||||||
|  |             </if> | ||||||
|  |             <if test="batchNo != null"> | ||||||
|  |                 batchNo, | ||||||
|  |             </if> | ||||||
|  |             <if test="produceDate != null"> | ||||||
|  |                 produceDate, | ||||||
|  |             </if> | ||||||
|  |             <if test="expireDate != null"> | ||||||
|  |                 expireDate, | ||||||
|  |             </if> | ||||||
|  |             <if test="serialNo != null"> | ||||||
|  |                 serialNo, | ||||||
|  |             </if> | ||||||
|  |             <if test="createTime != null"> | ||||||
|  |                 createTime, | ||||||
|  |             </if> | ||||||
|  |             <if test="updateTime != null"> | ||||||
|  |                 updateTime, | ||||||
|  |             </if> | ||||||
|  |             <if test="invWarehouseCode != null"> | ||||||
|  |                 invWarehouseCode, | ||||||
|  |             </if> | ||||||
|  |             <if test="invSpaceCode != null"> | ||||||
|  |                 invSpaceCode, | ||||||
|  |             </if> | ||||||
|  |             <if test="receiveWarehouseCode != null"> | ||||||
|  |                 receiveWarehouseCode, | ||||||
|  |             </if> | ||||||
|  |             <if test="receiveSpaceCode != null"> | ||||||
|  |                 receiveSpaceCode, | ||||||
|  |             </if> | ||||||
|  |         </trim> | ||||||
|  |         <trim prefix="values (" suffix=")" suffixOverrides=","> | ||||||
|  |             <if test="id != null"> | ||||||
|  |                 #{id,jdbcType=INTEGER}, | ||||||
|  |             </if> | ||||||
|  |             <if test="orderIdFk != null"> | ||||||
|  |                 #{orderIdFk,jdbcType=VARCHAR}, | ||||||
|  |             </if> | ||||||
|  |             <if test="originCode != null"> | ||||||
|  |                 #{originCode,jdbcType=VARCHAR}, | ||||||
|  |             </if> | ||||||
|  |             <if test="code != null"> | ||||||
|  |                 #{code,jdbcType=VARCHAR}, | ||||||
|  |             </if> | ||||||
|  |             <if test="productId != null"> | ||||||
|  |                 #{productId,jdbcType=VARCHAR}, | ||||||
|  |             </if> | ||||||
|  |             <if test="nameCode != null"> | ||||||
|  |                 #{nameCode,jdbcType=VARCHAR}, | ||||||
|  |             </if> | ||||||
|  |             <if test="batchNo != null"> | ||||||
|  |                 #{batchNo,jdbcType=VARCHAR}, | ||||||
|  |             </if> | ||||||
|  |             <if test="produceDate != null"> | ||||||
|  |                 #{produceDate,jdbcType=VARCHAR}, | ||||||
|  |             </if> | ||||||
|  |             <if test="expireDate != null"> | ||||||
|  |                 #{expireDate,jdbcType=VARCHAR}, | ||||||
|  |             </if> | ||||||
|  |             <if test="serialNo != null"> | ||||||
|  |                 #{serialNo,jdbcType=VARCHAR}, | ||||||
|  |             </if> | ||||||
|  |             <if test="createTime != null"> | ||||||
|  |                 #{createTime,jdbcType=VARCHAR}, | ||||||
|  |             </if> | ||||||
|  |             <if test="updateTime != null"> | ||||||
|  |                 #{updateTime,jdbcType=VARCHAR}, | ||||||
|  |             </if> | ||||||
|  |             <if test="invWarehouseCode != null"> | ||||||
|  |                 #{invWarehouseCode,jdbcType=VARCHAR}, | ||||||
|  |             </if> | ||||||
|  |             <if test="invSpaceCode != null"> | ||||||
|  |                 #{invSpaceCode,jdbcType=VARCHAR}, | ||||||
|  |             </if> | ||||||
|  |             <if test="receiveWarehouseCode != null"> | ||||||
|  |                 #{receiveWarehouseCode,jdbcType=VARCHAR}, | ||||||
|  |             </if> | ||||||
|  |             <if test="receiveSpaceCode != null"> | ||||||
|  |                 #{receiveSpaceCode,jdbcType=VARCHAR}, | ||||||
|  |             </if> | ||||||
|  |         </trim> | ||||||
|  |     </insert> | ||||||
|  | 
 | ||||||
|  |     <update id="updateByPrimaryKeySelective" | ||||||
|  |             parameterType="com.glxp.api.admin.entity.inventory.DeviceCollectOrderDetailEntity"> | ||||||
|  |         update device_collect_order_detail | ||||||
|  |         <set> | ||||||
|  |             <if test="orderIdFk != null"> | ||||||
|  |                 orderIdFk = #{orderIdFk,jdbcType=VARCHAR}, | ||||||
|  |             </if> | ||||||
|  |             <if test="originCode != null"> | ||||||
|  |                 originCode = #{originCode,jdbcType=VARCHAR}, | ||||||
|  |             </if> | ||||||
|  |             <if test="code != null"> | ||||||
|  |                 code = #{code,jdbcType=VARCHAR}, | ||||||
|  |             </if> | ||||||
|  |             <if test="productId != null"> | ||||||
|  |                 productId = #{productId,jdbcType=VARCHAR}, | ||||||
|  |             </if> | ||||||
|  |             <if test="nameCode != null"> | ||||||
|  |                 nameCode = #{nameCode,jdbcType=VARCHAR}, | ||||||
|  |             </if> | ||||||
|  |             <if test="batchNo != null"> | ||||||
|  |                 batchNo = #{batchNo,jdbcType=VARCHAR}, | ||||||
|  |             </if> | ||||||
|  |             <if test="produceDate != null"> | ||||||
|  |                 produceDate = #{produceDate,jdbcType=VARCHAR}, | ||||||
|  |             </if> | ||||||
|  |             <if test="expireDate != null"> | ||||||
|  |                 expireDate = #{expireDate,jdbcType=VARCHAR}, | ||||||
|  |             </if> | ||||||
|  |             <if test="serialNo != null"> | ||||||
|  |                 serialNo = #{serialNo,jdbcType=VARCHAR}, | ||||||
|  |             </if> | ||||||
|  |             <if test="createTime != null"> | ||||||
|  |                 createTime = #{createTime,jdbcType=VARCHAR}, | ||||||
|  |             </if> | ||||||
|  |             <if test="updateTime != null"> | ||||||
|  |                 updateTime = #{updateTime,jdbcType=VARCHAR}, | ||||||
|  |             </if> | ||||||
|  |             <if test="invWarehouseCode != null"> | ||||||
|  |                 invWarehouseCode = #{invWarehouseCode,jdbcType=VARCHAR}, | ||||||
|  |             </if> | ||||||
|  |             <if test="invSpaceCode != null"> | ||||||
|  |                 invSpaceCode = #{invSpaceCode,jdbcType=VARCHAR}, | ||||||
|  |             </if> | ||||||
|  |             <if test="receiveWarehouseCode != null"> | ||||||
|  |                 receiveWarehouseCode = #{receiveWarehouseCode,jdbcType=VARCHAR}, | ||||||
|  |             </if> | ||||||
|  |             <if test="receiveSpaceCode != null"> | ||||||
|  |                 receiveSpaceCode = #{receiveSpaceCode,jdbcType=VARCHAR}, | ||||||
|  |             </if> | ||||||
|  |         </set> | ||||||
|  |         where id = #{id,jdbcType=INTEGER} | ||||||
|  |     </update> | ||||||
|  | 
 | ||||||
|  |     <update id="updateByPrimaryKey" parameterType="com.glxp.api.admin.entity.inventory.DeviceCollectOrderDetailEntity"> | ||||||
|  |         update device_collect_order_detail | ||||||
|  |         set orderIdFk            = #{orderIdFk,jdbcType=VARCHAR}, | ||||||
|  |             originCode           = #{originCode,jdbcType=VARCHAR}, | ||||||
|  |             code                 = #{code,jdbcType=VARCHAR}, | ||||||
|  |             productId            = #{productId,jdbcType=VARCHAR}, | ||||||
|  |             nameCode             = #{nameCode,jdbcType=VARCHAR}, | ||||||
|  |             batchNo              = #{batchNo,jdbcType=VARCHAR}, | ||||||
|  |             produceDate          = #{produceDate,jdbcType=VARCHAR}, | ||||||
|  |             expireDate           = #{expireDate,jdbcType=VARCHAR}, | ||||||
|  |             serialNo             = #{serialNo,jdbcType=VARCHAR}, | ||||||
|  |             createTime           = #{createTime,jdbcType=VARCHAR}, | ||||||
|  |             updateTime           = #{updateTime,jdbcType=VARCHAR}, | ||||||
|  |             invWarehouseCode     = #{invWarehouseCode,jdbcType=VARCHAR}, | ||||||
|  |             invSpaceCode         = #{invSpaceCode,jdbcType=VARCHAR}, | ||||||
|  |             receiveWarehouseCode = #{receiveWarehouseCode,jdbcType=VARCHAR}, | ||||||
|  |             receiveSpaceCode     = #{receiveSpaceCode,jdbcType=VARCHAR} | ||||||
|  |         where id = #{id,jdbcType=INTEGER} | ||||||
|  |     </update> | ||||||
|  | </mapper> | ||||||
| @ -0,0 +1,227 @@ | |||||||
|  | <?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.glxp.api.admin.dao.inventory.DeviceMaOrderDao"> | ||||||
|  |     <resultMap id="BaseResultMap" type="com.glxp.api.admin.entity.inventory.DeviceMAOrderEntity"> | ||||||
|  |         <id column="id" jdbcType="INTEGER" property="id"/> | ||||||
|  |         <result column="orderId" jdbcType="VARCHAR" property="orderId"/> | ||||||
|  |         <result column="code" jdbcType="VARCHAR" property="code"/> | ||||||
|  |         <result column="productId" jdbcType="VARCHAR" property="productId"/> | ||||||
|  |         <result column="batchNo" jdbcType="VARCHAR" property="batchNo"/> | ||||||
|  |         <result column="produceDate" jdbcType="VARCHAR" property="produceDate"/> | ||||||
|  |         <result column="expireDate" jdbcType="VARCHAR" property="expireDate"/> | ||||||
|  |         <result column="serialNo" jdbcType="VARCHAR" property="serialNo"/> | ||||||
|  |         <result column="createTime" jdbcType="VARCHAR" property="createTime"/> | ||||||
|  |         <result column="updateTime" jdbcType="VARCHAR" property="updateTime"/> | ||||||
|  |         <result column="deviceStatus" jdbcType="BOOLEAN" property="deviceStatus"/> | ||||||
|  |         <result column="maintenanceStatus" jdbcType="BOOLEAN" property="maintenanceStatus"/> | ||||||
|  |         <result column="createUser" jdbcType="VARCHAR" property="createUser"/> | ||||||
|  |         <result column="remark" jdbcType="VARCHAR" property="remark"/> | ||||||
|  |         <result column="status" jdbcType="BOOLEAN" property="status"/> | ||||||
|  |     </resultMap> | ||||||
|  | 
 | ||||||
|  |     <sql id="Base_Column_List"> | ||||||
|  |         id, | ||||||
|  |         orderId, | ||||||
|  |         code, | ||||||
|  |         productId, | ||||||
|  |         batchNo, | ||||||
|  |         produceDate, | ||||||
|  |         expireDate, | ||||||
|  |         serialNo, | ||||||
|  |         createTime, | ||||||
|  |         updateTime, | ||||||
|  |         deviceStatus, | ||||||
|  |         maintenanceStatus, | ||||||
|  |         `createUser`, | ||||||
|  |         remark, | ||||||
|  |         `status` | ||||||
|  |     </sql> | ||||||
|  | 
 | ||||||
|  |     <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap"> | ||||||
|  |         select | ||||||
|  |         <include refid="Base_Column_List"/> | ||||||
|  |         from device_ma_order | ||||||
|  |         where id = #{id,jdbcType=INTEGER} | ||||||
|  |     </select> | ||||||
|  | 
 | ||||||
|  |     <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer"> | ||||||
|  |         delete | ||||||
|  |         from device_ma_order | ||||||
|  |         where id = #{id,jdbcType=INTEGER} | ||||||
|  |     </delete> | ||||||
|  | 
 | ||||||
|  |     <insert id="insert" keyColumn="id" keyProperty="id" | ||||||
|  |             parameterType="com.glxp.api.admin.entity.inventory.DeviceMAOrderEntity" useGeneratedKeys="true"> | ||||||
|  |         insert into device_ma_order (orderId, code, productId, | ||||||
|  |                                      batchNo, produceDate, expireDate, | ||||||
|  |                                      serialNo, createTime, updateTime, | ||||||
|  |                                      deviceStatus, maintenanceStatus, `createUser`, | ||||||
|  |                                      remark, `status`) | ||||||
|  |         values (#{orderId,jdbcType=VARCHAR}, #{code,jdbcType=VARCHAR}, #{productId,jdbcType=VARCHAR}, | ||||||
|  |                 #{batchNo,jdbcType=VARCHAR}, #{produceDate,jdbcType=VARCHAR}, #{expireDate,jdbcType=VARCHAR}, | ||||||
|  |                 #{serialNo,jdbcType=VARCHAR}, #{createTime,jdbcType=VARCHAR}, #{updateTime,jdbcType=VARCHAR}, | ||||||
|  |                 #{deviceStatus,jdbcType=BOOLEAN}, #{maintenanceStatus,jdbcType=BOOLEAN}, #{createUser,jdbcType=VARCHAR}, | ||||||
|  |                 #{remark,jdbcType=VARCHAR}, #{status,jdbcType=BOOLEAN}) | ||||||
|  |     </insert> | ||||||
|  | 
 | ||||||
|  |     <insert id="insertSelective" keyColumn="id" keyProperty="id" | ||||||
|  |             parameterType="com.glxp.api.admin.entity.inventory.DeviceMAOrderEntity" useGeneratedKeys="true"> | ||||||
|  |         insert into device_ma_order | ||||||
|  |         <trim prefix="(" suffix=")" suffixOverrides=","> | ||||||
|  |             <if test="orderId != null"> | ||||||
|  |                 orderId, | ||||||
|  |             </if> | ||||||
|  |             <if test="code != null"> | ||||||
|  |                 code, | ||||||
|  |             </if> | ||||||
|  |             <if test="productId != null"> | ||||||
|  |                 productId, | ||||||
|  |             </if> | ||||||
|  |             <if test="batchNo != null"> | ||||||
|  |                 batchNo, | ||||||
|  |             </if> | ||||||
|  |             <if test="produceDate != null"> | ||||||
|  |                 produceDate, | ||||||
|  |             </if> | ||||||
|  |             <if test="expireDate != null"> | ||||||
|  |                 expireDate, | ||||||
|  |             </if> | ||||||
|  |             <if test="serialNo != null"> | ||||||
|  |                 serialNo, | ||||||
|  |             </if> | ||||||
|  |             <if test="createTime != null"> | ||||||
|  |                 createTime, | ||||||
|  |             </if> | ||||||
|  |             <if test="updateTime != null"> | ||||||
|  |                 updateTime, | ||||||
|  |             </if> | ||||||
|  |             <if test="deviceStatus != null"> | ||||||
|  |                 deviceStatus, | ||||||
|  |             </if> | ||||||
|  |             <if test="maintenanceStatus != null"> | ||||||
|  |                 maintenanceStatus, | ||||||
|  |             </if> | ||||||
|  |             <if test="createUser != null"> | ||||||
|  |                 `createUser`, | ||||||
|  |             </if> | ||||||
|  |             <if test="remark != null"> | ||||||
|  |                 remark, | ||||||
|  |             </if> | ||||||
|  |             <if test="status != null"> | ||||||
|  |                 `status`, | ||||||
|  |             </if> | ||||||
|  |         </trim> | ||||||
|  |         <trim prefix="values (" suffix=")" suffixOverrides=","> | ||||||
|  |             <if test="orderId != null"> | ||||||
|  |                 #{orderId,jdbcType=VARCHAR}, | ||||||
|  |             </if> | ||||||
|  |             <if test="code != null"> | ||||||
|  |                 #{code,jdbcType=VARCHAR}, | ||||||
|  |             </if> | ||||||
|  |             <if test="productId != null"> | ||||||
|  |                 #{productId,jdbcType=VARCHAR}, | ||||||
|  |             </if> | ||||||
|  |             <if test="batchNo != null"> | ||||||
|  |                 #{batchNo,jdbcType=VARCHAR}, | ||||||
|  |             </if> | ||||||
|  |             <if test="produceDate != null"> | ||||||
|  |                 #{produceDate,jdbcType=VARCHAR}, | ||||||
|  |             </if> | ||||||
|  |             <if test="expireDate != null"> | ||||||
|  |                 #{expireDate,jdbcType=VARCHAR}, | ||||||
|  |             </if> | ||||||
|  |             <if test="serialNo != null"> | ||||||
|  |                 #{serialNo,jdbcType=VARCHAR}, | ||||||
|  |             </if> | ||||||
|  |             <if test="createTime != null"> | ||||||
|  |                 #{createTime,jdbcType=VARCHAR}, | ||||||
|  |             </if> | ||||||
|  |             <if test="updateTime != null"> | ||||||
|  |                 #{updateTime,jdbcType=VARCHAR}, | ||||||
|  |             </if> | ||||||
|  |             <if test="deviceStatus != null"> | ||||||
|  |                 #{deviceStatus,jdbcType=BOOLEAN}, | ||||||
|  |             </if> | ||||||
|  |             <if test="maintenanceStatus != null"> | ||||||
|  |                 #{maintenanceStatus,jdbcType=BOOLEAN}, | ||||||
|  |             </if> | ||||||
|  |             <if test="createUser != null"> | ||||||
|  |                 #{createUser,jdbcType=VARCHAR}, | ||||||
|  |             </if> | ||||||
|  |             <if test="remark != null"> | ||||||
|  |                 #{remark,jdbcType=VARCHAR}, | ||||||
|  |             </if> | ||||||
|  |             <if test="status != null"> | ||||||
|  |                 #{status,jdbcType=BOOLEAN}, | ||||||
|  |             </if> | ||||||
|  |         </trim> | ||||||
|  |     </insert> | ||||||
|  | 
 | ||||||
|  |     <update id="updateByPrimaryKeySelective" parameterType="com.glxp.api.admin.entity.inventory.DeviceMAOrderEntity"> | ||||||
|  |         update device_ma_order | ||||||
|  |         <set> | ||||||
|  |             <if test="orderId != null"> | ||||||
|  |                 orderId = #{orderId,jdbcType=VARCHAR}, | ||||||
|  |             </if> | ||||||
|  |             <if test="code != null"> | ||||||
|  |                 code = #{code,jdbcType=VARCHAR}, | ||||||
|  |             </if> | ||||||
|  |             <if test="productId != null"> | ||||||
|  |                 productId = #{productId,jdbcType=VARCHAR}, | ||||||
|  |             </if> | ||||||
|  |             <if test="batchNo != null"> | ||||||
|  |                 batchNo = #{batchNo,jdbcType=VARCHAR}, | ||||||
|  |             </if> | ||||||
|  |             <if test="produceDate != null"> | ||||||
|  |                 produceDate = #{produceDate,jdbcType=VARCHAR}, | ||||||
|  |             </if> | ||||||
|  |             <if test="expireDate != null"> | ||||||
|  |                 expireDate = #{expireDate,jdbcType=VARCHAR}, | ||||||
|  |             </if> | ||||||
|  |             <if test="serialNo != null"> | ||||||
|  |                 serialNo = #{serialNo,jdbcType=VARCHAR}, | ||||||
|  |             </if> | ||||||
|  |             <if test="createTime != null"> | ||||||
|  |                 createTime = #{createTime,jdbcType=VARCHAR}, | ||||||
|  |             </if> | ||||||
|  |             <if test="updateTime != null"> | ||||||
|  |                 updateTime = #{updateTime,jdbcType=VARCHAR}, | ||||||
|  |             </if> | ||||||
|  |             <if test="deviceStatus != null"> | ||||||
|  |                 deviceStatus = #{deviceStatus,jdbcType=BOOLEAN}, | ||||||
|  |             </if> | ||||||
|  |             <if test="maintenanceStatus != null"> | ||||||
|  |                 maintenanceStatus = #{maintenanceStatus,jdbcType=BOOLEAN}, | ||||||
|  |             </if> | ||||||
|  |             <if test="createUser != null"> | ||||||
|  |                 `createUser` = #{createUser,jdbcType=VARCHAR}, | ||||||
|  |             </if> | ||||||
|  |             <if test="remark != null"> | ||||||
|  |                 remark = #{remark,jdbcType=VARCHAR}, | ||||||
|  |             </if> | ||||||
|  |             <if test="status != null"> | ||||||
|  |                 `status` = #{status,jdbcType=BOOLEAN}, | ||||||
|  |             </if> | ||||||
|  |         </set> | ||||||
|  |         where id = #{id,jdbcType=INTEGER} | ||||||
|  |     </update> | ||||||
|  | 
 | ||||||
|  |     <update id="updateByPrimaryKey" parameterType="com.glxp.api.admin.entity.inventory.DeviceMAOrderEntity"> | ||||||
|  |         update device_ma_order | ||||||
|  |         set orderId           = #{orderId,jdbcType=VARCHAR}, | ||||||
|  |             code              = #{code,jdbcType=VARCHAR}, | ||||||
|  |             productId         = #{productId,jdbcType=VARCHAR}, | ||||||
|  |             batchNo           = #{batchNo,jdbcType=VARCHAR}, | ||||||
|  |             produceDate       = #{produceDate,jdbcType=VARCHAR}, | ||||||
|  |             expireDate        = #{expireDate,jdbcType=VARCHAR}, | ||||||
|  |             serialNo          = #{serialNo,jdbcType=VARCHAR}, | ||||||
|  |             createTime        = #{createTime,jdbcType=VARCHAR}, | ||||||
|  |             updateTime        = #{updateTime,jdbcType=VARCHAR}, | ||||||
|  |             deviceStatus      = #{deviceStatus,jdbcType=BOOLEAN}, | ||||||
|  |             maintenanceStatus = #{maintenanceStatus,jdbcType=BOOLEAN}, | ||||||
|  |             `createUser`      = #{createUser,jdbcType=VARCHAR}, | ||||||
|  |             remark            = #{remark,jdbcType=VARCHAR}, | ||||||
|  |             `status`          = #{status,jdbcType=BOOLEAN} | ||||||
|  |         where id = #{id,jdbcType=INTEGER} | ||||||
|  |     </update> | ||||||
|  | </mapper> | ||||||
					Loading…
					
					
				
		Reference in New Issue