|
@@ -244,6 +244,17 @@ public class CostSurveyTemplateController extends BaseController<CostSurveyTempl
|
|
|
public CommonResult<List<CostSurveyTemplate>> listFixedEnabled(
|
|
public CommonResult<List<CostSurveyTemplate>> listFixedEnabled(
|
|
|
@ApiParam(name = "catalogId", value = "模板ID", required = false) @RequestParam (value="catalogId") String catalogId) throws Exception {
|
|
@ApiParam(name = "catalogId", value = "模板ID", required = false) @RequestParam (value="catalogId") String catalogId) throws Exception {
|
|
|
CostSurveyTemplate queryCondition = new CostSurveyTemplate();
|
|
CostSurveyTemplate queryCondition = new CostSurveyTemplate();
|
|
|
|
|
+ IUser user = ContextUtil.getCurrentUser();
|
|
|
|
|
+ User account = userService.getByAccount(user.getAccount());
|
|
|
|
|
+ if (account!=null ) {
|
|
|
|
|
+ if (account.getDataScope()==0) {
|
|
|
|
|
+ queryCondition.setAreaCode(account.getProvinceCode());
|
|
|
|
|
+ } else if (account.getDataScope()==1) {
|
|
|
|
|
+ queryCondition.setAreaCode(account.getCityCode());
|
|
|
|
|
+ }else {
|
|
|
|
|
+ queryCondition.setAreaCode(account.getCountyCode());
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
queryCondition.setStatus("0"); // 启用状态
|
|
queryCondition.setStatus("0"); // 启用状态
|
|
|
queryCondition.setTemplateType("2"); // 模板类型为固定表
|
|
queryCondition.setTemplateType("2"); // 模板类型为固定表
|
|
|
queryCondition.setCatalogId(catalogId);
|
|
queryCondition.setCatalogId(catalogId);
|