|
@@ -1120,6 +1120,10 @@ public class IndustrialLandSupplyDetailService extends BaseService<IndustrialLan
|
|
|
if (CommonUtils.isNull(entity.getFinal_result())) {
|
|
if (CommonUtils.isNull(entity.getFinal_result())) {
|
|
|
result.add(entity.getId().toString());
|
|
result.add(entity.getId().toString());
|
|
|
}
|
|
}
|
|
|
|
|
+ } else if (Constant.UserType.STREET.equals(ShiroUtils.getUserType())) {
|
|
|
|
|
+ if (Objects.equals(entity.getCreate_by(), ShiroUtils.getUserId())) {
|
|
|
|
|
+ result.add(entity.getId().toString());
|
|
|
|
|
+ }
|
|
|
} else {
|
|
} else {
|
|
|
result.add(entity.getId().toString());
|
|
result.add(entity.getId().toString());
|
|
|
}
|
|
}
|
|
@@ -1165,20 +1169,21 @@ public class IndustrialLandSupplyDetailService extends BaseService<IndustrialLan
|
|
|
@Transactional
|
|
@Transactional
|
|
|
public List<String> getProjectIdsc() {
|
|
public List<String> getProjectIdsc() {
|
|
|
|
|
|
|
|
- //根据当前登录人所在街道 查出该街道所有人员的id 将此id列表作为create_by筛选条件
|
|
|
|
|
List<String> result = new ArrayList<>();
|
|
List<String> result = new ArrayList<>();
|
|
|
Example example = new Example(IndustrialLandSupplyDetail.class);
|
|
Example example = new Example(IndustrialLandSupplyDetail.class);
|
|
|
Example.Criteria criteria = example.createCriteria();
|
|
Example.Criteria criteria = example.createCriteria();
|
|
|
criteria.orEqualTo("del_flag", "0");//不显示删除的
|
|
criteria.orEqualTo("del_flag", "0");//不显示删除的
|
|
|
|
|
+ if (Objects.equals(Constant.UserType.GOVERNMENT, ShiroUtils.getUserEntity().getUser_type())) {
|
|
|
|
|
|
|
|
-// List<String> streetUserIds = new ArrayList<>();
|
|
|
|
|
-// if (ShiroUtils.getUserType().equals(Constant.UserType.STREET)) {
|
|
|
|
|
-// List<User> userList = userService.findUsersByStreetId(ShiroUtils.getStreetId());
|
|
|
|
|
-// for (User user : userList) {
|
|
|
|
|
-// streetUserIds.add(user.getId() + "");
|
|
|
|
|
-// }
|
|
|
|
|
-// criteria.andIn("create_by", streetUserIds);
|
|
|
|
|
-// }
|
|
|
|
|
|
|
+ } else if (Objects.equals(Constant.UserType.STREET, ShiroUtils.getUserEntity().getUser_type())) {
|
|
|
|
|
+ //根据当前登录人所在街道 查出该街道所有人员的id 将此id列表作为create_by筛选条件
|
|
|
|
|
+ List<String> streetUserIds = new ArrayList<>();
|
|
|
|
|
+ List<User> userList = userService.findUsersByStreetId(ShiroUtils.getStreetId());
|
|
|
|
|
+ for (User user : userList) {
|
|
|
|
|
+ streetUserIds.add(user.getId() + "");
|
|
|
|
|
+ }
|
|
|
|
|
+ criteria.andIn("create_by", streetUserIds);
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
List<IndustrialLandSupplyDetail> list = industrialLandSupplyDetailDao.selectByExample(example);
|
|
List<IndustrialLandSupplyDetail> list = industrialLandSupplyDetailDao.selectByExample(example);
|
|
|
for (IndustrialLandSupplyDetail entity : list) {
|
|
for (IndustrialLandSupplyDetail entity : list) {
|