bug修复
This commit is contained in:
parent
7c891101c6
commit
c8fad7b535
|
|
@ -52,11 +52,13 @@ public class RepairServiceImpl implements RepairService {
|
|||
List<RepairTask> repairTasks = new ArrayList<>();
|
||||
Long deptId = SecurityUtils.getLoginUser().getSysUser().getDeptId();
|
||||
for (RepairTask repairTask : repairTaskList) {
|
||||
if (Objects.equals(deptId, 101L) && repairTask.getCompanyIds().contains("101")) {
|
||||
repairTasks.add(repairTask);
|
||||
}
|
||||
if (Objects.equals(deptId, 102L) && repairTask.getCompanyIds().contains("102")) {
|
||||
repairTasks.add(repairTask);
|
||||
if (StringUtils.isNotBlank(repairTask.getCompanyIds())) {
|
||||
if (Objects.equals(deptId, 101L) && repairTask.getCompanyIds().contains("101")) {
|
||||
repairTasks.add(repairTask);
|
||||
}
|
||||
if (Objects.equals(deptId, 102L) && repairTask.getCompanyIds().contains("102")) {
|
||||
repairTasks.add(repairTask);
|
||||
}
|
||||
}
|
||||
}
|
||||
return repairTasks;
|
||||
|
|
|
|||
|
|
@ -143,7 +143,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
<if test="createBy != null and createBy != ''">
|
||||
update_by,
|
||||
</if>
|
||||
update_time,
|
||||
<if test="updateTime != null and updateTime != ''">
|
||||
update_time,
|
||||
</if>
|
||||
<if test="companyId != null">
|
||||
company_id,
|
||||
</if>
|
||||
|
|
@ -180,7 +182,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
<if test="createBy != null and createBy != ''">
|
||||
#{createBy},
|
||||
</if>
|
||||
NOW(),
|
||||
<if test="updateTime != null and updateTime != ''">
|
||||
#{updateTime},
|
||||
</if>
|
||||
<if test="companyId != null">
|
||||
#{companyId},
|
||||
</if>
|
||||
|
|
@ -445,7 +449,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
part_name as partTotalName,
|
||||
file_ids as fileIds,
|
||||
su.nick_name as repairer,
|
||||
rar.remark
|
||||
rar.remark as remark,
|
||||
rar.id as id
|
||||
from repair_apply_record rar
|
||||
left join ma_supplier_info msi on msi.supplier_id = rar.supplier_id
|
||||
left join sys_user su on su.user_id = rar.repairer
|
||||
|
|
|
|||
Loading…
Reference in New Issue