Commit 755498ac authored by zhangsen's avatar zhangsen

bugxiugai

parent 7b48090e
...@@ -70,6 +70,7 @@ import org.springframework.web.bind.annotation.RequestParam; ...@@ -70,6 +70,7 @@ import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
import org.typroject.tyboot.core.foundation.enumeration.UserType; import org.typroject.tyboot.core.foundation.enumeration.UserType;
import org.typroject.tyboot.core.foundation.utils.Bean; import org.typroject.tyboot.core.foundation.utils.Bean;
import org.typroject.tyboot.core.foundation.utils.ValidationUtil;
import org.typroject.tyboot.core.restful.doc.TycloudOperation; import org.typroject.tyboot.core.restful.doc.TycloudOperation;
import org.typroject.tyboot.core.restful.exception.instance.BadRequest; import org.typroject.tyboot.core.restful.exception.instance.BadRequest;
import org.typroject.tyboot.core.restful.utils.ResponseHelper; import org.typroject.tyboot.core.restful.utils.ResponseHelper;
...@@ -612,7 +613,17 @@ public class FireFightingSystemController extends AbstractBaseController { ...@@ -612,7 +613,17 @@ public class FireFightingSystemController extends AbstractBaseController {
@ApiOperation(value = "消防系统列表查询(不分页)", notes = "下拉使用") @ApiOperation(value = "消防系统列表查询(不分页)", notes = "下拉使用")
@GetMapping(value = "/list") @GetMapping(value = "/list")
public List<FireFightingSystemEntity> listAll() { public List<FireFightingSystemEntity> listAll() {
return fireFightingSystemService.list(); ReginParams reginParams = getSelectedOrgInfo();
ReginParams.PersonIdentity personIdentity = reginParams.getPersonIdentity();
if (!ValidationUtil.isEmpty(personIdentity)) {
String bizOrgCode = personIdentity.getBizOrgCode();
if (StringUtils.isNotBlank(bizOrgCode)) {
QueryWrapper<FireFightingSystemEntity> qw = new QueryWrapper<>();
qw.lambda().likeRight(FireFightingSystemEntity::getBizOrgCode, bizOrgCode);
return fireFightingSystemService.list(qw);
}
}
return new ArrayList<>();
} }
@TycloudOperation(ApiLevel = UserType.AGENCY) @TycloudOperation(ApiLevel = UserType.AGENCY)
......
...@@ -72,7 +72,7 @@ public class TemplateCellWriteHandlerDate implements SheetWriteHandler { ...@@ -72,7 +72,7 @@ public class TemplateCellWriteHandlerDate implements SheetWriteHandler {
// 设置下拉单元格的首行 末行 首列 末列 // 设置下拉单元格的首行 末行 首列 末列
CellRangeAddressList rangeList = new CellRangeAddressList(1, 65536, k, k); CellRangeAddressList rangeList = new CellRangeAddressList(1, 65536, k, k);
// 如果下拉值总数大于100,则使用一个新sheet存储,避免生成的导入模板下拉值获取不到 // 如果下拉值总数大于100,则使用一个新sheet存储,避免生成的导入模板下拉值获取不到
if (v.length > LIMIT_NUMBER) { if (v.length >= LIMIT_NUMBER) {
//定义sheet的名称 //定义sheet的名称
//1.创建一个隐藏的sheet 名称为 hidden + k //1.创建一个隐藏的sheet 名称为 hidden + k
String sheetName = "hidden" + k; String sheetName = "hidden" + k;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment