2024-09-26 17:28:00 +08:00
|
|
|
<?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.bonus.material.back.mapper.BackApplyInfoMapper">
|
|
|
|
|
<resultMap type="com.bonus.material.back.domain.BackApplyInfo" id="BackApplyInfoResult">
|
|
|
|
|
<result property="id" column="id" />
|
|
|
|
|
<result property="code" column="code" />
|
|
|
|
|
<result property="taskId" column="task_id" />
|
|
|
|
|
<result property="backPerson" column="back_person" />
|
|
|
|
|
<result property="phone" column="phone" />
|
|
|
|
|
<result property="directAuditBy" column="direct_audit_by" />
|
|
|
|
|
<result property="directAuditTime" column="direct_audit_time" />
|
|
|
|
|
<result property="directAuditRemark" column="direct_audit_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="remark" column="remark" />
|
|
|
|
|
<result property="companyId" column="company_id" />
|
|
|
|
|
<result property="backTime" column="back_time" />
|
|
|
|
|
<result property="status" column="status" />
|
|
|
|
|
<result property="directId" column="direct_id" />
|
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
<sql id="selectBackApplyInfoVo">
|
|
|
|
|
select id, code, task_id, back_person, phone, direct_audit_by, direct_audit_time, direct_audit_remark, create_by, create_time, update_by, update_time, remark, company_id, back_time, status, direct_id from back_apply_info
|
|
|
|
|
</sql>
|
|
|
|
|
|
2024-11-13 18:01:55 +08:00
|
|
|
<select id="selectBackApplyInfoList" resultType="com.bonus.material.back.domain.BackApplyInfo">
|
|
|
|
|
SELECT
|
|
|
|
|
bai.id as id,
|
|
|
|
|
bai.`code` as code,
|
|
|
|
|
bai.back_person as backPerson,
|
|
|
|
|
bai.phone as phone,
|
|
|
|
|
bp.pro_id as proId,
|
|
|
|
|
bai.remark as remark,
|
|
|
|
|
bp.pro_name as proName,
|
|
|
|
|
bu.unit_id as unitId,
|
|
|
|
|
bu.unit_name as unitName,
|
|
|
|
|
bai.back_time as backTime,
|
|
|
|
|
tt.task_status as taskStatus,
|
|
|
|
|
bai.create_by as createBy,
|
|
|
|
|
bai.create_time as createTime,
|
|
|
|
|
GROUP_CONCAT(DISTINCT mt2.type_id) as typeId,
|
|
|
|
|
GROUP_CONCAT(mt2.type_name) AS typeName,
|
|
|
|
|
bai.`status` AS status,
|
|
|
|
|
bai.print_status as printStatus
|
|
|
|
|
FROM
|
|
|
|
|
back_apply_info bai
|
|
|
|
|
LEFT JOIN back_apply_details bad on bad.parent_id = bai.id
|
|
|
|
|
LEFT JOIN tm_task tt on tt.task_id = bai.task_id and tt.status = '1'
|
|
|
|
|
LEFT JOIN tm_task_agreement tta on tta.task_id = tt.task_id
|
|
|
|
|
LEFT JOIN bm_agreement_info bagi on bagi.agreement_id = tta.agreement_id
|
|
|
|
|
AND bagi.`status` = '1'
|
|
|
|
|
LEFT JOIN bm_project bp on bp.pro_id = bagi.project_id
|
|
|
|
|
AND bp.del_flag = '0'
|
|
|
|
|
LEFT JOIN bm_unit bu on bu.unit_id = bagi.unit_id
|
|
|
|
|
AND bu.del_flag = '0'
|
|
|
|
|
LEFT JOIN ma_type mt1 ON mt1.type_id = bad.type_id AND mt1.del_flag = '0'
|
|
|
|
|
LEFT JOIN ma_type mt2 ON mt2.type_id = mt1.parent_id AND mt2.del_flag = '0'
|
|
|
|
|
WHERE
|
|
|
|
|
1=1
|
|
|
|
|
<if test="keyWord != null and keyWord != ''">
|
|
|
|
|
and (
|
|
|
|
|
bu.unit_name like concat('%', #{keyWord}, '%') or
|
|
|
|
|
bp.pro_name like concat('%', #{keyWord}, '%') or
|
|
|
|
|
bai.`code` like concat('%', #{keyWord}, '%') or
|
|
|
|
|
bai.back_person like concat('%', #{keyWord}, '%') or
|
|
|
|
|
bai.phone like concat('%', #{keyWord}, '%')
|
|
|
|
|
)
|
|
|
|
|
</if>
|
|
|
|
|
<if test="startTime != null and startTime != '' and endTime != null and endTime != ''">
|
|
|
|
|
<![CDATA[and bai.create_time BETWEEN #{startTime} AND #{endTime} ]]>
|
|
|
|
|
</if>
|
|
|
|
|
<if test="status != null">
|
|
|
|
|
and bai.status = #{status}
|
|
|
|
|
</if>
|
|
|
|
|
GROUP BY bai.`code`
|
|
|
|
|
ORDER BY bai.create_time desc
|
2024-09-26 17:28:00 +08:00
|
|
|
</select>
|
2024-11-13 18:01:55 +08:00
|
|
|
|
|
|
|
|
<select id="selectTaskNumByMonth" resultType="java.lang.String">
|
|
|
|
|
SELECT SUBSTRING(`code`, - 2) as code
|
|
|
|
|
FROM tm_task
|
|
|
|
|
WHERE DATE_FORMAT(create_time, '%y%m') = DATE_FORMAT(#{date}, '%y%m')
|
|
|
|
|
AND task_type = #{taskType}
|
|
|
|
|
ORDER BY create_time DESC LIMIT 1
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<select id="getMachineById" resultType="com.bonus.material.back.domain.vo.MaCodeVo">
|
|
|
|
|
SELECT
|
|
|
|
|
mm.ma_id AS maId,
|
|
|
|
|
mm.ma_code AS maCode,
|
|
|
|
|
mm.ma_status AS maStatus,
|
|
|
|
|
mt1.type_name AS materialName,
|
|
|
|
|
mm.type_id AS typeId,
|
|
|
|
|
mt.type_name AS typeName
|
|
|
|
|
FROM
|
|
|
|
|
lease_out_details lod
|
|
|
|
|
LEFT JOIN ma_machine mm ON lod.ma_id = mm.ma_id
|
|
|
|
|
LEFT JOIN ma_type mt ON mm.type_id = mt.type_id
|
|
|
|
|
AND mt.del_flag = '0'
|
|
|
|
|
LEFT JOIN ma_type mt1 ON mt.parent_id = mt1.type_id
|
|
|
|
|
AND mt1.del_flag = '0'
|
|
|
|
|
LEFT JOIN lease_apply_info lai ON lod.parent_id = lai.id
|
|
|
|
|
LEFT JOIN tm_task_agreement tta ON lai.task_id = tta.task_id
|
|
|
|
|
LEFT JOIN bm_agreement_info ba ON tta.agreement_id = ba.agreement_id
|
|
|
|
|
WHERE
|
2024-11-13 18:53:14 +08:00
|
|
|
1 = 1 and mm.ma_status = '2'
|
2024-11-13 18:01:55 +08:00
|
|
|
<if test="unitId != null">
|
|
|
|
|
and ba.unit_id = #{unitId}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="proId != null">
|
|
|
|
|
and ba.project_id = #{proId}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="typeId != null">
|
|
|
|
|
and mm.type_id = #{typeId}
|
|
|
|
|
</if>
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<select id="selectBackApplyInfoById" resultType="com.bonus.material.back.domain.BackApplyInfo">
|
|
|
|
|
SELECT
|
|
|
|
|
bai.id AS id,
|
|
|
|
|
bai.CODE AS CODE,
|
|
|
|
|
bai.task_id AS taskId,
|
|
|
|
|
bai.back_person AS backPerson,
|
|
|
|
|
bai.phone AS phone,
|
|
|
|
|
bai.create_by AS createBy,
|
|
|
|
|
bai.create_time AS createTime,
|
|
|
|
|
bai.update_by AS updateBy,
|
|
|
|
|
bai.update_time AS updateTime,
|
|
|
|
|
bai.remark AS remark,
|
|
|
|
|
bai.STATUS AS STATUS,
|
|
|
|
|
bai.print_status AS printStatus,
|
|
|
|
|
ba.agreement_id AS agreementId,
|
|
|
|
|
bu.unit_id AS unitId,
|
|
|
|
|
bu.unit_name AS unitName,
|
|
|
|
|
bp.pro_id AS proId,
|
|
|
|
|
bp.pro_name AS proName
|
|
|
|
|
FROM
|
|
|
|
|
back_apply_info bai
|
|
|
|
|
LEFT JOIN tm_task_agreement tta ON bai.task_id = tta.task_id
|
|
|
|
|
LEFT JOIN bm_agreement_info ba ON ba.agreement_id = tta.agreement_id
|
|
|
|
|
AND ba.`status` = 1
|
|
|
|
|
LEFT JOIN bm_unit bu ON ba.unit_id = bu.unit_id
|
|
|
|
|
AND bu.del_flag = '0'
|
|
|
|
|
LEFT JOIN bm_project bp ON ba.project_id = bp.pro_id
|
|
|
|
|
AND bp.del_flag = '0'
|
|
|
|
|
WHERE
|
|
|
|
|
bai.id = #{id}
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<select id="selectBackApplyDetailsListByTaskId"
|
|
|
|
|
resultType="com.bonus.material.back.domain.BackApplyDetails">
|
|
|
|
|
SELECT
|
|
|
|
|
ba.id AS id,
|
|
|
|
|
ba.CODE AS CODE,
|
|
|
|
|
ba.parent_id AS parentId,
|
|
|
|
|
ba.type_id AS typeId,
|
|
|
|
|
mt.type_name AS typeModel,
|
|
|
|
|
mt1.type_name AS typeName,
|
|
|
|
|
mt.unit_name AS unitName,
|
|
|
|
|
mt.manage_type AS manageType,
|
|
|
|
|
ba.pre_num AS preNum,
|
|
|
|
|
ba.use_num AS num,
|
|
|
|
|
ba.STATUS AS STATUS,
|
|
|
|
|
ba.create_by AS createBy,
|
|
|
|
|
ba.create_time AS createTime,
|
|
|
|
|
ba.update_by AS updateBy,
|
|
|
|
|
ba.update_time AS updateTime,
|
|
|
|
|
ba.ma_code AS maCode,
|
|
|
|
|
ba.remark AS remark,
|
|
|
|
|
ba.ap_detection AS apDetection
|
|
|
|
|
FROM
|
|
|
|
|
back_apply_details ba
|
|
|
|
|
LEFT JOIN ma_type mt ON mt.type_id = ba.type_id and mt.del_flag = 0
|
|
|
|
|
LEFT JOIN ma_type mt1 ON mt.parent_id = mt1.type_id and mt1.del_flag = 0
|
|
|
|
|
WHERE ba.parent_id = #{id}
|
2024-09-26 17:28:00 +08:00
|
|
|
</select>
|
2024-11-13 18:01:55 +08:00
|
|
|
|
|
|
|
|
<select id="selectByCode" resultType="com.bonus.material.back.domain.vo.MaCodeVo">
|
|
|
|
|
SELECT
|
|
|
|
|
bcd.ma_id AS maId,
|
|
|
|
|
mm.ma_code as maCode,
|
|
|
|
|
bcd.type_id AS typeId,
|
|
|
|
|
mt.type_name AS materialName,
|
|
|
|
|
mt1.type_name AS typeName,
|
2024-11-13 18:53:14 +08:00
|
|
|
bcd.ap_detection AS apDetection,
|
|
|
|
|
mm.ma_status AS maStatus
|
2024-11-13 18:01:55 +08:00
|
|
|
FROM
|
|
|
|
|
back_check_details bcd
|
|
|
|
|
left join ma_machine mm on bcd.ma_id = mm.ma_id
|
|
|
|
|
left join ma_type mt ON mt.type_id = mm.type_id and mt.del_flag = 0
|
|
|
|
|
left join ma_type mt1 ON mt.parent_id = mt1.type_id and mt.del_flag = 0
|
|
|
|
|
where bcd.parent_id = #{id}
|
|
|
|
|
</select>
|
|
|
|
|
|
2024-09-26 17:28:00 +08:00
|
|
|
<insert id="insertBackApplyInfo" parameterType="com.bonus.material.back.domain.BackApplyInfo" useGeneratedKeys="true" keyProperty="id">
|
|
|
|
|
insert into back_apply_info
|
|
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
|
|
<if test="code != null">code,</if>
|
|
|
|
|
<if test="taskId != null">task_id,</if>
|
|
|
|
|
<if test="backPerson != null">back_person,</if>
|
|
|
|
|
<if test="phone != null">phone,</if>
|
|
|
|
|
<if test="directAuditBy != null">direct_audit_by,</if>
|
|
|
|
|
<if test="directAuditTime != null">direct_audit_time,</if>
|
|
|
|
|
<if test="directAuditRemark != null">direct_audit_remark,</if>
|
|
|
|
|
<if test="createBy != null">create_by,</if>
|
|
|
|
|
<if test="createTime != null">create_time,</if>
|
|
|
|
|
<if test="updateBy != null">update_by,</if>
|
|
|
|
|
<if test="updateTime != null">update_time,</if>
|
|
|
|
|
<if test="remark != null">remark,</if>
|
|
|
|
|
<if test="companyId != null">company_id,</if>
|
|
|
|
|
<if test="backTime != null">back_time,</if>
|
|
|
|
|
<if test="status != null">status,</if>
|
|
|
|
|
<if test="directId != null">direct_id,</if>
|
|
|
|
|
</trim>
|
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
|
<if test="code != null">#{code},</if>
|
|
|
|
|
<if test="taskId != null">#{taskId},</if>
|
|
|
|
|
<if test="backPerson != null">#{backPerson},</if>
|
|
|
|
|
<if test="phone != null">#{phone},</if>
|
|
|
|
|
<if test="directAuditBy != null">#{directAuditBy},</if>
|
|
|
|
|
<if test="directAuditTime != null">#{directAuditTime},</if>
|
|
|
|
|
<if test="directAuditRemark != null">#{directAuditRemark},</if>
|
|
|
|
|
<if test="createBy != null">#{createBy},</if>
|
|
|
|
|
<if test="createTime != null">#{createTime},</if>
|
|
|
|
|
<if test="updateBy != null">#{updateBy},</if>
|
|
|
|
|
<if test="updateTime != null">#{updateTime},</if>
|
|
|
|
|
<if test="remark != null">#{remark},</if>
|
|
|
|
|
<if test="companyId != null">#{companyId},</if>
|
|
|
|
|
<if test="backTime != null">#{backTime},</if>
|
|
|
|
|
<if test="status != null">#{status},</if>
|
|
|
|
|
<if test="directId != null">#{directId},</if>
|
|
|
|
|
</trim>
|
|
|
|
|
</insert>
|
|
|
|
|
|
2024-11-13 18:01:55 +08:00
|
|
|
<insert id="insertTmTask" parameterType = "com.bonus.material.back.domain.BackApplyInfo" keyColumn="task_id" keyProperty="taskId" useGeneratedKeys="true">
|
|
|
|
|
insert into tm_task (
|
|
|
|
|
<if test="taskType != null">task_type, </if>
|
|
|
|
|
<if test="taskStatus != null">task_status, </if>
|
|
|
|
|
<if test="code != null and code != ''">code, </if>
|
|
|
|
|
<if test="createBy != null and createBy != ''">create_by, </if>
|
|
|
|
|
<if test="remark != null and remark != ''">remark, </if>
|
|
|
|
|
<if test="companyId != null">company_id, </if>
|
|
|
|
|
create_time
|
|
|
|
|
) values (
|
|
|
|
|
<if test="taskType != null">#{taskType}, </if>
|
|
|
|
|
<if test="taskStatus != null">#{taskStatus}, </if>
|
|
|
|
|
<if test="code != null and code != ''">#{code}, </if>
|
|
|
|
|
<if test="createBy != null and createBy != ''">#{createBy}, </if>
|
|
|
|
|
<if test="remark != null and remark != ''">#{remark}, </if>
|
|
|
|
|
<if test="companyId != null">#{companyId}, </if>
|
|
|
|
|
NOW()
|
|
|
|
|
)
|
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
|
<insert id="insertTaskAgreement">
|
|
|
|
|
insert into tm_task_agreement
|
|
|
|
|
(
|
|
|
|
|
<if test="taskId != null">
|
|
|
|
|
task_id,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="agreementId != null">
|
|
|
|
|
agreement_id,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="createBy != null and createBy != ''">
|
|
|
|
|
create_by,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="remark != null and remark != ''">
|
|
|
|
|
remark,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="companyId != null">
|
|
|
|
|
company_id,
|
|
|
|
|
</if>
|
|
|
|
|
create_time
|
|
|
|
|
) values (
|
|
|
|
|
<if test="taskId != null">
|
|
|
|
|
#{taskId},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="agreementId != null">
|
|
|
|
|
#{agreementId},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="createBy != null and createBy != ''">
|
|
|
|
|
#{createBy},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="remark != null and remark != ''">
|
|
|
|
|
#{remark},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="companyId != null">
|
|
|
|
|
#{companyId},
|
|
|
|
|
</if>
|
|
|
|
|
NOW()
|
|
|
|
|
)
|
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
|
<insert id="insertBackApplyDetails" useGeneratedKeys="true" keyProperty="id">
|
|
|
|
|
insert into back_apply_details
|
|
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
|
|
<if test="code != null">code,</if>
|
|
|
|
|
<if test="parentId != null">parent_id,</if>
|
|
|
|
|
<if test="typeId != null">type_id,</if>
|
|
|
|
|
<if test="preNum != null">pre_num,</if>
|
|
|
|
|
<if test="auditNum != null">audit_num,</if>
|
|
|
|
|
<if test="num != null">use_num,</if>
|
|
|
|
|
<if test="status != null">status,</if>
|
|
|
|
|
<if test="createBy != null">create_by,</if>
|
|
|
|
|
<if test="createTime != null">create_time,</if>
|
|
|
|
|
<if test="apDetection != null and apDetection != ''">ap_detection,</if>
|
|
|
|
|
<if test="remark != null">remark,</if>
|
|
|
|
|
<if test="companyId != null">company_id,</if>
|
|
|
|
|
</trim>
|
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
|
<if test="code != null">#{code},</if>
|
|
|
|
|
<if test="parentId != null">#{parentId},</if>
|
|
|
|
|
<if test="typeId != null">#{typeId},</if>
|
|
|
|
|
<if test="preNum != null">#{preNum},</if>
|
|
|
|
|
<if test="auditNum != null">#{auditNum},</if>
|
|
|
|
|
<if test="num != null">#{num},</if>
|
|
|
|
|
<if test="status != null">#{status},</if>
|
|
|
|
|
<if test="createBy != null">#{createBy},</if>
|
|
|
|
|
<if test="createTime != null">#{createTime},</if>
|
|
|
|
|
<if test="apDetection != null and apDetection != ''">#{apDetection},</if>
|
|
|
|
|
<if test="remark != null">#{remark},</if>
|
|
|
|
|
<if test="companyId != null">#{companyId},</if>
|
|
|
|
|
</trim>
|
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
|
<insert id="insertCheckDetails">
|
|
|
|
|
insert into back_check_details
|
|
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
|
|
<if test="parentId != null">parent_id,</if>
|
|
|
|
|
<if test="typeId != null">type_id,</if>
|
|
|
|
|
<if test="preNum != null">back_num,</if>
|
|
|
|
|
<if test="maId != null">ma_id,</if>
|
|
|
|
|
<if test="status != null">status,</if>
|
|
|
|
|
<if test="createBy != null">create_by,</if>
|
|
|
|
|
<if test="createTime != null">create_time,</if>
|
|
|
|
|
<if test="remark != null">remark,</if>
|
|
|
|
|
<if test="apDetection != null and apDetection != ''">ap_detection,</if>
|
|
|
|
|
<if test="companyId != null">company_id,</if>
|
|
|
|
|
</trim>
|
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
|
<if test="parentId != null">#{parentId},</if>
|
|
|
|
|
<if test="typeId != null">#{typeId},</if>
|
|
|
|
|
<if test="preNum != null">#{preNum},</if>
|
|
|
|
|
<if test="maId != null">#{maId},</if>
|
|
|
|
|
<if test="status != null">#{status},</if>
|
|
|
|
|
<if test="createBy != null">#{createBy},</if>
|
|
|
|
|
<if test="createTime != null">#{createTime},</if>
|
|
|
|
|
<if test="remark != null">#{remark},</if>
|
|
|
|
|
<if test="apDetection != null and apDetection != ''">#{apDetection},</if>
|
|
|
|
|
<if test="companyId != null">#{companyId},</if>
|
|
|
|
|
</trim>
|
|
|
|
|
</insert>
|
|
|
|
|
|
2024-09-26 17:28:00 +08:00
|
|
|
<update id="updateBackApplyInfo" parameterType="com.bonus.material.back.domain.BackApplyInfo">
|
|
|
|
|
update back_apply_info
|
|
|
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
|
|
|
<if test="code != null">code = #{code},</if>
|
|
|
|
|
<if test="taskId != null">task_id = #{taskId},</if>
|
|
|
|
|
<if test="backPerson != null">back_person = #{backPerson},</if>
|
|
|
|
|
<if test="phone != null">phone = #{phone},</if>
|
|
|
|
|
<if test="directAuditBy != null">direct_audit_by = #{directAuditBy},</if>
|
|
|
|
|
<if test="directAuditTime != null">direct_audit_time = #{directAuditTime},</if>
|
|
|
|
|
<if test="directAuditRemark != null">direct_audit_remark = #{directAuditRemark},</if>
|
|
|
|
|
<if test="updateBy != null">update_by = #{updateBy},</if>
|
|
|
|
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|
|
|
|
|
<if test="remark != null">remark = #{remark},</if>
|
|
|
|
|
<if test="companyId != null">company_id = #{companyId},</if>
|
|
|
|
|
<if test="backTime != null">back_time = #{backTime},</if>
|
|
|
|
|
<if test="status != null">status = #{status},</if>
|
|
|
|
|
<if test="directId != null">direct_id = #{directId},</if>
|
|
|
|
|
</trim>
|
|
|
|
|
where id = #{id}
|
|
|
|
|
</update>
|
|
|
|
|
|
|
|
|
|
<delete id="deleteBackApplyInfoById" parameterType="Long">
|
|
|
|
|
delete from back_apply_info where id = #{id}
|
|
|
|
|
</delete>
|
|
|
|
|
|
|
|
|
|
<delete id="deleteBackApplyInfoByIds" parameterType="String">
|
|
|
|
|
delete from back_apply_info where id in
|
|
|
|
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
|
|
|
|
#{id}
|
|
|
|
|
</foreach>
|
|
|
|
|
</delete>
|
2024-11-13 18:01:55 +08:00
|
|
|
|
|
|
|
|
<delete id="deleteTask">
|
|
|
|
|
update tm_task set status = 0 where task_id = #{taskId}
|
|
|
|
|
</delete>
|
|
|
|
|
|
|
|
|
|
<delete id="deleteTaskAgreement">
|
|
|
|
|
delete from tm_task_agreement where task_id = #{taskId}
|
|
|
|
|
</delete>
|
|
|
|
|
|
|
|
|
|
<delete id="deleteBackApply">
|
|
|
|
|
delete from back_apply_info where id = #{id}
|
|
|
|
|
</delete>
|
|
|
|
|
|
|
|
|
|
<delete id="deleteBackApplyDetails">
|
|
|
|
|
delete from back_apply_details where parent_id = #{id}
|
|
|
|
|
</delete>
|
|
|
|
|
|
|
|
|
|
<delete id="deleteCheckDetails">
|
|
|
|
|
delete from back_check_details where parent_id = #{id}
|
|
|
|
|
</delete>
|
2024-09-26 17:28:00 +08:00
|
|
|
</mapper>
|