Merge remote-tracking branch 'origin/master'
| | |
| | | count(*) |
| | | from ba_block |
| | | <trim prefix="where " suffixOverrides="and"> |
| | | <if test="name != null"> |
| | | <if test="name != null and name != ''"> |
| | | name like concat('%', #{name}, '%') and |
| | | </if> |
| | | <if test="header != null"> |
| | | <if test="header != null and header != ''"> |
| | | header like concat('%', #{header}, '%') and |
| | | </if> |
| | | <if test="phone != null"> |
| | | <if test="phone != null and phone != ''"> |
| | | phone = '#{phone,jdbcType=VARCHAR}' and |
| | | </if> |
| | | <if test="area != null"> |
| | |
| | | <include refid="Base_Column_List" /> |
| | | from ba_block |
| | | <trim prefix="where " suffixOverrides="and"> |
| | | <if test="name != null"> |
| | | <if test="name != null and name != ''"> |
| | | name like concat('%', #{name}, '%') and |
| | | </if> |
| | | <if test="header != null"> |
| | | <if test="header != null and header != ''"> |
| | | header = '#{header,jdbcType=VARCHAR}' and |
| | | </if> |
| | | <if test="phone != null"> |
| | | <if test="phone != null and phone != ''"> |
| | | phone = '#{phone,jdbcType=VARCHAR}' and |
| | | </if> |
| | | <if test="area != null"> |
| | |
| | | <if test="blockId != null"> |
| | | bc.blockId = #{blockId,jdbcType=BIGINT} and |
| | | </if> |
| | | <if test="name != null"> |
| | | <if test="name != null and name != ''"> |
| | | bc.`name` like concat('%', #{name}, '%') and |
| | | </if> |
| | | <if test="num != null"> |
| | | <if test="num != null and num != ''"> |
| | | bc.num = #{num,jdbcType=VARCHAR} and |
| | | </if> |
| | | <if test="phone != null"> |
| | | <if test="phone != null and phone != ''"> |
| | | bc.phone = #{phone,jdbcType=VARCHAR} and |
| | | </if> |
| | | </trim> |
| | |
| | | count(*) |
| | | from ba_client_type |
| | | <trim prefix="where" suffixOverrides="and"> |
| | | <if test="name != null"> |
| | | <if test="name != null and name != ''"> |
| | | name like concat('%', #{name}, '%') and |
| | | </if> |
| | | </trim> |
| | |
| | | <include refid="Base_Column_List" /> |
| | | from ba_client_type |
| | | <trim prefix="where" suffixOverrides="and"> |
| | | <if test="name != null"> |
| | | <if test="name != null and name != ''"> |
| | | name like concat('%', #{name}, '%') |
| | | </if> |
| | | </trim> |
| | |
| | | left join ba_block bbk on bd.blockId = bbk.id |
| | | where bd.deleted != 1 |
| | | <trim prefix="and" suffixOverrides="and"> |
| | | <if test="name != null"> |
| | | <if test="name != null and name != ''"> |
| | | bd.name like concat('%', #{name}, '%') and |
| | | </if> |
| | | <if test="header != null"> |
| | | <if test="header != null and header != ''"> |
| | | bd.header = '#{header,jdbcType=VARCHAR}' and |
| | | </if> |
| | | <if test="phone != null"> |
| | | <if test="phone != null and phone != ''"> |
| | | bd.phone = '#{phone,jdbcType=VARCHAR}' and |
| | | </if> |
| | | <if test="blockName != null"> |
| | |
| | | left join ba_district bdtv on bd.villageId=bdtv.id |
| | | where bd.deleted != 1 |
| | | <trim prefix="and" suffixOverrides="and"> |
| | | <if test="name != null"> |
| | | <if test="name != null and name != ''"> |
| | | bd.name like concat('%', #{name}, '%') and |
| | | </if> |
| | | <if test="header != null"> |
| | | <if test="header != null and header != ''"> |
| | | bd.header = '#{header,jdbcType=VARCHAR}' and |
| | | </if> |
| | | <if test="phone != null"> |
| | | <if test="phone != null and phone != ''"> |
| | | bd.phone = '#{phone,jdbcType=VARCHAR}' and |
| | | </if> |
| | | <if test="blockName != null"> |
| | |
| | | count(*) |
| | | from ba_role where deleted!=1 |
| | | <trim prefix="and" suffixOverrides="and"> |
| | | <if test="name != null"> |
| | | <if test="name != null and name != ''"> |
| | | name like concat('%', #{name}, '%') |
| | | </if> |
| | | </trim> |
| | |
| | | <include refid="part_Column_List" /> |
| | | from ba_role where deleted!=1 |
| | | <trim prefix="and" suffixOverrides="and"> |
| | | <if test="name != null"> |
| | | <if test="name != null and name != ''"> |
| | | name like concat('%', #{name}, '%') |
| | | </if> |
| | | </trim> |
| | |
| | | from ba_user |
| | | where supperAdmin!=1 and deleted!=1 |
| | | <trim prefix="and" suffixOverrides="and"> |
| | | <if test="name != null"> |
| | | <if test="name != null and name != ''"> |
| | | name like concat('%', #{name}, '%') and |
| | | </if> |
| | | <if test="phone != null"> |
| | | <if test="phone != null and phone !=''"> |
| | | phone = #{phone,jdbcType=VARCHAR} |
| | | </if> |
| | | </trim> |
| | |
| | | left join ba_block bb on bu.blockId = bb.id |
| | | where bu.supperAdmin!=1 and bu.deleted!=1 |
| | | <trim prefix="and" suffixOverrides="and"> |
| | | <if test="name != null"> |
| | | <if test="name != null and name != ''"> |
| | | bu.name like concat('%', #{name}, '%') and |
| | | </if> |
| | | <if test="phone != null"> |
| | | <if test="phone != null and phone !=''"> |
| | | bu.phone = #{phone,jdbcType=VARCHAR} |
| | | </if> |
| | | </trim> |