2025-06-20 17:47:53 +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" >
|
2025-12-03 20:11:16 +08:00
|
|
|
<mapper namespace="com.bonus.bm.dao.ProjectManageDao">
|
|
|
|
|
<resultMap id="ZNode" type="com.bonus.sys.beans.ZNode"></resultMap>
|
2025-06-20 17:47:53 +08:00
|
|
|
|
2025-12-03 20:11:16 +08:00
|
|
|
<select id="findByPage" resultType="com.bonus.bm.beans.ProjectManageBean"
|
|
|
|
|
parameterType="com.bonus.bm.beans.ProjectManageBean">
|
2025-06-20 17:47:53 +08:00
|
|
|
select bmp.ID as id,bmp.`NAME` as name,bmp.COMPANY_ID as companyId,bmp.TIME as projectTime,
|
2025-12-03 20:11:16 +08:00
|
|
|
bmc.`NAME` as companyName,bmp.TYPE_ID as typeId,bpt.`NAME` as typeName,
|
|
|
|
|
bmp.VOL_ID as volId,bvl.`NAME` as volName,
|
|
|
|
|
bmp.NUM as num,bmp.MANAGER as manager,bmp.NATURE as nature,
|
|
|
|
|
bmp.TELPHONE as telphone,bmp.PHONE as phone,bmp.FAX as fax,
|
|
|
|
|
bmp.ADDRESS as address,bmp.REMARKS as remarks,
|
|
|
|
|
bmp.MATERIAL_CLERK as materialClerk,bmp.CLERK_PHONE as clerkPhone,
|
|
|
|
|
bmp.IS_BALANCE_END as isBalanceEnd,
|
|
|
|
|
bmp.KILOMETER as kilometer
|
|
|
|
|
from bm_project bmp
|
|
|
|
|
LEFT JOIN bm_vol_level bvl on bvl.ID = bmp.VOL_ID
|
|
|
|
|
LEFT JOIN bm_project_type bpt on bmp.TYPE_ID = bpt.ID
|
|
|
|
|
LEFT JOIN bm_company bmc on bmc.ID = bmp.COMPANY_ID
|
|
|
|
|
where 1=1 and bmp.IS_ACTIVE=1 and bmp.IS_BALANCE_END=#{param.isBal}
|
|
|
|
|
|
|
|
|
|
<if test="param.companyId !=0 and param.companyId !='0'">
|
|
|
|
|
and bmp.COMPANY_ID =#{param.companyId}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="param.typeId !=0 and param.typeId !='0'">
|
|
|
|
|
and bmp.TYPE_ID =#{param.typeId}
|
|
|
|
|
</if>
|
2025-06-20 17:47:53 +08:00
|
|
|
<if test="param.keyWord !=null and param.keyWord !=''">
|
2025-12-03 20:11:16 +08:00
|
|
|
and (
|
|
|
|
|
bmp.NAME LIKE CONCAT('%',#{param.keyWord},'%') OR
|
|
|
|
|
bmp.NUM LIKE CONCAT('%',#{param.keyWord},'%') OR
|
|
|
|
|
bmp.MANAGER LIKE CONCAT('%',#{param.keyWord},'%') OR
|
|
|
|
|
bmp.NATURE LIKE CONCAT('%',#{param.keyWord},'%') OR
|
|
|
|
|
bmp.TELPHONE LIKE CONCAT('%',#{param.keyWord},'%') OR
|
|
|
|
|
bmp.MATERIAL_CLERK LIKE CONCAT('%',#{param.keyWord},'%')
|
|
|
|
|
)
|
|
|
|
|
</if>
|
|
|
|
|
<if test="param.startTime !='' and param.endTime =='' ">
|
|
|
|
|
<![CDATA[
|
2025-06-20 17:47:53 +08:00
|
|
|
and bmp.TIME > #{param.startTime}
|
|
|
|
|
]]>
|
2025-12-03 20:11:16 +08:00
|
|
|
</if>
|
|
|
|
|
<if test="param.startTime =='' and param.endTime !='' ">
|
|
|
|
|
<![CDATA[
|
2025-06-20 17:47:53 +08:00
|
|
|
and bmp.TIME <#{param.endTime}
|
|
|
|
|
]]>
|
2025-12-03 20:11:16 +08:00
|
|
|
</if>
|
|
|
|
|
<if test="param.startTime !='' and param.endTime !='' ">
|
|
|
|
|
<![CDATA[
|
2025-06-20 17:47:53 +08:00
|
|
|
and ( bmp.TIME > #{param.startTime}
|
|
|
|
|
and bmp.TIME < #{param.endTime}
|
|
|
|
|
)
|
|
|
|
|
]]>
|
2025-12-03 20:11:16 +08:00
|
|
|
</if>
|
|
|
|
|
ORDER BY bmp.TIME desc
|
2025-06-20 17:47:53 +08:00
|
|
|
</select>
|
2025-12-03 20:11:16 +08:00
|
|
|
<select id="getVolLever" resultType="com.bonus.bm.beans.ProjectManageBean"
|
|
|
|
|
parameterType="com.bonus.bm.beans.ProjectManageBean">
|
|
|
|
|
SELECT bpt.ID, bpt.`NAME`
|
|
|
|
|
from bm_vol_level bpt
|
2025-06-20 17:47:53 +08:00
|
|
|
</select>
|
2025-12-03 20:11:16 +08:00
|
|
|
|
|
|
|
|
<select id="getProjectType" resultType="com.bonus.bm.beans.ProjectManageBean"
|
|
|
|
|
parameterType="com.bonus.bm.beans.ProjectManageBean">
|
|
|
|
|
SELECT bpt.ID, bpt.`NAME`
|
|
|
|
|
from bm_project_type bpt
|
2025-06-20 17:47:53 +08:00
|
|
|
</select>
|
2025-12-03 20:11:16 +08:00
|
|
|
|
2025-06-20 17:47:53 +08:00
|
|
|
<select id="findWorkTree" resultMap="ZNode">
|
2025-12-03 20:11:16 +08:00
|
|
|
SELECT bmp.ID, bmp.`NAME`, bmp.TYPE_ID as pId
|
|
|
|
|
FROM bm_project bmp
|
|
|
|
|
LEFT JOIN bm_vol_level bvl ON bmp.TYPE_ID = bvl.ID
|
|
|
|
|
WHERE bmp.IS_ACTIVE = '1'
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<select id="projectTree" resultMap="ZNode" parameterType="com.bonus.bm.beans.ProjectManageBean">
|
|
|
|
|
SELECT bmp.ID,bmp.`NAME`,concat('gs',bmp.COMPANY_ID) as pId
|
|
|
|
|
FROM bm_project bmp
|
|
|
|
|
left join bm_company bmc on bmc.ID = bmp.COMPANY_ID
|
|
|
|
|
WHERE 1 = 1
|
|
|
|
|
<if test="name != null and name != ''">
|
|
|
|
|
and bmp.`NAME` LIKE CONCAT('%',#{name},'%')
|
|
|
|
|
</if>
|
|
|
|
|
<if test="keyWord != null and keyWord != ''">
|
|
|
|
|
and bmp.`NAME` LIKE CONCAT('%',#{keyWord},'%')
|
|
|
|
|
</if>
|
|
|
|
|
union
|
|
|
|
|
SELECT DISTINCT concat('gs',bmc.ID) as id,bmc.`NAME`,'0' as pId
|
|
|
|
|
from bm_company bmc
|
|
|
|
|
LEFT JOIN bm_project bmp on bmp.COMPANY_ID = bmc.ID
|
|
|
|
|
WHERE bmp.ID is not NULL
|
2025-06-20 17:47:53 +08:00
|
|
|
</select>
|
2025-12-03 20:11:16 +08:00
|
|
|
|
2025-06-20 17:47:53 +08:00
|
|
|
<select id="projectTreeByUnitId" resultMap="ZNode" parameterType="com.bonus.bm.beans.ProjectManageBean">
|
2025-12-03 20:11:16 +08:00
|
|
|
SELECT a.*
|
|
|
|
|
FROM (
|
|
|
|
|
SELECT DISTINCT bmp.ID,bmp.`NAME`,concat('gs',bmp.COMPANY_ID) as pId
|
|
|
|
|
FROM bm_project bmp
|
|
|
|
|
left join bm_company bmc on bmc.ID = bmp.COMPANY_ID
|
|
|
|
|
WHERE 1 = 1
|
|
|
|
|
<if test="keyWord != null and keyWord != ''">
|
|
|
|
|
and bmp.`NAME` LIKE CONCAT('%',#{keyWord},'%')
|
|
|
|
|
</if>
|
|
|
|
|
union
|
|
|
|
|
SELECT DISTINCT concat('gs',bmc.ID) as id,bmc.`NAME`,'0' as pId
|
|
|
|
|
from bm_company bmc
|
|
|
|
|
LEFT JOIN bm_project bmp on bmp.COMPANY_ID = bmc.ID
|
|
|
|
|
WHERE bmp.ID is not NULL
|
|
|
|
|
)a LEFT JOIN wf_lease_agreement bama on bama.PROJECT = a.ID
|
|
|
|
|
WHERE bama.ID is not NULL
|
|
|
|
|
<if test="unitId != null and unitId != '' ">
|
|
|
|
|
and bama.LEASE_COMPANY = #{unitId}
|
|
|
|
|
</if>
|
|
|
|
|
<if test='isBalanceEnd == "0"'>
|
|
|
|
|
and bama.IS_BALANCE = 1
|
|
|
|
|
</if>
|
|
|
|
|
<if test='isBalanceEnd == "1"'>
|
|
|
|
|
and bama.IS_BALANCE = 0
|
|
|
|
|
</if>
|
2025-06-20 17:47:53 +08:00
|
|
|
</select>
|
2025-12-03 20:11:16 +08:00
|
|
|
|
2025-06-20 17:47:53 +08:00
|
|
|
<insert id="insert" parameterType="com.bonus.bm.beans.ProjectManageBean" useGeneratedKeys="true" keyProperty="id">
|
|
|
|
|
INSERT into bm_project
|
|
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
|
|
<if test="name !=null">
|
|
|
|
|
NAME,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="num !=null">
|
|
|
|
|
NUM,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="companyId1 !=null">
|
|
|
|
|
COMPANY_ID,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="typeId1 !=null">
|
|
|
|
|
TYPE_ID,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="provinceid !=null">
|
|
|
|
|
provinceid,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="cityid !=null">
|
|
|
|
|
cityid,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="areaid !=null">
|
|
|
|
|
areaid,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="detailed !=null">
|
|
|
|
|
detailed,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="manager !=null">
|
|
|
|
|
MANAGER,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="nature !=null">
|
|
|
|
|
NATURE,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="telphone !=null">
|
|
|
|
|
TELPHONE,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="phone !=null">
|
|
|
|
|
PHONE,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="fax !=null">
|
|
|
|
|
FAX,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="address !=null">
|
|
|
|
|
ADDRESS,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="volId1 !=null">
|
|
|
|
|
VOL_ID,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="remarks !=null">
|
|
|
|
|
REMARKS,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="materialClerk !=null">
|
|
|
|
|
MATERIAL_CLERK,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="kilometer != null">
|
2025-12-03 20:11:16 +08:00
|
|
|
KILOMETER,
|
2025-06-20 17:47:53 +08:00
|
|
|
</if>
|
|
|
|
|
<if test="clerkPhone !=null">
|
|
|
|
|
CLERK_PHONE,
|
|
|
|
|
</if>
|
|
|
|
|
IS_BALANCE_END,
|
|
|
|
|
TIME,
|
|
|
|
|
</trim>
|
|
|
|
|
<trim prefix="VALUES(" suffix=")" suffixOverrides=",">
|
|
|
|
|
<if test="name !=null">
|
|
|
|
|
#{name},
|
|
|
|
|
</if>
|
2025-12-03 20:11:16 +08:00
|
|
|
<if test="num !=null">
|
|
|
|
|
#{num},
|
|
|
|
|
</if>
|
2025-06-20 17:47:53 +08:00
|
|
|
<if test="companyId1 !=null">
|
|
|
|
|
#{companyId1},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="typeId1 !=null">
|
|
|
|
|
#{typeId1},
|
|
|
|
|
</if>
|
2025-12-03 20:11:16 +08:00
|
|
|
|
2025-06-20 17:47:53 +08:00
|
|
|
<if test="provinceid !=null">
|
|
|
|
|
#{provinceid},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="cityid !=null">
|
|
|
|
|
#{cityid},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="areaid !=null">
|
|
|
|
|
#{areaid},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="detailed !=null">
|
|
|
|
|
#{detailed},
|
|
|
|
|
</if>
|
2025-12-03 20:11:16 +08:00
|
|
|
|
2025-06-20 17:47:53 +08:00
|
|
|
<if test="manager !=null">
|
|
|
|
|
#{manager},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="nature !=null">
|
|
|
|
|
#{nature},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="telphone !=null">
|
|
|
|
|
#{telphone},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="phone !=null">
|
|
|
|
|
#{phone},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="fax !=null">
|
|
|
|
|
#{fax},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="address !=null">
|
|
|
|
|
#{address},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="volId1 !=null">
|
|
|
|
|
#{volId1},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="remarks !=null">
|
|
|
|
|
#{remarks},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="materialClerk !=null">
|
|
|
|
|
#{materialClerk},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="kilometer != null">
|
2025-12-03 20:11:16 +08:00
|
|
|
#{kilometer},
|
2025-06-20 17:47:53 +08:00
|
|
|
</if>
|
|
|
|
|
<if test="clerkPhone !=null">
|
|
|
|
|
#{clerkPhone},
|
|
|
|
|
</if>
|
|
|
|
|
'0',
|
|
|
|
|
NOW(),
|
|
|
|
|
</trim>
|
|
|
|
|
</insert>
|
2025-12-03 20:11:16 +08:00
|
|
|
<select id="find" resultType="com.bonus.bm.beans.ProjectManageBean"
|
|
|
|
|
parameterType="com.bonus.bm.beans.ProjectManageBean">
|
|
|
|
|
select bmp.ID as id,bmp.`NAME` as name,bmp.COMPANY_ID as companyId,
|
|
|
|
|
bmc.`NAME` as companyName,bmp.TYPE_ID as typeId,bpt.`NAME` as typeName,
|
|
|
|
|
bmp.VOL_ID as volId,bvl.`NAME` as volName,
|
|
|
|
|
bmp.NUM as num,bmp.MANAGER as manager,bmp.NATURE as nature,
|
|
|
|
|
bmp.TELPHONE as telphone,bmp.PHONE as phone,bmp.FAX as fax,
|
|
|
|
|
bmp.ADDRESS as address,bmp.REMARKS as remarks,
|
|
|
|
|
bmp.MATERIAL_CLERK as materialClerk,bmp.CLERK_PHONE as clerkPhone,
|
|
|
|
|
bmp.IS_BALANCE_END as isBalanceEnd,
|
|
|
|
|
bmp.KILOMETER as kilometer, bmp.provinceid, bmp.cityid , bmp.areaid, bmp.detailed
|
|
|
|
|
from bm_project bmp
|
|
|
|
|
LEFT JOIN bm_vol_level bvl on bvl.ID = bmp.VOL_ID
|
|
|
|
|
LEFT JOIN bm_project_type bpt on bmp.TYPE_ID = bpt.ID
|
|
|
|
|
LEFT JOIN bm_company bmc on bmc.ID = bmp.COMPANY_ID
|
|
|
|
|
where bmp.ID=#{id}
|
|
|
|
|
<!-- <if test="name !=null">
|
|
|
|
|
bmp.ID=#{id}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="name !=null and name !='' ">
|
|
|
|
|
and bmp.NAME=#{name}
|
|
|
|
|
</if> -->
|
2025-06-20 17:47:53 +08:00
|
|
|
</select>
|
2025-12-03 20:11:16 +08:00
|
|
|
|
2025-06-20 17:47:53 +08:00
|
|
|
<update id="update" parameterType="com.bonus.bm.beans.ProjectManageBean">
|
|
|
|
|
update bm_project
|
|
|
|
|
<set>
|
|
|
|
|
<if test="name !=null">
|
|
|
|
|
NAME=#{name},
|
|
|
|
|
</if>
|
2025-12-03 20:11:16 +08:00
|
|
|
<if test="num !=null">
|
|
|
|
|
NUM=#{num},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="companyId1 !=null">
|
2025-06-20 17:47:53 +08:00
|
|
|
COMPANY_ID =#{companyId1},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="typeId1 !=null">
|
|
|
|
|
TYPE_ID =#{typeId1},
|
|
|
|
|
</if>
|
2025-12-03 20:11:16 +08:00
|
|
|
|
2025-06-20 17:47:53 +08:00
|
|
|
<if test="provinceid !=null">
|
|
|
|
|
provinceid = #{provinceid},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="cityid !=null">
|
|
|
|
|
cityid = #{cityid},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="areaid !=null">
|
|
|
|
|
areaid = #{areaid},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="detailed !=null">
|
|
|
|
|
detailed = #{detailed},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="manager !=null">
|
|
|
|
|
MANAGER=#{manager},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="nature !=null">
|
|
|
|
|
NATURE=#{nature},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="telphone !=null">
|
|
|
|
|
TELPHONE=#{telphone},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="phone !=null">
|
|
|
|
|
PHONE=#{phone},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="fax !=null">
|
|
|
|
|
FAX=#{fax},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="address !=null">
|
|
|
|
|
ADDRESS=#{address},
|
|
|
|
|
</if>
|
2025-12-03 20:11:16 +08:00
|
|
|
<if test="volId1 !=null">
|
2025-06-20 17:47:53 +08:00
|
|
|
VOL_ID = #{volId1},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="remarks !=null">
|
|
|
|
|
REMARKS=#{remarks},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="materialClerk !=null">
|
|
|
|
|
MATERIAL_CLERK=#{materialClerk},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="kilometer != null">
|
2025-12-03 20:11:16 +08:00
|
|
|
KILOMETER=#{kilometer},
|
2025-06-20 17:47:53 +08:00
|
|
|
</if>
|
|
|
|
|
<if test="clerkPhone !=null">
|
|
|
|
|
CLERK_PHONE=#{clerkPhone},
|
|
|
|
|
</if>
|
|
|
|
|
</set>
|
|
|
|
|
where id=#{id}
|
|
|
|
|
</update>
|
2025-12-03 20:11:16 +08:00
|
|
|
|
2025-06-20 17:47:53 +08:00
|
|
|
<update id="delete">
|
2025-12-03 20:11:16 +08:00
|
|
|
update bm_project
|
|
|
|
|
set IS_ACTIVE =0
|
|
|
|
|
where ID = #{id}
|
2025-06-20 17:47:53 +08:00
|
|
|
</update>
|
2025-12-03 20:11:16 +08:00
|
|
|
<select id="findByCode" resultType="com.bonus.bm.beans.ProjectManageBean">
|
|
|
|
|
SELECT ID, `NAME`
|
|
|
|
|
FROM bm_project
|
|
|
|
|
WHERE `NUM` = #{projectCode}
|
2025-06-20 17:47:53 +08:00
|
|
|
</select>
|
2025-12-03 20:11:16 +08:00
|
|
|
<update id="updateProject">
|
|
|
|
|
UPDATE bm_project
|
|
|
|
|
set NUM = #{num}
|
|
|
|
|
where ID = #{id}
|
|
|
|
|
</update>
|
|
|
|
|
<update id="updateProjectName">
|
|
|
|
|
UPDATE bm_project
|
|
|
|
|
set NAME = #{projectName}
|
|
|
|
|
where NUM = #{projectCode}
|
|
|
|
|
</update>
|
|
|
|
|
|
|
|
|
|
<select id="getProjectName" resultType="com.bonus.bm.beans.ProjectManageBean"
|
|
|
|
|
parameterType="com.bonus.bm.beans.ProjectManageBean">
|
|
|
|
|
SELECT ID,`NAME`
|
|
|
|
|
FROM bm_project
|
|
|
|
|
WHERE COMPANY_ID = #{companyId}
|
|
|
|
|
<if test="typeId != null and typeId != ''">
|
|
|
|
|
AND TYPE_ID = #{typeId}
|
|
|
|
|
</if>
|
2025-06-20 17:47:53 +08:00
|
|
|
</select>
|
2025-12-03 20:11:16 +08:00
|
|
|
|
|
|
|
|
<select id="findByName" resultType="com.bonus.bm.beans.ProjectManageBean">
|
|
|
|
|
SELECT ID, `NAME`
|
|
|
|
|
FROM bm_project
|
|
|
|
|
WHERE `NAME` = #{name}
|
2025-06-20 17:47:53 +08:00
|
|
|
</select>
|
2025-12-03 20:11:16 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
<select id="getProvinces" resultType="com.bonus.bm.beans.ProjectManageBean"
|
|
|
|
|
parameterType="com.bonus.bm.beans.ProjectManageBean">
|
|
|
|
|
SELECT provinceid as id, province as name
|
|
|
|
|
FROM provinces
|
|
|
|
|
ORDER BY id
|
2025-06-20 17:47:53 +08:00
|
|
|
</select>
|
2025-12-03 20:11:16 +08:00
|
|
|
|
|
|
|
|
<select id="getCities" resultType="com.bonus.bm.beans.ProjectManageBean"
|
|
|
|
|
parameterType="com.bonus.bm.beans.ProjectManageBean">
|
|
|
|
|
SELECT cityid as id, city as name
|
|
|
|
|
FROM cities
|
|
|
|
|
WHERE provinceid = #{param.provinceid}
|
|
|
|
|
ORDER BY id
|
2025-06-20 17:47:53 +08:00
|
|
|
</select>
|
2025-12-03 20:11:16 +08:00
|
|
|
|
|
|
|
|
<select id="getDistricts" resultType="com.bonus.bm.beans.ProjectManageBean"
|
|
|
|
|
parameterType="com.bonus.bm.beans.ProjectManageBean">
|
|
|
|
|
SELECT areaid as id, area as name
|
|
|
|
|
FROM areas
|
|
|
|
|
WHERE cityid = #{param.cityid}
|
|
|
|
|
ORDER BY id
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
2025-06-20 17:47:53 +08:00
|
|
|
</mapper>
|