|
|
@ -32,6 +32,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
<if test="parentId != null "> and parent_id = #{parentId}</if>
|
|
|
|
<if test="parentId != null "> and parent_id = #{parentId}</if>
|
|
|
|
<if test="ancestors != null and ancestors != ''"> and ancestors = #{ancestors}</if>
|
|
|
|
<if test="ancestors != null and ancestors != ''"> and ancestors = #{ancestors}</if>
|
|
|
|
<if test="factoryName != null and factoryName != ''"> and factory_name like concat('%', #{factoryName}, '%')</if>
|
|
|
|
<if test="factoryName != null and factoryName != ''"> and factory_name like concat('%', #{factoryName}, '%')</if>
|
|
|
|
|
|
|
|
<if test="factoryCode != null and factoryCode != ''"> and factory_code like concat('%', #{factoryCode}, '%')</if>
|
|
|
|
<if test="orderNum != null "> and order_num = #{orderNum}</if>
|
|
|
|
<if test="orderNum != null "> and order_num = #{orderNum}</if>
|
|
|
|
<if test="leader != null and leader != ''"> and leader = #{leader}</if>
|
|
|
|
<if test="leader != null and leader != ''"> and leader = #{leader}</if>
|
|
|
|
<if test="phone != null and phone != ''"> and phone = #{phone}</if>
|
|
|
|
<if test="phone != null and phone != ''"> and phone = #{phone}</if>
|
|
|
@ -118,4 +119,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
from sys_factory
|
|
|
|
from sys_factory
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<select id="checkFactoryCodeUnique" parameterType="SysFactory" resultType ="java.lang.String">
|
|
|
|
|
|
|
|
select factory_code
|
|
|
|
|
|
|
|
from sys_factory
|
|
|
|
|
|
|
|
where factory_code = #{factoryCode}
|
|
|
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<select id="checkFactoryNameUnique" parameterType="SysFactory" resultType ="java.lang.String">
|
|
|
|
|
|
|
|
select factory_name
|
|
|
|
|
|
|
|
from sys_factory
|
|
|
|
|
|
|
|
where factory_name = #{factoryName}
|
|
|
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
</mapper>
|
|
|
|
</mapper>
|