小车充电调度初始化
This commit is contained in:
@@ -0,0 +1,93 @@
|
||||
<?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.ruoyi.job.charg.mapper.SrgvChargingJobMapper">
|
||||
|
||||
<resultMap type="SrgvChargingJob" id="SrgvChargingJobResult">
|
||||
<result property="guid" column="guid" />
|
||||
<result property="chargingSite" column="charging_site" />
|
||||
<result property="jobStatus" column="job_status" />
|
||||
<result property="chargingStatus" column="charging_status" />
|
||||
<result property="startDate" column="start_date" />
|
||||
<result property="chargingDate" column="charging_date" />
|
||||
<result property="jobType" column="job_type" />
|
||||
<result property="agvId" column="agv_id" />
|
||||
<result property="chargingId" column="charging_id" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectSrgvChargingJobVo">
|
||||
select guid, charging_site, job_status, charging_status, start_date, charging_date, job_type, agv_id, charging_id from srgv_charging_job
|
||||
</sql>
|
||||
|
||||
<select id="selectSrgvChargingJobList" parameterType="SrgvChargingJob" resultMap="SrgvChargingJobResult">
|
||||
<include refid="selectSrgvChargingJobVo"/>
|
||||
<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>
|
||||
<if test="startDate != null and startDate != ''"> and start_date = #{startDate}</if>
|
||||
<if test="chargingDate != null and chargingDate != ''"> and charging_date = #{chargingDate}</if>
|
||||
<if test="jobType != null and jobType != ''"> and job_type = #{jobType}</if>
|
||||
<if test="agvId != null and agvId != ''"> and agv_id = #{agvId}</if>
|
||||
<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}
|
||||
</select>
|
||||
|
||||
<insert id="insertSrgvChargingJob" parameterType="SrgvChargingJob">
|
||||
insert into srgv_charging_job
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="guid != null">guid,</if>
|
||||
<if test="chargingSite != null">charging_site,</if>
|
||||
<if test="jobStatus != null">job_status,</if>
|
||||
<if test="chargingStatus != null">charging_status,</if>
|
||||
<if test="startDate != null">start_date,</if>
|
||||
<if test="chargingDate != null">charging_date,</if>
|
||||
<if test="jobType != null">job_type,</if>
|
||||
<if test="agvId != null">agv_id,</if>
|
||||
<if test="chargingId != null">charging_id,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="guid != null">#{guid},</if>
|
||||
<if test="chargingSite != null">#{chargingSite},</if>
|
||||
<if test="jobStatus != null">#{jobStatus},</if>
|
||||
<if test="chargingStatus != null">#{chargingStatus},</if>
|
||||
<if test="startDate != null">#{startDate},</if>
|
||||
<if test="chargingDate != null">#{chargingDate},</if>
|
||||
<if test="jobType != null">#{jobType},</if>
|
||||
<if test="agvId != null">#{agvId},</if>
|
||||
<if test="chargingId != null">#{chargingId},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateSrgvChargingJob" parameterType="SrgvChargingJob">
|
||||
update srgv_charging_job
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="chargingSite != null">charging_site = #{chargingSite},</if>
|
||||
<if test="jobStatus != null">job_status = #{jobStatus},</if>
|
||||
<if test="chargingStatus != null">charging_status = #{chargingStatus},</if>
|
||||
<if test="startDate != null">start_date = #{startDate},</if>
|
||||
<if test="chargingDate != null">charging_date = #{chargingDate},</if>
|
||||
<if test="jobType != null">job_type = #{jobType},</if>
|
||||
<if test="agvId != null">agv_id = #{agvId},</if>
|
||||
<if test="chargingId != null">charging_id = #{chargingId},</if>
|
||||
</trim>
|
||||
where guid = #{guid}
|
||||
</update>
|
||||
|
||||
<delete id="deleteSrgvChargingJobByGuid" parameterType="String">
|
||||
delete from srgv_charging_job where guid = #{guid}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteSrgvChargingJobByGuids" parameterType="String">
|
||||
delete from srgv_charging_job where guid in
|
||||
<foreach item="guid" collection="array" open="(" separator="," close=")">
|
||||
#{guid}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user