Commit dea31e5fb60bb444b2ab59f9f608a7baf0514167
1 parent
4aaf4232
app首页统计修改
Showing
2 changed files
with
3 additions
and
2 deletions
urbanops-module-garden/src/main/java/com/zteits/urbanops/module/garden/service/materialinventory/MaterialInventoryServiceImpl.java
| @@ -127,7 +127,7 @@ public class MaterialInventoryServiceImpl implements MaterialInventoryService { | @@ -127,7 +127,7 @@ public class MaterialInventoryServiceImpl implements MaterialInventoryService { | ||
| 127 | @Override | 127 | @Override |
| 128 | public MaterialInventoryDO selectMaterialInventoryByMaterialId(Long materialId, Long companyId) { | 128 | public MaterialInventoryDO selectMaterialInventoryByMaterialId(Long materialId, Long companyId) { |
| 129 | if (materialId == null) { | 129 | if (materialId == null) { |
| 130 | - throw exception0(BAD_REQUEST.getCode(),"更新库存失败:typeDetailId为空!"); | 130 | + throw exception0(BAD_REQUEST.getCode(),"更新库存失败:materialId为空!"); |
| 131 | } | 131 | } |
| 132 | LambdaQueryWrapper<MaterialInventoryDO> queryWrapper = Wrappers.lambdaQuery(); | 132 | LambdaQueryWrapper<MaterialInventoryDO> queryWrapper = Wrappers.lambdaQuery(); |
| 133 | queryWrapper.eq(MaterialInventoryDO::getMaterialId, materialId); | 133 | queryWrapper.eq(MaterialInventoryDO::getMaterialId, materialId); |
urbanops-module-garden/src/main/resources/mapper/homepage/HomepageSummaryMapper.xml
| @@ -536,7 +536,7 @@ | @@ -536,7 +536,7 @@ | ||
| 536 | ) AS rn | 536 | ) AS rn |
| 537 | FROM act_hi_taskinst t | 537 | FROM act_hi_taskinst t |
| 538 | LEFT JOIN workorder_main_info m ON t.PROC_INST_ID_ = m.process_instance_id AND m.deleted = 0 | 538 | LEFT JOIN workorder_main_info m ON t.PROC_INST_ID_ = m.process_instance_id AND m.deleted = 0 |
| 539 | - WHERE t.END_TIME_ IS NOT NULL | 539 | + WHERE t.state_ ='completed' |
| 540 | <if test="beginTime != null and beginTime != ''"> | 540 | <if test="beginTime != null and beginTime != ''"> |
| 541 | and t.END_TIME_ >= #{beginTime} | 541 | and t.END_TIME_ >= #{beginTime} |
| 542 | </if> | 542 | </if> |
| @@ -544,6 +544,7 @@ | @@ -544,6 +544,7 @@ | ||
| 544 | and t.END_TIME_ <= #{endTime} | 544 | and t.END_TIME_ <= #{endTime} |
| 545 | </if> | 545 | </if> |
| 546 | ) t | 546 | ) t |
| 547 | + WHERE t.rn = 1 | ||
| 547 | group by t.userId | 548 | group by t.userId |
| 548 | </select> | 549 | </select> |
| 549 | </mapper> | 550 | </mapper> |