Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
382701e9b9
|
|
@ -580,4 +580,15 @@ public class GlobalConstants {
|
||||||
*/
|
*/
|
||||||
public static final List<String> roleList = Arrays.asList("cly", "库管员", "wxy");
|
public static final List<String> roleList = Arrays.asList("cly", "库管员", "wxy");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Long 101L 机具(物流)分公司部门id
|
||||||
|
*/
|
||||||
|
public static final Long LONG_JJ = 101L;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Long 309L 安徽宏源电力建设有限公司部门id
|
||||||
|
*/
|
||||||
|
public static final Long LONG_HY = 309L;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -880,7 +880,7 @@ public class PurchaseCheckInfoServiceImpl implements IPurchaseCheckInfoService {
|
||||||
// 会签成功,对配置的流程进行处理
|
// 会签成功,对配置的流程进行处理
|
||||||
configSignOrgSet.remove(loginUserDeptId);
|
configSignOrgSet.remove(loginUserDeptId);
|
||||||
// 如果loginUserDeptId包含库管一班、库管二班、库管三班或修试二班的任意一个组织id,那么库管班就算审核通过
|
// 如果loginUserDeptId包含库管一班、库管二班、库管三班或修试二班的任意一个组织id,那么库管班就算审核通过
|
||||||
if (loginUserDeptId == 106L || loginUserDeptId == 334L || loginUserDeptId == 335L || loginUserDeptId == 336L) {
|
if (loginUserDeptId == 106L ||loginUserDeptId == 312L || loginUserDeptId == 334L || loginUserDeptId == 335L || loginUserDeptId == 336L) {
|
||||||
// 库管班审核通过,放行进行验收流程
|
// 库管班审核通过,放行进行验收流程
|
||||||
System.out.println("ONE会签成功,放行进行验收流程!");
|
System.out.println("ONE会签成功,放行进行验收流程!");
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
pcd.check_time as passTime,
|
pcd.check_time as passTime,
|
||||||
pcd.input_time as inputTime,
|
pcd.input_time as inputTime,
|
||||||
a.creator as inputUser,
|
a.creator as inputUser,
|
||||||
IFNULL(pcd.check_num, 0) - IFNULL(pcd.input_num, 0) as pendingInputNum,
|
case when pcd.status in (12,13,14) then 0 else IFNULL(pcd.check_num, 0) - IFNULL(pcd.input_num, 0) end as pendingInputNum,
|
||||||
tt.`code` as inputCode,
|
tt.`code` as inputCode,
|
||||||
mt1.manage_type as manageType
|
mt1.manage_type as manageType
|
||||||
FROM
|
FROM
|
||||||
|
|
|
||||||
|
|
@ -2366,10 +2366,8 @@
|
||||||
( sad.slt_type = 1, sad.money, 0 ) AS leaseCost,
|
( sad.slt_type = 1, sad.money, 0 ) AS leaseCost,
|
||||||
IF
|
IF
|
||||||
( sad.slt_type = 2, sad.money, 0 ) AS loseCost,
|
( sad.slt_type = 2, sad.money, 0 ) AS loseCost,
|
||||||
IF
|
IF(sad.slt_type = 3 AND (sad.is_charge = 1 ), sad.money, 0) AS repairCost,
|
||||||
( sad.slt_type = 3, sad.money, 0 ) AS repairCost,
|
IF(sad.slt_type = 4 AND (sad.is_charge = 1 ), sad.money, 0) AS scrapCost,
|
||||||
IF
|
|
||||||
( sad.slt_type = 4, sad.money, 0 ) AS scrapCost,
|
|
||||||
0 AS aqLeaseCost,
|
0 AS aqLeaseCost,
|
||||||
0 AS aqLoseCost,
|
0 AS aqLoseCost,
|
||||||
0 AS aqRepairCost,
|
0 AS aqRepairCost,
|
||||||
|
|
@ -2381,7 +2379,7 @@
|
||||||
saa.agreement_id = #{agreementId}
|
saa.agreement_id = #{agreementId}
|
||||||
AND saa.settlement_type = 1
|
AND saa.settlement_type = 1
|
||||||
GROUP BY
|
GROUP BY
|
||||||
sad.id UNION
|
sad.id UNION ALL
|
||||||
SELECT
|
SELECT
|
||||||
saa.agreement_id AS agreementId,
|
saa.agreement_id AS agreementId,
|
||||||
saa.create_time AS createTime,
|
saa.create_time AS createTime,
|
||||||
|
|
@ -2393,10 +2391,8 @@
|
||||||
( sad.slt_type = 1, sad.money, 0 ) AS aqLeaseCost,
|
( sad.slt_type = 1, sad.money, 0 ) AS aqLeaseCost,
|
||||||
IF
|
IF
|
||||||
( sad.slt_type = 2, sad.money, 0 ) AS aqLoseCost,
|
( sad.slt_type = 2, sad.money, 0 ) AS aqLoseCost,
|
||||||
IF
|
IF(sad.slt_type = 3 AND (sad.is_charge = 1 ), sad.money, 0) AS aqRepairCost,
|
||||||
( sad.slt_type = 3, sad.money, 0 ) AS aqRepairCost,
|
IF(sad.slt_type = 4 AND (sad.is_charge = 1 ), sad.money, 0) AS aqScrapCost
|
||||||
IF
|
|
||||||
( sad.slt_type = 4, sad.money, 0 ) AS aqScrapCost
|
|
||||||
FROM
|
FROM
|
||||||
slt_agreement_apply saa
|
slt_agreement_apply saa
|
||||||
LEFT JOIN slt_agreement_details sad ON saa.id = sad.apply_id
|
LEFT JOIN slt_agreement_details sad ON saa.id = sad.apply_id
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue