|
|
|
@ -5,9 +5,12 @@ import java.util.List; |
|
|
|
import java.util.stream.Collectors; |
|
|
|
import javax.servlet.http.HttpServletResponse; |
|
|
|
|
|
|
|
import com.hxhq.business.domain.StorageLocation; |
|
|
|
import com.hxhq.business.domain.Yq; |
|
|
|
import com.hxhq.business.enums.NormalEnum; |
|
|
|
import com.hxhq.business.form.yq.StorageLocationSearchForm; |
|
|
|
import com.hxhq.business.form.yq.YqSearchForm; |
|
|
|
import com.hxhq.business.service.IStorageLocationService; |
|
|
|
import com.hxhq.business.service.IYqService; |
|
|
|
import com.hxhq.system.api.domain.SysDept; |
|
|
|
import com.hxhq.system.service.ISysDeptService; |
|
|
|
@ -49,7 +52,7 @@ public class SysDictDataController extends BaseController |
|
|
|
private ISysDictTypeService dictTypeService; |
|
|
|
|
|
|
|
@Autowired |
|
|
|
private IYqService yqService; |
|
|
|
private IStorageLocationService storageLocationService; |
|
|
|
@Autowired |
|
|
|
private ISysDeptService sysDeptService; |
|
|
|
|
|
|
|
@ -63,13 +66,13 @@ public class SysDictDataController extends BaseController |
|
|
|
{ |
|
|
|
String ccwz = "business_ccwz"; |
|
|
|
if(StringUtils.equals(dictData.getDictType(),ccwz)) { |
|
|
|
YqSearchForm form = new YqSearchForm(); |
|
|
|
StorageLocationSearchForm form = new StorageLocationSearchForm(); |
|
|
|
List<SysDept> superiorAndSubordinate = sysDeptService.getSuperiorAndSubordinate(SecurityUtils.getLoginUser().getSysUser().getDeptId()); |
|
|
|
List<Long> deptIdList = superiorAndSubordinate.stream().map(SysDept::getDeptId).collect(Collectors.toList()); |
|
|
|
form.setDeptIdList(deptIdList); |
|
|
|
form.setCcwz(NormalEnum.yes.getValue()); |
|
|
|
form.setStatus(NormalEnum.yes.getValue()); |
|
|
|
startPage(); |
|
|
|
List<Yq> list = yqService.queryList(form); |
|
|
|
List<StorageLocation> list = storageLocationService.queryList(form); |
|
|
|
|
|
|
|
return getDataTable(list); |
|
|
|
} else { |
|
|
|
|