Ver código fonte

release of '批量派单' on 2021.3.24

jiequan.bi 4 anos atrás
pai
commit
91198cca4e

+ 1 - 1
jeecg-boot-module-system/src/main/java/org/jeecg/modules/ctop/service/impl/MaterialReportOverViewServiceImpl.java

@@ -287,7 +287,7 @@ public class MaterialReportOverViewServiceImpl implements IMaterialReportOverVie
     public PageInfo<JSONObject> getTopDesignList(String startDate, String endDate, String userId, String target, String order, int pageSize, int pageNo) {
         PageInfo<JSONObject> result = new PageInfo<>();
         Set<String> subordinate = this.recursiveQuerySubordinate(userId);
-        if (subordinate.isEmpty()) {
+        if (subordinate.size()==1) {
             subordinate = materialReportOverViewMapper.recursiveQuerySubordinateByUserId(userId);
         }
         PageHelper.startPage(pageNo, pageSize, false);