You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

49 lines
2.6 KiB
XML

<?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="org.dromara.dms.mapper.DmsPlanInspectMapper">
<resultMap type="DmsPlanInspectVo" id="DmsPlanInspectResult">
<result property="planInspectId" column="plan_inspect_id" />
<result property="planInspectCode" column="plan_inspect_code" />
<result property="planInspectName" column="plan_inspect_name" />
<result property="inspectType" column="inspect_type" />
<result property="inspectRouteId" column="inspect_route_id" />
<result property="deviceAmount" column="device_amount" />
<result property="planTime" column="plan_time" />
<result property="timeLimit" column="time_limit" />
<result property="jobId" column="job_id" />
<result property="cyclePeriod" column="cycle_period" />
<result property="performer" column="performer" />
<!-- <result property="isFlag" column="is_flag" />-->
<result property="remark" column="remark" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
<result property="cronExpression" column="cron_expression" />
</resultMap>
<select id="selectPlanInspectJoinJobByInspectId" parameterType="Long" resultMap="DmsPlanInspectResult">
select a.plan_inspect_id, a.plan_inspect_code, a.plan_inspect_name, a.inspect_type,
a.inspect_route_id, a.device_amount, a.plan_time, a.cycle_period,a.time_limit,a.job_id,
a.performer, a.remark, a.create_by, a.create_time, a.update_by, a.update_time,
-- '' as cron_expression
from dms_plan_inspect a
where a.plan_inspect_id = #{planInspectId}
</select>
<select id="selectPlanInspectJoinJobByInspectCode" resultType="org.dromara.dms.domain.DmsPlanInspect"
parameterType="java.lang.String">
select a.plan_inspect_id, a.plan_inspect_code, a.plan_inspect_name, a.inspect_type,
a.inspect_route_id, a.device_amount, a.plan_time, a.cycle_period,a.time_limit,a.job_id,
a.performer, a.remark, a.create_by, a.create_time, a.update_by,
a.update_time
from dms_plan_inspect a
where a.plan_inspect_code = #{planInspectCode}
</select>
</mapper>