26 lines
1.0 KiB
XML
26 lines
1.0 KiB
XML
|
|
<?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.nflg.mobilebroken.repository.mapper.TBaseCustomerMapper">
|
||
|
|
<sql id="whr">
|
||
|
|
<if test="query.agencyCompanyName!=null and query.agencyCompanyName!=''">
|
||
|
|
and agency_company_name like concat('%', #{query.agencyCompanyName},'%')
|
||
|
|
</if>
|
||
|
|
<if test="query.enableState!=null">
|
||
|
|
and enable_state=#{query.enableState}
|
||
|
|
</if>
|
||
|
|
</sql>
|
||
|
|
|
||
|
|
<select id="getList" resultType="com.nflg.mobilebroken.repository.entity.TBaseCustomer">
|
||
|
|
select * from t_base_customer where del_is=0
|
||
|
|
<include refid="whr"/>
|
||
|
|
|
||
|
|
</select>
|
||
|
|
|
||
|
|
<update id="delByIds">
|
||
|
|
update t_base_customer set del_is=1 ,data_modify_user_no=#{userNo}, data_modify_user_name=#{userName}, data_modify_time=now() where id in
|
||
|
|
<foreach collection="ids" item="item" open="(" close=")" separator=",">
|
||
|
|
#{item}
|
||
|
|
</foreach>
|
||
|
|
</update>
|
||
|
|
</mapper>
|