5号库改造,机具库存查询
This commit is contained in:
parent
ac0646df6b
commit
4312800e64
|
|
@ -501,6 +501,8 @@ public class ComplexQueryController extends BaseController {
|
||||||
@GetMapping("/getPersonNum")
|
@GetMapping("/getPersonNum")
|
||||||
public AjaxResult getPersonNum(RetainedEquipmentInfo bean) {
|
public AjaxResult getPersonNum(RetainedEquipmentInfo bean) {
|
||||||
startPage();
|
startPage();
|
||||||
|
Long deptId = typeService.getUserDeptId();
|
||||||
|
bean.setCompanyId(Math.toIntExact(deptId));
|
||||||
List<RetainedEquipmentInfo> pageList = complexQueryService.getPersonNum(bean);
|
List<RetainedEquipmentInfo> pageList = complexQueryService.getPersonNum(bean);
|
||||||
return AjaxResult.success(getDataTable(pageList));
|
return AjaxResult.success(getDataTable(pageList));
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1692,6 +1692,9 @@
|
||||||
sai.`status` = '0' and sai.`is_slt` = '0'
|
sai.`status` = '0' and sai.`is_slt` = '0'
|
||||||
AND sai.end_time IS NULL
|
AND sai.end_time IS NULL
|
||||||
AND sai.back_id IS NULL
|
AND sai.back_id IS NULL
|
||||||
|
<if test="companyId != null">
|
||||||
|
AND sai.company_id = #{companyId}
|
||||||
|
</if>
|
||||||
GROUP BY mt.type_id
|
GROUP BY mt.type_id
|
||||||
) AS subquery1
|
) AS subquery1
|
||||||
ON mt.type_id = subquery1.type_id
|
ON mt.type_id = subquery1.type_id
|
||||||
|
|
@ -1720,6 +1723,9 @@
|
||||||
<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="companyId != null">
|
||||||
|
and mt.company_id = #{companyId}
|
||||||
|
</if>
|
||||||
</select>
|
</select>
|
||||||
<select id="batchSelectInfo" resultType="com.bonus.material.basic.domain.UseStorageInfo">
|
<select id="batchSelectInfo" resultType="com.bonus.material.basic.domain.UseStorageInfo">
|
||||||
SELECT
|
SELECT
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue