2025-01-24 22:26:28 +08:00
|
|
|
|
<?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.TBaseAreaMapper">
|
|
|
|
|
|
|
|
|
|
|
|
<sql id="whr">
|
|
|
|
|
|
<if test="query.areaCodeOrName!=null and query.areaCodeOrName!=''">
|
|
|
|
|
|
and (area_code =#{query.areaCodeOrName} or area_name = #{query.areaCodeOrName} )
|
|
|
|
|
|
</if>
|
|
|
|
|
|
<if test="query.areaState!=null and query.areaState!=''">
|
|
|
|
|
|
and area_state=#{query.areaState}
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
|
|
|
|
</sql>
|
|
|
|
|
|
<select id="getList" resultType="com.nflg.mobilebroken.common.pojo.vo.TBaseAreaVO">
|
2025-01-26 16:54:47 +08:00
|
|
|
|
select * from t_base_area where parent_area_row_id=0 <include refid="whr" />
|
2025-01-24 22:26:28 +08:00
|
|
|
|
|
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
<update id="delByIds">
|
|
|
|
|
|
update t_base_area set area_state=0 , data_modify_time=now(), data_modify_user_no=#{userNo},
|
|
|
|
|
|
data_modify_user_name=#{userName} where id in
|
|
|
|
|
|
<foreach collection="ids" item="=item" open="(" close=")" separator=",">
|
|
|
|
|
|
#{item}
|
|
|
|
|
|
</foreach>
|
|
|
|
|
|
</update>
|
|
|
|
|
|
|
|
|
|
|
|
<select id="getCount" resultType="java.lang.Integer">
|
|
|
|
|
|
select count(1) from t_base_area
|
|
|
|
|
|
</select>
|
|
|
|
|
|
</mapper>
|