Commit 12c7b307 authored by 赵啸非's avatar 赵啸非

修改缓存

parent a78913e2
package com.mortals.xhx.module.dept.service;
import com.mortals.framework.service.ICRUDCacheService;
import com.mortals.framework.service.ICRUDService;
import com.mortals.xhx.module.dept.model.DeptEntity;
/**
......@@ -9,6 +10,6 @@ import com.mortals.xhx.module.dept.model.DeptEntity;
* @author zxfei
* @date 2022-01-12
*/
public interface DeptService extends ICRUDService<DeptEntity,Long>{
public interface DeptService extends ICRUDCacheService<DeptEntity,Long> {
}
\ No newline at end of file
package com.mortals.xhx.module.dept.service.impl;
import com.mortals.framework.service.impl.AbstractCRUDCacheServiceImpl;
import org.springframework.stereotype.Service;
import com.mortals.framework.service.impl.AbstractCRUDServiceImpl;
import com.mortals.xhx.module.dept.dao.DeptDao;
......@@ -12,6 +13,6 @@ import com.mortals.xhx.module.dept.service.DeptService;
* @date 2022-01-12
*/
@Service("deptService")
public class DeptServiceImpl extends AbstractCRUDServiceImpl<DeptDao, DeptEntity, Long> implements DeptService {
public class DeptServiceImpl extends AbstractCRUDCacheServiceImpl<DeptDao, DeptEntity, Long> implements DeptService {
}
\ No newline at end of file
package com.mortals.xhx.module.site.service;
import com.mortals.framework.model.Context;
import com.mortals.framework.service.ICRUDCacheService;
import com.mortals.framework.service.ICRUDService;
import com.mortals.xhx.module.area.model.AreaEntity;
import com.mortals.xhx.module.area.model.AreaTreeSelect;
......@@ -18,7 +19,7 @@ import java.util.Map;
* @author zxfei
* @date 2022-01-12
*/
public interface SiteService extends ICRUDService<SiteEntity, Long> {
public interface SiteService extends ICRUDCacheService<SiteEntity, Long> {
/**
* 区域站点树
......
......@@ -2,6 +2,7 @@ package com.mortals.xhx.module.site.service.impl;
import com.mortals.framework.exception.AppException;
import com.mortals.framework.model.Context;
import com.mortals.framework.service.impl.AbstractCRUDCacheServiceImpl;
import com.mortals.framework.util.DataUtil;
import com.mortals.framework.util.StringUtils;
import com.mortals.xhx.common.key.Constant;
......@@ -35,7 +36,7 @@ import java.util.stream.Collectors;
* @date 2022-01-12
*/
@Service("siteService")
public class SiteServiceImpl extends AbstractCRUDServiceImpl<SiteDao, SiteEntity, Long> implements SiteService {
public class SiteServiceImpl extends AbstractCRUDCacheServiceImpl<SiteDao, SiteEntity, Long> implements SiteService {
private List<SiteTreeSelect> siteTreeList;
......
package com.mortals.xhx.module.window.service;
import com.mortals.framework.model.Context;
import com.mortals.framework.service.ICRUDCacheService;
import com.mortals.framework.service.ICRUDService;
import com.mortals.xhx.module.window.model.WindowEntity;
/**
......@@ -10,7 +11,7 @@ import com.mortals.xhx.module.window.model.WindowEntity;
* @author zxfei
* @date 2022-01-12
*/
public interface WindowService extends ICRUDService<WindowEntity,Long>{
public interface WindowService extends ICRUDCacheService<WindowEntity,Long> {
/**
......
......@@ -3,6 +3,7 @@ package com.mortals.xhx.module.window.service.impl;
import com.mortals.framework.exception.AppException;
import com.mortals.framework.model.Context;
import com.mortals.framework.model.PageInfo;
import com.mortals.framework.service.impl.AbstractCRUDCacheServiceImpl;
import com.mortals.xhx.common.utils.BeanUtil;
import com.mortals.xhx.module.business.model.BusinessEntity;
import com.mortals.xhx.module.business.model.BusinessQuery;
......@@ -39,7 +40,7 @@ import java.util.stream.Collectors;
* @date 2022-01-12
*/
@Service("windowService")
public class WindowServiceImpl extends AbstractCRUDServiceImpl<WindowDao, WindowEntity, Long> implements WindowService {
public class WindowServiceImpl extends AbstractCRUDCacheServiceImpl<WindowDao, WindowEntity, Long> implements WindowService {
@Autowired
private WorkmanService workmanService;
......
package com.mortals.xhx.module.workman.service;
import com.mortals.framework.service.ICRUDCacheService;
import com.mortals.framework.service.ICRUDService;
import com.mortals.xhx.module.workman.model.WorkmanEntity;
/**
......@@ -9,6 +10,6 @@ import com.mortals.xhx.module.workman.model.WorkmanEntity;
* @author zxfei
* @date 2022-01-12
*/
public interface WorkmanService extends ICRUDService<WorkmanEntity,Long>{
public interface WorkmanService extends ICRUDCacheService<WorkmanEntity,Long> {
}
\ No newline at end of file
......@@ -5,6 +5,7 @@ import com.mortals.framework.exception.AppException;
import com.mortals.framework.model.Context;
import com.mortals.framework.model.PageInfo;
import com.mortals.framework.service.IUser;
import com.mortals.framework.service.impl.AbstractCRUDCacheServiceImpl;
import com.mortals.framework.util.SecurityUtil;
import com.mortals.framework.util.StringUtils;
import com.mortals.xhx.base.system.role.model.RoleUserQuery;
......@@ -33,7 +34,7 @@ import java.util.List;
* @date 2022-01-12
*/
@Service("workmanService")
public class WorkmanServiceImpl extends AbstractCRUDServiceImpl<WorkmanDao, WorkmanEntity, Long> implements WorkmanService {
public class WorkmanServiceImpl extends AbstractCRUDCacheServiceImpl<WorkmanDao, WorkmanEntity, Long> implements WorkmanService {
@Autowired
private UserService userService;
......
###站点列表
POST {{baseUrl}}/site/list
Authorization: Bearer {{authToken}}
Content-Type: application/json
{
......
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