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.
61 lines
3.4 KiB
XML
61 lines
3.4 KiB
XML
4 months ago
|
<?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.DmsBillsLubeDetailMapper">
|
||
|
|
||
|
|
||
|
<resultMap type="DmsBillsLubeDetailVo" id="DmsBillsLubeDetailResult">
|
||
|
<result property="billsLubeDetailId" column="bills_lube_detail_id" />
|
||
|
<result property="lubeInstanceId" column="lube_instance_id" />
|
||
|
<result property="machineId" column="machine_id" />
|
||
|
<result property="lubeStationId" column="lube_station_id" />
|
||
|
<result property="lubeStandardId" column="lube_standard_id" />
|
||
|
<result property="operationDescription" column="operation_description" />
|
||
|
<result property="maintStatus" column="maint_status" />
|
||
|
<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="beginTime" column="begin_time" />
|
||
|
<result property="endTime" column="end_time" />
|
||
|
|
||
|
<result property="machineCode" column="machine_code" />
|
||
|
<result property="machineName" column="machinee_name" />
|
||
|
<result property="deviceTypeName" column="device_type_name" />
|
||
|
<result property="lubeStationName" column="lube_station_name" />
|
||
|
<result property="lubeProtocol" column="lube_protocol" />
|
||
|
</resultMap>
|
||
|
|
||
|
|
||
|
<sql id="selectDmsBillsLubeDetailJoinVo">
|
||
|
select dbld.bills_lube_detail_id, dbld.lube_instance_id, dbld.machine_id, dbld.lube_station_id, dbld.lube_standard_id,
|
||
|
dbld.operation_description, dbld.maint_status, dbld.create_by, dbld.create_time,
|
||
|
dbdl.machine_code,dbdl.machine_name,
|
||
|
dbdt.device_type_name,
|
||
|
dbls.protocol_code,
|
||
|
dblsd.lube_protocol,dblsd.operation_description as lube_operation_description
|
||
|
from dms_bills_lube_detail dbld
|
||
|
left join prod_base_machine_info dbdl on dbld.machine_id = dbdl.machine_id
|
||
|
left join base_device_type dbdt on dbdl.device_type_id=dbdt.device_type_id
|
||
|
left join dms_base_lube_station dbls on dbld.lube_station_id=dbls.lube_station_id
|
||
|
left join dms_base_lube_standard dblsd on dbld.lube_standard_id=dblsd.lube_standard_id
|
||
|
|
||
|
</sql>
|
||
|
|
||
|
<select id="selectDmsBillsLubeDetailJoinList" parameterType="DmsBillsLubeDetail" resultMap="DmsBillsLubeDetailResult">
|
||
|
<include refid="selectDmsBillsLubeDetailJoinVo"/>
|
||
|
<where>
|
||
|
<if test="lubeInstanceId != null "> and dbld.lube_instance_id = #{lubeInstanceId}</if>
|
||
|
<if test="machineId != null "> and dbld.machine_id = #{machineId}</if>
|
||
|
<if test="lubeStationId != null "> and dbld.lube_station_id = #{lubeStationId}</if>
|
||
|
<if test="lubeStandardId != null "> and dbld.lube_standard_id = #{lubeStandardId}</if>
|
||
|
<if test="operationDescription != null and operationDescription != ''"> and dbld.operation_description = #{operationDescription}</if>
|
||
|
<if test="maintStatus != null "> and dbld.maint_status = #{maintStatus}</if>
|
||
|
</where>
|
||
|
</select>
|
||
|
|
||
|
</mapper>
|