|
@@ -164,7 +164,7 @@ public class MouldServiceImpl extends ServiceImpl<MouldMapper, Mould> implements
|
|
|
public HttpRespMsg maintenanceReminder() throws Exception {
|
|
|
HttpRespMsg msg = new HttpRespMsg();
|
|
|
//查询所有被分配到项目的模具
|
|
|
- List<Mould> moulds = mouldMapper.selectList(new QueryWrapper<Mould>().isNotNull("project_id"));
|
|
|
+ List<Mould> moulds = mouldMapper.selectList(new QueryWrapper<Mould>().isNotNull("project_id").isNotNull("maintain_count"));
|
|
|
for (Mould mould : moulds) {
|
|
|
List<Integer> counts = ListUtil.convertIntegerIdsArrayToList(mould.getMaintainCount());
|
|
|
Collections.sort(counts);
|