集成bms服务模块
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
<?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.mhd.bms.domain.reportForm.repository.mapper.FormQueryParamsMapper">
|
||||
|
||||
|
||||
<select id="queryList" parameterType="com.mhd.bms.domain.reportForm.repository.todo.FormQueryParamsDO"
|
||||
resultType="com.mhd.bms.domain.reportForm.repository.po.FormQueryParamsPO">
|
||||
SELECT
|
||||
*
|
||||
FROM
|
||||
form_query_params a
|
||||
WHERE
|
||||
a.del_flag = 1
|
||||
<include refid="common_where"></include>
|
||||
</select>
|
||||
|
||||
<select id="queryListByManageId" resultType="com.mhd.bms.domain.reportForm.repository.po.FormQueryParamsPO" parameterType="java.lang.Long">
|
||||
SELECT
|
||||
*
|
||||
FROM
|
||||
form_query_params
|
||||
WHERE
|
||||
del_flag = 1
|
||||
AND form_query_manage_id = #{formQueryManageId}
|
||||
</select>
|
||||
|
||||
<sql id="common_where">
|
||||
<if test="formQueryParamsDO.topOrganizationId != null and formQueryParamsDO.topOrganizationId != ''">
|
||||
AND a.top_organization_id = #{formQueryParamsDO.topOrganizationId}
|
||||
</if>
|
||||
<if test="formQueryParamsDO.createBy != null and formQueryParamsDO.createBy != ''">
|
||||
AND a.create_by = #{formQueryParamsDO.createBy}
|
||||
</if>
|
||||
<if test="formQueryParamsDO.formType != null and formQueryParamsDO.formType != ''">
|
||||
AND a.form_type = #{formQueryParamsDO.formType}
|
||||
</if>
|
||||
</sql>
|
||||
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user