Compare commits
No commits in common. "e8e247aaf7c916733fcca7a307629e9b2b4ac253" and "8501f9cc915a9dc7f1e0cbed989799d2ee7195ac" have entirely different histories.
e8e247aaf7
...
8501f9cc91
|
|
@ -729,7 +729,6 @@
|
|||
company_audit_by = #{record.companyAuditBy},
|
||||
company_audit_time = now(),
|
||||
company_audit_remark = #{record.companyAuditRemark},
|
||||
status = #{record.status},
|
||||
</if>
|
||||
<if test="record.examineStatusId == 31 and record.examineStatusId == '31'">
|
||||
dept_audit_by = #{record.companyAuditBy},
|
||||
|
|
|
|||
|
|
@ -20,9 +20,6 @@ public class BackApplyInfo extends BaseEntity {
|
|||
/** 退料ID */
|
||||
@ApiModelProperty(value = "退料ID")
|
||||
private Long id;
|
||||
/** 退料ID */
|
||||
@ApiModelProperty(value = "预报废列表审核旧taskId")
|
||||
private Long oldTaskId;
|
||||
|
||||
@ApiModelProperty(value="工程id")
|
||||
private Long projectId;
|
||||
|
|
|
|||
|
|
@ -192,7 +192,7 @@ public interface ScrapApplyDetailsMapper {
|
|||
|
||||
int updateMaStatus(@Param("maId") int maId, @Param("maStatus") String maStatus);
|
||||
|
||||
int selectNumByTypeId(@Param("parentId") String parentId, @Param("typeId") String typeId, @Param("taskId") Integer taskId);
|
||||
int selectNumByTypeId(@Param("parentId") String parentId, @Param("typeId") String typeId);
|
||||
|
||||
int selectCodeByMaIdAndTaskId(@Param("maId") Integer maId, @Param("taskId") Integer taskId);
|
||||
|
||||
|
|
|
|||
|
|
@ -486,7 +486,7 @@ public class ScrapApplyDetailsServiceImpl implements IScrapApplyDetailsService {
|
|||
if (arr.length > 0) {
|
||||
for (int i = 0; i < arr.length; i++) {
|
||||
//判断是否超出审核数量
|
||||
int re = scrapApplyDetailsMapper.selectNumByTypeId(arr[i].getParentId(), arr[i].getTypeId(),record.getTaskId());
|
||||
int re = scrapApplyDetailsMapper.selectNumByTypeId(arr[i].getParentId(), arr[i].getTypeId());
|
||||
if (re <= 0) {
|
||||
res = -2;
|
||||
break;
|
||||
|
|
@ -564,7 +564,7 @@ public class ScrapApplyDetailsServiceImpl implements IScrapApplyDetailsService {
|
|||
}
|
||||
|
||||
@Override
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
// @Transactional(rollbackFor = Exception.class)
|
||||
public int endback(ScrapAudit scrapAudit) {
|
||||
int res = 0;
|
||||
//参数校验 后期可以考虑写一个校验的工具类
|
||||
|
|
@ -821,7 +821,6 @@ public class ScrapApplyDetailsServiceImpl implements IScrapApplyDetailsService {
|
|||
BackApplyInfo[] arr = record.getArr();
|
||||
if (arr.length > 0) {
|
||||
for (int i = 0; i < arr.length; i++) {
|
||||
arr[i].setTaskId(record.getTaskId());
|
||||
res = scrapApplyDetailsMapper.insertCheckDetails(arr[i]);
|
||||
String manageType = arr[i].getManageType();
|
||||
if ("0".equals(manageType)) {
|
||||
|
|
|
|||
|
|
@ -259,7 +259,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
|
||||
<select id="selectPutInListList" resultMap="PurchaseCheckInfoResult">
|
||||
select pci.id,pci.task_id, pci.purchase_time, pci.arrival_time, pci.purchaser, pci.create_time, pci.update_by,
|
||||
pci.update_time, pci.remark, pci.company_id ,dict.name purchasingStatus,tk.code,tk.task_status taskStatus,us.nick_name purchaserName,
|
||||
pci.update_time, pci.remark, pci.company_id ,dict.name purchasingStatus,tk.code,tk.task_status taskStatus,su.nick_name purchaserName,
|
||||
tk.create_by,
|
||||
CASE tk.task_status
|
||||
WHEN 28 THEN
|
||||
|
|
|
|||
|
|
@ -281,9 +281,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
<if test="companyId != null">
|
||||
company_id,
|
||||
</if>
|
||||
<if test="taskId != null">
|
||||
old_task_id,
|
||||
</if>
|
||||
create_time
|
||||
)
|
||||
values (
|
||||
|
|
@ -324,9 +321,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
<if test="companyId != null">
|
||||
#{companyId},
|
||||
</if>
|
||||
<if test="taskId != null">
|
||||
#{taskId},
|
||||
</if>
|
||||
NOW()
|
||||
)
|
||||
</insert>
|
||||
|
|
@ -601,7 +595,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
</foreach>
|
||||
</delete>
|
||||
<delete id="deleteCheckDetails">
|
||||
delete from scrap_check_details where parent_id = #{parentId} and type_id = #{typeId} and old_task_id = #{taskId}
|
||||
delete from scrap_check_details where parent_id = #{parentId} and type_id = #{typeId}
|
||||
<if test="maId != null and maId != ''">
|
||||
and ma_id = #{maId}
|
||||
</if>
|
||||
|
|
@ -941,7 +935,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
FROM
|
||||
scrap_check_details scd1
|
||||
LEFT JOIN scrap_apply_details sad1 ON scd1.parent_id = sad1.parent_id
|
||||
AND scd1.type_id = sad1.type_id and scd1.old_task_id = sad1.task_id
|
||||
AND scd1.type_id = sad1.type_id
|
||||
WHERE sad1.task_id = #{taskId}
|
||||
GROUP BY
|
||||
scd1.parent_id, sad1.type_id
|
||||
|
|
@ -973,6 +967,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
WHERE
|
||||
sad.task_id = #{taskId}
|
||||
AND sad.type_id = #{typeId}
|
||||
AND mma.ma_status = 20
|
||||
ORDER BY
|
||||
sad.create_time DESC
|
||||
</select>
|
||||
|
|
@ -988,7 +983,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
scrap_apply_details bad
|
||||
WHERE
|
||||
bad.parent_id = #{parentId}
|
||||
AND bad.type_id = #{typeId} and bad.task_id = #{taskId} UNION
|
||||
AND bad.type_id = #{typeId} UNION
|
||||
SELECT
|
||||
0 AS auditNum,
|
||||
SUM(
|
||||
|
|
@ -997,7 +992,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
scrap_check_details bcd
|
||||
WHERE
|
||||
bcd.parent_id = #{parentId}
|
||||
AND bcd.type_id = #{typeId} and bcd.old_task_id = #{taskId}
|
||||
AND bcd.type_id = #{typeId}
|
||||
) res
|
||||
HAVING backNum > -1
|
||||
</select>
|
||||
|
|
@ -1006,7 +1001,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
COUNT(*)
|
||||
FROM
|
||||
scrap_check_details bcd
|
||||
LEFT JOIN scrap_apply_details sad ON bcd.parent_id = sad.parent_id and bcd.old_task_id = sad.task_id
|
||||
LEFT JOIN scrap_apply_details sad ON bcd.parent_id = sad.parent_id
|
||||
WHERE
|
||||
bcd.ma_id = #{maId}
|
||||
AND sad.task_id = #{taskId}
|
||||
|
|
@ -1034,7 +1029,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
WHERE
|
||||
scd.parent_id = #{parentId}
|
||||
AND scd.type_id = #{typeId}
|
||||
AND scd.old_task_id = #{taskId}
|
||||
GROUP BY
|
||||
scd.type_id
|
||||
ORDER BY
|
||||
|
|
@ -1057,7 +1051,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
WHERE
|
||||
scd.parent_id = #{parentId}
|
||||
AND scd.type_id = #{typeId}
|
||||
AND scd.old_task_id = #{taskId}
|
||||
<if test="maCode != null and maCode != ''">
|
||||
and mm.ma_code like concat('%', #{maCode}, '%')
|
||||
</if>
|
||||
|
|
@ -1084,7 +1077,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
FROM
|
||||
scrap_check_details scd1
|
||||
LEFT JOIN scrap_apply_details sad1 ON scd1.parent_id = sad1.parent_id
|
||||
AND scd1.type_id = sad1.type_id and scd1.old_task_id = sad1.task_id
|
||||
AND scd1.type_id = sad1.type_id
|
||||
WHERE sad1.task_id = #{taskId}
|
||||
GROUP BY
|
||||
scd1.parent_id,
|
||||
|
|
@ -1121,7 +1114,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
LEFT JOIN tm_task_agreement tta ON tta.task_id = bai.task_id
|
||||
WHERE
|
||||
bai.task_id = #{taskId}
|
||||
AND bcd.old_task_id = bai.task_id
|
||||
AND bcd.back_status = '1'
|
||||
</select>
|
||||
<select id="getWxList" resultType="com.bonus.sgzb.material.domain.BackApplyInfo">
|
||||
|
|
@ -1142,7 +1134,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
LEFT JOIN tm_task_agreement tta ON tta.task_id = bai.task_id
|
||||
WHERE
|
||||
bai.task_id = #{taskId}
|
||||
AND bcd.old_task_id = bai.task_id
|
||||
AND bcd.back_status = '2'
|
||||
</select>
|
||||
<select id="getBfList" resultType="com.bonus.sgzb.material.domain.BackApplyInfo">
|
||||
|
|
@ -1165,7 +1156,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
LEFT JOIN tm_task_agreement tta ON tta.task_id = bai.task_id
|
||||
WHERE
|
||||
bai.task_id = #{taskId}
|
||||
AND bcd.old_task_id = bai.task_id
|
||||
AND bcd.back_status = '3'
|
||||
</select>
|
||||
<select id="selectTaskNumByMonthWx" resultType="java.lang.Integer">
|
||||
|
|
|
|||
Loading…
Reference in New Issue