详情页增加检测记录

This commit is contained in:
liang.chao 2024-12-20 16:06:27 +08:00
parent 9b2342d295
commit 6e87427cfa
2 changed files with 16 additions and 1 deletions

View File

@ -75,9 +75,13 @@ public class MaDevQc extends BaseEntity implements Serializable {
@ApiModelProperty(value = "创建人所属公司")
private String qcCom;
@ApiModelProperty(value = "创建人所属公司名称")
private String comName;
@ApiModelProperty(value = "质检次数")
private Integer minNum;
private Integer maxNum;
private Integer maintenanceAlarmDay;
}

View File

@ -109,7 +109,18 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</if>
</select>
<select id="getQcList" resultType="com.bonus.material.device.domain.MaDevQc">
select * from ma_dev_qc where ma_id = #{maId} limit 10
SELECT
mdc.qc_time,
mt.maintenance_alarm_day,
sd.dept_name comName
FROM
ma_dev_qc mdc
LEFT JOIN ma_dev_info mdi ON mdc.ma_id = mdi.ma_id
LEFT JOIN ma_type mt ON mdi.type_id = mt.type_id
LEFT JOIN sys_dept sd ON mdc.qc_com = sd.dept_id
WHERE
mdc.ma_id = #{maId}
LIMIT 10
</select>
</mapper>