问题修复

This commit is contained in:
hongchao 2026-01-16 16:26:30 +08:00
parent 33cba1df43
commit c13485e1b8
8 changed files with 36 additions and 11 deletions

View File

@ -176,4 +176,6 @@ public interface LargeScreenMapper {
List<EquipmentDisVo> getEquipmentDis(ParamsDto dto); List<EquipmentDisVo> getEquipmentDis(ParamsDto dto);
List<IotMaCodeMachine> getIotMaCodeMachine(String province); List<IotMaCodeMachine> getIotMaCodeMachine(String province);
int getSecondaryWarehouse(String companyId);
} }

View File

@ -99,9 +99,22 @@ public class LargeScreenServiceImpl implements ILargeScreenService {
//查询所有公司 //查询所有公司
list=mapper.getCompany(); list=mapper.getCompany();
if (list.size()>0){ if (list.size()>0){
int countAll = 0;
for (TotalOwnershipVo vo:list){ for (TotalOwnershipVo vo:list){
TotalOwnershipVo vos= countNum(null,null,vo.getCompanyId(), "2"); if(vo.getCompanyId().equals("101")){
vo.setTotalOwnershipNum(vos.getTotalOwnershipNum()); TotalOwnershipVo vos = countNum(null,null,vo.getCompanyId(), "2");
vo.setTotalOwnershipNum(vos.getTotalOwnershipNum());
}else{
int count = mapper.getSecondaryWarehouse(vo.getCompanyId());
countAll += count;
vo.setTotalOwnershipNum(count);
}
}
for (TotalOwnershipVo vo:list){
if(vo.getCompanyId().equals("101")){
vo.setTotalOwnershipNum(vo.getTotalOwnershipNum()-countAll);
break;
}
} }
} }
} catch (Exception e) { } catch (Exception e) {

View File

@ -64,7 +64,6 @@ public class StorageStatus {
/** 资产属性名称 */ /** 资产属性名称 */
@ApiModelProperty(value = "资产属性名称") @ApiModelProperty(value = "资产属性名称")
@Excel(name = "资产属性")
private String propName; private String propName;
/** /**

View File

@ -286,6 +286,7 @@ public class SecondaryWarehouseServiceImpl implements SecondaryWarehouseService
} }
} }
List<SecondaryWarehouse> list = mapper.getList(bean); List<SecondaryWarehouse> list = mapper.getList(bean);
for (SecondaryWarehouse secondaryWarehouse : list) { for (SecondaryWarehouse secondaryWarehouse : list) {
Integer warehouse = mapper.selectStockNum(secondaryWarehouse); Integer warehouse = mapper.selectStockNum(secondaryWarehouse);
if (warehouse == null) { if (warehouse == null) {

View File

@ -75,7 +75,7 @@
<select id="selecthistoryList" parameterType="com.bonus.sgzb.base.vo.MaLabelBindVO" resultMap="MaLabelBindVOResult"> <select id="selecthistoryList" parameterType="com.bonus.sgzb.base.vo.MaLabelBindVO" resultMap="MaLabelBindVOResult">
SELECT b.label_id,a.id,b.is_bind,b.label_code,a.bind_time,b.label_type,mt.type_id,mt.type_name, SELECT b.label_id,a.id,b.is_bind,b.label_code,a.bind_time,b.label_type,mt.type_id,mt.type_name,
mt2.type_id as modelId , mt2.type_name as modelName,mt3.type_name as wpName, mt2.type_id as modelId , mt2.type_name as modelName,mt3.type_name as wpName,
mt4.type_name as kindName ,a.status,a.binder,dic.name,ma.ma_code,user.nick_name mt4.type_name as kindName ,a.status,a.binder,dic.name,ma.ma_code,user.nick_name,ma.assets_code
FROM ma_machine_label b FROM ma_machine_label b
left join ma_label_bind a on a.ma_id = b.ma_id left join ma_label_bind a on a.ma_id = b.ma_id
LEFT JOIN ma_type mt ON a.type_id = mt.type_id LEFT JOIN ma_type mt ON a.type_id = mt.type_id

View File

@ -314,6 +314,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="ownHouse != null and ownHouse != ''">own_house = #{ownHouse},</if> <if test="ownHouse != null and ownHouse != ''">own_house = #{ownHouse},</if>
<if test="companyId != null and companyId != ''">company_id = #{companyId},</if> <if test="companyId != null and companyId != ''">company_id = #{companyId},</if>
<if test="pushStatus != null and pushStatus != ''">push_status = #{pushStatus},</if> <if test="pushStatus != null and pushStatus != ''">push_status = #{pushStatus},</if>
<if test="remark != null and remark!= ''">remark = #{remark},</if>
update_time = sysdate() update_time = sysdate()
</set> </set>
where ma_id = #{maId} where ma_id = #{maId}
@ -343,7 +344,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
select m.ma_id, m.type_id, m.ma_code, m.pre_code, m.ma_status, m.qr_code, m.buy_price, m.ma_vender, m.out_fac_time, m.out_fac_code, select m.ma_id, m.type_id, m.ma_code, m.pre_code, m.ma_status, m.qr_code, m.buy_price, m.ma_vender, m.out_fac_time, m.out_fac_code,
m.assets_code, m.check_man, m.this_check_time, m.next_check_time, m.gps_code, m.rfid_code, m.erp_code, m.transfer_code, m.assets_code, m.check_man, m.this_check_time, m.next_check_time, m.gps_code, m.rfid_code, m.erp_code, m.transfer_code,
m.in_out_num, m.buy_task, m.own_house ,m.company_id ,mt.type_name specificationType,mt1.type_name deviceType, mt2.type_name itemType, m.in_out_num, m.buy_task, m.own_house ,m.company_id ,mt.type_name specificationType,mt1.type_name deviceType, mt2.type_name itemType,
dic.name maStatusName ,mhi.house_name ownHouseName,mps.prop_id propId, msi.supplier,msi.supplier_id supplierId,m.push_status dic.name maStatusName ,mhi.house_name ownHouseName,mps.prop_id propId, msi.supplier,msi.supplier_id supplierId,m.push_status,m.remark
from ma_machine m from ma_machine m
left join ma_type mt on m.type_id = mt.type_id left join ma_type mt on m.type_id = mt.type_id
left join ma_type mt1 on mt.parent_id = mt1.type_id left join ma_type mt1 on mt.parent_id = mt1.type_id

View File

@ -906,5 +906,20 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
im.bind_status = 0 im.bind_status = 0
AND imb.unbind_time IS NULL and sai.`status` = 0 and bpl.province = #{province} AND imb.unbind_time IS NULL and sai.`status` = 0 and bpl.province = #{province}
</select> </select>
<select id="getSecondaryWarehouse" resultType="java.lang.Integer">
SELECT
IFNULL(SUM( lod.out_num ),0) AS Num
from lease_out_details lod
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 bai ON tta.agreement_id = bai.agreement_id
LEFT JOIN bm_unit_info bui ON bui.unit_id = bai.unit_id
LEFT JOIN ma_type mt ON lod.type_id = mt.type_id
LEFT JOIN ma_type mt1 ON mt.parent_id = mt1.type_id
WHERE 1=1
<if test="companyId != null">
and bui.dept_id = #{companyId}
</if>
</select>
</mapper> </mapper>

View File

@ -9,7 +9,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
mt2.type_name AS typeName, mt2.type_name AS typeName,
mt.type_name AS typeModelName, mt.type_name AS typeModelName,
mt.unit_name AS unit, mt.unit_name AS unit,
mpi.prop_name as propName,
CASE CASE
mt.manage_type mt.manage_type
WHEN 0 THEN WHEN 0 THEN
@ -188,8 +187,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
lad.type_id lad.type_id
) AS subquery7 ON subquery7.type_id = mt.type_id ) AS subquery7 ON subquery7.type_id = mt.type_id
LEFT JOIN ma_type mt2 ON mt2.type_id = mt.parent_id LEFT JOIN ma_type mt2 ON mt2.type_id = mt.parent_id
left join ma_prop_set mps on mt.type_id = mps.type_id
left join ma_prop_info mpi on mps.prop_id = mpi.prop_id
WHERE WHERE
mt.`level` = 4 mt.`level` = 4
AND mt.del_flag = '0' AND mt.del_flag = '0'
@ -199,8 +196,5 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="typeModelName != null and typeModelName != ''"> <if test="typeModelName != null and typeModelName != ''">
and mt.type_name like concat('%',#{typeModelName},'%') and mt.type_name like concat('%',#{typeModelName},'%')
</if> </if>
<if test="propId != null">
and mpi.prop_id = #{propId}
</if>
</select> </select>
</mapper> </mapper>