Merge remote-tracking branch 'origin/master'

This commit is contained in:
liang.chao 2025-01-16 18:11:30 +08:00
commit 99f09396e8
3 changed files with 8 additions and 1 deletions

View File

@ -16,6 +16,11 @@ public class RepairTaskDetails {
*/
@ApiModelProperty(value = "id")
private Long id;
/** 用户ID */
@ApiModelProperty(value = "userId")
private Long userId;
/**
* 任务ID
*/

View File

@ -50,6 +50,7 @@ public class RepairServiceImpl implements RepairService {
public List<RepairTaskDetails> getRepairMaTypeList(RepairTaskDetails bean) {
Long companyId = SecurityUtils.getLoginUser().getSysUser().getCompanyId();
bean.setCompanyId(companyId);
bean.setUserId(SecurityUtils.getLoginUser().getUserid());
List<RepairTaskDetails> repairMaTypeList = mapper.getRepairMaTypeList(bean);
return repairMaTypeList;
}

View File

@ -207,7 +207,8 @@
left join ma_machine mm on mm.ma_id = rad.ma_id
left join sys_user su on rad.repairer = su.user_id
LEFT JOIN ma_type mt2 on mt.parent_id = mt2.type_id
where rad.task_id = #{taskId}
LEFT JOIN ma_type_repair mtr on mtr.type_id = rad.type_id
where rad.task_id = #{taskId} and mtr.user_id = #{userId}
<if test="companyId != null and companyId != ''">
and rad.company_id = #{companyId}
</if>