各个模块添加数据权限

main 16
hansha 2 years ago
parent 393dd53952
commit b37989329f

@ -71,6 +71,11 @@ public class SzxcBankcardInfoController extends BaseController
@PostMapping @PostMapping
public AjaxResult add(@RequestBody SzxcBankcardInfo szxcBankcardInfo) public AjaxResult add(@RequestBody SzxcBankcardInfo szxcBankcardInfo)
{ {
//根据前端传递过来的部门存储,如果没传则存储当前用户的部门
if(szxcBankcardInfo.getDeptId()==null){
szxcBankcardInfo.setDeptId(getDeptId());
}
szxcBankcardInfo.setUserId(getUserId());
return toAjax(szxcBankcardInfoService.insertSzxcBankcardInfo(szxcBankcardInfo)); return toAjax(szxcBankcardInfoService.insertSzxcBankcardInfo(szxcBankcardInfo));
} }

@ -1,25 +1,19 @@
package com.ruoyi.szxc.controller; package com.ruoyi.szxc.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.common.annotation.Log; import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController; import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult; import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType; import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.szxc.domain.SzxcCarInfo; import com.ruoyi.szxc.domain.SzxcCarInfo;
import com.ruoyi.szxc.service.ISzxcCarInfoService; import com.ruoyi.szxc.service.ISzxcCarInfoService;
import com.ruoyi.common.utils.poi.ExcelUtil; import org.springframework.beans.factory.annotation.Autowired;
import com.ruoyi.common.core.page.TableDataInfo; import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
/** /**
* Controller * Controller
@ -77,6 +71,11 @@ public class SzxcCarInfoController extends BaseController
@PostMapping @PostMapping
public AjaxResult add(@RequestBody SzxcCarInfo szxcCarInfo) public AjaxResult add(@RequestBody SzxcCarInfo szxcCarInfo)
{ {
//根据前端传递过来的部门存储,如果没传则存储当前用户的部门
if(szxcCarInfo.getDeptId()==null){
szxcCarInfo.setDeptId(getDeptId());
}
szxcCarInfo.setUserId(getUserId());
return toAjax(szxcCarInfoService.insertSzxcCarInfo(szxcCarInfo)); return toAjax(szxcCarInfoService.insertSzxcCarInfo(szxcCarInfo));
} }

@ -1,25 +1,19 @@
package com.ruoyi.szxc.controller; package com.ruoyi.szxc.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.common.annotation.Log; import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController; import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult; import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType; import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.szxc.domain.SzxcDiscussCentre; import com.ruoyi.szxc.domain.SzxcDiscussCentre;
import com.ruoyi.szxc.service.ISzxcDiscussCentreService; import com.ruoyi.szxc.service.ISzxcDiscussCentreService;
import com.ruoyi.common.utils.poi.ExcelUtil; import org.springframework.beans.factory.annotation.Autowired;
import com.ruoyi.common.core.page.TableDataInfo; import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
/** /**
* Controller * Controller
@ -77,6 +71,11 @@ public class SzxcDiscussCentreController extends BaseController
@PostMapping @PostMapping
public AjaxResult add(@RequestBody SzxcDiscussCentre szxcDiscussCentre) public AjaxResult add(@RequestBody SzxcDiscussCentre szxcDiscussCentre)
{ {
//根据前端传递过来的部门存储,如果没传则存储当前用户的部门
if(szxcDiscussCentre.getDeptId()==null){
szxcDiscussCentre.setDeptId(getDeptId());
}
szxcDiscussCentre.setUserId(getUserId());
return toAjax(szxcDiscussCentreService.insertSzxcDiscussCentre(szxcDiscussCentre)); return toAjax(szxcDiscussCentreService.insertSzxcDiscussCentre(szxcDiscussCentre));
} }

@ -1,25 +1,19 @@
package com.ruoyi.szxc.controller; package com.ruoyi.szxc.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.common.annotation.Log; import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController; import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult; import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType; import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.szxc.domain.SzxcDyManage; import com.ruoyi.szxc.domain.SzxcDyManage;
import com.ruoyi.szxc.service.ISzxcDyManageService; import com.ruoyi.szxc.service.ISzxcDyManageService;
import com.ruoyi.common.utils.poi.ExcelUtil; import org.springframework.beans.factory.annotation.Autowired;
import com.ruoyi.common.core.page.TableDataInfo; import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
/** /**
* Controller * Controller
@ -77,6 +71,11 @@ public class SzxcDyManageController extends BaseController
@PostMapping @PostMapping
public AjaxResult add(@RequestBody SzxcDyManage szxcDyManage) public AjaxResult add(@RequestBody SzxcDyManage szxcDyManage)
{ {
//根据前端传递过来的部门存储,如果没传则存储当前用户的部门
if(szxcDyManage.getDeptId()==null){
szxcDyManage.setDeptId(getDeptId());
}
szxcDyManage.setUserId(getUserId());
return toAjax(szxcDyManageService.insertSzxcDyManage(szxcDyManage)); return toAjax(szxcDyManageService.insertSzxcDyManage(szxcDyManage));
} }

@ -71,6 +71,11 @@ public class SzxcHjAddressController extends BaseController
@PostMapping @PostMapping
public AjaxResult add(@RequestBody SzxcHjAddress szxcHjAddress) public AjaxResult add(@RequestBody SzxcHjAddress szxcHjAddress)
{ {
//根据前端传递过来的部门存储,如果没传则存储当前用户的部门
if(szxcHjAddress.getDeptId()==null){
szxcHjAddress.setDeptId(getDeptId());
}
szxcHjAddress.setUserId(getUserId());
return szxcHjAddressService.insertSzxcHjAddress(szxcHjAddress); return szxcHjAddressService.insertSzxcHjAddress(szxcHjAddress);
} }

@ -71,6 +71,11 @@ public class SzxcHouseInfoController extends BaseController
@PostMapping @PostMapping
public AjaxResult add(@RequestBody SzxcHouseInfo szxcHouseInfo) public AjaxResult add(@RequestBody SzxcHouseInfo szxcHouseInfo)
{ {
//根据前端传递过来的部门存储,如果没传则存储当前用户的部门
if(szxcHouseInfo.getDeptId()==null){
szxcHouseInfo.setDeptId(getDeptId());
}
szxcHouseInfo.setUserId(getUserId());
return toAjax(szxcHouseInfoService.insertSzxcHouseInfo(szxcHouseInfo)); return toAjax(szxcHouseInfoService.insertSzxcHouseInfo(szxcHouseInfo));
} }

@ -1,25 +1,19 @@
package com.ruoyi.szxc.controller; package com.ruoyi.szxc.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.common.annotation.Log; import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController; import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult; import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType; import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.szxc.domain.SzxcLdInfo; import com.ruoyi.szxc.domain.SzxcLdInfo;
import com.ruoyi.szxc.service.ISzxcLdInfoService; import com.ruoyi.szxc.service.ISzxcLdInfoService;
import com.ruoyi.common.utils.poi.ExcelUtil; import org.springframework.beans.factory.annotation.Autowired;
import com.ruoyi.common.core.page.TableDataInfo; import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
/** /**
* Controller * Controller
@ -77,6 +71,11 @@ public class SzxcLdInfoController extends BaseController
@PostMapping @PostMapping
public AjaxResult add(@RequestBody SzxcLdInfo szxcLdInfo) public AjaxResult add(@RequestBody SzxcLdInfo szxcLdInfo)
{ {
//根据前端传递过来的部门存储,如果没传则存储当前用户的部门
if(szxcLdInfo.getDeptId()==null){
szxcLdInfo.setDeptId(getDeptId());
}
szxcLdInfo.setUserId(getUserId());
return toAjax(szxcLdInfoService.insertSzxcLdInfo(szxcLdInfo)); return toAjax(szxcLdInfoService.insertSzxcLdInfo(szxcLdInfo));
} }

@ -1,25 +1,19 @@
package com.ruoyi.szxc.controller; package com.ruoyi.szxc.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.common.annotation.Log; import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController; import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult; import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType; import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.szxc.domain.SzxcPlaceManage; import com.ruoyi.szxc.domain.SzxcPlaceManage;
import com.ruoyi.szxc.service.ISzxcPlaceManageService; import com.ruoyi.szxc.service.ISzxcPlaceManageService;
import com.ruoyi.common.utils.poi.ExcelUtil; import org.springframework.beans.factory.annotation.Autowired;
import com.ruoyi.common.core.page.TableDataInfo; import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
/** /**
* Controller * Controller
@ -77,6 +71,11 @@ public class SzxcPlaceManageController extends BaseController
@PostMapping @PostMapping
public AjaxResult add(@RequestBody SzxcPlaceManage szxcPlaceManage) public AjaxResult add(@RequestBody SzxcPlaceManage szxcPlaceManage)
{ {
//根据前端传递过来的部门存储,如果没传则存储当前用户的部门
if(szxcPlaceManage.getDeptId()==null){
szxcPlaceManage.setDeptId(getDeptId());
}
szxcPlaceManage.setUserId(getUserId());
return toAjax(szxcPlaceManageService.insertSzxcPlaceManage(szxcPlaceManage)); return toAjax(szxcPlaceManageService.insertSzxcPlaceManage(szxcPlaceManage));
} }

@ -1,25 +1,19 @@
package com.ruoyi.szxc.controller; package com.ruoyi.szxc.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.common.annotation.Log; import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController; import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult; import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType; import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.szxc.domain.SzxcPublicActivily; import com.ruoyi.szxc.domain.SzxcPublicActivily;
import com.ruoyi.szxc.service.ISzxcPublicActivilyService; import com.ruoyi.szxc.service.ISzxcPublicActivilyService;
import com.ruoyi.common.utils.poi.ExcelUtil; import org.springframework.beans.factory.annotation.Autowired;
import com.ruoyi.common.core.page.TableDataInfo; import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
/** /**
* Controller * Controller
@ -77,6 +71,11 @@ public class SzxcPublicActivilyController extends BaseController
@PostMapping @PostMapping
public AjaxResult add(@RequestBody SzxcPublicActivily szxcPublicActivily) public AjaxResult add(@RequestBody SzxcPublicActivily szxcPublicActivily)
{ {
//根据前端传递过来的部门存储,如果没传则存储当前用户的部门
if(szxcPublicActivily.getDeptId()==null){
szxcPublicActivily.setDeptId(getDeptId());
}
szxcPublicActivily.setUserId(getUserId());
return toAjax(szxcPublicActivilyService.insertSzxcPublicActivily(szxcPublicActivily)); return toAjax(szxcPublicActivilyService.insertSzxcPublicActivily(szxcPublicActivily));
} }

@ -1,25 +1,19 @@
package com.ruoyi.szxc.controller; package com.ruoyi.szxc.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.common.annotation.Log; import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController; import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult; import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType; import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.szxc.domain.SzxcSbzl; import com.ruoyi.szxc.domain.SzxcSbzl;
import com.ruoyi.szxc.service.ISzxcSbzlService; import com.ruoyi.szxc.service.ISzxcSbzlService;
import com.ruoyi.common.utils.poi.ExcelUtil; import org.springframework.beans.factory.annotation.Autowired;
import com.ruoyi.common.core.page.TableDataInfo; import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
/** /**
* Controller * Controller
@ -88,6 +82,11 @@ public class SzxcSbzlController extends BaseController
@PutMapping @PutMapping
public AjaxResult edit(@RequestBody SzxcSbzl szxcSbzl) public AjaxResult edit(@RequestBody SzxcSbzl szxcSbzl)
{ {
//根据前端传递过来的部门存储,如果没传则存储当前用户的部门
if(szxcSbzl.getDeptId()==null){
szxcSbzl.setDeptId(getDeptId());
}
szxcSbzl.setUserId(getUserId());
return toAjax(szxcSbzlService.updateSzxcSbzl(szxcSbzl)); return toAjax(szxcSbzlService.updateSzxcSbzl(szxcSbzl));
} }

@ -1,25 +1,19 @@
package com.ruoyi.szxc.controller; package com.ruoyi.szxc.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.common.annotation.Log; import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController; import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult; import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType; import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.szxc.domain.SzxcXqInfo; import com.ruoyi.szxc.domain.SzxcXqInfo;
import com.ruoyi.szxc.service.ISzxcXqInfoService; import com.ruoyi.szxc.service.ISzxcXqInfoService;
import com.ruoyi.common.utils.poi.ExcelUtil; import org.springframework.beans.factory.annotation.Autowired;
import com.ruoyi.common.core.page.TableDataInfo; import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
/** /**
* Controller * Controller
@ -77,6 +71,11 @@ public class SzxcXqInfoController extends BaseController
@PostMapping @PostMapping
public AjaxResult add(@RequestBody SzxcXqInfo szxcXqInfo) public AjaxResult add(@RequestBody SzxcXqInfo szxcXqInfo)
{ {
//根据前端传递过来的部门存储,如果没传则存储当前用户的部门
if(szxcXqInfo.getDeptId()==null){
szxcXqInfo.setDeptId(getDeptId());
}
szxcXqInfo.setUserId(getUserId());
return toAjax(szxcXqInfoService.insertSzxcXqInfo(szxcXqInfo)); return toAjax(szxcXqInfoService.insertSzxcXqInfo(szxcXqInfo));
} }

@ -1,25 +1,19 @@
package com.ruoyi.szxc.controller; package com.ruoyi.szxc.controller;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.common.annotation.Log; import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController; import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult; import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType; import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.szxc.domain.SzxcZcss; import com.ruoyi.szxc.domain.SzxcZcss;
import com.ruoyi.szxc.service.ISzxcZcssService; import com.ruoyi.szxc.service.ISzxcZcssService;
import com.ruoyi.common.utils.poi.ExcelUtil; import org.springframework.beans.factory.annotation.Autowired;
import com.ruoyi.common.core.page.TableDataInfo; import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
/** /**
* Controller * Controller
@ -77,6 +71,10 @@ public class SzxcZcssController extends BaseController
@PostMapping @PostMapping
public AjaxResult add(@RequestBody SzxcZcss szxcZcss) public AjaxResult add(@RequestBody SzxcZcss szxcZcss)
{ {
//根据前端传递过来的部门存储,如果没传则存储当前用户的部门
if(szxcZcss.getDeptId()==null){
szxcZcss.setDeptId(getDeptId());
}
return toAjax(szxcZcssService.insertSzxcZcss(szxcZcss)); return toAjax(szxcZcssService.insertSzxcZcss(szxcZcss));
} }

@ -71,6 +71,11 @@ public class SzxcZcssxjController extends BaseController
@PostMapping @PostMapping
public AjaxResult add(@RequestBody SzxcZcssxj szxcZcssxj) public AjaxResult add(@RequestBody SzxcZcssxj szxcZcssxj)
{ {
//根据前端传递过来的部门存储,如果没传则存储当前用户的部门
if(szxcZcssxj.getDeptId()==null){
szxcZcssxj.setDeptId(getDeptId());
}
szxcZcssxj.setUserId(getUserId());
return toAjax(szxcZcssxjService.insertSzxcZcssxj(szxcZcssxj)); return toAjax(szxcZcssxjService.insertSzxcZcssxj(szxcZcssxj));
} }

@ -1,5 +1,6 @@
package com.ruoyi.szxc.service.impl; package com.ruoyi.szxc.service.impl;
import com.ruoyi.common.annotation.DataScope;
import com.ruoyi.common.utils.DateUtils; import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.szxc.domain.SzxcBankcardInfo; import com.ruoyi.szxc.domain.SzxcBankcardInfo;
import com.ruoyi.szxc.mapper.SzxcBankcardInfoMapper; import com.ruoyi.szxc.mapper.SzxcBankcardInfoMapper;
@ -41,6 +42,7 @@ public class SzxcBankcardInfoServiceImpl implements ISzxcBankcardInfoService
* @return * @return
*/ */
@Override @Override
@DataScope(deptAlias = "b")
public List<SzxcBankcardInfo> selectSzxcBankcardInfoList(SzxcBankcardInfo szxcBankcardInfo) public List<SzxcBankcardInfo> selectSzxcBankcardInfoList(SzxcBankcardInfo szxcBankcardInfo)
{ {
return szxcBankcardInfoMapper.selectSzxcBankcardInfoList(szxcBankcardInfo); return szxcBankcardInfoMapper.selectSzxcBankcardInfoList(szxcBankcardInfo);

@ -1,12 +1,14 @@
package com.ruoyi.szxc.service.impl; package com.ruoyi.szxc.service.impl;
import java.util.List; import com.ruoyi.common.annotation.DataScope;
import com.ruoyi.common.utils.DateUtils; import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.szxc.mapper.SzxcCarInfoMapper;
import com.ruoyi.szxc.domain.SzxcCarInfo; import com.ruoyi.szxc.domain.SzxcCarInfo;
import com.ruoyi.szxc.mapper.SzxcCarInfoMapper;
import com.ruoyi.szxc.service.ISzxcCarInfoService; import com.ruoyi.szxc.service.ISzxcCarInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
/** /**
* Service * Service
@ -39,6 +41,7 @@ public class SzxcCarInfoServiceImpl implements ISzxcCarInfoService
* @return * @return
*/ */
@Override @Override
@DataScope(deptAlias = "c")
public List<SzxcCarInfo> selectSzxcCarInfoList(SzxcCarInfo szxcCarInfo) public List<SzxcCarInfo> selectSzxcCarInfoList(SzxcCarInfo szxcCarInfo)
{ {
return szxcCarInfoMapper.selectSzxcCarInfoList(szxcCarInfo); return szxcCarInfoMapper.selectSzxcCarInfoList(szxcCarInfo);

@ -1,12 +1,14 @@
package com.ruoyi.szxc.service.impl; package com.ruoyi.szxc.service.impl;
import java.util.List; import com.ruoyi.common.annotation.DataScope;
import com.ruoyi.common.utils.DateUtils; import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.szxc.mapper.SzxcDiscussCentreMapper;
import com.ruoyi.szxc.domain.SzxcDiscussCentre; import com.ruoyi.szxc.domain.SzxcDiscussCentre;
import com.ruoyi.szxc.mapper.SzxcDiscussCentreMapper;
import com.ruoyi.szxc.service.ISzxcDiscussCentreService; import com.ruoyi.szxc.service.ISzxcDiscussCentreService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
/** /**
* Service * Service
@ -39,6 +41,7 @@ public class SzxcDiscussCentreServiceImpl implements ISzxcDiscussCentreService
* @return * @return
*/ */
@Override @Override
@DataScope(deptAlias = "d")
public List<SzxcDiscussCentre> selectSzxcDiscussCentreList(SzxcDiscussCentre szxcDiscussCentre) public List<SzxcDiscussCentre> selectSzxcDiscussCentreList(SzxcDiscussCentre szxcDiscussCentre)
{ {
return szxcDiscussCentreMapper.selectSzxcDiscussCentreList(szxcDiscussCentre); return szxcDiscussCentreMapper.selectSzxcDiscussCentreList(szxcDiscussCentre);

@ -1,5 +1,6 @@
package com.ruoyi.szxc.service.impl; package com.ruoyi.szxc.service.impl;
import com.ruoyi.common.annotation.DataScope;
import com.ruoyi.common.utils.DateUtils; import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.szxc.domain.SzxcDyManage; import com.ruoyi.szxc.domain.SzxcDyManage;
import com.ruoyi.szxc.mapper.SzxcDyManageMapper; import com.ruoyi.szxc.mapper.SzxcDyManageMapper;
@ -40,6 +41,7 @@ public class SzxcDyManageServiceImpl implements ISzxcDyManageService
* @return * @return
*/ */
@Override @Override
@DataScope(deptAlias = "d")
public List<SzxcDyManage> selectSzxcDyManageList(SzxcDyManage szxcDyManage) public List<SzxcDyManage> selectSzxcDyManageList(SzxcDyManage szxcDyManage)
{ {
return szxcDyManageMapper.selectSzxcDyManageList(szxcDyManage); return szxcDyManageMapper.selectSzxcDyManageList(szxcDyManage);

@ -1,5 +1,6 @@
package com.ruoyi.szxc.service.impl; package com.ruoyi.szxc.service.impl;
import com.ruoyi.common.annotation.DataScope;
import com.ruoyi.common.core.domain.AjaxResult; import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.utils.DateUtils; import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.szxc.domain.SzxcHjAddress; import com.ruoyi.szxc.domain.SzxcHjAddress;
@ -41,6 +42,7 @@ public class SzxcHjAddressServiceImpl implements ISzxcHjAddressService
* @return * @return
*/ */
@Override @Override
@DataScope(deptAlias = "a")
public List<SzxcHjAddress> selectSzxcHjAddressList(SzxcHjAddress szxcHjAddress) public List<SzxcHjAddress> selectSzxcHjAddressList(SzxcHjAddress szxcHjAddress)
{ {
return szxcHjAddressMapper.selectSzxcHjAddressList(szxcHjAddress); return szxcHjAddressMapper.selectSzxcHjAddressList(szxcHjAddress);

@ -1,5 +1,6 @@
package com.ruoyi.szxc.service.impl; package com.ruoyi.szxc.service.impl;
import com.ruoyi.common.annotation.DataScope;
import com.ruoyi.common.utils.DateUtils; import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.szxc.domain.SzxcHouseInfo; import com.ruoyi.szxc.domain.SzxcHouseInfo;
import com.ruoyi.szxc.mapper.SzxcHouseInfoMapper; import com.ruoyi.szxc.mapper.SzxcHouseInfoMapper;
@ -40,6 +41,7 @@ public class SzxcHouseInfoServiceImpl implements ISzxcHouseInfoService
* @return * @return
*/ */
@Override @Override
@DataScope(deptAlias = "h")
public List<SzxcHouseInfo> selectSzxcHouseInfoList(SzxcHouseInfo szxcHouseInfo) public List<SzxcHouseInfo> selectSzxcHouseInfoList(SzxcHouseInfo szxcHouseInfo)
{ {
return szxcHouseInfoMapper.selectSzxcHouseInfoList(szxcHouseInfo); return szxcHouseInfoMapper.selectSzxcHouseInfoList(szxcHouseInfo);

@ -1,12 +1,14 @@
package com.ruoyi.szxc.service.impl; package com.ruoyi.szxc.service.impl;
import java.util.List; import com.ruoyi.common.annotation.DataScope;
import com.ruoyi.common.utils.DateUtils; import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.szxc.mapper.SzxcLdInfoMapper;
import com.ruoyi.szxc.domain.SzxcLdInfo; import com.ruoyi.szxc.domain.SzxcLdInfo;
import com.ruoyi.szxc.mapper.SzxcLdInfoMapper;
import com.ruoyi.szxc.service.ISzxcLdInfoService; import com.ruoyi.szxc.service.ISzxcLdInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
/** /**
* Service * Service
@ -39,6 +41,7 @@ public class SzxcLdInfoServiceImpl implements ISzxcLdInfoService
* @return * @return
*/ */
@Override @Override
@DataScope(deptAlias = "l")
public List<SzxcLdInfo> selectSzxcLdInfoList(SzxcLdInfo szxcLdInfo) public List<SzxcLdInfo> selectSzxcLdInfoList(SzxcLdInfo szxcLdInfo)
{ {
return szxcLdInfoMapper.selectSzxcLdInfoList(szxcLdInfo); return szxcLdInfoMapper.selectSzxcLdInfoList(szxcLdInfo);

@ -1,12 +1,14 @@
package com.ruoyi.szxc.service.impl; package com.ruoyi.szxc.service.impl;
import java.util.List; import com.ruoyi.common.annotation.DataScope;
import com.ruoyi.common.utils.DateUtils; import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.szxc.mapper.SzxcPlaceManageMapper;
import com.ruoyi.szxc.domain.SzxcPlaceManage; import com.ruoyi.szxc.domain.SzxcPlaceManage;
import com.ruoyi.szxc.mapper.SzxcPlaceManageMapper;
import com.ruoyi.szxc.service.ISzxcPlaceManageService; import com.ruoyi.szxc.service.ISzxcPlaceManageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
/** /**
* Service * Service
@ -39,6 +41,7 @@ public class SzxcPlaceManageServiceImpl implements ISzxcPlaceManageService
* @return * @return
*/ */
@Override @Override
@DataScope(deptAlias = "p")
public List<SzxcPlaceManage> selectSzxcPlaceManageList(SzxcPlaceManage szxcPlaceManage) public List<SzxcPlaceManage> selectSzxcPlaceManageList(SzxcPlaceManage szxcPlaceManage)
{ {
return szxcPlaceManageMapper.selectSzxcPlaceManageList(szxcPlaceManage); return szxcPlaceManageMapper.selectSzxcPlaceManageList(szxcPlaceManage);

@ -1,12 +1,14 @@
package com.ruoyi.szxc.service.impl; package com.ruoyi.szxc.service.impl;
import java.util.List; import com.ruoyi.common.annotation.DataScope;
import com.ruoyi.common.utils.DateUtils; import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.szxc.mapper.SzxcPublicActivilyMapper;
import com.ruoyi.szxc.domain.SzxcPublicActivily; import com.ruoyi.szxc.domain.SzxcPublicActivily;
import com.ruoyi.szxc.mapper.SzxcPublicActivilyMapper;
import com.ruoyi.szxc.service.ISzxcPublicActivilyService; import com.ruoyi.szxc.service.ISzxcPublicActivilyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
/** /**
* Service * Service
@ -39,6 +41,7 @@ public class SzxcPublicActivilyServiceImpl implements ISzxcPublicActivilyService
* @return * @return
*/ */
@Override @Override
@DataScope(deptAlias = "p")
public List<SzxcPublicActivily> selectSzxcPublicActivilyList(SzxcPublicActivily szxcPublicActivily) public List<SzxcPublicActivily> selectSzxcPublicActivilyList(SzxcPublicActivily szxcPublicActivily)
{ {
return szxcPublicActivilyMapper.selectSzxcPublicActivilyList(szxcPublicActivily); return szxcPublicActivilyMapper.selectSzxcPublicActivilyList(szxcPublicActivily);

@ -1,12 +1,14 @@
package com.ruoyi.szxc.service.impl; package com.ruoyi.szxc.service.impl;
import java.util.List; import com.ruoyi.common.annotation.DataScope;
import com.ruoyi.common.utils.DateUtils; import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.szxc.mapper.SzxcSbzlMapper;
import com.ruoyi.szxc.domain.SzxcSbzl; import com.ruoyi.szxc.domain.SzxcSbzl;
import com.ruoyi.szxc.mapper.SzxcSbzlMapper;
import com.ruoyi.szxc.service.ISzxcSbzlService; import com.ruoyi.szxc.service.ISzxcSbzlService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
/** /**
* Service * Service
@ -39,6 +41,7 @@ public class SzxcSbzlServiceImpl implements ISzxcSbzlService
* @return * @return
*/ */
@Override @Override
@DataScope(deptAlias = "s")
public List<SzxcSbzl> selectSzxcSbzlList(SzxcSbzl szxcSbzl) public List<SzxcSbzl> selectSzxcSbzlList(SzxcSbzl szxcSbzl)
{ {
return szxcSbzlMapper.selectSzxcSbzlList(szxcSbzl); return szxcSbzlMapper.selectSzxcSbzlList(szxcSbzl);

@ -1,12 +1,14 @@
package com.ruoyi.szxc.service.impl; package com.ruoyi.szxc.service.impl;
import java.util.List; import com.ruoyi.common.annotation.DataScope;
import com.ruoyi.common.utils.DateUtils; import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.szxc.mapper.SzxcXqInfoMapper;
import com.ruoyi.szxc.domain.SzxcXqInfo; import com.ruoyi.szxc.domain.SzxcXqInfo;
import com.ruoyi.szxc.mapper.SzxcXqInfoMapper;
import com.ruoyi.szxc.service.ISzxcXqInfoService; import com.ruoyi.szxc.service.ISzxcXqInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
/** /**
* Service * Service
@ -39,6 +41,7 @@ public class SzxcXqInfoServiceImpl implements ISzxcXqInfoService
* @return * @return
*/ */
@Override @Override
@DataScope(deptAlias = "x")
public List<SzxcXqInfo> selectSzxcXqInfoList(SzxcXqInfo szxcXqInfo) public List<SzxcXqInfo> selectSzxcXqInfoList(SzxcXqInfo szxcXqInfo)
{ {
return szxcXqInfoMapper.selectSzxcXqInfoList(szxcXqInfo); return szxcXqInfoMapper.selectSzxcXqInfoList(szxcXqInfo);

@ -1,5 +1,6 @@
package com.ruoyi.szxc.service.impl; package com.ruoyi.szxc.service.impl;
import com.ruoyi.common.annotation.DataScope;
import com.ruoyi.common.utils.DateUtils; import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.szxc.domain.SzxcZcss; import com.ruoyi.szxc.domain.SzxcZcss;
import com.ruoyi.szxc.mapper.SzxcZcssMapper; import com.ruoyi.szxc.mapper.SzxcZcssMapper;
@ -40,6 +41,7 @@ public class SzxcZcssServiceImpl implements ISzxcZcssService
* @return * @return
*/ */
@Override @Override
@DataScope(deptAlias = "z")
public List<SzxcZcss> selectSzxcZcssList(SzxcZcss szxcZcss) public List<SzxcZcss> selectSzxcZcssList(SzxcZcss szxcZcss)
{ {
return szxcZcssMapper.selectSzxcZcssList(szxcZcss); return szxcZcssMapper.selectSzxcZcssList(szxcZcss);

@ -1,12 +1,14 @@
package com.ruoyi.szxc.service.impl; package com.ruoyi.szxc.service.impl;
import java.util.List; import com.ruoyi.common.annotation.DataScope;
import com.ruoyi.common.utils.DateUtils; import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.szxc.mapper.SzxcZcssxjMapper;
import com.ruoyi.szxc.domain.SzxcZcssxj; import com.ruoyi.szxc.domain.SzxcZcssxj;
import com.ruoyi.szxc.mapper.SzxcZcssxjMapper;
import com.ruoyi.szxc.service.ISzxcZcssxjService; import com.ruoyi.szxc.service.ISzxcZcssxjService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
/** /**
* Service * Service
@ -39,6 +41,7 @@ public class SzxcZcssxjServiceImpl implements ISzxcZcssxjService
* @return * @return
*/ */
@Override @Override
@DataScope(deptAlias = "z")
public List<SzxcZcssxj> selectSzxcZcssxjList(SzxcZcssxj szxcZcssxj) public List<SzxcZcssxj> selectSzxcZcssxjList(SzxcZcssxj szxcZcssxj)
{ {
return szxcZcssxjMapper.selectSzxcZcssxjList(szxcZcssxj); return szxcZcssxjMapper.selectSzxcZcssxjList(szxcZcssxj);

@ -28,7 +28,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</sql> </sql>
<select id="selectSzxcBankcardInfoList" parameterType="SzxcBankcardInfo" resultMap="SzxcBankcardInfoResult"> <select id="selectSzxcBankcardInfoList" parameterType="SzxcBankcardInfo" resultMap="SzxcBankcardInfoResult">
<include refid="selectSzxcBankcardInfoVo"/> <include refid="selectSzxcBankcardInfoVo"/> as b
<where> <where>
<if test="ownerId != null "> and owner_id = #{ownerId}</if> <if test="ownerId != null "> and owner_id = #{ownerId}</if>
<if test="ownerName != null and ownerName != ''"> and owner_name like concat('%', #{ownerName}, '%')</if> <if test="ownerName != null and ownerName != ''"> and owner_name like concat('%', #{ownerName}, '%')</if>
@ -38,9 +38,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="bankName != null and bankName != ''"> and bank_name like concat('%', #{bankName}, '%')</if> <if test="bankName != null and bankName != ''"> and bank_name like concat('%', #{bankName}, '%')</if>
<if test="bankAddress != null and bankAddress != ''"> and bank_address = #{bankAddress}</if> <if test="bankAddress != null and bankAddress != ''"> and bank_address = #{bankAddress}</if>
<if test="defaultCard != null and defaultCard != ''"> and default_card = #{defaultCard}</if> <if test="defaultCard != null and defaultCard != ''"> and default_card = #{defaultCard}</if>
<if test="deptId != null "> and dept_id = #{deptId}</if> <!--<if test="deptId != null "> and dept_id = #{deptId}</if>-->
<if test="deptName != null and deptName != ''"> and dept_name like concat('%', #{deptName}, '%')</if> <if test="deptName != null and deptName != ''"> and dept_name like concat('%', #{deptName}, '%')</if>
<if test="userId != null "> and user_id = #{userId}</if> <if test="userId != null "> and user_id = #{userId}</if>
<if test="params.dataScope != null and params.dataScope !=''">
${params.dataScope}
</if>
</where> </where>
</select> </select>

@ -29,7 +29,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</sql> </sql>
<select id="selectSzxcCarInfoList" parameterType="SzxcCarInfo" resultMap="SzxcCarInfoResult"> <select id="selectSzxcCarInfoList" parameterType="SzxcCarInfo" resultMap="SzxcCarInfoResult">
<include refid="selectSzxcCarInfoVo"/> <include refid="selectSzxcCarInfoVo"/> as c
<where> <where>
<if test="ownerId != null "> and owner_id = #{ownerId}</if> <if test="ownerId != null "> and owner_id = #{ownerId}</if>
<if test="ownerName != null and ownerName != ''"> and owner_name like concat('%', #{ownerName}, '%')</if> <if test="ownerName != null and ownerName != ''"> and owner_name like concat('%', #{ownerName}, '%')</if>
@ -42,6 +42,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="deptId != null "> and dept_id = #{deptId}</if> <if test="deptId != null "> and dept_id = #{deptId}</if>
<if test="deptName != null and deptName != ''"> and dept_name like concat('%', #{deptName}, '%')</if> <if test="deptName != null and deptName != ''"> and dept_name like concat('%', #{deptName}, '%')</if>
<if test="userId != null "> and user_id = #{userId}</if> <if test="userId != null "> and user_id = #{userId}</if>
<if test="params.dataScope != null and params.dataScope !=''">
${params.dataScope}
</if>
</where> </where>
</select> </select>

@ -27,7 +27,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</sql> </sql>
<select id="selectSzxcDiscussCentreList" parameterType="SzxcDiscussCentre" resultMap="SzxcDiscussCentreResult"> <select id="selectSzxcDiscussCentreList" parameterType="SzxcDiscussCentre" resultMap="SzxcDiscussCentreResult">
<include refid="selectSzxcDiscussCentreVo"/> <include refid="selectSzxcDiscussCentreVo"/> d
<where> <where>
<if test="title != null and title != ''"> and title = #{title}</if> <if test="title != null and title != ''"> and title = #{title}</if>
<if test="content != null and content != ''"> and content = #{content}</if> <if test="content != null and content != ''"> and content = #{content}</if>
@ -39,6 +39,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="userId != null "> and user_id = #{userId}</if> <if test="userId != null "> and user_id = #{userId}</if>
<if test="deptId != null "> and dept_id = #{deptId}</if> <if test="deptId != null "> and dept_id = #{deptId}</if>
<if test="deptName != null and deptName != ''"> and dept_name like concat('%', #{deptName}, '%')</if> <if test="deptName != null and deptName != ''"> and dept_name like concat('%', #{deptName}, '%')</if>
<if test="params.dataScope != null and params.dataScope !=''">
${params.dataScope}
</if>
</where> </where>
order by create_time DESC order by create_time DESC
</select> </select>

@ -30,7 +30,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</sql> </sql>
<select id="selectSzxcDyManageList" parameterType="SzxcDyManage" resultMap="SzxcDyManageResult"> <select id="selectSzxcDyManageList" parameterType="SzxcDyManage" resultMap="SzxcDyManageResult">
<include refid="selectSzxcDyManageVo"/> <include refid="selectSzxcDyManageVo"/> d
<where> <where>
<if test="jmId != null "> and jm_id = #{jmId}</if> <if test="jmId != null "> and jm_id = #{jmId}</if>
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if> <if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
@ -44,6 +44,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="post != null and post != ''"> and post = #{post}</if> <if test="post != null and post != ''"> and post = #{post}</if>
<if test="type != null and type != ''"> and type = #{type}</if> <if test="type != null and type != ''"> and type = #{type}</if>
<if test="userId != null "> and user_id = #{userId}</if> <if test="userId != null "> and user_id = #{userId}</if>
<if test="params.dataScope != null and params.dataScope !=''">
${params.dataScope}
</if>
</where> </where>
</select> </select>

@ -25,16 +25,19 @@
</sql> </sql>
<select id="selectSzxcHjAddressList" parameterType="SzxcHjAddress" resultMap="SzxcHjAddressResult"> <select id="selectSzxcHjAddressList" parameterType="SzxcHjAddress" resultMap="SzxcHjAddressResult">
<include refid="selectSzxcHjAddressVo"/> <include refid="selectSzxcHjAddressVo"/> as a
<where> <where>
<if test="jmId != null "> and jm_id = #{jmId}</if> <if test="jmId != null "> and jm_id = #{jmId}</if>
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if> <if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
<if test="idCard != null and idCard != ''"> and id_card = #{idCard}</if> <if test="idCard != null and idCard != ''"> and id_card = #{idCard}</if>
<if test="acountNo != null "> and acount_no = #{acountNo}</if> <if test="acountNo != null "> and acount_no = #{acountNo}</if>
<if test="hjAddress != null and hjAddress != ''"> and hj_address = #{hjAddress}</if> <if test="hjAddress != null and hjAddress != ''"> and hj_address = #{hjAddress}</if>
<if test="deptId != null "> and dept_id = #{deptId}</if> <!-- <if test="deptId != null "> and dept_id = #{deptId}</if>-->
<if test="deptName != null and deptName != ''"> and dept_name like concat('%', #{deptName}, '%')</if> <if test="deptName != null and deptName != ''"> and dept_name like concat('%', #{deptName}, '%')</if>
<if test="userId != null "> and user_id = #{userId}</if> <if test="userId != null "> and user_id = #{userId}</if>
<if test="params.dataScope != null and params.dataScope !=''">
${params.dataScope}
</if>
</where> </where>
</select> </select>

@ -36,7 +36,7 @@
</sql> </sql>
<select id="selectSzxcHouseInfoList" parameterType="SzxcHouseInfo" resultMap="SzxcHouseInfoResult"> <select id="selectSzxcHouseInfoList" parameterType="SzxcHouseInfo" resultMap="SzxcHouseInfoResult">
<include refid="selectSzxcHouseInfoVo"/> <include refid="selectSzxcHouseInfoVo"/> as h
<where> <where>
<if test="ownerId != null "> and owner_id = #{ownerId}</if> <if test="ownerId != null "> and owner_id = #{ownerId}</if>
<if test="ownerName != null and ownerName != ''"> and owner_name like concat('%', #{ownerName}, '%')</if> <if test="ownerName != null and ownerName != ''"> and owner_name like concat('%', #{ownerName}, '%')</if>
@ -54,9 +54,12 @@
<if test="toiletType != null and toiletType != ''"> and toilet_type = #{toiletType}</if> <if test="toiletType != null and toiletType != ''"> and toilet_type = #{toiletType}</if>
<if test="houseIntro != null and houseIntro != ''"> and house_intro = #{houseIntro}</if> <if test="houseIntro != null and houseIntro != ''"> and house_intro = #{houseIntro}</if>
<if test="housePicture != null and housePicture != ''"> and house_picture = #{housePicture}</if> <if test="housePicture != null and housePicture != ''"> and house_picture = #{housePicture}</if>
<if test="deptId != null "> and dept_id = #{deptId}</if> <!--<if test="deptId != null "> and dept_id = #{deptId}</if>-->
<if test="deptName != null and deptName != ''"> and dept_name like concat('%', #{deptName}, '%')</if> <if test="deptName != null and deptName != ''"> and dept_name like concat('%', #{deptName}, '%')</if>
<if test="userId != null "> and user_id = #{userId}</if> <if test="userId != null "> and user_id = #{userId}</if>
<if test="params.dataScope != null and params.dataScope !=''">
${params.dataScope}
</if>
</where> </where>
</select> </select>

@ -31,7 +31,7 @@
</sql> </sql>
<select id="selectSzxcLdInfoList" parameterType="SzxcLdInfo" resultMap="SzxcLdInfoResult"> <select id="selectSzxcLdInfoList" parameterType="SzxcLdInfo" resultMap="SzxcLdInfoResult">
<include refid="selectSzxcLdInfoVo"/> <include refid="selectSzxcLdInfoVo"/> as l
<where> <where>
<if test="xqId != null "> and xq_id = #{xqId}</if> <if test="xqId != null "> and xq_id = #{xqId}</if>
<if test="xqName != null and xqName != ''"> and xq_name like concat('%', #{xqName}, '%')</if> <if test="xqName != null and xqName != ''"> and xq_name like concat('%', #{xqName}, '%')</if>
@ -47,6 +47,9 @@
<if test="deptId != null "> and dept_id = #{deptId}</if> <if test="deptId != null "> and dept_id = #{deptId}</if>
<if test="deptName != null and deptName != ''"> and dept_name like concat('%', #{deptName}, '%')</if> <if test="deptName != null and deptName != ''"> and dept_name like concat('%', #{deptName}, '%')</if>
<if test="userId != null "> and user_id = #{userId}</if> <if test="userId != null "> and user_id = #{userId}</if>
<if test="params.dataScope != null and params.dataScope !=''">
${params.dataScope}
</if>
</where> </where>
</select> </select>

@ -33,7 +33,7 @@
</sql> </sql>
<select id="selectSzxcPlaceManageList" parameterType="SzxcPlaceManage" resultMap="SzxcPlaceManageResult"> <select id="selectSzxcPlaceManageList" parameterType="SzxcPlaceManage" resultMap="SzxcPlaceManageResult">
<include refid="selectSzxcPlaceManageVo"/> <include refid="selectSzxcPlaceManageVo"/> as p
<where> <where>
<if test="csName != null and csName != ''"> and cs_name like concat('%', #{csName}, '%')</if> <if test="csName != null and csName != ''"> and cs_name like concat('%', #{csName}, '%')</if>
<if test="hyType != null and hyType != ''"> and hy_type = #{hyType}</if> <if test="hyType != null and hyType != ''"> and hy_type = #{hyType}</if>
@ -47,9 +47,12 @@
<if test="yyqx != null and yyqx != ''"> and yyqx = #{yyqx}</if> <if test="yyqx != null and yyqx != ''"> and yyqx = #{yyqx}</if>
<if test="tyshxyCode != null and tyshxyCode != ''"> and tyshxy_code = #{tyshxyCode}</if> <if test="tyshxyCode != null and tyshxyCode != ''"> and tyshxy_code = #{tyshxyCode}</if>
<if test="yyzzPicture != null and yyzzPicture != ''"> and yyzz_picture = #{yyzzPicture}</if> <if test="yyzzPicture != null and yyzzPicture != ''"> and yyzz_picture = #{yyzzPicture}</if>
<if test="deptId != null "> and dept_id = #{deptId}</if> <!--<if test="deptId != null "> and dept_id = #{deptId}</if>-->
<if test="deptName != null and deptName != ''"> and dept_name like concat('%', #{deptName}, '%')</if> <if test="deptName != null and deptName != ''"> and dept_name like concat('%', #{deptName}, '%')</if>
<if test="userId != null "> and user_id = #{userId}</if> <if test="userId != null "> and user_id = #{userId}</if>
<if test="params.dataScope != null and params.dataScope !=''">
${params.dataScope}
</if>
</where> </where>
</select> </select>

@ -28,7 +28,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</sql> </sql>
<select id="selectSzxcPublicActivilyList" parameterType="SzxcPublicActivily" resultMap="SzxcPublicActivilyResult"> <select id="selectSzxcPublicActivilyList" parameterType="SzxcPublicActivily" resultMap="SzxcPublicActivilyResult">
<include refid="selectSzxcPublicActivilyVo"/> <include refid="selectSzxcPublicActivilyVo"/> as p
<where> <where>
<if test="title != null and title != ''"> and title = #{title}</if> <if test="title != null and title != ''"> and title = #{title}</if>
<if test="leader != null and leader != ''"> and leader = #{leader}</if> <if test="leader != null and leader != ''"> and leader = #{leader}</if>
@ -37,9 +37,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="startTime != null "> and start_time = #{startTime}</if> <if test="startTime != null "> and start_time = #{startTime}</if>
<if test="endTime != null "> and end_time = #{endTime}</if> <if test="endTime != null "> and end_time = #{endTime}</if>
<if test="status != null and status != ''"> and status = #{status}</if> <if test="status != null and status != ''"> and status = #{status}</if>
<if test="deptId != null "> and dept_id = #{deptId}</if> <!--<if test="deptId != null "> and dept_id = #{deptId}</if>-->
<if test="deptName != null and deptName != ''"> and dept_name like concat('%', #{deptName}, '%')</if> <if test="deptName != null and deptName != ''"> and dept_name like concat('%', #{deptName}, '%')</if>
<if test="userId != null "> and user_id = #{userId}</if> <if test="userId != null "> and user_id = #{userId}</if>
<!--数据范围过滤-->
<if test="params.dataScope != null and params.dataScope != ''">
${params.dataScope}
</if>
</where> </where>
order by create_time DESC order by create_time DESC
</select> </select>

@ -25,16 +25,19 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</sql> </sql>
<select id="selectSzxcSbzlList" parameterType="SzxcSbzl" resultMap="SzxcSbzlResult"> <select id="selectSzxcSbzlList" parameterType="SzxcSbzl" resultMap="SzxcSbzlResult">
<include refid="selectSzxcSbzlVo"/> <include refid="selectSzxcSbzlVo"/> as s
<where> <where>
<if test="subName != null and subName != ''"> and sub_name like concat('%', #{subName}, '%')</if> <if test="subName != null and subName != ''"> and sub_name like concat('%', #{subName}, '%')</if>
<if test="subDate != null "> and sub_date = #{subDate}</if> <if test="subDate != null "> and sub_date = #{subDate}</if>
<if test="subType != null and subType != ''"> and sub_type = #{subType}</if> <if test="subType != null and subType != ''"> and sub_type = #{subType}</if>
<if test="title != null and title != ''"> and title = #{title}</if> <if test="title != null and title != ''"> and title = #{title}</if>
<if test="content != null and content != ''"> and content = #{content}</if> <if test="content != null and content != ''"> and content = #{content}</if>
<if test="deptId != null "> and dept_id = #{deptId}</if> <!--<if test="deptId != null "> and dept_id = #{deptId}</if>-->
<if test="deptName != null and deptName != ''"> and dept_name like concat('%', #{deptName}, '%')</if> <if test="deptName != null and deptName != ''"> and dept_name like concat('%', #{deptName}, '%')</if>
<if test="userId != null "> and user_id = #{userId}</if> <if test="userId != null "> and user_id = #{userId}</if>
<if test="params.dataScope != null and params.dataScope !=''">
${params.dataScope}
</if>
</where> </where>
</select> </select>

@ -31,7 +31,7 @@
</sql> </sql>
<select id="selectSzxcXqInfoList" parameterType="SzxcXqInfo" resultMap="SzxcXqInfoResult"> <select id="selectSzxcXqInfoList" parameterType="SzxcXqInfo" resultMap="SzxcXqInfoResult">
<include refid="selectSzxcXqInfoVo"/> <include refid="selectSzxcXqInfoVo"/> as x
<where> <where>
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if> <if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
<if test="xqType != null and xqType != ''"> and xq_type = #{xqType}</if> <if test="xqType != null and xqType != ''"> and xq_type = #{xqType}</if>
@ -44,9 +44,12 @@
<if test="xqAddress != null and xqAddress != ''"> and xq_address = #{xqAddress}</if> <if test="xqAddress != null and xqAddress != ''"> and xq_address = #{xqAddress}</if>
<if test="buildDate != null "> and build_date = #{buildDate}</if> <if test="buildDate != null "> and build_date = #{buildDate}</if>
<if test="xqDescribe != null and xqDescribe != ''"> and xq_describe = #{xqDescribe}</if> <if test="xqDescribe != null and xqDescribe != ''"> and xq_describe = #{xqDescribe}</if>
<if test="deptId != null "> and dept_id = #{deptId}</if> <!--<if test="deptId != null "> and dept_id = #{deptId}</if>-->
<if test="deptName != null and deptName != ''"> and dept_name like concat('%', #{deptName}, '%')</if> <if test="deptName != null and deptName != ''"> and dept_name like concat('%', #{deptName}, '%')</if>
<if test="userId != null "> and user_id = #{userId}</if> <if test="userId != null "> and user_id = #{userId}</if>
<if test="params.dataScope != null and params.dataScope !=''">
${params.dataScope}
</if>
</where> </where>
</select> </select>

@ -33,7 +33,7 @@
</sql> </sql>
<select id="selectSzxcZcssList" parameterType="SzxcZcss" resultMap="SzxcZcssResult"> <select id="selectSzxcZcssList" parameterType="SzxcZcss" resultMap="SzxcZcssResult">
<include refid="selectSzxcZcssVo"/> <include refid="selectSzxcZcssVo"/> as z
<where> <where>
<if test="zcName != null and zcName != ''"> and zc_name like concat('%', #{zcName}, '%')</if> <if test="zcName != null and zcName != ''"> and zc_name like concat('%', #{zcName}, '%')</if>
<if test="zcType != null and zcType != ''"> and zc_type = #{zcType}</if> <if test="zcType != null and zcType != ''"> and zc_type = #{zcType}</if>
@ -50,6 +50,9 @@
<if test="deptId != null "> and dept_id = #{deptId}</if> <if test="deptId != null "> and dept_id = #{deptId}</if>
<if test="deptName != null and deptName != ''"> and dept_name like concat('%', #{deptName}, '%')</if> <if test="deptName != null and deptName != ''"> and dept_name like concat('%', #{deptName}, '%')</if>
<if test="userId != null "> and user_id = #{userId}</if> <if test="userId != null "> and user_id = #{userId}</if>
<if test="params.dataScope != null and params.dataScope !=''">
${params.dataScope}
</if>
</where> </where>
</select> </select>

@ -33,7 +33,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</sql> </sql>
<select id="selectSzxcZcssxjList" parameterType="SzxcZcssxj" resultMap="SzxcZcssxjResult"> <select id="selectSzxcZcssxjList" parameterType="SzxcZcssxj" resultMap="SzxcZcssxjResult">
<include refid="selectSzxcZcssxjVo"/> <include refid="selectSzxcZcssxjVo"/> as z
<where> <where>
<if test="zcssId != null "> and zcss_id = #{zcssId}</if> <if test="zcssId != null "> and zcss_id = #{zcssId}</if>
<if test="zcName != null and zcName != ''"> and zc_name like concat('%', #{zcName}, '%')</if> <if test="zcName != null and zcName != ''"> and zc_name like concat('%', #{zcName}, '%')</if>
@ -50,6 +50,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="deptId != null "> and dept_id = #{deptId}</if> <if test="deptId != null "> and dept_id = #{deptId}</if>
<if test="deptName != null and deptName != ''"> and dept_name like concat('%', #{deptName}, '%')</if> <if test="deptName != null and deptName != ''"> and dept_name like concat('%', #{deptName}, '%')</if>
<if test="userId != null "> and user_id = #{userId}</if> <if test="userId != null "> and user_id = #{userId}</if>
<if test="params.dataScope != null and params.dataScope !=''">
${params.dataScope}
</if>
</where> </where>
</select> </select>

Loading…
Cancel
Save