feat(is): 添加检验委托单、检验任务和样品库存相关功能- 新增检验委托单、检验任务和样品库存的实体类、BO、VO
- 实现检验委托单、检验任务和样品库存的增删查改功能 - 添加检验任务与委托单的关联查询
This commit is contained in:
@@ -0,0 +1,75 @@
|
||||
<?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.klp.mes.is.mapper.IsSampleInventoryMapper">
|
||||
|
||||
<resultMap type="com.klp.mes.is.domain.IsSampleInventory" id="IsSampleInventoryResult">
|
||||
<result property="sampleId" column="sample_id"/>
|
||||
<result property="commissionId" column="commission_id"/>
|
||||
<result property="location" column="location"/>
|
||||
<result property="currentQuantity" column="current_quantity"/>
|
||||
<result property="storageTime" column="storage_time"/>
|
||||
<result property="expirationDate" column="expiration_date"/>
|
||||
<result property="status" column="status"/>
|
||||
<result property="operatorId" column="operator_id"/>
|
||||
<result property="lastUpdate" column="last_update"/>
|
||||
<result property="delFlag" column="del_flag"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="createBy" column="create_by"/>
|
||||
<result property="updateTime" column="update_time"/>
|
||||
<result property="updateBy" column="update_by"/>
|
||||
<result property="remark" column="remark"/>
|
||||
</resultMap>
|
||||
<select id="selectVoPagePlus" resultType="com.klp.mes.is.domain.vo.IsSampleInventoryVo">
|
||||
SELECT
|
||||
s.sample_id,
|
||||
s.commission_id,
|
||||
c.commission_no,
|
||||
s.location,
|
||||
s.current_quantity,
|
||||
s.storage_time,
|
||||
s.expiration_date,
|
||||
s.status,
|
||||
s.operator_id,
|
||||
s.last_update,
|
||||
s.del_flag,
|
||||
s.create_time,
|
||||
s.create_by,
|
||||
s.update_time,
|
||||
s.update_by,
|
||||
s.remark
|
||||
FROM is_sample_inventory s
|
||||
LEFT JOIN is_inspection_commission c ON s.commission_id = c.commission_id AND c.del_flag = 0
|
||||
<where>
|
||||
s.del_flag = 0
|
||||
<if test="commissionId != null">
|
||||
AND s.commission_id = #{commissionId}
|
||||
</if>
|
||||
<if test="location != null and location != ''">
|
||||
AND s.location = #{location}
|
||||
</if>
|
||||
<if test="currentQuantity != null">
|
||||
AND s.current_quantity = #{currentQuantity}
|
||||
</if>
|
||||
<if test="storageTime != null">
|
||||
AND s.storage_time = #{storageTime}
|
||||
</if>
|
||||
<if test="expirationDate != null">
|
||||
AND s.expiration_date = #{expirationDate}
|
||||
</if>
|
||||
<if test="status != null and status != ''">
|
||||
AND s.status = #{status}
|
||||
</if>
|
||||
<if test="operatorId != null">
|
||||
AND s.operator_id = #{operatorId}
|
||||
</if>
|
||||
<if test="lastUpdate != null">
|
||||
AND s.last_update = #{lastUpdate}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
|
||||
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user