工作记录、巡查记录等添加数据权限

main 12
hansha 2 years ago
parent 4bcde21b7f
commit 5e582fe6b8

@ -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.SzxcButie; import com.ruoyi.szxc.domain.SzxcButie;
import com.ruoyi.szxc.service.ISzxcButieService; import com.ruoyi.szxc.service.ISzxcButieService;
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 SzxcButieController extends BaseController
@PostMapping @PostMapping
public AjaxResult add(@RequestBody SzxcButie szxcButie) public AjaxResult add(@RequestBody SzxcButie szxcButie)
{ {
//根据前端传递过来的部门存储,如果没传则存储当前用户的部门
if(szxcButie.getDeptId()==null){
szxcButie.setDeptId(getDeptId());
}
szxcButie.setUserId(getUserId());
return toAjax(szxcButieService.insertSzxcButie(szxcButie)); return toAjax(szxcButieService.insertSzxcButie(szxcButie));
} }

@ -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.SzxcHelp; import com.ruoyi.szxc.domain.SzxcHelp;
import com.ruoyi.szxc.service.ISzxcHelpService; import com.ruoyi.szxc.service.ISzxcHelpService;
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 SzxcHelpController extends BaseController
@PostMapping @PostMapping
public AjaxResult add(@RequestBody SzxcHelp szxcHelp) public AjaxResult add(@RequestBody SzxcHelp szxcHelp)
{ {
//根据前端传递过来的部门存储,如果没传则存储当前用户的部门
if(szxcHelp.getDeptId()==null){
szxcHelp.setDeptId(getDeptId());
}
szxcHelp.setUserId(getUserId());
return toAjax(szxcHelpService.insertSzxcHelp(szxcHelp)); return toAjax(szxcHelpService.insertSzxcHelp(szxcHelp));
} }

@ -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.SzxcVisitRecard; import com.ruoyi.szxc.domain.SzxcVisitRecard;
import com.ruoyi.szxc.service.ISzxcVisitRecardService; import com.ruoyi.szxc.service.ISzxcVisitRecardService;
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 SzxcVisitRecardController extends BaseController
@PostMapping @PostMapping
public AjaxResult add(@RequestBody SzxcVisitRecard szxcVisitRecard) public AjaxResult add(@RequestBody SzxcVisitRecard szxcVisitRecard)
{ {
//根据前端传递过来的部门存储,如果没传则存储当前用户的部门
if(szxcVisitRecard.getDeptId()==null){
szxcVisitRecard.setDeptId(getDeptId());
}
szxcVisitRecard.setUserId(getUserId());
return toAjax(szxcVisitRecardService.insertSzxcVisitRecard(szxcVisitRecard)); return toAjax(szxcVisitRecardService.insertSzxcVisitRecard(szxcVisitRecard));
} }

@ -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.SzxcWishManage; import com.ruoyi.szxc.domain.SzxcWishManage;
import com.ruoyi.szxc.service.ISzxcWishManageService; import com.ruoyi.szxc.service.ISzxcWishManageService;
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 SzxcWishManageController extends BaseController
@PostMapping @PostMapping
public AjaxResult add(@RequestBody SzxcWishManage szxcWishManage) public AjaxResult add(@RequestBody SzxcWishManage szxcWishManage)
{ {
//根据前端传递过来的部门存储,如果没传则存储当前用户的部门
if(szxcWishManage.getDeptId()==null){
szxcWishManage.setDeptId(getDeptId());
}
szxcWishManage.setUserId(getUserId());
return toAjax(szxcWishManageService.insertSzxcWishManage(szxcWishManage)); return toAjax(szxcWishManageService.insertSzxcWishManage(szxcWishManage));
} }

@ -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.SzxcWorkRecard; import com.ruoyi.szxc.domain.SzxcWorkRecard;
import com.ruoyi.szxc.service.ISzxcWorkRecardService; import com.ruoyi.szxc.service.ISzxcWorkRecardService;
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 SzxcWorkRecardController extends BaseController
@PostMapping @PostMapping
public AjaxResult add(@RequestBody SzxcWorkRecard szxcWorkRecard) public AjaxResult add(@RequestBody SzxcWorkRecard szxcWorkRecard)
{ {
//根据前端传递过来的部门存储,如果没传则存储当前用户的部门
if(szxcWorkRecard.getDeptId()==null){
szxcWorkRecard.setDeptId(getDeptId());
}
szxcWorkRecard.setUserId(getUserId());
return toAjax(szxcWorkRecardService.insertSzxcWorkRecard(szxcWorkRecard)); return toAjax(szxcWorkRecardService.insertSzxcWorkRecard(szxcWorkRecard));
} }

@ -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.SzxcXcRecard; import com.ruoyi.szxc.domain.SzxcXcRecard;
import com.ruoyi.szxc.service.ISzxcXcRecardService; import com.ruoyi.szxc.service.ISzxcXcRecardService;
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 SzxcXcRecardController extends BaseController
@PostMapping @PostMapping
public AjaxResult add(@RequestBody SzxcXcRecard szxcXcRecard) public AjaxResult add(@RequestBody SzxcXcRecard szxcXcRecard)
{ {
//根据前端传递过来的部门存储,如果没传则存储当前用户的部门
if(szxcXcRecard.getDeptId()==null){
szxcXcRecard.setDeptId(getDeptId());
}
szxcXcRecard.setUserId(getUserId());
return toAjax(szxcXcRecardService.insertSzxcXcRecard(szxcXcRecard)); return toAjax(szxcXcRecardService.insertSzxcXcRecard(szxcXcRecard));
} }

@ -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.SzxcButie; import com.ruoyi.szxc.domain.SzxcButie;
import com.ruoyi.szxc.mapper.SzxcButieMapper; import com.ruoyi.szxc.mapper.SzxcButieMapper;
@ -40,6 +41,7 @@ public class SzxcButieServiceImpl implements ISzxcButieService
* @return * @return
*/ */
@Override @Override
@DataScope(deptAlias = "b")
public List<SzxcButie> selectSzxcButieList(SzxcButie szxcButie) public List<SzxcButie> selectSzxcButieList(SzxcButie szxcButie)
{ {
return szxcButieMapper.selectSzxcButieList(szxcButie); return szxcButieMapper.selectSzxcButieList(szxcButie);

@ -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.SzxcHelpMapper;
import com.ruoyi.szxc.domain.SzxcHelp; import com.ruoyi.szxc.domain.SzxcHelp;
import com.ruoyi.szxc.mapper.SzxcHelpMapper;
import com.ruoyi.szxc.service.ISzxcHelpService; import com.ruoyi.szxc.service.ISzxcHelpService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
/** /**
* Service * Service
@ -39,6 +41,7 @@ public class SzxcHelpServiceImpl implements ISzxcHelpService
* @return * @return
*/ */
@Override @Override
@DataScope(deptAlias = "h")
public List<SzxcHelp> selectSzxcHelpList(SzxcHelp szxcHelp) public List<SzxcHelp> selectSzxcHelpList(SzxcHelp szxcHelp)
{ {
return szxcHelpMapper.selectSzxcHelpList(szxcHelp); return szxcHelpMapper.selectSzxcHelpList(szxcHelp);

@ -52,6 +52,7 @@ public class SzxcJmInfoServiceImpl implements ISzxcJmInfoService
public List<SzxcJmInfo> selectSzxcJmInfoList(SzxcJmInfo szxcJmInfo) public List<SzxcJmInfo> selectSzxcJmInfoList(SzxcJmInfo szxcJmInfo)
{ {
List<SzxcJmInfo> szxcJmInfos = szxcJmInfoMapper.selectSzxcJmInfoList(szxcJmInfo); List<SzxcJmInfo> szxcJmInfos = szxcJmInfoMapper.selectSzxcJmInfoList(szxcJmInfo);
//按出生年月计算出年龄
szxcJmInfos.forEach(info->{ szxcJmInfos.forEach(info->{
Date bornDate = info.getBornDate(); Date bornDate = info.getBornDate();
int ageByBirth = GetAgeByBirthdayUtil.getAgeByBirth(bornDate); int ageByBirth = GetAgeByBirthdayUtil.getAgeByBirth(bornDate);

@ -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.SzxcVisitRecardMapper;
import com.ruoyi.szxc.domain.SzxcVisitRecard; import com.ruoyi.szxc.domain.SzxcVisitRecard;
import com.ruoyi.szxc.mapper.SzxcVisitRecardMapper;
import com.ruoyi.szxc.service.ISzxcVisitRecardService; import com.ruoyi.szxc.service.ISzxcVisitRecardService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
/** /**
* 访Service * 访Service
@ -39,6 +41,7 @@ public class SzxcVisitRecardServiceImpl implements ISzxcVisitRecardService
* @return 访 * @return 访
*/ */
@Override @Override
@DataScope(deptAlias = "v")
public List<SzxcVisitRecard> selectSzxcVisitRecardList(SzxcVisitRecard szxcVisitRecard) public List<SzxcVisitRecard> selectSzxcVisitRecardList(SzxcVisitRecard szxcVisitRecard)
{ {
return szxcVisitRecardMapper.selectSzxcVisitRecardList(szxcVisitRecard); return szxcVisitRecardMapper.selectSzxcVisitRecardList(szxcVisitRecard);

@ -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.SzxcWishManage; import com.ruoyi.szxc.domain.SzxcWishManage;
import com.ruoyi.szxc.mapper.SzxcWishManageMapper; import com.ruoyi.szxc.mapper.SzxcWishManageMapper;
@ -40,6 +41,7 @@ public class SzxcWishManageServiceImpl implements ISzxcWishManageService
* @return * @return
*/ */
@Override @Override
@DataScope(deptAlias = "w")
public List<SzxcWishManage> selectSzxcWishManageList(SzxcWishManage szxcWishManage) public List<SzxcWishManage> selectSzxcWishManageList(SzxcWishManage szxcWishManage)
{ {
return szxcWishManageMapper.selectSzxcWishManageList(szxcWishManage); return szxcWishManageMapper.selectSzxcWishManageList(szxcWishManage);

@ -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.SzxcWorkRecardMapper;
import com.ruoyi.szxc.domain.SzxcWorkRecard; import com.ruoyi.szxc.domain.SzxcWorkRecard;
import com.ruoyi.szxc.mapper.SzxcWorkRecardMapper;
import com.ruoyi.szxc.service.ISzxcWorkRecardService; import com.ruoyi.szxc.service.ISzxcWorkRecardService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
/** /**
* Service * Service
@ -39,6 +41,7 @@ public class SzxcWorkRecardServiceImpl implements ISzxcWorkRecardService
* @return * @return
*/ */
@Override @Override
@DataScope(deptAlias = "w")
public List<SzxcWorkRecard> selectSzxcWorkRecardList(SzxcWorkRecard szxcWorkRecard) public List<SzxcWorkRecard> selectSzxcWorkRecardList(SzxcWorkRecard szxcWorkRecard)
{ {
return szxcWorkRecardMapper.selectSzxcWorkRecardList(szxcWorkRecard); return szxcWorkRecardMapper.selectSzxcWorkRecardList(szxcWorkRecard);

@ -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.SzxcXcRecardMapper;
import com.ruoyi.szxc.domain.SzxcXcRecard; import com.ruoyi.szxc.domain.SzxcXcRecard;
import com.ruoyi.szxc.mapper.SzxcXcRecardMapper;
import com.ruoyi.szxc.service.ISzxcXcRecardService; import com.ruoyi.szxc.service.ISzxcXcRecardService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
/** /**
* Service * Service
@ -39,6 +41,7 @@ public class SzxcXcRecardServiceImpl implements ISzxcXcRecardService
* @return * @return
*/ */
@Override @Override
@DataScope(deptAlias = "x")
public List<SzxcXcRecard> selectSzxcXcRecardList(SzxcXcRecard szxcXcRecard) public List<SzxcXcRecard> selectSzxcXcRecardList(SzxcXcRecard szxcXcRecard)
{ {
return szxcXcRecardMapper.selectSzxcXcRecardList(szxcXcRecard); return szxcXcRecardMapper.selectSzxcXcRecardList(szxcXcRecard);

@ -34,7 +34,7 @@
</sql> </sql>
<select id="selectSzxcButieList" parameterType="SzxcButie" resultMap="SzxcButieResult"> <select id="selectSzxcButieList" parameterType="SzxcButie" resultMap="SzxcButieResult">
<include refid="selectSzxcButieVo"/> <include refid="selectSzxcButieVo"/> as b
<where> <where>
<if test="type != null and type != ''"> and type = #{type}</if> <if test="type != null and type != ''"> and type = #{type}</if>
<if test="xmTitle != null and xmTitle != ''"> and xm_title = #{xmTitle}</if> <if test="xmTitle != null and xmTitle != ''"> and xm_title = #{xmTitle}</if>
@ -50,9 +50,13 @@
<if test="auditResult != null and auditResult != ''"> and audit_result = #{auditResult}</if> <if test="auditResult != null and auditResult != ''"> and audit_result = #{auditResult}</if>
<if test="auditReason != null and auditReason != ''"> and audit_reason = #{auditReason}</if> <if test="auditReason != null and auditReason != ''"> and audit_reason = #{auditReason}</if>
<if test="auditDeptid != null "> and audit_deptid = #{auditDeptid}</if> <if test="auditDeptid != null "> and audit_deptid = #{auditDeptid}</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="selectSzxcHelpList" parameterType="SzxcHelp" resultMap="SzxcHelpResult"> <select id="selectSzxcHelpList" parameterType="SzxcHelp" resultMap="SzxcHelpResult">
<include refid="selectSzxcHelpVo"/> <include refid="selectSzxcHelpVo"/> as h
<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>
@ -50,6 +50,10 @@
<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>

@ -45,7 +45,7 @@
</sql> </sql>
<select id="selectSzxcJmInfoList" parameterType="SzxcJmInfo" resultMap="SzxcJmInfoResult"> <select id="selectSzxcJmInfoList" parameterType="SzxcJmInfo" resultMap="SzxcJmInfoResult">
<include refid="selectSzxcJmInfoVo"/> <include refid="selectSzxcJmInfoVo"/> as j
<where> <where>
<!--<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>
@ -76,9 +76,9 @@
<if test="off != null and off != ''"> and off = #{off}</if> <if test="off != null and off != ''"> and off = #{off}</if>
<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="deptId != null and deptId != 0"> <!--<if test="deptId != null and deptId != 0">
AND (d.dept_id = #{deptId} OR d.dept_id IN ( SELECT t.dept_id FROM sys_dept t WHERE find_in_set(#{deptId}, ancestors) )) AND (j.dept_id = #{deptId} OR j.dept_id IN ( SELECT s.dept_id FROM sys_dept s WHERE find_in_set(#{deptId}, ancestors) ))
</if> </if>-->
<!-- 数据范围过滤 --> <!-- 数据范围过滤 -->
<if test="params.dataScope != null and params.dataScope !=''"> <if test="params.dataScope != null and params.dataScope !=''">
${params.dataScope} ${params.dataScope}

@ -38,7 +38,7 @@
</sql> </sql>
<select id="selectSzxcVisitRecardList" parameterType="SzxcVisitRecard" resultMap="SzxcVisitRecardResult"> <select id="selectSzxcVisitRecardList" parameterType="SzxcVisitRecard" resultMap="SzxcVisitRecardResult">
<include refid="selectSzxcVisitRecardVo"/> <include refid="selectSzxcVisitRecardVo"/> as v
<where> <where>
<if test="visiterName != null and visiterName != ''"> and visiter_name like concat('%', #{visiterName}, '%')</if> <if test="visiterName != null and visiterName != ''"> and visiter_name like concat('%', #{visiterName}, '%')</if>
<if test="submitDate != null "> and submit_date = #{submitDate}</if> <if test="submitDate != null "> and submit_date = #{submitDate}</if>
@ -58,9 +58,13 @@
<if test="auditResult != null and auditResult != ''"> and audit_result = #{auditResult}</if> <if test="auditResult != null and auditResult != ''"> and audit_result = #{auditResult}</if>
<if test="auditReason != null and auditReason != ''"> and audit_reason = #{auditReason}</if> <if test="auditReason != null and auditReason != ''"> and audit_reason = #{auditReason}</if>
<if test="shRemark != null and shRemark != ''"> and sh_remark = #{shRemark}</if> <if test="shRemark != null and shRemark != ''"> and sh_remark = #{shRemark}</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="selectSzxcWishManageList" parameterType="SzxcWishManage" resultMap="SzxcWishManageResult"> <select id="selectSzxcWishManageList" parameterType="SzxcWishManage" resultMap="SzxcWishManageResult">
<include refid="selectSzxcWishManageVo"/> <include refid="selectSzxcWishManageVo"/> as w
<where> <where>
<if test="applyName != null and applyName != ''"> and apply_name like concat('%', #{applyName}, '%')</if> <if test="applyName != null and applyName != ''"> and apply_name like concat('%', #{applyName}, '%')</if>
<if test="applyPhone != null and applyPhone != ''"> and apply_phone = #{applyPhone}</if> <if test="applyPhone != null and applyPhone != ''"> and apply_phone = #{applyPhone}</if>
@ -54,8 +54,15 @@
<if test="auditResult != null and auditResult != ''"> and audit_result = #{auditResult}</if> <if test="auditResult != null and auditResult != ''"> and audit_result = #{auditResult}</if>
<if test="auditReason != null and auditReason != ''"> and audit_reason = #{auditReason}</if> <if test="auditReason != null and auditReason != ''"> and audit_reason = #{auditReason}</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="deptId != null "> and dept_id = #{deptId}</if> <!-- <if test="deptId != null "> and dept_id = #{deptId}</if>-->
<!--<if test="deptId != null and deptId != 0">
AND (w.dept_id = #{deptId} OR w.dept_id IN ( SELECT s.dept_id FROM sys_dept s WHERE find_in_set(#{deptId}, ancestors) ))
</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>

@ -35,7 +35,7 @@
</sql> </sql>
<select id="selectSzxcWorkRecardList" parameterType="SzxcWorkRecard" resultMap="SzxcWorkRecardResult"> <select id="selectSzxcWorkRecardList" parameterType="SzxcWorkRecard" resultMap="SzxcWorkRecardResult">
<include refid="selectSzxcWorkRecardVo"/> <include refid="selectSzxcWorkRecardVo"/> w
<where> <where>
<if test="workerName != null and workerName != ''"> and worker_name like concat('%', #{workerName}, '%')</if> <if test="workerName != null and workerName != ''"> and worker_name like concat('%', #{workerName}, '%')</if>
<if test="submitDate != null "> and submit_date = #{submitDate}</if> <if test="submitDate != null "> and submit_date = #{submitDate}</if>
@ -52,9 +52,13 @@
<if test="auditResult != null and auditResult != ''"> and audit_result = #{auditResult}</if> <if test="auditResult != null and auditResult != ''"> and audit_result = #{auditResult}</if>
<if test="auditReason != null and auditReason != ''"> and audit_reason = #{auditReason}</if> <if test="auditReason != null and auditReason != ''"> and audit_reason = #{auditReason}</if>
<if test="shRemark != null and shRemark != ''"> and sh_remark = #{shRemark}</if> <if test="shRemark != null and shRemark != ''"> and sh_remark = #{shRemark}</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>

@ -39,7 +39,7 @@
</sql> </sql>
<select id="selectSzxcXcRecardList" parameterType="SzxcXcRecard" resultMap="SzxcXcRecardResult"> <select id="selectSzxcXcRecardList" parameterType="SzxcXcRecard" resultMap="SzxcXcRecardResult">
<include refid="selectSzxcXcRecardVo"/> <include refid="selectSzxcXcRecardVo"/> as x
<where> <where>
<if test="xcName != null and xcName != ''"> and xc_name like concat('%', #{xcName}, '%')</if> <if test="xcName != null and xcName != ''"> and xc_name like concat('%', #{xcName}, '%')</if>
<if test="submitDate != null "> and submit_date = #{submitDate}</if> <if test="submitDate != null "> and submit_date = #{submitDate}</if>
@ -60,9 +60,13 @@
<if test="auditResult != null and auditResult != ''"> and audit_result = #{auditResult}</if> <if test="auditResult != null and auditResult != ''"> and audit_result = #{auditResult}</if>
<if test="auditReason != null and auditReason != ''"> and audit_reason = #{auditReason}</if> <if test="auditReason != null and auditReason != ''"> and audit_reason = #{auditReason}</if>
<if test="shRemark != null and shRemark != ''"> and sh_remark = #{shRemark}</if> <if test="shRemark != null and shRemark != ''"> and sh_remark = #{shRemark}</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>

Loading…
Cancel
Save