This commit is contained in:
hongchao 2025-10-20 18:30:30 +08:00
commit 6c4d399cc5
5 changed files with 25 additions and 9 deletions

View File

@ -21,7 +21,7 @@ public class MaterialStorageInfo {
private Integer id;
@ApiModelProperty(value = "序号")
@Excel(name = "序号", width = 5)
@Excel(name = "序号", width = 5, cellType = Excel.ColumnType.NUMERIC)
private Integer seq;
@ApiModelProperty(value = "机具名称")
@ -104,4 +104,8 @@ public class MaterialStorageInfo {
@ApiModelProperty(value = "是否分包直领标志(0 是 1 否)")
private String subFlag;
@ApiModelProperty(value = "是否直转标志(0 是 1 否)")
@Excel(name = "是否直转", width = 10, readConverterExp = "0=是,1=否")
private String directFlag;
}

View File

@ -236,7 +236,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
sai.type_id AS typeId,
lai.code AS code,
sai.ma_id AS maId,
bp.pro_name AS proName
bp.pro_name AS proName,
CASE WHEN
lai.direct_id IS NULL
THEN '1' ELSE '0'
END AS directFlag
FROM
slt_agreement_info sai
LEFT JOIN ma_type mt ON mt.type_id = sai.type_id
@ -259,7 +263,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</if>
GROUP BY
sai.type_id,
sai.ma_id
sai.ma_id,
lai.direct_id
</select>
<select id="selectInFo" resultType="com.bonus.material.clz.domain.machine.MaterialStorageInfo">
@ -1561,14 +1566,18 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
sai.type_id AS typeId,
lai.code AS code,
sai.ma_id AS maId,
bp.pro_name AS proName
bp.pro_name AS proName,
CASE WHEN
lai.direct_id IS NULL
THEN '1' ELSE '0'
END AS directFlag
FROM clz_slt_agreement_info sai
LEFT JOIN ma_type mt ON mt.type_id = sai.type_id
LEFT JOIN ma_type mt2 ON mt.parent_id = mt2.type_id
LEFT JOIN ma_machine mm ON mm.ma_id = sai.ma_id
LEFT JOIN clz_bm_agreement_info bai ON bai.agreement_id = sai.agreement_id
LEFT JOIN bm_unit bt ON bai.unit_id = bt.unit_id AND bt.del_flag = '0'
LEFT JOIN lease_apply_info lai ON lai.id = sai.lease_id
LEFT JOIN clz_lease_apply_info lai ON lai.id = sai.lease_id
LEFT JOIN bm_project bp ON bai.project_id = bp.pro_id
WHERE sai.status = '0'
AND sai.end_time IS NULL
@ -1584,7 +1593,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</if>
GROUP BY
sai.type_id,
sai.ma_id
sai.ma_id,
lai.direct_id
</select>
<select id="getImpUnitNameList" resultType="com.bonus.material.clz.domain.vo.MaterialRetainedEquipmentInfo">

View File

@ -54,7 +54,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
bai.unit_id,bai.project_id,bu.unit_name, bp.pro_name, bai.agreement_code, tt.task_status as taskStatus,
sda.dict_label as taskStatusName,
IFNULL(sum(lad.pre_num),0) as preCountNum,
IFNULL(sum(lad.al_num),0) as alNum,
IFNULL(sum(lod.num),0) as alNum,
GROUP_CONCAT(DISTINCT mt1.type_name) as maTypeNames,
bp.contract_part as contractPart,
sd.dept_name as impUnitName,
@ -67,6 +67,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
lease_apply_info lai
left join tm_task tt on lai.task_id = tt.task_id
left join lease_apply_details lad on lai.id = lad.parent_id
LEFT JOIN (SELECT parent_id,type_id ,IFNULL( sum( out_num ), 0 ) as num FROM lease_out_details
GROUP BY parent_id,type_id) lod ON lai.id = lod.parent_id and lad.type_id = lod.type_id
left join tm_task_agreement tta on lai.task_id = tta.task_id
left join bm_agreement_info bai on tta.agreement_id = bai.agreement_id
left join bm_unit bu on bu.unit_id = bai.unit_id

View File

@ -211,7 +211,7 @@
FROM
direct_apply_info dai
LEFT JOIN direct_apply_details dad ON dai.id = dad.direct_id
LEFT JOIN slt_agreement_info sai ON dai.back_agreement_id = sai.agreement_id
LEFT JOIN slt_agreement_info sai ON dai.back_agreement_id = sai.agreement_id and sai.status =1
AND sai.type_id = dad.type_id and IFNULL(dad.ma_id,0)=IFNULL(sai.ma_id,0)
LEFT JOIN lease_apply_info lai on lai.id=sai.lease_id
LEFT JOIN ma_type mt ON mt.type_id = dad.type_id

View File

@ -123,7 +123,7 @@
LEFT JOIN bm_agreement_info bai ON pmi.agreementId = bai.agreement_id
LEFT JOIN bm_project bp ON bp.pro_id = bai.project_id
LEFT JOIN calc_project_month cpm ON pmi.taskId = cpm.ID
where pmi.jiju_type = 2
where pmi.jiju_type = 2 and pmi.money > 0
GROUP BY
pmi.agreementId
) pmia ON bai.project_id = pmia.project_id AND pmc.task_id = pmia.taskId AND pmia.agreementId = pmc.AGREEMENT_ID