大屏页面调试

This commit is contained in:
mashuai 2024-07-04 09:26:02 +08:00
parent 187f1742b0
commit c1f55991eb
3 changed files with 7 additions and 1 deletions

View File

@ -20,6 +20,9 @@ public class ParamsDto {
/** 结束日期*/ /** 结束日期*/
private String endDate; private String endDate;
/** 结束日期*/
private String date;
/** /**
* 类型 验收1 入库2 * 类型 验收1 入库2
* */ * */

View File

@ -454,6 +454,7 @@ public class LargeScreenServiceImpl implements ILargeScreenService {
dto.setType("1"); dto.setType("1");
dto.setStartDate(DateTimeHelper.getFisrtDayOfMonth(Integer.parseInt(year), Integer.parseInt(month))); dto.setStartDate(DateTimeHelper.getFisrtDayOfMonth(Integer.parseInt(year), Integer.parseInt(month)));
dto.setEndDate(DateTimeHelper.getLastDayOfMonth(Integer.parseInt(year), Integer.parseInt(month))); dto.setEndDate(DateTimeHelper.getLastDayOfMonth(Integer.parseInt(year), Integer.parseInt(month)));
dto.setDate(year + "-" + month);
List<Map<String, String>> checkList = mapper.getAcceptanceStorage(dto); List<Map<String, String>> checkList = mapper.getAcceptanceStorage(dto);
valueList.add(commonUtil.totalValue(checkList, dto.getMaType())); valueList.add(commonUtil.totalValue(checkList, dto.getMaType()));
// 入库数量 // 入库数量

View File

@ -52,7 +52,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
LEFT JOIN purchase_check_details pcd ON pci.task_id = pcd.task_id LEFT JOIN purchase_check_details pcd ON pci.task_id = pcd.task_id
LEFT JOIN ma_type mt ON pcd.type_id = mt.type_id AND mt.`level` = '4' LEFT JOIN ma_type mt ON pcd.type_id = mt.type_id AND mt.`level` = '4'
LEFT JOIN sys_dept sd ON sd.dept_id = mt.company_id LEFT JOIN sys_dept sd ON sd.dept_id = mt.company_id
WHERE pci.arrival_time BETWEEN CONCAT(#{startDate}, ' 00:00:00') AND CONCAT(#{endDate}, ' 23:59:59') WHERE DATE_FORMAT(pci.arrival_time, '%Y-%m') = #{date}
AND mt.del_flag = '0'
<if test="maType!=null and maType == 1"> <if test="maType!=null and maType == 1">
AND sd.dept_name = #{maTypeName} AND sd.dept_name = #{maTypeName}
</if> </if>
@ -68,6 +69,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
LEFT JOIN ma_type mt ON iad.type_id = mt.type_id AND mt.`level` = '4' LEFT JOIN ma_type mt ON iad.type_id = mt.type_id AND mt.`level` = '4'
LEFT JOIN sys_dept sd ON sd.dept_id = mt.company_id LEFT JOIN sys_dept sd ON sd.dept_id = mt.company_id
WHERE iad.create_time BETWEEN CONCAT(#{startDate}, ' 00:00:00') AND CONCAT(#{endDate}, ' 23:59:59') AND iad.input_type = '1' WHERE iad.create_time BETWEEN CONCAT(#{startDate}, ' 00:00:00') AND CONCAT(#{endDate}, ' 23:59:59') AND iad.input_type = '1'
AND mt.del_flag = '0'
<if test="maType!=null and maType == 1"> <if test="maType!=null and maType == 1">
AND sd.dept_name = #{maTypeName} AND sd.dept_name = #{maTypeName}
</if> </if>