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.
112 lines
4.6 KiB
XML
112 lines
4.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="com.glxp.api.dao.dev.DeviceRepairApplyDetailMapper">
|
|
|
|
<resultMap id="BaseResultMap" type="com.glxp.api.entity.dev.DeviceRepairApplyDetailEntity">
|
|
<id property="applyId" column="applyId" jdbcType="BIGINT"/>
|
|
<id property="deviceCode" column="deviceCode" jdbcType="VARBINARY"/>
|
|
<result property="deptCode" column="deptCode" jdbcType="VARCHAR"/>
|
|
<result property="deptName" column="deptName" jdbcType="VARCHAR"/>
|
|
<result property="description" column="description" jdbcType="VARCHAR"/>
|
|
<result property="status" column="status" jdbcType="VARCHAR"/>
|
|
<result property="repairFlag" column="repairFlag" jdbcType="BIT"/>
|
|
<result property="repairId" column="repairId" jdbcType="BIGINT"/>
|
|
<result property="productId" column="productId" jdbcType="BIGINT"/>
|
|
<result property="udi" column="udi" jdbcType="VARCHAR"/>
|
|
<result property="nameCode" column="nameCode" jdbcType="VARCHAR"/>
|
|
<result property="productName" column="productName" jdbcType="VARCHAR"/>
|
|
<result property="ggxh" column="ggxh" jdbcType="VARCHAR"/>
|
|
<result property="batchNo" column="batchNo" jdbcType="VARCHAR"/>
|
|
<result property="serialNo" column="serialNo" jdbcType="VARCHAR"/>
|
|
<result property="productionDate" column="productionDate" jdbcType="VARCHAR"/>
|
|
<result property="expireDate" column="expireDate" jdbcType="VARCHAR"/>
|
|
<result property="manufactory" column="manufactory" jdbcType="VARCHAR"/>
|
|
<result property="measname" column="measname" jdbcType="VARCHAR"/>
|
|
<result property="zczbhhzbapzbh" column="zczbhhzbapzbh" jdbcType="VARCHAR"/>
|
|
<result property="supId" column="supId" jdbcType="VARCHAR"/>
|
|
<result property="supName" column="supName" jdbcType="VARCHAR"/>
|
|
<result property="confirmUserId" column="confirmUserId" jdbcType="BIGINT"/>
|
|
<result property="confirmUserName" column="confirmUserName" jdbcType="VARCHAR"/>
|
|
<result property="confirmTime" column="confirmTime" jdbcType="TIMESTAMP"/>
|
|
<result property="confirmRemark" column="confirmRemark" jdbcType="VARCHAR"/>
|
|
</resultMap>
|
|
|
|
<sql id="Base_Column_List">
|
|
applyId,deviceCode,deptCode,
|
|
deptName,description,status,
|
|
repairFlag,repairId,productId,
|
|
udi,nameCode,productName,
|
|
ggxh,batchNo,serialNo,
|
|
productionDate,expireDate,manufactory,
|
|
measname,zczbhhzbapzbh,supId,
|
|
supName,confirmUserId,confirmUserName,
|
|
confirmTime,confirmRemark
|
|
</sql>
|
|
|
|
|
|
<select id="miniPage" parameterType="com.glxp.api.req.dev.DeviceRepairApplyDetailMiniQuery"
|
|
resultType="com.glxp.api.res.dev.DeviceRepairApplyDetailMiniResponse">
|
|
select
|
|
drad.applyId,
|
|
drad.deviceCode,
|
|
drad.deptCode,
|
|
drad.deptName,
|
|
drad.description,
|
|
drad.status,
|
|
drad.repairFlag,
|
|
drad.repairId,
|
|
drad.productId,
|
|
drad.udi,
|
|
drad.nameCode,
|
|
drad.productName,
|
|
drad.ggxh,
|
|
drad.batchNo,
|
|
drad.serialNo,
|
|
drad.productionDate,
|
|
drad.expireDate,
|
|
drad.manufactory,
|
|
drad.measname,
|
|
drad.zczbhhzbapzbh,
|
|
drad.supId,
|
|
drad.supName,
|
|
drad.confirmUserId,
|
|
drad.confirmUserName,
|
|
drad.confirmTime,
|
|
drad.confirmRemark,
|
|
|
|
dra.id,
|
|
dra.applyDeptCode,
|
|
dra.applyDeptName,
|
|
dra.applyUserId,
|
|
dra.applyUserName,
|
|
dra.applyUserPhone,
|
|
dra.applyTime,
|
|
dra.deviceCount,
|
|
dra.finishCount,
|
|
dra.confirmUserId,
|
|
dra.confirmUserName,
|
|
dra.confirmTime,
|
|
dra.finishTime
|
|
from device_repair_apply_detail drad
|
|
Left Join device_repair_apply dra ON drad.applyId = dra.id
|
|
<where>
|
|
<if test="param.deviceCodeAndUdi!=null and param.deviceCodeAndUdi!=''">
|
|
and (
|
|
drad.deviceCode like concat('%',#{param.deviceCodeAndUdi},'%')
|
|
or
|
|
drad.udi like concat('%',#{param.deviceCodeAndUdi},'%')
|
|
)
|
|
</if>
|
|
<if test="param.deptCode != null and param.deptCode != ''">
|
|
AND drad.deptCode = #{param.deptCode}
|
|
</if>
|
|
<if test="param.status != null and param.status != ''">
|
|
AND drad.status = #{param.status}
|
|
</if>
|
|
|
|
</where>
|
|
</select>
|
|
</mapper>
|