|
@@ -8,12 +8,23 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="id" column="id" />
|
|
|
<result property="materialCode" column="material_code" />
|
|
|
<result property="materialName" column="material_name" />
|
|
|
- <result property="model" column="model" />
|
|
|
<result property="specification" column="specification" />
|
|
|
+ <result property="model" column="model" />
|
|
|
+ <result property="mapNumber" column="map_number" />
|
|
|
+ <result property="description" column="description" />
|
|
|
+ <result property="ckNumber" column="ck_number" />
|
|
|
+ <result property="ckName" column="ck_name" />
|
|
|
+ <result property="lotNumber" column="lot_number" />
|
|
|
<result property="unit" column="unit" />
|
|
|
- <result property="attribute" column="attribute" />
|
|
|
- <result property="issueMethod" column="issueMethod" />
|
|
|
<result property="stockQuantity" column="stockQuantity" />
|
|
|
+ <result property="availableAmount" column="available_amount" />
|
|
|
+ <result property="stockStatus" column="stock_status" />
|
|
|
+ <result property="ownerType" column="owner_type" />
|
|
|
+ <result property="ownerNumber" column="owner_number" />
|
|
|
+ <result property="ownerName" column="owner_name" />
|
|
|
+ <result property="custodianType" column="custodian_type" />
|
|
|
+ <result property="custodianCode" column="custodian_code" />
|
|
|
+ <result property="custodianName" column="custodian_name" />
|
|
|
<result property="remark" column="remark" />
|
|
|
<result property="createById" column="create_by_id" />
|
|
|
<result property="createBy" column="create_by" />
|
|
@@ -22,21 +33,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="updateBy" column="update_by" />
|
|
|
<result property="updateTime" column="update_time" />
|
|
|
<result property="delFlag" column="del_flag" />
|
|
|
- <result property="dataApprovalStatus" column="data_approval_status" />
|
|
|
- <result property="processKey" column="process_key" />
|
|
|
- <result property="taskProcessKey" column="task_process_key" />
|
|
|
- <result property="taskNodeKey" column="task_node_key" />
|
|
|
- <result property="ckId" column="ck_id" />
|
|
|
- <result property="mapNumber" column="map_number" />
|
|
|
- <result property="description" column="description" />
|
|
|
- <result property="lotNumber" column="lot_number" />
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectMaterialInfoVo">
|
|
|
- select id, material_code, material_name, model, specification,
|
|
|
- unit, attribute, issueMethod, stockQuantity, remark, create_by_id,
|
|
|
- create_by, create_time, update_by_id, update_by, update_time, del_flag,
|
|
|
- data_approval_status, process_key, task_process_key, task_node_key, ck_id, map_number, description, lot_number from {DBNAME}.materialInfo
|
|
|
+ select id, material_code, material_name, specification, model, map_number, description, ck_number, ck_name, lot_number, unit, stockQuantity, available_amount, stock_status, owner_type, owner_number, owner_name, custodian_type, custodian_code, custodian_name, remark, create_by_id, create_by, create_time, update_by_id, update_by, update_time, del_flag from fjqydb.materialinfo
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectMaterialInfoList" parameterType="com.zkqy.amichi.domain.MaterialInfo" resultMap="MaterialInfoResult">
|
|
@@ -44,22 +44,25 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<where>
|
|
|
<if test="materialCode != null and materialCode != ''"> and material_code = #{materialCode}</if>
|
|
|
<if test="materialName != null and materialName != ''"> and material_name like concat('%', #{materialName}, '%')</if>
|
|
|
- <if test="model != null and model != ''"> and model = #{model}</if>
|
|
|
<if test="specification != null and specification != ''"> and specification = #{specification}</if>
|
|
|
+ <if test="model != null and model != ''"> and model = #{model}</if>
|
|
|
+ <if test="mapNumber != null and mapNumber != ''"> and map_number = #{mapNumber}</if>
|
|
|
+ <if test="description != null and description != ''"> and description = #{description}</if>
|
|
|
+ <if test="ckNumber != null and ckNumber != ''"> and ck_number = #{ckNumber}</if>
|
|
|
+ <if test="ckName != null and ckName != ''"> and ck_name like concat('%', #{ckName}, '%')</if>
|
|
|
+ <if test="lotNumber != null and lotNumber != ''"> and lot_number = #{lotNumber}</if>
|
|
|
<if test="unit != null and unit != ''"> and unit = #{unit}</if>
|
|
|
- <if test="attribute != null and attribute != ''"> and attribute = #{attribute}</if>
|
|
|
- <if test="issueMethod != null and issueMethod != ''"> and issueMethod = #{issueMethod}</if>
|
|
|
<if test="stockQuantity != null "> and stockQuantity = #{stockQuantity}</if>
|
|
|
+ <if test="availableAmount != null and availableAmount != ''"> and available_amount = #{availableAmount}</if>
|
|
|
+ <if test="stockStatus != null and stockStatus != ''"> and stock_status = #{stockStatus}</if>
|
|
|
+ <if test="ownerType != null and ownerType != ''"> and owner_type = #{ownerType}</if>
|
|
|
+ <if test="ownerNumber != null and ownerNumber != ''"> and owner_number = #{ownerNumber}</if>
|
|
|
+ <if test="ownerName != null and ownerName != ''"> and owner_name like concat('%', #{ownerName}, '%')</if>
|
|
|
+ <if test="custodianType != null and custodianType != ''"> and custodian_type = #{custodianType}</if>
|
|
|
+ <if test="custodianCode != null and custodianCode != ''"> and custodian_code = #{custodianCode}</if>
|
|
|
+ <if test="custodianName != null and custodianName != ''"> and custodian_name like concat('%', #{custodianName}, '%')</if>
|
|
|
<if test="createById != null "> and create_by_id = #{createById}</if>
|
|
|
<if test="updateById != null "> and update_by_id = #{updateById}</if>
|
|
|
- <if test="dataApprovalStatus != null and dataApprovalStatus != ''"> and data_approval_status = #{dataApprovalStatus}</if>
|
|
|
- <if test="processKey != null and processKey != ''"> and process_key = #{processKey}</if>
|
|
|
- <if test="taskProcessKey != null and taskProcessKey != ''"> and task_process_key = #{taskProcessKey}</if>
|
|
|
- <if test="taskNodeKey != null and taskNodeKey != ''"> and task_node_key = #{taskNodeKey}</if>
|
|
|
- <if test="ckId != null and ckId!='' ">and ck_id = #{ckId}</if>
|
|
|
- <if test="mapNumber != null and mapNumber != ''"> and map_number = #{mapNumber}</if>
|
|
|
- <if test="description != null and description != ''"> and description = #{description}</if>
|
|
|
- <if test="lotNumber != null and lotNumber != ''"> and lot_number = #{lotNumber}</if>
|
|
|
and del_flag =0
|
|
|
</where>
|
|
|
</select>
|
|
@@ -70,16 +73,27 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</select>
|
|
|
|
|
|
<insert id="insertMaterialInfo" parameterType="com.zkqy.amichi.domain.MaterialInfo" useGeneratedKeys="true" keyProperty="id">
|
|
|
- insert into {DBNAME}.materialInfo
|
|
|
+ insert into fjqydb.materialInfo
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
<if test="materialCode != null and materialCode != ''">material_code,</if>
|
|
|
<if test="materialName != null and materialName != ''">material_name,</if>
|
|
|
- <if test="model != null">model,</if>
|
|
|
<if test="specification != null">specification,</if>
|
|
|
- <if test="unit != null and unit != ''">unit,</if>
|
|
|
- <if test="attribute != null and attribute != ''">attribute,</if>
|
|
|
- <if test="issueMethod != null">issueMethod,</if>
|
|
|
+ <if test="model != null">model,</if>
|
|
|
+ <if test="mapNumber != null">map_number,</if>
|
|
|
+ <if test="description != null">description,</if>
|
|
|
+ <if test="ckNumber != null">ck_number,</if>
|
|
|
+ <if test="ckName != null">ck_name,</if>
|
|
|
+ <if test="lotNumber != null">lot_number,</if>
|
|
|
+ <if test="unit != null">unit,</if>
|
|
|
<if test="stockQuantity != null">stockQuantity,</if>
|
|
|
+ <if test="availableAmount != null">available_amount,</if>
|
|
|
+ <if test="stockStatus != null">stock_status,</if>
|
|
|
+ <if test="ownerType != null">owner_type,</if>
|
|
|
+ <if test="ownerNumber != null">owner_number,</if>
|
|
|
+ <if test="ownerName != null">owner_name,</if>
|
|
|
+ <if test="custodianType != null">custodian_type,</if>
|
|
|
+ <if test="custodianCode != null">custodian_code,</if>
|
|
|
+ <if test="custodianName != null">custodian_name,</if>
|
|
|
<if test="remark != null">remark,</if>
|
|
|
<if test="createById != null">create_by_id,</if>
|
|
|
<if test="createBy != null">create_by,</if>
|
|
@@ -88,24 +102,27 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="updateBy != null">update_by,</if>
|
|
|
<if test="updateTime != null">update_time,</if>
|
|
|
<if test="delFlag != null">del_flag,</if>
|
|
|
- <if test="dataApprovalStatus != null">data_approval_status,</if>
|
|
|
- <if test="processKey != null">process_key,</if>
|
|
|
- <if test="taskProcessKey != null">task_process_key,</if>
|
|
|
- <if test="taskNodeKey != null">task_node_key,</if>
|
|
|
- <if test="ckId != null">ck_id,</if>
|
|
|
- <if test="mapNumber != null">map_number,</if>
|
|
|
- <if test="description != null">description,</if>
|
|
|
- <if test="lotNumber != null">lot_number,</if>
|
|
|
- </trim>
|
|
|
+ </trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="materialCode != null and materialCode != ''">#{materialCode},</if>
|
|
|
<if test="materialName != null and materialName != ''">#{materialName},</if>
|
|
|
- <if test="model != null">#{model},</if>
|
|
|
<if test="specification != null">#{specification},</if>
|
|
|
- <if test="unit != null and unit != ''">#{unit},</if>
|
|
|
- <if test="attribute != null and attribute != ''">#{attribute},</if>
|
|
|
- <if test="issueMethod != null">#{issueMethod},</if>
|
|
|
+ <if test="model != null">#{model},</if>
|
|
|
+ <if test="mapNumber != null">#{mapNumber},</if>
|
|
|
+ <if test="description != null">#{description},</if>
|
|
|
+ <if test="ckNumber != null">#{ckNumber},</if>
|
|
|
+ <if test="ckName != null">#{ckName},</if>
|
|
|
+ <if test="lotNumber != null">#{lotNumber},</if>
|
|
|
+ <if test="unit != null">#{unit},</if>
|
|
|
<if test="stockQuantity != null">#{stockQuantity},</if>
|
|
|
+ <if test="availableAmount != null">#{availableAmount},</if>
|
|
|
+ <if test="stockStatus != null">#{stockStatus},</if>
|
|
|
+ <if test="ownerType != null">#{ownerType},</if>
|
|
|
+ <if test="ownerNumber != null">#{ownerNumber},</if>
|
|
|
+ <if test="ownerName != null">#{ownerName},</if>
|
|
|
+ <if test="custodianType != null">#{custodianType},</if>
|
|
|
+ <if test="custodianCode != null">#{custodianCode},</if>
|
|
|
+ <if test="custodianName != null">#{custodianName},</if>
|
|
|
<if test="remark != null">#{remark},</if>
|
|
|
<if test="createById != null">#{createById},</if>
|
|
|
<if test="createBy != null">#{createBy},</if>
|
|
@@ -114,29 +131,32 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="updateBy != null">#{updateBy},</if>
|
|
|
<if test="updateTime != null">#{updateTime},</if>
|
|
|
<if test="delFlag != null">#{delFlag},</if>
|
|
|
- <if test="dataApprovalStatus != null">#{dataApprovalStatus},</if>
|
|
|
- <if test="processKey != null">#{processKey},</if>
|
|
|
- <if test="taskProcessKey != null">#{taskProcessKey},</if>
|
|
|
- <if test="taskNodeKey != null">#{taskNodeKey},</if>
|
|
|
- <if test="ckId != null">#{ckId},</if>
|
|
|
- <if test="mapNumber != null">#{mapNumber},</if>
|
|
|
- <if test="description != null">#{description},</if>
|
|
|
- <if test="lotNumber != null">#{lotNumber},</if>
|
|
|
- </trim>
|
|
|
+ </trim>
|
|
|
</insert>
|
|
|
<insert id="batchInsert" parameterType="java.util.List">
|
|
|
<!-- 使用foreach遍历list中的每一个元素 -->
|
|
|
<foreach item="item" collection="list" separator =";">
|
|
|
insert into {DBNAME}.materialInfo
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
- <if test="item.materialCode != null and item.materialCode != ''">material_code,</if>
|
|
|
- <if test="item.materialName != null and item.materialName != ''">material_name,</if>
|
|
|
- <if test="item.model != null">model,</if>
|
|
|
+ <if test="item.materialCode != null">material_code,</if>
|
|
|
+ <if test="item.materialName != null">material_name,</if>
|
|
|
<if test="item.specification != null">specification,</if>
|
|
|
- <if test="item.unit != null and item.unit != ''">unit,</if>
|
|
|
- <if test="item.attribute != null and item.attribute != ''">`attribute`,</if>
|
|
|
- <if test="item.issueMethod != null">issueMethod,</if>
|
|
|
+ <if test="item.model != null">model,</if>
|
|
|
+ <if test="item.mapNumber != null">map_number,</if>
|
|
|
+ <if test="item.description != null">description,</if>
|
|
|
+ <if test="item.ckNumber != null">ck_number,</if>
|
|
|
+ <if test="item.ckName != null">ck_name,</if>
|
|
|
+ <if test="item.lotNumber != null">lot_number,</if>
|
|
|
+ <if test="item.unit != null">unit,</if>
|
|
|
<if test="item.stockQuantity != null">stockQuantity,</if>
|
|
|
+ <if test="item.availableAmount != null">available_amount,</if>
|
|
|
+ <if test="item.stockStatus != null">stock_status,</if>
|
|
|
+ <if test="item.ownerType != null">owner_type,</if>
|
|
|
+ <if test="item.ownerNumber != null">owner_number,</if>
|
|
|
+ <if test="item.ownerName != null">owner_name,</if>
|
|
|
+ <if test="item.custodianType != null">custodian_type,</if>
|
|
|
+ <if test="item.custodianCode != null">custodian_code,</if>
|
|
|
+ <if test="item.custodianName != null">custodian_name,</if>
|
|
|
<if test="item.remark != null">remark,</if>
|
|
|
<if test="item.createById != null">create_by_id,</if>
|
|
|
<if test="item.createBy != null">create_by,</if>
|
|
@@ -145,24 +165,92 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="item.updateBy != null">update_by,</if>
|
|
|
<if test="item.updateTime != null">update_time,</if>
|
|
|
<if test="item.delFlag != null">del_flag,</if>
|
|
|
- <if test="item.dataApprovalStatus != null">data_approval_status,</if>
|
|
|
- <if test="item.processKey != null">process_key,</if>
|
|
|
- <if test="item.taskProcessKey != null">task_process_key,</if>
|
|
|
- <if test="item.taskNodeKey != null">task_node_key,</if>
|
|
|
- <if test="item.ckId != null">ck_id,</if>
|
|
|
+ </trim>
|
|
|
+ <trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="item.materialCode != null and materialCode != ''">#{item.materialCode},</if>
|
|
|
+ <if test="item.materialName != null and materialName != ''">#{item.materialName},</if>
|
|
|
+ <if test="item.specification != null">#{item.specification},</if>
|
|
|
+ <if test="item.model != null">#{item.model},</if>
|
|
|
+ <if test="item.mapNumber != null">#{item.mapNumber},</if>
|
|
|
+ <if test="item.description != null">#{item.description},</if>
|
|
|
+ <if test="item.ckNumber != null">#{item.ckNumber},</if>
|
|
|
+ <if test="item.ckName != null">#{item.ckName},</if>
|
|
|
+ <if test="item.lotNumber != null">#{item.lotNumber},</if>
|
|
|
+ <if test="item.unit != null">#{item.unit},</if>
|
|
|
+ <if test="item.stockQuantity != null">#{item.stockQuantity},</if>
|
|
|
+ <if test="item.availableAmount != null">#{item.availableAmount},</if>
|
|
|
+ <if test="item.stockStatus != null">#{item.stockStatus},</if>
|
|
|
+ <if test="item.ownerType != null">#{item.ownerType},</if>
|
|
|
+ <if test="item.ownerNumber != null">#{item.ownerNumber},</if>
|
|
|
+ <if test="item.ownerName != null">#{item.ownerName},</if>
|
|
|
+ <if test="item.custodianType != null">#{item.custodianType},</if>
|
|
|
+ <if test="item.custodianCode != null">#{item.custodianCode},</if>
|
|
|
+ <if test="item.custodianName != null">#{item.custodianName},</if>
|
|
|
+ <if test="item.remark != null">#{item.remark},</if>
|
|
|
+ <if test="item.createById != null">#{item.createById},</if>
|
|
|
+ <if test="item.createBy != null">#{item.createBy},</if>
|
|
|
+ <if test="item.createTime != null">#{item.createTime},</if>
|
|
|
+ <if test="item.updateById != null">#{item.updateById},</if>
|
|
|
+ <if test="item.updateBy != null">#{item.updateBy},</if>
|
|
|
+ <if test="item.updateTime != null">#{item.updateTime},</if>
|
|
|
+ <if test="item.delFlag != null">#{item.delFlag},</if>
|
|
|
+ </trim>
|
|
|
+ </foreach>
|
|
|
+ </insert>
|
|
|
+
|
|
|
+ <insert id="batchInsertJdMaterialInfoVo" parameterType="java.util.List" useGeneratedKeys="true" keyProperty="id" >
|
|
|
+ <!-- 使用foreach遍历list中的每一个元素 -->
|
|
|
+ <foreach collection="list" item="item" separator =";">
|
|
|
+ insert into fjqydb.materialInfo
|
|
|
+ <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="item.materialCode != null and item.materialCode != ''">material_code,</if>
|
|
|
+ <if test="item.materialName != null and item.materialName != ''">material_name,</if>
|
|
|
+ <if test="item.specification != null">specification,</if>
|
|
|
+ <if test="item.model != null">model,</if>
|
|
|
<if test="item.mapNumber != null">map_number,</if>
|
|
|
<if test="item.description != null">description,</if>
|
|
|
+ <if test="item.ckNumber != null">ck_number,</if>
|
|
|
+ <if test="item.ckName != null">ck_name,</if>
|
|
|
<if test="item.lotNumber != null">lot_number,</if>
|
|
|
+ <if test="item.unit != null">unit,</if>
|
|
|
+ <if test="item.stockQuantity != null">stockQuantity,</if>
|
|
|
+ <if test="item.availableAmount != null">available_amount,</if>
|
|
|
+ <if test="item.stockStatus != null">stock_status,</if>
|
|
|
+ <if test="item.ownerType != null">owner_type,</if>
|
|
|
+ <if test="item.ownerNumber != null">owner_number,</if>
|
|
|
+ <if test="item.ownerName != null">owner_name,</if>
|
|
|
+ <if test="item.custodianType != null">custodian_type,</if>
|
|
|
+ <if test="item.custodianCode != null">custodian_code,</if>
|
|
|
+ <if test="item.custodianName != null">custodian_name,</if>
|
|
|
+ <if test="item.remark != null">remark,</if>
|
|
|
+ <if test="item.createById != null">create_by_id,</if>
|
|
|
+ <if test="item.createBy != null">create_by,</if>
|
|
|
+ <if test="item.createTime != null">create_time,</if>
|
|
|
+ <if test="item.updateById != null">update_by_id,</if>
|
|
|
+ <if test="item.updateBy != null">update_by,</if>
|
|
|
+ <if test="item.updateTime != null">update_time,</if>
|
|
|
+ <if test="item.delFlag != null">del_flag,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="item.materialCode != null and item.materialCode != ''">#{item.materialCode},</if>
|
|
|
<if test="item.materialName != null and item.materialName != ''">#{item.materialName},</if>
|
|
|
- <if test="item.model != null">#{item.model},</if>
|
|
|
<if test="item.specification != null">#{item.specification},</if>
|
|
|
- <if test="item.unit != null and item.unit != ''">#{item.unit},</if>
|
|
|
- <if test="item.attribute != null and item.attribute != ''">#{item.attribute},</if>
|
|
|
- <if test="item.issueMethod != null">#{item.issueMethod},</if>
|
|
|
+ <if test="item.model != null">#{item.model},</if>
|
|
|
+ <if test="item.mapNumber != null">#{item.mapNumber},</if>
|
|
|
+ <if test="item.description != null">#{item.description},</if>
|
|
|
+ <if test="item.ckNumber != null">#{item.ckNumber},</if>
|
|
|
+ <if test="item.ckName != null">#{item.ckName},</if>
|
|
|
+ <if test="item.lotNumber != null">#{item.lotNumber},</if>
|
|
|
+ <if test="item.unit != null">#{item.unit},</if>
|
|
|
<if test="item.stockQuantity != null">#{item.stockQuantity},</if>
|
|
|
+ <if test="item.availableAmount != null">#{item.availableAmount},</if>
|
|
|
+ <if test="item.stockStatus != null">#{item.stockStatus},</if>
|
|
|
+ <if test="item.ownerType != null">#{item.ownerType},</if>
|
|
|
+ <if test="item.ownerNumber != null">#{item.ownerNumber},</if>
|
|
|
+ <if test="item.ownerName != null">#{item.ownerName},</if>
|
|
|
+ <if test="item.custodianType != null">#{item.custodianType},</if>
|
|
|
+ <if test="item.custodianCode != null">#{item.custodianCode},</if>
|
|
|
+ <if test="item.custodianName != null">#{item.custodianName},</if>
|
|
|
<if test="item.remark != null">#{item.remark},</if>
|
|
|
<if test="item.createById != null">#{item.createById},</if>
|
|
|
<if test="item.createBy != null">#{item.createBy},</if>
|
|
@@ -171,14 +259,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="item.updateBy != null">#{item.updateBy},</if>
|
|
|
<if test="item.updateTime != null">#{item.updateTime},</if>
|
|
|
<if test="item.delFlag != null">#{item.delFlag},</if>
|
|
|
- <if test="item.dataApprovalStatus != null">#{item.dataApprovalStatus},</if>
|
|
|
- <if test="item.processKey != null">#{item.processKey},</if>
|
|
|
- <if test="item.taskProcessKey != null">#{item.taskProcessKey},</if>
|
|
|
- <if test="item.taskNodeKey != null">#{item.taskNodeKey},</if>
|
|
|
- <if test="item.ckId != null">#{item.ckId},</if>
|
|
|
- <if test="item.mapNumber != null">#{item.mapNumber},</if>
|
|
|
- <if test="item.description != null">#{item.description},</if>
|
|
|
- <if test="item.lotNumber != null">#{item.lotNumber},</if>
|
|
|
</trim>
|
|
|
</foreach>
|
|
|
</insert>
|
|
@@ -188,12 +268,23 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
|
<if test="materialCode != null and materialCode != ''">material_code = #{materialCode},</if>
|
|
|
<if test="materialName != null and materialName != ''">material_name = #{materialName},</if>
|
|
|
- <if test="model != null">model = #{model},</if>
|
|
|
<if test="specification != null">specification = #{specification},</if>
|
|
|
- <if test="unit != null and unit != ''">unit = #{unit},</if>
|
|
|
- <if test="attribute != null and attribute != ''">attribute = #{attribute},</if>
|
|
|
- <if test="issueMethod != null">issueMethod = #{issueMethod},</if>
|
|
|
+ <if test="model != null">model = #{model},</if>
|
|
|
+ <if test="mapNumber != null">map_number = #{mapNumber},</if>
|
|
|
+ <if test="description != null">description = #{description},</if>
|
|
|
+ <if test="ckNumber != null">ck_number = #{ckNumber},</if>
|
|
|
+ <if test="ckName != null">ck_name = #{ckName},</if>
|
|
|
+ <if test="lotNumber != null">lot_number = #{lotNumber},</if>
|
|
|
+ <if test="unit != null">unit = #{unit},</if>
|
|
|
<if test="stockQuantity != null">stockQuantity = #{stockQuantity},</if>
|
|
|
+ <if test="availableAmount != null">available_amount = #{availableAmount},</if>
|
|
|
+ <if test="stockStatus != null">stock_status = #{stockStatus},</if>
|
|
|
+ <if test="ownerType != null">owner_type = #{ownerType},</if>
|
|
|
+ <if test="ownerNumber != null">owner_number = #{ownerNumber},</if>
|
|
|
+ <if test="ownerName != null">owner_name = #{ownerName},</if>
|
|
|
+ <if test="custodianType != null">custodian_type = #{custodianType},</if>
|
|
|
+ <if test="custodianCode != null">custodian_code = #{custodianCode},</if>
|
|
|
+ <if test="custodianName != null">custodian_name = #{custodianName},</if>
|
|
|
<if test="remark != null">remark = #{remark},</if>
|
|
|
<if test="createById != null">create_by_id = #{createById},</if>
|
|
|
<if test="createBy != null">create_by = #{createBy},</if>
|
|
@@ -202,14 +293,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="updateBy != null">update_by = #{updateBy},</if>
|
|
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|
|
|
<if test="delFlag != null">del_flag = #{delFlag},</if>
|
|
|
- <if test="dataApprovalStatus != null">data_approval_status = #{dataApprovalStatus},</if>
|
|
|
- <if test="processKey != null">process_key = #{processKey},</if>
|
|
|
- <if test="taskProcessKey != null">task_process_key = #{taskProcessKey},</if>
|
|
|
- <if test="taskNodeKey != null">task_node_key = #{taskNodeKey},</if>
|
|
|
- <if test="ckId != null">ck_id = #{ckId},</if>
|
|
|
- <if test="mapNumber != null">map_number = #{mapNumber},</if>
|
|
|
- <if test="description != null">description = #{description},</if>
|
|
|
- <if test="lotNumber != null">lot_number = #{lotNumber},</if>
|
|
|
</trim>
|
|
|
where id = #{id}
|
|
|
</update>
|
|
@@ -218,12 +301,23 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
|
<if test="materialCode != null and materialCode != ''">material_code = #{materialCode},</if>
|
|
|
<if test="materialName != null and materialName != ''">material_name = #{materialName},</if>
|
|
|
- <if test="model != null">model = #{model},</if>
|
|
|
<if test="specification != null">specification = #{specification},</if>
|
|
|
- <if test="unit != null and unit != ''">unit = #{unit},</if>
|
|
|
- <if test="attribute != null and attribute != ''">`attribute` = #{attribute},</if>
|
|
|
- <if test="issueMethod != null">issueMethod = #{issueMethod},</if>
|
|
|
+ <if test="model != null">model = #{model},</if>
|
|
|
+ <if test="mapNumber != null">map_number = #{mapNumber},</if>
|
|
|
+ <if test="description != null">description = #{description},</if>
|
|
|
+ <if test="ckNumber != null">ck_number = #{ckNumber},</if>
|
|
|
+ <if test="ckName != null">ck_name = #{ckName},</if>
|
|
|
+ <if test="lotNumber != null">lot_number = #{lotNumber},</if>
|
|
|
+ <if test="unit != null">unit = #{unit},</if>
|
|
|
<if test="stockQuantity != null">stockQuantity = #{stockQuantity},</if>
|
|
|
+ <if test="availableAmount != null">available_amount = #{availableAmount},</if>
|
|
|
+ <if test="stockStatus != null">stock_status = #{stockStatus},</if>
|
|
|
+ <if test="ownerType != null">owner_type = #{ownerType},</if>
|
|
|
+ <if test="ownerNumber != null">owner_number = #{ownerNumber},</if>
|
|
|
+ <if test="ownerName != null">owner_name = #{ownerName},</if>
|
|
|
+ <if test="custodianType != null">custodian_type = #{custodianType},</if>
|
|
|
+ <if test="custodianCode != null">custodian_code = #{custodianCode},</if>
|
|
|
+ <if test="custodianName != null">custodian_name = #{custodianName},</if>
|
|
|
<if test="remark != null">remark = #{remark},</if>
|
|
|
<if test="createById != null">create_by_id = #{createById},</if>
|
|
|
<if test="createBy != null">create_by = #{createBy},</if>
|
|
@@ -232,11 +326,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="updateBy != null">update_by = #{updateBy},</if>
|
|
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|
|
|
<if test="delFlag != null">del_flag = #{delFlag},</if>
|
|
|
- <if test="dataApprovalStatus != null">data_approval_status = #{dataApprovalStatus},</if>
|
|
|
- <if test="processKey != null">process_key = #{processKey},</if>
|
|
|
- <if test="taskProcessKey != null">task_process_key = #{taskProcessKey},</if>
|
|
|
- <if test="taskNodeKey != null">task_node_key = #{taskNodeKey},</if>
|
|
|
- <if test="ckId != null and ckId != ''">ck_id=#{ckId}</if>
|
|
|
</trim>
|
|
|
where material_code = #{materialCode}
|
|
|
</update>
|