插入充电历史
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.ruoyi.job.charg.mapper.SrgvChargingJobMapper">
|
||||
|
||||
|
||||
<resultMap type="SrgvChargingJob" id="SrgvChargingJobResult">
|
||||
<result property="guid" column="guid" />
|
||||
<result property="chargingSite" column="charging_site" />
|
||||
@@ -22,7 +22,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
|
||||
<select id="selectSrgvChargingJobList" parameterType="SrgvChargingJob" resultMap="SrgvChargingJobResult">
|
||||
<include refid="selectSrgvChargingJobVo"/>
|
||||
<where>
|
||||
<where>
|
||||
<if test="chargingSite != null and chargingSite != ''"> and charging_site = #{chargingSite}</if>
|
||||
<if test="jobStatus != null and jobStatus != ''"> and job_status = #{jobStatus}</if>
|
||||
<if test="chargingStatus != null and chargingStatus != ''"> and charging_status = #{chargingStatus}</if>
|
||||
@@ -33,7 +33,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="chargingId != null and chargingId != ''"> and charging_id = #{chargingId}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
|
||||
<select id="selectSrgvChargingJobByGuid" parameterType="String" resultMap="SrgvChargingJobResult">
|
||||
<include refid="selectSrgvChargingJobVo"/>
|
||||
where guid = #{guid}
|
||||
@@ -64,6 +64,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="chargingId != null">#{chargingId},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<insert id="insertHistory">
|
||||
insert into srgv_charging_job_finish
|
||||
select * from srgv_charging_job where guid = #{guid}
|
||||
</insert>
|
||||
|
||||
<update id="updateSrgvChargingJob" parameterType="SrgvChargingJob">
|
||||
update srgv_charging_job
|
||||
@@ -85,9 +89,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
</delete>
|
||||
|
||||
<delete id="deleteSrgvChargingJobByGuids" parameterType="String">
|
||||
delete from srgv_charging_job where guid in
|
||||
delete from srgv_charging_job where guid in
|
||||
<foreach item="guid" collection="array" open="(" separator="," close=")">
|
||||
#{guid}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
</mapper>
|
||||
|
||||
Reference in New Issue
Block a user