mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 19:15:35 +08:00
update 查询桩信息mapper方法
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.jsowell.pile.mapper.PileBasicInfoMapper">
|
||||
|
||||
|
||||
<resultMap type="com.jsowell.pile.domain.PileBasicInfo" id="PileBasicInfoResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="sn" column="sn" />
|
||||
@@ -40,7 +40,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
|
||||
<select id="selectPileBasicInfoList" parameterType="com.jsowell.pile.domain.PileBasicInfo" resultMap="PileBasicInfoResult">
|
||||
<include refid="selectPileBasicInfoVo"/>
|
||||
<where>
|
||||
<where>
|
||||
<if test="sn != null and sn != ''"> and sn = #{sn}</if>
|
||||
<if test="name != null and name != ''"> and name = #{name}</if>
|
||||
<if test="businessType != null and businessType != ''"> and business_type = #{businessType}</if>
|
||||
@@ -56,7 +56,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="faultReason != null and faultReason != ''"> and fault_reason = #{faultReason}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
|
||||
<select id="selectPileBasicInfoById" parameterType="Long" resultMap="PileBasicInfoResult">
|
||||
<include refid="selectPileBasicInfoVo"/>
|
||||
where id = #{id}
|
||||
@@ -65,9 +65,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<select id="selectPileBasicInfoBySn" resultMap="PileBasicInfoResult">
|
||||
select <include refid="Base_Column_List"/>
|
||||
from pile_basic_info
|
||||
where sn = #{pileSn,jdbcType=VARCHAR}
|
||||
where del_flag = '0'
|
||||
and sn = #{pileSn,jdbcType=VARCHAR}
|
||||
</select>
|
||||
|
||||
|
||||
<insert id="insertPileBasicInfo" parameterType="com.jsowell.pile.domain.PileBasicInfo" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into pile_basic_info
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
@@ -145,7 +146,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
</delete>
|
||||
|
||||
<delete id="deletePileBasicInfoByIds" parameterType="String">
|
||||
delete from pile_basic_info where id in
|
||||
delete from pile_basic_info where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
@@ -280,9 +281,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
t1.del_flag = '0'
|
||||
and t1.id = #{id}
|
||||
</select>
|
||||
|
||||
|
||||
<select id="selectPileListByStationIds" resultType="com.jsowell.pile.vo.web.PileDetailVO">
|
||||
select
|
||||
select
|
||||
t1.id as pileId,
|
||||
t1.sn as pileSn
|
||||
from
|
||||
@@ -379,7 +380,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
LEFT JOIN pile_model_info t2 on t1.model_id = t2.id
|
||||
LEFT JOIN pile_connector_info t3 on t1.sn = t3.pile_sn
|
||||
WHERE
|
||||
t1.station_id in
|
||||
t1.station_id in
|
||||
<foreach collection="stationIdList" item="item" open="(" separator="," close=")">
|
||||
#{item,jdbcType=VARCHAR}
|
||||
</foreach>
|
||||
@@ -474,4 +475,4 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
WHERE
|
||||
t1.station_id = #{stationId,jdbcType=VARCHAR}
|
||||
</select>
|
||||
</mapper>
|
||||
</mapper>
|
||||
|
||||
Reference in New Issue
Block a user