食品采购出入库
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
<id column="id" property="id" />
|
||||
<result column="merchant_id" property="merchantId" />
|
||||
<result column="merchant_name" property="merchantName" />
|
||||
<result column="repo_num" property="repoNum" />
|
||||
<result column="repo_name" property="repoName" />
|
||||
<result column="area_code" property="areaCode" />
|
||||
<result column="detail_address" property="detailAddress" />
|
||||
@@ -13,13 +14,16 @@
|
||||
<result column="create_time" property="createTime" />
|
||||
<result column="update_time" property="updateTime" />
|
||||
<result column="oper_id" property="operId" />
|
||||
<result column="manager" property="manager" />
|
||||
<result column="order_num" property="orderNum" />
|
||||
</resultMap>
|
||||
<!-- 通用查询结果列 -->
|
||||
<sql id="joinColumn">
|
||||
select r.id, r.merchant_id,r.repo_name, r.area_code, r.detail_address, r.default_repo, r.create_time, r.update_time, r.oper_id,d.dept_name as merchant_name
|
||||
select r.id, r.merchant_id,r.repo_num, r.repo_name, r.area_code, r.detail_address, r.default_repo, r.create_time, r.update_time, r.oper_id,
|
||||
r.manager, r.order_num, d.dept_name as merchant_name
|
||||
from repository r left join sys_dept d on r.merchant_id = d.dept_id
|
||||
</sql>
|
||||
<select id="joinQueryList" resultType="com.zf.foodpurchase.fdsafe.entity.Repository"
|
||||
<select id="queryRepoList" resultType="com.zf.foodpurchase.fdsafe.entity.Repository"
|
||||
parameterType="com.zf.foodpurchase.fdsafe.entity.Repository">
|
||||
<include refid="joinColumn"/>
|
||||
<where>
|
||||
@@ -32,6 +36,15 @@
|
||||
<if test="createTime != null ">and r.create_time = #{createTime}</if>
|
||||
<if test="updateTime != null ">and r.update_time = #{updateTime}</if>
|
||||
<if test="merchantName != null and merchantName !='' ">and d.dept_name like concat('%', #{merchantName}, '%') </if>
|
||||
<if test="repoNum != null and repoNum !='' ">and r.repo_num =#{repoNum} </if>
|
||||
<if test="manager != null ">and r.manager = #{manager}</if>
|
||||
<if test="orderNum != null ">and r.order_num = #{orderNum}</if>
|
||||
<if test="deptIds != null and deptIds.size() > 0">
|
||||
and d.dept_id in
|
||||
<foreach collection="deptIds" item="deptId" open="(" separator="," close=")">
|
||||
#{deptId}
|
||||
</foreach>
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user