Commit bdfa6d46 by jinxin

无效接口删除(INNER)

parent 4338f45b
......@@ -61,11 +61,6 @@ public interface DepartmentMapper {
int countByDepartment(@Param("departmentId")String departmentId);
TabHaobanDepartment getByRelatedIdNotInRecycle(@Param("relatedId")String relatedId);
List<TabHaobanDepartment> listByIds(@Param("departmentIds")List<String> departmentIds);
TabHaobanDepartment getTempFlagDepartment(@Param("wxEnterpriseId") String wxEnterpriseId);
Integer totalStoreCountByEnterpriseId(@Param("wxEnterpriseId")String wxEnterpriseId);
......
......@@ -143,14 +143,6 @@ public interface PreDealLogMapper {
public List<TabHaobanPreDealLog> listExceptionByTask(@Param("taskId") String taskId);
/**
* 统计任务数量
* countExcepAndPreByTaskId
*
* @param taskId
* @return
*/
public int countByDataId(@Param("taskId") String taskId, @Param("dataId") String dataId,@Param("dataType") int dataType);
/**
* 获取列表
* @param taskId
* @param dataType
......@@ -164,13 +156,6 @@ public interface PreDealLogMapper {
* @return
*/
public TabHaobanPreDealLog getLastPreDataByTaskId(@Param("taskId") String taskId);
/**
* 获取根节点
* @param taskId
* @return
*/
public String getRootDataIdByWxEnterpriseIdAndTaskId(@Param("wxEnterpriseId") String wxEnterpriseId,@Param("taskId") String taskId);
/**
* 更新状态
* @param taskId
......@@ -195,21 +180,6 @@ public interface PreDealLogMapper {
int updateFriendStatusAndRelationKeyByDataId(@Param("taskId") String taskId, @Param("dataId") String dataId, @Param("status") int status, @Param("reason") String reason, @Param("dataContent") String dataContent, @Param("relationKey") String relationKey , @Param("dataType") int dataType);
/**
*
* @param taskId
* @param pDataId
* @return
*/
int countFailStaffTaskByTaskIdAndPDataId(@Param("taskId")String taskId, @Param("pDataId")String pDataId);
/**
* 根据父id获取
* @param taskId
* @param wxUserId
* @return
*/
List<TabHaobanPreDealLog> listByPDataIdAndTaskId(@Param("taskId")String taskId, @Param("pDataId")String wxUserId);
/**
* 根据关联键获取字段
*
* @param taskId
......
......@@ -11,8 +11,6 @@ public interface StaffDepartmentRelatedMapper {
int insert(TabHaobanStaffDepartmentRelated record);
TabHaobanStaffDepartmentRelated selectByPrimaryKey(String staffDepartmentRelatedId);
int updateByPrimaryKeySelective(TabHaobanStaffDepartmentRelated record);
List<TabHaobanStaffDepartmentRelated> listByDepartmentId(String departmentId);
......
......@@ -57,12 +57,6 @@ public interface StaffMapper {
TabHaobanStaff getNoStatusByWxUserIds(@Param("wxEnterpriseId") String wxEnterpriseId, @Param("wxUserId") String wxUserId);
/**
* 通过开放用户id和wx企业id列表
*/
List<TabHaobanStaff> listByOpenUserIdsAndWxEnterpriseId(@Param("openUserIds") List<String> openUserIds,
@Param("wxEnterpriseId") String wxEnterpriseId);
/**
* 更新开放用户id,用户id
......
......@@ -22,15 +22,6 @@ public interface StaffPrivacyUseLogMapper {
*/
int insert(TabStaffPrivacyUseLog tabStaffPrivacyUseLog);
/**
* 更新
*
* @param tabStaffPrivacyUseLog 选项卡的员工隐私使用日志
* @return int
* @author mozhu
* @date 2021-12-15 10:44:22
*/
int update(TabStaffPrivacyUseLog tabStaffPrivacyUseLog);
/**
* 通过员工id查询
......
......@@ -15,7 +15,6 @@ public interface TabHaobanClerkMainStoreRelatedMapper {
TabHaobanClerkMainStoreRelated selectByWxEnterpriseIdAndStoreId(@Param("staffId")String staffId, @Param("wxEnterpriseId")String wxEnterpriseId , @Param("storeIdList") List<String> storeIdList);
List<TabHaobanClerkMainStoreRelated> listByWxEnterpriseId(@Param("wxEnterpriseId")String wxEnterpriseId);
/**
* 删除主门店
......
......@@ -34,9 +34,6 @@ public interface TabHaobanExternalClerkRelatedMapper {
int delByStoreIds(@Param("storeIds") Collection<String> storeIds);
void cleanStaffRelated(@Param("wxEnterpriseId") String wxEnterpriseId, @Param("staffIds") List<String> staffIds);
TabHaobanExternalClerkRelated getByParams(@Param("staffId") String staffId, @Param("wxEnterpriseId") String wxEnterpriseId, @Param("name") String name, @Param("createTime") String createTime);
List<TabHaobanExternalClerkRelated> listByExTernalUseridAndWxUserId(@Param("externalUserid") String externalUserid,
@Param("staffId") String staffId,
@Param("statusFlag") Integer statusFlag);
......
......@@ -31,11 +31,6 @@ public interface TabHaobanStaffClerkRelationMapper {
int changeStatusByClerkId(@Param("clerkId") String clerkId, @Param("status") Integer status);
/**
* 更新信息
*/
int updateByClerkId(TabHaobanStaffClerkRelation record);
/**
* 解绑
*/
void delByStoreIdAndCode(@Param("storeId") String storeId, @Param("clerkCode") String clerkCode);
......@@ -118,11 +113,6 @@ public interface TabHaobanStaffClerkRelationMapper {
void deleteByEnterpriseId(@Param("enterpriseId") String enterpriseId);
/**
* 获取区经
*/
int getBindByManage(@Param("enterpriseId") String enterpriseId);
int getBindByStaffIdAndEnterpriseId(@Param("enterpriseId") String enterpriseId, @Param("staffId") String staffId);
List<StaffClerkRelationDTO> listManageBindByStaffId(@Param("staffId") String staffId);
......
......@@ -51,15 +51,6 @@ public interface TabHaobanStoreRangeMapper {
int deleteByEnterpriseId(@Param("wxEnterpriseId") String wxEnterpriseId, @Param("enterpriseId") String enterpriseId);
/**
* 删除关联关系
*
* @param relationId
* @param enterpriseId
* @return
*/
int delStoreRangeByRelationId(@Param("relationId") String relationId, @Param("enterpriseId") String enterpriseId);
/**
* 批量插入
*/
int insertBatch(@Param("list") List<TabStoreRange> list);
......
......@@ -21,15 +21,6 @@ public interface TabHaobanStoreRelationMapper {
TabStoreRelation selectByPrimaryKey(String storeRelationId);
/**
* 删除门店
*
* @param enterpriseId
* @param storeId
* @return
*/
public int deleteStoreRalation(@Param("enterpriseId") String enterpriseId, @Param("storeId") String storeId);
/**
* 门店搜索
*/
List<TabStoreRelation> searchStoreRange(@Param("wxEnterpriseId") String wxEnterpriseId, @Param("enterpriseId") String enterpriseId, @Param("search") String search);
......@@ -97,13 +88,4 @@ public interface TabHaobanStoreRelationMapper {
@Param("enterpriseId") String enterpriseId,
@Param("storeName") String storeName);
/**
* 获取门店数量
*
* @param wxEnterpriseId wx企业标识
* @param enterpriseId 企业标识
* @return int
*/
int getCountStoreIdByWxEnterpriseId(@Param("wxEnterpriseId") String wxEnterpriseId,
@Param("enterpriseId") String enterpriseId);
}
\ No newline at end of file
package com.gic.haoban.manage.service.dao.mapper;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.gic.haoban.manage.service.entity.TabHaobanWxEnterpriseApplicationRelated;
public interface TabHaobanWxEnterpriseApplicationRelatedMapper {
int deleteByPrimaryKey(String wxEnterpriseApplicationRelatedId);
int insert(TabHaobanWxEnterpriseApplicationRelated record);
int insertSelective(TabHaobanWxEnterpriseApplicationRelated record);
TabHaobanWxEnterpriseApplicationRelated selectByPrimaryKey(String wxEnterpriseApplicationRelatedId);
int updateByPrimaryKeySelective(TabHaobanWxEnterpriseApplicationRelated record);
int updateByPrimaryKey(TabHaobanWxEnterpriseApplicationRelated record);
TabHaobanWxEnterpriseApplicationRelated selectByApplicationIdAndWxEnterpriseId(@Param("applicationId")String applicationId,
@Param("wxEnterpriseId")String wxEnterpriseId);
List<TabHaobanWxEnterpriseApplicationRelated> listByWxEnterpriseId(@Param("wxEnterpriseId")String wxEnterpriseId);
}
\ No newline at end of file
......@@ -50,20 +50,6 @@ public interface WxEnterpriseMapper {
/**
* 更新是否转化userid
*
* @param useridFlag userid国旗
* @param corpid corpid
* @param wxEnterpriseId wx企业标识
* @return int
* @author mozhu
* @date 2022-06-30 18:46:44
*/
int updateUseridFlagById(@Param("useridFlag") Integer useridFlag,
@Param("corpid") String corpid,
@Param("wxEnterpriseId") String wxEnterpriseId);
/**
* 更新是否开启自动激活
*
* @param autoActiveFlag
......
......@@ -48,14 +48,6 @@ public interface TabHaobanQywxFeeAccountInterceptLogMapper {
int insertBatch(@Param("entities") List<TabHaobanQywxFeeAccountInterceptLog> entities);
/**
* 修改数据
*
* @param tabHaobanQywxFeeAccountInterceptLog 实例对象
* @return 影响行数
*/
int update(TabHaobanQywxFeeAccountInterceptLog tabHaobanQywxFeeAccountInterceptLog);
/**
* 查询天气企业服务id
*
* @param wxEnterpriseId wx企业标识
......
......@@ -52,8 +52,6 @@ public interface TabHaobanQywxFeeOrderAccountMapper {
*/
int countOrderAccountStatus(@Param("status") Integer status,@Param("wxEnterpriseId") String wxEnterpriseId);
List<TabHaobanQywxFeeOrderAccount> listAccount(@Param("wxEnterpriseId")String wxEnterpriseId, @Param("orderId")String orderId);
List<HashMap<String,Integer>> countStatusByWxEnterpriseId(@Param("wxEnterpriseId") String wxEnterpriseId);
}
......@@ -41,16 +41,6 @@ public interface TabHaobanQywxFeeOrderMapper {
*/
int countExternalContactCount(@Param("wxEnterpriseId") String wxEnterpriseId);
/**
* 有订单
*
* @param wxEnterpriseId wx企业标识
* @return int
* @author mozhu
* @date 2022-08-12 10:42:36
*/
int hasOrder(@Param("wxEnterpriseId") String wxEnterpriseId);
List<TabHaobanQywxFeeOrder> listOrder(@Param("wxEnterpriseId") String wxEnterpriseId);
}
......
......@@ -56,11 +56,6 @@ public interface HmLinkMapper {
@Param("enterpriseId") String enterpriseId, @Param("linkName") String linkName,
@Param("linkType") Integer linkType, @Param("creatorIdList") List<String> creatorIdList);
public List<TabHmLink> list(@Param("wxEnterpriseId") String wxEnterpriseId,
@Param("enterpriseId") String enterpriseId, @Param("startDate") Date startDate,
@Param("endDate") Date endDate, @Param("linkType") Integer linkType,
@Param("searchParams") String searchParams);
public List<TabHmLink> queryPageRelationList(@Param("pageId") Long pageId,
@Param("enterpriseId") String enterpriseId, @Param("searchText") String searchText);
......
......@@ -24,8 +24,6 @@ public interface HmQrcodeTempMapper {
public int insert(TabHmQrcodeTemp entity);
public int deleteByPrimaryKey(Long id);
TabHmQrcodeTemp selectByRelationId(String relationId);
/**
* 通过条件查询
......
......@@ -14,13 +14,6 @@ import java.util.List;
*/
public interface TabHaobanHmClerkRelationMapper {
/**
* 通过ID查询单条数据
*
* @param relationId 主键
* @return 实例对象
*/
TabHaobanHmClerkRelation queryById(Long relationId);
/**
......@@ -31,34 +24,6 @@ public interface TabHaobanHmClerkRelationMapper {
*/
int insert(TabHaobanHmClerkRelation tabHaobanHmClerkRelation);
/**
* 批量新增数据(MyBatis原生foreach方法)
*
* @param entities List<TabHaobanHmClerkRelation> 实例对象列表
* @return 影响行数
*/
int insertBatch(@Param("entities") List<TabHaobanHmClerkRelation> entities);
/**
* 修改数据
*
* @param tabHaobanHmClerkRelation 实例对象
* @return 影响行数
*/
int update(TabHaobanHmClerkRelation tabHaobanHmClerkRelation);
/**
* 更新状态通过hm id
*
* @param hmId hm id
* @param status 状态
* @return int
* @author mozhu
* @date 2022-07-05 16:26:09
*/
int updateStatusByHmId(@Param("hmId") Long hmId, @Param("status") Integer status);
/**
* 查询hm id和职员id
......
......@@ -69,17 +69,6 @@ public interface TabHaobanHmQrcodeMapper {
*/
int updateStatusById(@Param("statusFlag") Integer statusFlag, @Param("hmId") Long hmId);
/**
* 通过职员id列表
*
* @param clerkId 职员id
* @param enterpriseId 企业标识
* @return {@link List }<{@link HmQrcodeBO }>
* @author mozhu
* @date 2022-07-06 15:36:20
*/
List<TabHaobanHmQrcode> listByClerkId(@Param("clerkId") String clerkId, @Param("enterpriseId") String enterpriseId);
/**
* 根据门店id查询
......
......@@ -22,14 +22,6 @@ public interface TabHaobanRoleMapper {
TabHaobanRole queryById(Long roleId);
/**
* 新增数据
*
* @param tabHaobanRole 实例对象
* @return 影响行数
*/
int insert(TabHaobanRole tabHaobanRole);
/**
* 批量新增数据(MyBatis原生foreach方法)
*
* @param entities List<TabHaobanRole> 实例对象列表
......@@ -46,16 +38,6 @@ public interface TabHaobanRoleMapper {
int update(TabHaobanRole tabHaobanRole);
/**
* 按角色删除id
*
* @param roleId 角色id
* @return int
* @author mozhu
* @date 2022-09-14 10:13:03
*/
int deleteByRoleId(Long roleId);
/**
* 根据类型查询企业的菜单权限
*
* @param wxEnterpriseId wx企业标识
......
......@@ -14,22 +14,6 @@ import java.util.List;
public interface TabHaobanRoleMenuMapper {
/**
* 通过ID查询单条数据
*
* @param roleMenuId 主键
* @return 实例对象
*/
TabHaobanRoleMenu queryById(Long roleMenuId);
/**
* 新增数据
*
* @param tabHaobanRoleMenu 实例对象
* @return 影响行数
*/
int insert(TabHaobanRoleMenu tabHaobanRoleMenu);
/**
* 批量新增数据(MyBatis原生foreach方法)
*
* @param entities List<TabHaobanRoleMenu> 实例对象列表
......@@ -37,21 +21,6 @@ public interface TabHaobanRoleMenuMapper {
*/
int insertBatch(@Param("entities") List<TabHaobanRoleMenu> entities);
/**
* 修改数据
*
* @param tabHaobanRoleMenu 实例对象
* @return 影响行数
*/
int update(TabHaobanRoleMenu tabHaobanRoleMenu);
/**
* 通过主键删除数据
*
* @param roleMenuId 主键
* @return 影响行数
*/
int deleteById(Long roleMenuId);
/**
* 按角色删除id
......
......@@ -40,7 +40,5 @@ public interface ClerkMainStoreRelatedService {
void update(TabHaobanClerkMainStoreRelated r);
List<TabHaobanClerkMainStoreRelated> listByWxEnterpriseId(String wxEnterpriseId);
}
......@@ -27,8 +27,6 @@ public interface DepartmentService {
Page<TabHaobanDepartment> pageDepartmentByParams(String wxEnterpriseId, String keyword, Integer storeFlag, Integer recycleFlag);
void repairRecycle(TabHaobanDepartment tab);
DepartmentDTO getRootByEnterpriseId(String wxEnterpriseId);
DepartmentDTO getByRelatedId(String storeId);
......@@ -43,18 +41,6 @@ public interface DepartmentService {
int countByDepartment(String departmentId);
DepartmentDTO getByRelatedIdNotInRecycle(String relatedId);
List<DepartmentDTO> listByIds(List<String> departmentIds);
/**
* 获取暂存区
*
* @param wxEnterpriseId
* @return
*/
DepartmentDTO getTempFlagDepartment(String wxEnterpriseId);
Integer totalStoreCountByEnterpriseId(String wxEnterpriseId);
/**
......
......@@ -34,8 +34,6 @@ public interface ExternalClerkRelatedService {
void update(TabHaobanExternalClerkRelated exsitDTO);
TabHaobanExternalClerkRelated getByParams(String staffId, String wxEnterpriseId, String name, String createTime);
List<TabHaobanExternalClerkRelated> listByExternalUseridAndWxUserId(String externalUserid, String staffId);
List<TabHaobanExternalClerkRelated> listByExTernalUseridAndWxUserIdAllStatus(String wxEnterpriseId, String externalUserid, String wxUserId);
......
......@@ -130,14 +130,6 @@ public interface PreDealService {
*/
public Page<PreDealLogInfoDTO> listExceptionByTaskId(String taskId, BasePageInfo pageInfo);
/**
* 获取单条数据
*
* @param dataId
* @return
*/
public boolean existDataId(String taskId, String dataId);
/**
* 获取dataIdList
* @param taskId
......@@ -151,14 +143,7 @@ public interface PreDealService {
* @return
*/
public PreDealLogInfoDTO getLastPreDataByTaskId(String taskId);
/**
* 获取根节点
*
* @return
*/
public String getRootDataIdByWxEnterpriseIdAndTaskId(String wxEnterpriseId,String taskId);
/**
* 更新好友成功状态
* @param taskId
......@@ -181,21 +166,6 @@ public interface PreDealService {
public boolean updateFriendStatusByDataId(String taskId, String dataId, int status, String reason, String dataContent, String relationKey , int type);
/**
* 根据父任务判断子任务是否全部完成
* @param taskId
* @param pDataId
* @return
*/
public boolean checkStaffTaskByTaskIdAndPDataId(String taskId, String pDataId);
/**
* 根据父id获取
* @param taskId
* @param wxUserId
* @return
*/
public List<TabHaobanPreDealLog> listByPDataIdAndTaskId(String taskId, String wxUserId);
/**
* 根据唯一key 获取用户
*
* @param taskId
......
......@@ -70,14 +70,6 @@ public interface QywxTagService {
*/
public void saveQywxTagByQywxGroupKey(String wxEnterpriseId, QywxTagInfoDTO infoDTO, List<QywxTagItemDTO> items);
/**
* @param wxEnterpriseId
* @param tagId
* @return
*/
public boolean sync(String wxEnterpriseId, String tagId);
/**
* 关闭同步
*
......@@ -175,15 +167,6 @@ public interface QywxTagService {
public List<TabQywxTagItem> listQywxTagItemByIds(String wxEnterpriseId, List<String> ids);
/**
* 根据企业微信的标签项获取 标签项列表
*
* @param wxEnterpriseId
* @param keys
* @return
*/
public List<TabQywxTagItem> listQywxTagItemByKeys(String wxEnterpriseId, List<String> keys);
/**
* 变更状态
*
* @param id
......
......@@ -34,14 +34,6 @@ public interface StaffClerkRelationService {
String bind(StaffClerkRelationDTO dto, String optStaffId, int channelCode);
/**
* 根据clerkId 更新数据
*
* @param dto
* @return
*/
boolean updateByClerkId(StaffClerkRelationDTO dto);
/**
* 查询绑定根据clerkId
*
* @param clerkId
......@@ -168,14 +160,6 @@ public interface StaffClerkRelationService {
int updateOpenConcatFlagById(Integer openConcatFlag, String staffClerkRelationId);
/**
* 是否有区经
*
* @param enterpriseId 企业标识
* @return {@link StaffClerkRelationDTO}
*/
boolean getBindByManage(String enterpriseId);
/**
* 是否绑定过
*
* @param enterpriseId 企业标识
......
......@@ -14,16 +14,12 @@ public interface StaffDepartmentRelatedService {
List<TabHaobanStaffDepartmentRelated> listStaffDepartmentByStaffId(String staffId);
StaffDepartmentRelatedDTO selectById(String staffDepartmentStaffRelatedId);
void del(StaffDepartmentRelatedDTO related);
void delByStaffid(String userid);
// TabHaobanStaffDepartmentRelated getDepartmentIdAndStaffId(String departmentId, String staffId);
StaffDepartmentRelatedDTO getById(String staffDepartmentStaffRelatedId);
/**
* 清空stafff
* @param wxEnterpriseId
......
......@@ -21,16 +21,6 @@ public interface StaffPrivacyUseLogService {
int insert(StaffPrivacyUseLogBO staffPrivacyUseLogBO);
/**
* 更新
*
* @param staffPrivacyUseLogBO 选项卡员工隐私使用日志bo
* @return int
* @author mozhu
* @date 2021-12-15 10:51:53
*/
int update(StaffPrivacyUseLogBO staffPrivacyUseLogBO);
/**
* 查询
*
* @param staffId 员工id
......
......@@ -70,17 +70,6 @@ public interface StaffService {
List<TabHaobanStaff> listNoStatusByStaffIds(String wxEnterpriseId, List<String> staffIds);
/**
* 通过开放用户id和wx企业id列表
*
* @param openUserIds 开放的用户id
* @param wxEnterpriseId wx企业标识
* @return {@link List<StaffDTO> }
* @author mozhu
* @date 2021-12-21 16:32:50
*/
List<StaffDTO> listByOpenUserIdsAndWxEnterpriseId(List<String> openUserIds, String wxEnterpriseId);
/**
* 更新开放用户id,用户id
*
* @param wxEnterpriseId wx企业标识
......@@ -103,18 +92,6 @@ public interface StaffService {
/**
* 分页获取staff
*
* @param wxEnterpriseId wx企业标识
* @param basePageInfo 基本信息页
* @return {@link List }<{@link StaffDTO }>
* @author mozhu
* @date 2022-06-30 13:58:48
*/
com.gic.api.base.commons.Page<StaffDTO> getPageStaffIdsByWxEnterpriseId(String wxEnterpriseId, BasePageInfo basePageInfo);
/**
* 更新添加num通过id
*
* @param staffId 员工id
......
......@@ -42,24 +42,6 @@ public interface StoreRangeService {
public List<TabStoreRange> queryAllBindRangeByEnterpriseId(String enterpriseId);
/**
* 删除分组id
*
* @param enterpriseId
* @param relationId
* @return
*/
public boolean delStoreRangeByRelationId(String enterpriseId, String relationId);
/**
* 删除门店
*
* @param enterpriseId
* @param storeId
* @return
*/
public boolean delStoreRelationByStoreId(String enterpriseId, String storeId);
/**
* 获取商户所有绑定列表 搜索
*
* @param enterpriseId
......@@ -97,15 +79,6 @@ public interface StoreRangeService {
public List<String> listStoreIdByWxEnterpriseId(String wxEnterpriseId, String enterpriseId);
/**
* 门店数量
*
* @param wxEnterpriseId wx企业标识
* @param enterpriseId 企业标识
* @return int
*/
int getCountStoreIdByWxEnterpriseId(String wxEnterpriseId, String enterpriseId);
/**
* 更新门店名称
*
* @param enterpriseId
......
package com.gic.haoban.manage.service.service;
import java.util.List;
import java.util.Set;
import com.gic.haoban.manage.service.entity.TabHaobanWxEnterpriseApplicationRelated;
public interface WxEnterpriseApplicationRelatedService {
void saveEnterpriseApplicationRelateds(Set<String> applicationSet, String wxEnterpriseId);
List<TabHaobanWxEnterpriseApplicationRelated> listByWxEnterpriseId(String wxEnterpriseId);
}
......@@ -33,8 +33,6 @@ public interface WxEnterpriseService {
void update(WxEnterpriseDTO enterpriseDTO);
int delete(String wxEnterpriseId);
int unbind(String wxEnterpriseId);
/**
......@@ -55,18 +53,6 @@ public interface WxEnterpriseService {
List<WxEnterpriseDTO> listAllEnterprise();
/**
* 更新userid
*
* @param useridFlag userid国旗
* @param corpid corpid
* @param wxEnterpriseId wx企业标识
* @return int
* @author mozhu
* @date 2022-06-30 18:49:31
*/
int updateUseridFlagById(Integer useridFlag, String corpid, String wxEnterpriseId);
/**
* 更新是否开启自动激活
*
* @param autoActiveFlag
......
......@@ -28,14 +28,6 @@ public interface HaobanQywxFeeAccountInterceptLogService {
*/
TabHaobanQywxFeeAccountInterceptLog insert(TabHaobanQywxFeeAccountInterceptLog tabHaobanQywxFeeAccountInterceptLog);
/**
* 修改数据
*
* @param tabHaobanQywxFeeAccountInterceptLog 实例对象
* @return 实例对象
*/
TabHaobanQywxFeeAccountInterceptLog update(TabHaobanQywxFeeAccountInterceptLog tabHaobanQywxFeeAccountInterceptLog);
/**
* 拦截日志
......
......@@ -43,16 +43,6 @@ public interface HaobanQywxFeeAccountStaffService {
HaobanQywxFeeDetailDTO feeIntercept(String wxEnterpriseId);
/**
* 未来30天将拦截数量
*
* @param wxEnterpriseId wx企业标识
* @return int
* @author mozhu
* @date 2022-08-12 13:57:00
*/
int monthWillInterceptNum(String wxEnterpriseId);
void deleteAll(String wxEnterpriseId);
}
......@@ -30,8 +30,5 @@ public interface HaobanQywxFeeOrderAccountService {
* @date 2022-08-05 11:23:01
*/
int countOrderAccountStatus(Integer status,String wxEnterpriseId);
List<TabHaobanQywxFeeOrderAccount> listAccount(String wxEnterpriseId , String ordreId) ;
}
......@@ -30,16 +30,6 @@ public interface HaobanQywxFeeOrderService {
*/
int countExternalContactCount(String wxEnterpriseId);
/**
* 是否有订单
*
* @param wxEnterpriseId wx企业标识
* @return boolean
* @author mozhu
* @date 2022-08-12 10:43:21
*/
boolean hasOrder(String wxEnterpriseId);
/**
*
......
......@@ -39,18 +39,6 @@ public class HaobanQywxFeeAccountInterceptLogServiceImpl implements HaobanQywxFe
return tabHaobanQywxFeeAccountInterceptLog;
}
/**
* 修改数据
*
* @param tabHaobanQywxFeeAccountInterceptLog 实例对象
* @return 实例对象
*/
@Override
public TabHaobanQywxFeeAccountInterceptLog update(TabHaobanQywxFeeAccountInterceptLog tabHaobanQywxFeeAccountInterceptLog) {
this.tabHaobanQywxFeeAccountInterceptLogMapper.update(tabHaobanQywxFeeAccountInterceptLog);
return this.queryById(tabHaobanQywxFeeAccountInterceptLog.getFeeAccountInterceptId());
}
@Override
public List<TabHaobanQywxFeeAccountInterceptLog> queryByWxEnterpriseId(String wxEnterpriseId) {
......
......@@ -51,9 +51,4 @@ public class HaobanQywxFeeAccountStaffServiceImpl implements HaobanQywxFeeAccoun
haobanQywxFeeDetailDTO.setInterceptUserNum(count);
return haobanQywxFeeDetailDTO;
}
@Override
public int monthWillInterceptNum(String wxEnterpriseId) {
return tabHaobanQywxFeeAccountStaffMapper.lastFeeInterceptCount(wxEnterpriseId);
}
}
......@@ -47,10 +47,5 @@ public class HaobanQywxFeeOrderAccountServiceImpl implements HaobanQywxFeeOrderA
public int countOrderAccountStatus(Integer status, String wxEnterpriseId) {
return tabHaobanQywxFeeOrderAccountMapper.countOrderAccountStatus(status,wxEnterpriseId);
}
@Override
public List<TabHaobanQywxFeeOrderAccount> listAccount(String wxEnterpriseId, String ordreId) {
return this.tabHaobanQywxFeeOrderAccountMapper.listAccount(wxEnterpriseId,ordreId);
}
}
......@@ -50,12 +50,6 @@ public class HaobanQywxFeeOrderServiceImpl implements HaobanQywxFeeOrderService
public int countExternalContactCount(String wxEnterpriseId) {
return tabHaobanQywxFeeOrderMapper.countExternalContactCount(wxEnterpriseId);
}
@Override
public boolean hasOrder(String wxEnterpriseId) {
int count = tabHaobanQywxFeeOrderMapper.hasOrder(wxEnterpriseId);
return count > 0;
}
@Override
public List<TabHaobanQywxFeeOrder> listOrder(String wxEnterpriseId) {
......
......@@ -15,13 +15,6 @@ import java.util.List;
*/
public interface HmClerkRelationService {
/**
* 通过ID查询单条数据
*
* @param relationId 主键
* @return 实例对象
*/
HmClerkRelationBO queryById(Long relationId);
/**
* 新增数据
......@@ -31,37 +24,6 @@ public interface HmClerkRelationService {
*/
int insert(HmClerkRelationQDTO hmClerkRelationQDTO);
/**
* 插入批
*
* @param hmClerkRelationQDTOList hm qdtolist职员关系
* @return int
* @author mozhu
* @date 2022-07-05 16:29:31
*/
int insertBatch(List<HmClerkRelationQDTO> hmClerkRelationQDTOList);
/**
* 修改数据
*
* @param hmClerkRelationQDTO 实例对象
* @return 实例对象
*/
int update(HmClerkRelationQDTO hmClerkRelationQDTO);
/**
* 删除
*
* @param hmId hm id
* @return boolean
* @author mozhu
* @date 2022-07-05 16:23:54
*/
boolean deleteByHmId(Long hmId);
/**
* 查询hm id和职员id
*
......
......@@ -18,14 +18,6 @@ public interface HmGroupService {
/**
* 查询分组被引用的次数
* @param enterpriseId
* @param wxEnterpriseId
* @return
*/
Integer queryGroupTotalReferCount(String enterpriseId, String wxEnterpriseId);
/**
* 删除分组
* @param groupDTO
*/
......
......@@ -23,8 +23,6 @@ public interface HmLinkService {
public String saveLink(HmLinkDTO dto, List<HmLinkStoreDTO> stoerList);
public Page<HmLinkBO> listPage(HmLinkSearchQDTO qdto, BasePageInfo basePageInfo);
public Page<HmLinkBO> queryPageRelationList(Long pageId, String enterpriseId, String searchText, BasePageInfo basePageInfo);
}
......@@ -50,17 +50,6 @@ public interface HmQrcodeService {
*/
boolean deleteById(Long hmId);
/**
* 查询根据导购和企业id查询数据
*
* @param clerkId 职员id
* @param enterpriseId 企业标识
* @return {@link List }<{@link HmQrcodeBO }>
* @author mozhu
* @date 2022-07-06 15:35:40
*/
List<HmQrcodeBO> listByClerkId(String clerkId, String enterpriseId);
/**
* 通过门店id查询数据
......
......@@ -23,9 +23,6 @@ public interface HmQrcodeTempService {
*/
public void save(HmQrcodeTempQO qo);
// 删除临时活码
public void deleteQrcode(String relationId);
/**
*
* @Title: deleteForTimer
......
......@@ -17,12 +17,6 @@ import java.util.List;
public interface WelcomeRelationService {
/**
* 查询关联的欢迎语
* @return
*/
String queryWelcomeRelation(WelcomeReferBO welcomeReferBo);
/**
* 条件查询 欢迎语引用列表
* @param welcomeRelationQo
* @return
......@@ -37,13 +31,6 @@ public interface WelcomeRelationService {
Page<HmWelcomeRelationBO> queryWelcomeRelationPage(WelcomeRelationQO welcomeRelationQo);
/**
* 根据 关联方的code 获取关联的欢迎语
* @param referId
* @return
*/
WelcomeDetailBO queryHmWelcomeWithReferId(String referId);
/**
* 保存欢迎语引用关联关系
* @param hmWelcomeRelationBO
* @return
......
......@@ -38,16 +38,6 @@ public class HmClerkRelationServiceImpl implements HmClerkRelationService {
@Autowired
private StoreService storeService ;
/**
* 通过ID查询单条数据
*
* @param relationId 主键
* @return 实例对象
*/
@Override
public HmClerkRelationBO queryById(Long relationId) {
return EntityUtil.changeEntityByOrika(HmClerkRelationBO.class, this.tabHaobanHmClerkRelationMapper.queryById(relationId));
}
@Override
public int insert(HmClerkRelationQDTO hmClerkRelationQDTO) {
......@@ -60,21 +50,6 @@ public class HmClerkRelationServiceImpl implements HmClerkRelationService {
}
@Override
public int insertBatch(List<HmClerkRelationQDTO> hmClerkRelationQDTOList) {
return tabHaobanHmClerkRelationMapper.insertBatch(EntityUtil.changeEntityListByOrika(TabHaobanHmClerkRelation.class,hmClerkRelationQDTOList));
}
@Override
public int update(HmClerkRelationQDTO hmClerkRelationQDTO) {
return this.tabHaobanHmClerkRelationMapper.update(EntityUtil.changeEntityByOrika(TabHaobanHmClerkRelation.class, hmClerkRelationQDTO));
}
@Override
public boolean deleteByHmId(Long hmId) {
return tabHaobanHmClerkRelationMapper.updateStatusByHmId(hmId, 0) > 0;
}
@Override
public HmClerkRelationBO queryByHmIdAndClerkId(Long hmId, String clerkId) {
return EntityUtil.changeEntityByOrika(HmClerkRelationBO.class,tabHaobanHmClerkRelationMapper.queryByHmIdAndClerkId(hmId,clerkId));
}
......
......@@ -45,17 +45,6 @@ public class HmGroupServiceImpl implements HmGroupService {
@Autowired
private TabHaobanHmGroupSettingMapper haobanHmGroupSettingMapper;
/**
* 查询分组被引用的次数
*
* @param enterpriseId
* @param wxEnterpriseId
* @return
*/
@Override
public Integer queryGroupTotalReferCount(String enterpriseId, String wxEnterpriseId) {
return 0;
}
/**
* 删除分组
......
......@@ -191,20 +191,6 @@ public class HmLinkServiceImpl implements HmLinkService {
}
@Override
public Page<HmLinkBO> listPage(HmLinkSearchQDTO qdto, BasePageInfo basePageInfo) {
PageHelper.startPage(basePageInfo);
String wxEnterpriseId = qdto.getWxEnterpriseId();
String enterpriseId = qdto.getEnterpriseId();
Date startDate = qdto.getStartDate();
Date endDate = qdto.getEndDate();
Integer linkType = qdto.getLinkType();
List<TabHmLink> list = this.linkMapper.list(wxEnterpriseId, enterpriseId, startDate, endDate, linkType,
qdto.getSearchParams());
Page<HmLinkBO> retPage = PageHelperUtils.changePageHelperToCurrentPage(list, HmLinkBO.class);
return retPage;
}
@Override
public Page<HmLinkBO> queryPageRelationList(Long pageId, String enterpriseId, String searchText,
BasePageInfo basePageInfo) {
PageHelper.startPage(basePageInfo);
......
......@@ -84,12 +84,6 @@ public class HmQrcodeServiceImpl implements HmQrcodeService {
}
@Override
public List<HmQrcodeBO> listByClerkId(String clerkId, String enterpriseId) {
return EntityUtil.changeEntityListNew(HmQrcodeBO.class,
tabHaobanHmQrcodeMapper.listByClerkId(clerkId, enterpriseId));
}
@Override
public List<HmQrcodeBO> listByStoreId(String wxEnterpriseId, String storeId, Integer overFlag, Integer hmType) {
return EntityUtil.changeEntityListNew(HmQrcodeBO.class,
tabHaobanHmQrcodeMapper.listByStoreId(wxEnterpriseId, storeId, overFlag, hmType));
......
......@@ -42,14 +42,6 @@ public class HmQrcodeTempServiceImpl implements HmQrcodeTempService {
}
@Override
public void deleteQrcode(String relationId) {
TabHmQrcodeTemp item = this.hmQrcodeTempMapper.selectByRelationId(relationId);
if (null != item && item.getStatusFlag() == 1) {
this.del(item);
}
}
@Override
public void deleteForTimer() {
log.info("删除临时活码定时开始");
List<TabHmQrcodeTemp> list = this.hmQrcodeTempMapper.listAll();
......
......@@ -50,17 +50,6 @@ public class WelcomeRelationServiceImpl implements WelcomeRelationService {
/**
* 查询欢迎语关联关系
*
* @retur
*/
@Override
public String queryWelcomeRelation(WelcomeReferBO welcomeReferBo) {
return null;
}
/**
* 条件查询 欢迎语引用列表
*
* @param welcomeRelationQo
......@@ -95,21 +84,6 @@ public class WelcomeRelationServiceImpl implements WelcomeRelationService {
}
/**
* 根据 关联方的code 获取关联的欢迎语
*
* @param referId
* @return
*/
@Override
public WelcomeDetailBO queryHmWelcomeWithReferId(String referId) {
List<TabHaobanWelcomeTemplateRelation> welcomeTemplateRelations = welcomeTemplateRelationMapper.queryWelTemplateRelation(null, referId, WelcomeRelationStatusEnum.ENABLE.getCode());
if (CollectionUtils.isEmpty(welcomeTemplateRelations)) {
return null;
}
return welcomeService.getWelcome(welcomeTemplateRelations.get(0).getWelcomeId(), welcomeTemplateRelations.get(0).getEnterpriseId());
}
/**
* 保存欢迎语引用关联关系
*
* @param hmWelcomeRelationBO
......
......@@ -155,10 +155,6 @@ public class ClerkMainStoreRelatedServiceImpl implements ClerkMainStoreRelatedSe
mapper.updateByPrimaryKeySelective(r);
}
@Override
public List<TabHaobanClerkMainStoreRelated> listByWxEnterpriseId(String wxEnterpriseId) {
return mapper.listByWxEnterpriseId(wxEnterpriseId);
}
}
......@@ -230,15 +230,6 @@ public class DepartmentServiceImpl implements DepartmentService {
return mapper.pageDepartmentByParams(wxEnterpriseId, keyword, storeFlag, recycleFlag);
}
@Override
public void repairRecycle(TabHaobanDepartment tab) {
if (tab != null) {
tab.setRecycleFlag(0);
tab.setUpdateTime(new Date());
}
mapper.updateByPrimaryKeySelective(tab);
}
@Override
public DepartmentDTO getRootByEnterpriseId(String wxEnterpriseId) {
......@@ -281,24 +272,6 @@ public class DepartmentServiceImpl implements DepartmentService {
}
@Override
public DepartmentDTO getByRelatedIdNotInRecycle(String relatedId) {
return EntityUtil.changeEntityByJSON(DepartmentDTO.class, mapper.getByRelatedIdNotInRecycle(relatedId));
}
@Override
public List<DepartmentDTO> listByIds(List<String> departmentIds) {
if (CollectionUtils.isEmpty(departmentIds)) {
return null;
}
return EntityUtil.changeEntityListByJSON(DepartmentDTO.class, mapper.listByIds(departmentIds));
}
@Override
public DepartmentDTO getTempFlagDepartment(String wxEnterpriseId) {
return EntityUtil.changeEntityByJSON(DepartmentDTO.class, mapper.getTempFlagDepartment(wxEnterpriseId));
}
@Override
public Integer totalStoreCountByEnterpriseId(String wxEnterpriseId) {
return mapper.totalStoreCountByEnterpriseId(wxEnterpriseId);
}
......
......@@ -254,12 +254,6 @@ public class ExternalClerkRelatedServiceImpl implements ExternalClerkRelatedServ
}
@Override
public TabHaobanExternalClerkRelated getByParams(String staffId, String wxEnterpriseId, String name,
String createTime) {
return mapper.getByParams(staffId, wxEnterpriseId, name, createTime);
}
@Override
public List<TabHaobanExternalClerkRelated> listByExternalUseridAndWxUserId(String externalUserid, String staffId) {
return mapper.listByExTernalUseridAndWxUserId(externalUserid, staffId, 1);
}
......
......@@ -136,12 +136,6 @@ public class PreDealServiceImpl implements PreDealService {
}
@Override
public boolean existDataId(String taskId, String dataId) {
int i = preDealLogMapper.countByDataId(taskId, dataId, PreDealTypeEnum.clerk.getVal());
return i > 0;
}
@Override
public List<String> listDataIdByTaskIdAndDataType(String taskId, Integer dateType) {
List<String> list = preDealLogMapper.listDataIdByTaskIdAndDataType(taskId, dateType);
if (list == null) {
......@@ -157,13 +151,6 @@ public class PreDealServiceImpl implements PreDealService {
}
@Override
public String getRootDataIdByWxEnterpriseIdAndTaskId(String wxEnterpriseId,
String taskId) {
return preDealLogMapper.getRootDataIdByWxEnterpriseIdAndTaskId(wxEnterpriseId, taskId);
}
@Override
public boolean updateFriendStatusByDataId(String taskId, String dataId, int status, String reason, String dataContent) {
int i = preDealLogMapper.updateFriendStatusByDataId(taskId, dataId, status, reason, dataContent);
return i >= 0;
......@@ -177,16 +164,6 @@ public class PreDealServiceImpl implements PreDealService {
}
@Override
public boolean checkStaffTaskByTaskIdAndPDataId(String taskId, String pDataId) {
return preDealLogMapper.countFailStaffTaskByTaskIdAndPDataId(taskId, pDataId) == 0;
}
@Override
public List<TabHaobanPreDealLog> listByPDataIdAndTaskId(String taskId, String wxUserId) {
return preDealLogMapper.listByPDataIdAndTaskId(taskId, wxUserId);
}
@Override
public TabHaobanPreDealLog getByRelationKey(String taskId, Integer dataType, String relationKey) {
return preDealLogMapper.getByRelationKey(taskId, dataType, relationKey);
}
......
......@@ -135,11 +135,6 @@ public class QywxTagServiceImpl implements QywxTagService {
}
@Override
public boolean sync(String wxEnterpriseId, String tagId) {
return false;
}
@Override
public boolean closeSync(String wxEnterpriseId, String memberTagId) {
qywxTagRelationMapper.delByMemberTagId(wxEnterpriseId, memberTagId);
return true;
......@@ -222,11 +217,6 @@ public class QywxTagServiceImpl implements QywxTagService {
}
@Override
public List<TabQywxTagItem> listQywxTagItemByKeys(String wxEnterpriseId, List<String> keys) {
return qywxTagItemMapper.listByQywxTagItemsKeys(wxEnterpriseId, keys);
}
@Override
public void changeTagRelationStatus(String id, int status) {
TabQywxTagRelation tabQywxTagRelation = new TabQywxTagRelation();
tabQywxTagRelation.setQywxTagRelationId(id);
......
......@@ -205,16 +205,6 @@ public class StaffClerkRelationServiceImpl implements StaffClerkRelationService
return staffClerkRelationId;
}
@Override
public boolean updateByClerkId(StaffClerkRelationDTO dto) {
if (StringUtils.isAnyBlank(dto.getClerkCode(), dto.getClerkId(), dto.getStoreId())) {
logger.info("操作不对:{}", JSONObject.toJSONString(dto));
return false;
}
int i = mapper.updateByClerkId(EntityUtil.changeEntityByJSON(TabHaobanStaffClerkRelation.class, dto));
return i >= 0;
}
@Override
public StaffClerkRelationDTO getBindByClerkId(String clerkId, String wxEnterpriseId) {
......@@ -380,11 +370,6 @@ public class StaffClerkRelationServiceImpl implements StaffClerkRelationService
}
@Override
public boolean getBindByManage(String enterpriseId) {
return mapper.getBindByManage(enterpriseId) > 0;
}
@Override
public boolean getBindByStaffIdAndEnterpriseId(String enterpriseId, String staffId) {
return mapper.getBindByStaffIdAndEnterpriseId(enterpriseId, staffId) > 0;
}
......
......@@ -82,12 +82,6 @@ public class StaffDepartmentRelatedServiceImpl implements StaffDepartmentRelated
}
@Override
public StaffDepartmentRelatedDTO selectById(String staffDepartmentStaffRelatedId) {
return EntityUtil.changeEntityByJSON(StaffDepartmentRelatedDTO.class, mapper.selectByPrimaryKey(staffDepartmentStaffRelatedId));
}
@Override
public void del(StaffDepartmentRelatedDTO related) {
TabHaobanStaffDepartmentRelated tab = EntityUtil.changeEntityByJSON(TabHaobanStaffDepartmentRelated.class, related);
tab.setStatusFlag(0);
......@@ -106,11 +100,6 @@ public class StaffDepartmentRelatedServiceImpl implements StaffDepartmentRelated
// }
@Override
public StaffDepartmentRelatedDTO getById(String staffDepartmentStaffRelatedId) {
return EntityUtil.changeEntityByJSON(StaffDepartmentRelatedDTO.class, mapper.getById(staffDepartmentStaffRelatedId));
}
@Override
public int cleanStaffDepartment(String wxEnterpriseId, List<String> staffIds) {
return mapper.cleanStaffDepartment(wxEnterpriseId,staffIds);
}
......
......@@ -33,15 +33,6 @@ public class StaffPrivacyUseLogServiceImpl implements StaffPrivacyUseLogService
}
@Override
public int update(StaffPrivacyUseLogBO staffPrivacyUseLogBO) {
TabStaffPrivacyUseLog tabStaffPrivacyUseLog = new TabStaffPrivacyUseLog();
BeanUtils.copyProperties(staffPrivacyUseLogBO, tabStaffPrivacyUseLog);
Date date = new Date();
tabStaffPrivacyUseLog.setUpdateTime(date);
return staffPrivacyUseLogMapper.update(tabStaffPrivacyUseLog);
}
@Override
public StaffPrivacyUseLogBO getByStaffId(String staffId) {
TabStaffPrivacyUseLog tabStaffPrivacyUseLog = staffPrivacyUseLogMapper.getByStaffId(staffId);
return EntityUtil.changeEntityByOrika(StaffPrivacyUseLogBO.class, tabStaffPrivacyUseLog);
......
......@@ -139,11 +139,6 @@ public class StaffServiceImpl implements StaffService {
}
@Override
public List<StaffDTO> listByOpenUserIdsAndWxEnterpriseId(List<String> openUserIds, String wxEnterpriseId) {
return EntityUtil.changeEntityListByJSON(StaffDTO.class, mapper.listByOpenUserIdsAndWxEnterpriseId(openUserIds, wxEnterpriseId));
}
@Override
public int updateOpenUserIdsByUserId(String wxEnterpriseId, String wxUserId, String wxOpenUseId) {
return mapper.updateOpenUserIdsByUserId(wxEnterpriseId, wxUserId, wxOpenUseId);
}
......@@ -154,13 +149,6 @@ public class StaffServiceImpl implements StaffService {
}
@Override
public com.gic.api.base.commons.Page<StaffDTO> getPageStaffIdsByWxEnterpriseId(String wxEnterpriseId, BasePageInfo basePageInfo) {
PageHelper.startPage(basePageInfo);
List<TabHaobanStaff> tabHaobanStaffs = mapper.listByWxEnterpriseId(wxEnterpriseId);
return PageUtil.changePageHelperToCurrentPage(new PageInfo<>(tabHaobanStaffs),StaffDTO.class);
}
@Override
public int updateAddNumById(String staffId) {
return mapper.updateAddNumById(staffId);
}
......
......@@ -87,18 +87,6 @@ public class StoreRangeServiceImpl implements StoreRangeService {
}
@Override
public boolean delStoreRangeByRelationId(String enterpriseId, String relationId) {
tabHaobanStoreRangeMapper.delStoreRangeByRelationId(relationId, enterpriseId);
return true;
}
@Override
public boolean delStoreRelationByStoreId(String enterpriseId, String storeId) {
tabHaobanStoreRelationMapper.deleteStoreRalation(enterpriseId, storeId);
return true;
}
@Override
public Page<TabStoreRelation> pageStoreRelation(String enterpriseId, String wxEnterpriseId, String search, BasePageInfo pageInfo) {
PageHelper.startPage(pageInfo);
List<TabStoreRelation> storeRelations = tabHaobanStoreRelationMapper.searchStoreRange(wxEnterpriseId, enterpriseId, search);
......@@ -256,11 +244,6 @@ public class StoreRangeServiceImpl implements StoreRangeService {
}
@Override
public int getCountStoreIdByWxEnterpriseId(String wxEnterpriseId, String enterpriseId) {
return tabHaobanStoreRelationMapper.getCountStoreIdByWxEnterpriseId(wxEnterpriseId, enterpriseId);
}
@Override
public void updatwStoreName(String enterpriseId, String storeId, String storeName) {
tabHaobanStoreRelationMapper.updateStoreName(enterpriseId, storeId, storeName);
}
......
package com.gic.haoban.manage.service.service.impl;
import java.util.Date;
import java.util.List;
import java.util.Set;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.gic.haoban.common.utils.StringUtil;
import com.gic.haoban.manage.service.dao.mapper.TabHaobanWxEnterpriseApplicationRelatedMapper;
import com.gic.haoban.manage.service.entity.TabHaobanWxEnterpriseApplicationRelated;
import com.gic.haoban.manage.service.service.WxEnterpriseApplicationRelatedService;
@Service
public class WxEnterpriseApplicationRelatedServiceImpl implements WxEnterpriseApplicationRelatedService{
@Autowired
private TabHaobanWxEnterpriseApplicationRelatedMapper mapper;
@Override
public void saveEnterpriseApplicationRelateds(Set<String> applicationSet,String wxEnterpriseId){
List<TabHaobanWxEnterpriseApplicationRelated> list = mapper.listByWxEnterpriseId(wxEnterpriseId);
//删除已经设置过的 这次不设置的应用
for (TabHaobanWxEnterpriseApplicationRelated tabHaobanWxEnterpriseApplicationRelated : list) {
if(!applicationSet.contains(tabHaobanWxEnterpriseApplicationRelated.getApplicationId())){
mapper.deleteByPrimaryKey(tabHaobanWxEnterpriseApplicationRelated.getWxEnterpriseApplicationRelatedId());
}
}
//新增设置的应用
for (String applicationId : applicationSet) {
TabHaobanWxEnterpriseApplicationRelated tab = mapper.selectByApplicationIdAndWxEnterpriseId(applicationId,wxEnterpriseId);
if(tab == null){
tab = new TabHaobanWxEnterpriseApplicationRelated();
tab.setApplicationId(applicationId);
tab.setCreateTime(new Date());
tab.setUpdateTime(tab.getCreateTime());
tab.setStatusFlag(1);
tab.setWxEnterpriseId(wxEnterpriseId);
tab.setWxEnterpriseApplicationRelatedId(StringUtil.randomUUID());
mapper.insert(tab);
}
}
}
@Override
public List<TabHaobanWxEnterpriseApplicationRelated> listByWxEnterpriseId(String wxEnterpriseId) {
return mapper.listByWxEnterpriseId(wxEnterpriseId);
}
}
......@@ -113,15 +113,6 @@ public class WxEnterpriseServiceImpl implements WxEnterpriseService {
}
@Override
public int delete(String wxEnterpriseId) {
TabHaobanWxEnterprise enterprise = new TabHaobanWxEnterprise();
enterprise.setWxEnterpriseId(wxEnterpriseId);
enterprise.setStatusFlag(0);
enterprise.setUpdateTime(new Date());
return this.mapper.updateByPrimaryKeySelective(enterprise);
}
@Override
public int unbind(String wxEnterpriseId) {
TabHaobanWxEnterprise enterprise = new TabHaobanWxEnterprise();
enterprise.setWxEnterpriseId(wxEnterpriseId);
......@@ -141,10 +132,6 @@ public class WxEnterpriseServiceImpl implements WxEnterpriseService {
}
@Override
public int updateUseridFlagById(Integer useridFlag, String corpid, String wxEnterpriseId) {
return mapper.updateUseridFlagById(useridFlag, corpid, wxEnterpriseId);
}
@Override
public void stopHaoban(String enterpriseId) {
List<TabHaobanWxEnterpriseRelated> list = this.wxEnterpriseRelatedMapper.listByEnterpriseId(enterpriseId) ;
logger.info("停用好办={},商户list={}",enterpriseId,JSON.toJSONString(list));
......
......@@ -3,17 +3,16 @@ package com.gic.haoban.manage.service.service.out.impl;
import cn.hutool.core.collection.CollectionUtil;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.gic.api.base.commons.JSONResponse;
import com.gic.api.base.commons.Page;
import com.gic.commons.util.EntityUtil;
import com.gic.commons.util.GICMQClientUtil;
import com.gic.haoban.base.api.common.BasePageInfo;
import com.gic.haoban.base.api.common.Constant;
import com.gic.haoban.base.api.common.ServiceResponse;
import com.gic.haoban.common.utils.PageUtil;
import com.gic.haoban.common.utils.StringUtil;
import com.gic.haoban.manage.api.dto.*;
import com.gic.haoban.manage.api.enums.SecretTypeEnum;
import com.gic.haoban.manage.api.dto.DepartmentDTO;
import com.gic.haoban.manage.api.dto.DepartmentShortDTO;
import com.gic.haoban.manage.api.dto.WxEnterpriseDTO;
import com.gic.haoban.manage.api.service.DepartmentApiService;
import com.gic.haoban.manage.api.service.StaffApiService;
import com.gic.haoban.manage.api.service.StaffDepartmentRelatedApiService;
......@@ -22,7 +21,6 @@ import com.gic.haoban.manage.service.entity.TabHaobanDepartment;
import com.gic.haoban.manage.service.entity.TabHaobanStaffDepartmentRelated;
import com.gic.haoban.manage.service.entity.TabHaobanSyncErrorLog;
import com.gic.haoban.manage.service.service.*;
import com.gic.haoban.manage.service.task.RouterConstant;
import com.gic.redis.data.util.RedisUtil;
import com.gic.wechat.api.service.qywx.QywxDepartmentApiService;
import com.github.pagehelper.PageHelper;
......@@ -184,22 +182,6 @@ public class DepartmentApiServiceImpl implements DepartmentApiService {
}
}
/**
* 向上找父节点
*
* @param departmentId
* @return
*/
private DepartmentDTO getParent(String departmentId) {
DepartmentDTO department = departmentService.getByRelatedId(departmentId);
if (department == null) {
com.gic.enterprise.api.dto.DepartmentDTO dto = gicDepartmentService.getDeptment(departmentId);
String parentId = dto.getParentDepartId();
getParent(parentId);
}
return department;
}
@Override
public void syncGicDepartment(String fieldListString) {
......@@ -235,24 +217,6 @@ public class DepartmentApiServiceImpl implements DepartmentApiService {
}
}
private void insertMQ(Integer parentId,
String wxEnterpriseId, String corpid, String contactSecret, String taskId) {
JSONObject json = new JSONObject();
json.put("parentId", parentId);
json.put("wxEnterpriseId", wxEnterpriseId);
json.put("corpid", corpid);
json.put("contactSecret", contactSecret);
json.put("taskId", taskId);
logger.info("【初始化部门调用】{},{},{}", RouterConstant.INIT_WX_DEPARTMENT_SERVICENAME, RouterConstant.INIT_WX_DEPARTMENT_METHODNAME, json.toJSONString());
try {
GICMQClientUtil.getClientInstance().sendCommonMessage(RouterConstant.ROUTERTYPE, json.toJSONString(),
RouterConstant.INIT_WX_DEPARTMENT_SERVICENAME, RouterConstant.INIT_WX_DEPARTMENT_METHODNAME);
} catch (Exception e) {
logger.info(e.getMessage(), e);
}
}
@Override
public void syncWxDepartmentByParentMQ(String res) {
JSONObject json = JSON.parseObject(res);
......
......@@ -12,22 +12,6 @@ import java.util.List;
*/
public interface HaobanRoleMenuService {
/**
* 通过ID查询单条数据
*
* @param roleMenuId 主键
* @return 实例对象
*/
TabHaobanRoleMenu queryById(Long roleMenuId);
/**
* 新增数据
*
* @param tabHaobanRoleMenu 实例对象
* @return 实例对象
*/
int insert(TabHaobanRoleMenu tabHaobanRoleMenu);
/**
* 批量新增数据
......@@ -40,22 +24,6 @@ public interface HaobanRoleMenuService {
int insertBatch(List<TabHaobanRoleMenu> roleMenuList);
/**
* 修改数据
*
* @param tabHaobanRoleMenu 实例对象
* @return 实例对象
*/
int update(TabHaobanRoleMenu tabHaobanRoleMenu);
/**
* 通过主键删除数据
*
* @param roleMenuId 主键
* @return 是否成功
*/
boolean deleteById(Long roleMenuId);
/**
* 按角色删除id
*
* @param roleId 角色id
......
......@@ -22,14 +22,6 @@ public interface HaobanRoleService {
TabHaobanRole queryById(Long roleId);
/**
* 新增数据
*
* @param tabHaobanRole 实例对象
* @return 实例对象
*/
TabHaobanRole insert(TabHaobanRole tabHaobanRole);
/**
* 插入批量
*
* @param tabHaobanRoles 选项卡haoban作用
......@@ -47,14 +39,6 @@ public interface HaobanRoleService {
*/
TabHaobanRole update(TabHaobanRole tabHaobanRole);
/**
* 通过主键删除数据
*
* @param roleId 主键
* @return 是否成功
*/
boolean deleteByRoleId(Long roleId);
/**
* 删除企业权限
......
......@@ -22,60 +22,12 @@ public class HaobanRoleMenuServiceImpl implements HaobanRoleMenuService {
@Autowired
private TabHaobanRoleMenuMapper tabHaobanRoleMenuMapper;
/**
* 通过ID查询单条数据
*
* @param roleMenuId 主键
* @return 实例对象
*/
@Override
public TabHaobanRoleMenu queryById(Long roleMenuId) {
return this.tabHaobanRoleMenuMapper.queryById(roleMenuId);
}
/**
* 新增数据
*
* @param tabHaobanRoleMenu 实例对象
* @return 实例对象
*/
@Override
public int insert(TabHaobanRoleMenu tabHaobanRoleMenu) {
tabHaobanRoleMenu.setRoleId(UniqueIdUtils.uniqueLong());
tabHaobanRoleMenu.setCreateTime(new Date());
tabHaobanRoleMenu.setUpdateTime(new Date());
return this.tabHaobanRoleMenuMapper.insert(tabHaobanRoleMenu);
}
@Override
public int insertBatch(List<TabHaobanRoleMenu> roleMenuList) {
return this.tabHaobanRoleMenuMapper.insertBatch(roleMenuList);
}
/**
* 修改数据
*
* @param tabHaobanRoleMenu 实例对象
* @return 实例对象
*/
@Override
public int update(TabHaobanRoleMenu tabHaobanRoleMenu) {
return this.tabHaobanRoleMenuMapper.update(tabHaobanRoleMenu);
}
/**
* 通过主键删除数据
*
* @param roleMenuId 主键
* @return 是否成功
*/
@Override
public boolean deleteById(Long roleMenuId) {
return this.tabHaobanRoleMenuMapper.deleteById(roleMenuId) > 0;
}
@Override
public boolean deleteByRoleId(Long roleId) {
return tabHaobanRoleMenuMapper.deleteByRoleId(roleId) > 0;
......
......@@ -35,22 +35,6 @@ public class HaobanRoleServiceImpl implements HaobanRoleService {
return this.tabHaobanRoleMapper.queryById(roleId);
}
/**
* 新增数据
*
* @param tabHaobanRole 实例对象
* @return 实例对象
*/
@Override
public TabHaobanRole insert(TabHaobanRole tabHaobanRole) {
tabHaobanRole.setRoleId(UniqueIdUtils.uniqueLong());
tabHaobanRole.setCreateTime(new Date());
tabHaobanRole.setUpdateTime(new Date());
this.tabHaobanRoleMapper.insert(tabHaobanRole);
return tabHaobanRole;
}
@Override
public int insertBatch(List<TabHaobanRole> tabHaobanRoles) {
for (TabHaobanRole tabHaobanRole : tabHaobanRoles) {
......@@ -73,17 +57,6 @@ public class HaobanRoleServiceImpl implements HaobanRoleService {
return this.queryById(tabHaobanRole.getRoleId());
}
/**
* 通过主键删除数据
*
* @param roleId 主键
* @return 是否成功
*/
@Override
public boolean deleteByRoleId(Long roleId) {
return tabHaobanRoleMapper.deleteByRoleId(roleId) > 0;
}
@Override
public boolean deleteByWxEnterpriseId(String wxEnterpriseId, Integer systemFlag) {
return tabHaobanRoleMapper.deleteByWxEnterpriseId(wxEnterpriseId,systemFlag) > 0;
......
......@@ -415,15 +415,6 @@
and status_flag = 1
</select>
<select id="getByRelatedIdNotInRecycle" resultMap="BaseResultMap" parameterType="java.lang.String">
select
<include refid="Base_Column_List"/>
from tab_haoban_department
where related_id = #{relatedId}
and status_flag = 1
and recycle_flag != 1
</select>
<select id="pageByParentId" resultMap="BaseResultMap" parameterType="java.lang.String">
select
......@@ -474,27 +465,7 @@
and recycle_flag != 1
</select>
<select id="listByIds" resultMap="BaseResultMap">
select
<include refid="Base_Column_List"/>
from tab_haoban_department
where status_flag = 1
and department_id IN
<foreach collection="departmentIds" item="id" index="index" open="(" close=")" separator=",">
#{id,jdbcType=VARCHAR}
</foreach>
order by sort desc
</select>
<select id="getTempFlagDepartment" resultMap="BaseResultMap" parameterType="java.lang.String">
select
<include refid="Base_Column_List"/>
from tab_haoban_department
where wx_enterprise_id = #{wxEnterpriseId}
and status_flag = 1
and temp_flag = 1
</select>
<select id="totalStoreCountByEnterpriseId" resultType="java.lang.Integer" parameterType="java.lang.String">
select count(1)
......
......@@ -306,17 +306,6 @@
where task_id = #{taskId}
and status_flag =3
</select>
<select id="countByDataId" resultType="integer">
select
count(*)
from tab_haoban_pre_deal_log
where task_id = #{taskId}
and data_id =#{dataId}
<if test="dataType!=-1">
and data_type=#{dataType}
</if>
</select>
<select id="listDataIdByTaskIdAndDataType" resultType="java.lang.String">
select
......@@ -333,15 +322,7 @@
from tab_haoban_pre_deal_log
where task_id = #{taskId,jdbcType=INTEGER} order by update_time desc limit 1
</select>
<select id="getRootDataIdByWxEnterpriseIdAndTaskId" resultType="java.lang.String">
select
data_id
from tab_haoban_pre_deal_log
where task_id = #{taskId}
and p_data_id =0
and wx_enterprise_id =#{wxEnterpriseId} limit 1
</select>
<update id="updateFriendStatusByDataId">
update tab_haoban_pre_deal_log
......@@ -367,24 +348,7 @@
</set>
where data_id = #{dataId,jdbcType=INTEGER} and task_id=#{taskId} and data_type = #{dataType}
</update>
<select id="countFailStaffTaskByTaskIdAndPDataId" resultType="integer">
select
count(*)
from tab_haoban_pre_deal_log
where task_id = #{taskId}
and p_data_id =#{pDataId}
and status_flag != 2
and status_flag != 3
</select>
<select id="listByPDataIdAndTaskId" resultMap="BaseResultMap">
select
<include refid="Base_Column_List_data"/>
from tab_haoban_pre_deal_log
where task_id = #{taskId}
and p_data_id =#{pDataId}
</select>
<select id="getByRelationKey" resultMap="BaseResultMap">
select
......
......@@ -18,12 +18,6 @@
staff_department_related_id, staff_id, phone_number, nation_code, department_id,
status_flag, clerk_code, create_time, update_time,wx_enterprise_id,staff_name
</sql>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String">
select
<include refid="Base_Column_List"/>
from tab_haoban_staff_department_related
where staff_department_related_id = #{staffDepartmentRelatedId,jdbcType=VARCHAR}
</select>
<insert id="insert" parameterType="com.gic.haoban.manage.service.entity.TabHaobanStaffDepartmentRelated">
insert into tab_haoban_staff_department_related (staff_department_related_id, staff_id,
......
......@@ -472,20 +472,6 @@
order by update_time desc,create_time desc limit 1
</select>
<select id="listByOpenUserIdsAndWxEnterpriseId" resultMap="BaseResultMap">
select
<include refid="Base_Column_List"/>
from tab_haoban_staff
where status_flag = 1
and wx_enterprise_id = #{wxEnterpriseId}
<if test="openUserIds != null and openUserIds.size() > 0">
and wx_open_user_id IN
<foreach collection="openUserIds" item="id" index="index" open="(" close=")" separator=",">
#{id,jdbcType=VARCHAR}
</foreach>
</if>
</select>
<update id="updateOpenUserIdsByUserId" parameterType="com.gic.haoban.manage.service.entity.TabHaobanStaff">
update tab_haoban_staff
set wx_open_user_id = #{wxOpenUseId},
......
......@@ -124,51 +124,6 @@
</trim>
</insert>
<update id="update" parameterType="com.gic.haoban.manage.service.entity.TabStaffPrivacyUseLog">
UPDATE tab_staff_privacy_use_log
<set>
<if test="null != staffId and '' != staffId">
staff_id = #{staffId},
</if>
<if test="null != wxOpenUseId">
wx_open_user_id = #{wxOpenUseId},
</if>
<if test="null != wxEnterpriseId and '' != wxEnterpriseId">
wx_enterprise_id = #{wxEnterpriseId},
</if>
<if test="null != privacyUseFlag">
privacy_use_flag = #{privacyUseFlag},
</if>
<if test="null != phoneNumber and '' != phoneNumber">
phone_number = #{phoneNumber},
</if>
<if test="null != welldoneVersion and '' != welldoneVersion">
welldone_version = #{welldoneVersion},
</if>
<if test="null != weworkVersion and '' != weworkVersion">
wework_version = #{weworkVersion},
</if>
<if test="null != staffPhoneBrand and '' != staffPhoneBrand">
staff_phone_brand = #{staffPhoneBrand},
</if>
<if test="null != staffPhoneModel and '' != staffPhoneModel">
staff_phone_model = #{staffPhoneModel},
</if>
<if test="null != staffPhoneVersion and '' != staffPhoneVersion">
staff_phone_version = #{staffPhoneVersion},
</if>
<if test="null != staffIp and '' != staffIp">
staff_ip = #{staffIp},
</if>
<if test="null != createTime">
create_time = #{createTime},
</if>
<if test="null != updateTime">
update_time = #{updateTime}
</if>
</set>
WHERE id = #{id}
</update>
<select id="getByStaffId" resultMap="BaseResultMap">
......
......@@ -77,15 +77,7 @@
</if>
limit 1
</select>
<select id="listByWxEnterpriseId" resultMap="BaseResultMap" parameterType="java.lang.String" >
select
<include refid="Base_Column_List" />
from tab_haoban_clerk_main_store_related
where wx_enterprise_id = #{wxEnterpriseId}
and status_flag = 1
group by staff_id
</select>
<update id="delMainStore">
update tab_haoban_clerk_main_store_related
......
......@@ -288,17 +288,6 @@
and status_flag = 1
</update>
<select id="getByParams" resultMap="BaseResultMap" parameterType="java.lang.String">
select
<include refid="Base_Column_List"/>
from tab_haoban_external_clerk_related
where 1
and staffId = #{staffId}
and wx_enterprise_id = #{wxEnterpriseId}
and external_name = #{name}
and add_create_time = #{createTime}
and status_flag = 1
</select>
<select id="listByExTernalUseridAndWxUserId" resultMap="BaseResultMap">
select
......
......@@ -71,29 +71,6 @@
</insert>
<!--通过主键修改数据-->
<update id="update">
update tab_haoban_qywx_fee_account_intercept_log
<set>
<if test="corpId != null and corpId != ''">
corp_id = #{corpId},
</if>
<if test="wxEnterpriseId != null and wxEnterpriseId != ''">
wx_enterprise_id = #{wxEnterpriseId},
</if>
<if test="wxUserId != null and wxUserId != ''">
wx_user_id = #{wxUserId},
</if>
<if test="staffId != null and staffId != ''">
staff_id = #{staffId},
</if>
<if test="qwCreateTime != null">
qw_create_time = #{qwCreateTime},
</if>
</set>
where fee_account_intercept_id = #{feeAccountInterceptId}
</update>
<!--通过主键删除-->
<delete id="deleteById">
delete
......
......@@ -99,14 +99,6 @@
and status_flag != #{status}
</update>
<update id="updateByClerkId" parameterType="com.gic.haoban.manage.service.entity.TabHaobanStaffClerkRelation">
update tab_haoban_staff_clerk_relation
set store_id = #{storeId,jdbcType=VARCHAR},
clerk_code = #{clerkCode,jdbcType=VARCHAR},
update_time = now()
where clerk_id = #{clerkId,jdbcType=VARCHAR}
</update>
<update id="delByStoreIdAndCode">
update tab_haoban_staff_clerk_relation
set status_flag = 0,
......@@ -398,13 +390,6 @@
where enterprise_id = #{enterpriseId}
</update>
<select id="getBindByManage" resultType="java.lang.Integer">
select count(*)
from tab_haoban_staff_clerk_relation a left join tab_haoban_staff b on a.staff_id = b.staff_id
where a.status_flag = 1 and b.status_flag = 1
and a.enterprise_id = #{enterpriseId}
and a.manage_flag = 1
</select>
<select id="getBindByStaffIdAndEnterpriseId" resultType="java.lang.Integer">
select count(*)
......@@ -442,7 +427,7 @@
<select id="listByStoreIds" resultType="com.gic.haoban.manage.api.dto.StaffClerkRelationDTO">
<include refid="leftJoinStaffSQL"/>
where a.status_flag=1 and b.status_flag=1
where a.status_flag=1 and b.status_flag=1
<if test="null != storeIds">
and a.store_id in
<foreach collection="storeIds" index="index" item="item" open="(" separator="," close=")">
......
......@@ -149,17 +149,6 @@
and status_flag =1
</update>
<update id="delStoreRangeByRelationId">
update tab_haoban_store_range
SET
status_flag = 0,
update_time = now()
where
enterprise_id = #{enterpriseId,jdbcType=VARCHAR}
and relation_id=#{relationId}
and status_flag =1
</update>
<insert id="insertBatch">
insert into tab_haoban_store_range (store_range_id, wx_enterprise_id, enterprise_id,
relation_id, relation_type, status_flag,
......
......@@ -38,15 +38,6 @@
)
</foreach>
</insert>
<update id="deleteStoreRalation">
update tab_haoban_store_relation
set status_flag = 0,
update_time = now()
where store_id = #{storeId,jdbcType=VARCHAR}
and enterprise_id = #{enterpriseId}
and status_flag = 1
</update>
<select id="searchStoreRange" resultMap="BaseResultMap">
select
......@@ -128,15 +119,4 @@
and status_flag = 1
</select>
<select id="getCountStoreIdByWxEnterpriseId" resultType="java.lang.Integer">
select
count(*)
from tab_haoban_store_relation
where
wx_enterprise_id = #{wxEnterpriseId,jdbcType=VARCHAR}
<if test="enterpriseId!=null">
and enterprise_id = #{enterpriseId,jdbcType=VARCHAR}
</if>
and status_flag=1
</select>
</mapper>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="com.gic.haoban.manage.service.dao.mapper.TabHaobanWxEnterpriseApplicationRelatedMapper" >
<resultMap id="BaseResultMap" type="com.gic.haoban.manage.service.entity.TabHaobanWxEnterpriseApplicationRelated" >
<id column="wx_enterprise_application_related_id" property="wxEnterpriseApplicationRelatedId" jdbcType="VARCHAR" />
<result column="application_id" property="applicationId" jdbcType="VARCHAR" />
<result column="wx_enterprise_id" property="wxEnterpriseId" jdbcType="VARCHAR" />
<result column="status_flag" property="statusFlag" jdbcType="INTEGER" />
<result column="create_time" property="createTime" jdbcType="TIMESTAMP" />
<result column="update_time" property="updateTime" jdbcType="TIMESTAMP" />
</resultMap>
<sql id="Base_Column_List" >
wx_enterprise_application_related_id, application_id, wx_enterprise_id, status_flag,
create_time, update_time
</sql>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
select
<include refid="Base_Column_List" />
from tab_haoban_wx_enterprise_application_related
where wx_enterprise_application_related_id = #{wxEnterpriseApplicationRelatedId,jdbcType=VARCHAR}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
delete from tab_haoban_wx_enterprise_application_related
where wx_enterprise_application_related_id = #{wxEnterpriseApplicationRelatedId,jdbcType=VARCHAR}
</delete>
<insert id="insert" parameterType="com.gic.haoban.manage.service.entity.TabHaobanWxEnterpriseApplicationRelated" >
insert into tab_haoban_wx_enterprise_application_related (wx_enterprise_application_related_id, application_id,
wx_enterprise_id, status_flag, create_time,
update_time)
values (#{wxEnterpriseApplicationRelatedId,jdbcType=VARCHAR}, #{applicationId,jdbcType=VARCHAR},
#{wxEnterpriseId,jdbcType=VARCHAR}, #{statusFlag,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP},
#{updateTime,jdbcType=TIMESTAMP})
</insert>
<insert id="insertSelective" parameterType="com.gic.haoban.manage.service.entity.TabHaobanWxEnterpriseApplicationRelated" >
insert into tab_haoban_wx_enterprise_application_related
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="wxEnterpriseApplicationRelatedId != null" >
wx_enterprise_application_related_id,
</if>
<if test="applicationId != null" >
application_id,
</if>
<if test="wxEnterpriseId != null" >
wx_enterprise_id,
</if>
<if test="statusFlag != null" >
status_flag,
</if>
<if test="createTime != null" >
create_time,
</if>
<if test="updateTime != null" >
update_time,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="wxEnterpriseApplicationRelatedId != null" >
#{wxEnterpriseApplicationRelatedId,jdbcType=VARCHAR},
</if>
<if test="applicationId != null" >
#{applicationId,jdbcType=VARCHAR},
</if>
<if test="wxEnterpriseId != null" >
#{wxEnterpriseId,jdbcType=VARCHAR},
</if>
<if test="statusFlag != null" >
#{statusFlag,jdbcType=INTEGER},
</if>
<if test="createTime != null" >
#{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateTime != null" >
#{updateTime,jdbcType=TIMESTAMP},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.gic.haoban.manage.service.entity.TabHaobanWxEnterpriseApplicationRelated" >
update tab_haoban_wx_enterprise_application_related
<set >
<if test="applicationId != null" >
application_id = #{applicationId,jdbcType=VARCHAR},
</if>
<if test="wxEnterpriseId != null" >
wx_enterprise_id = #{wxEnterpriseId,jdbcType=VARCHAR},
</if>
<if test="statusFlag != null" >
status_flag = #{statusFlag,jdbcType=INTEGER},
</if>
<if test="createTime != null" >
create_time = #{createTime,jdbcType=TIMESTAMP},
</if>
<if test="updateTime != null" >
update_time = #{updateTime,jdbcType=TIMESTAMP},
</if>
</set>
where wx_enterprise_application_related_id = #{wxEnterpriseApplicationRelatedId,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="com.gic.haoban.manage.service.entity.TabHaobanWxEnterpriseApplicationRelated" >
update tab_haoban_wx_enterprise_application_related
set application_id = #{applicationId,jdbcType=VARCHAR},
wx_enterprise_id = #{wxEnterpriseId,jdbcType=VARCHAR},
status_flag = #{statusFlag,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP}
where wx_enterprise_application_related_id = #{wxEnterpriseApplicationRelatedId,jdbcType=VARCHAR}
</update>
<select id="selectByApplicationIdAndWxEnterpriseId" resultMap="BaseResultMap" parameterType="java.lang.String" >
select
<include refid="Base_Column_List" />
from tab_haoban_wx_enterprise_application_related
where wx_enterprise_id = #{wxEnterpriseId,jdbcType=VARCHAR}
and application_id = #{applicationId}
and status_flag = 1
</select>
<select id="listByWxEnterpriseId" resultMap="BaseResultMap" parameterType="java.lang.String" >
select
<include refid="Base_Column_List" />
from tab_haoban_wx_enterprise_application_related
where wx_enterprise_id = #{wxEnterpriseId,jdbcType=VARCHAR}
and status_flag = 1
</select>
</mapper>
\ No newline at end of file
......@@ -480,13 +480,6 @@
where wx_enterprise_id = #{wxEnterpriseId}
</update>
<update id="updateUseridFlagById">
update tab_haoban_wx_enterprise
set userid_flag = #{useridFlag},
update_time = now()
where wx_enterprise_id = #{wxEnterpriseId}
</update>
<update id="updateAutoActiveFlagById">
update tab_haoban_wx_enterprise
......
......@@ -77,13 +77,7 @@
from tab_haoban_qywx_fee_order_account
where wx_enterprise_id = #{wxEnterpriseId} and status = #{status}
</select>
<select id="listAccount" resultMap="TabHaobanQywxFeeOrderAccountMap">
select
<include refid="Base_Column_List"/>
from tab_haoban_qywx_fee_order_account
where wx_enterprise_id = #{wxEnterpriseId} and order_id = #{orderId} and status in (1,2,4,5,6)
</select>
<select id="countStatusByWxEnterpriseId" resultType="java.util.HashMap">
select
......
......@@ -45,11 +45,6 @@
where wx_enterprise_id = #{wxEnterpriseId}
</select>
<select id="hasOrder" resultType="java.lang.Integer">
select count(*)
from tab_haoban_qywx_fee_order
where wx_enterprise_id = #{wxEnterpriseId}
</select>
<select id="listOrder" resultMap="TabHaobanQywxFeeOrderMap">
......
......@@ -137,25 +137,6 @@
limit 20
</select>
<select id="list" resultMap="result-map-tabHaobanHmLink">
select <include refid="Base_Column_List" /> from tab_haoban_hm_link where wx_enterprise_id=#{wxEnterpriseId} and enterprise_id=#{enterpriseId}
<if test="null != startDate">
and create_time >= #{startDate}
</if>
<if test="null != endDate">
and create_time <![CDATA[<=]]> #{endDate}
</if>
<if test="null != searchParams">
and ( link_code like '%${searchParams}%' or creator_name like '%${searchParams}%' or name like '%${searchParams}%' )
</if>
<if test="null == linkType">
and link_type in (1,2)
</if>
<if test="null != linkType">
and link_type = #{linkType}
</if>
and status_flag = 1 order by create_time desc
</select>
<select id="queryPageRelationList" resultMap="result-map-tabHaobanHmLink">
select <include refid="Base_Column_List"/>
......
......@@ -49,12 +49,7 @@
<update id="deleteByPrimaryKey" parameterType="long">
UPDATE tab_haoban_hm_qrcode_temp SET status_flag = 0 , update_time=now() WHERE id = #{id} and status_flag=1
</update>
<!-- ============ 查询============= -->
<select id="selectByRelationId" parameterType="String"
resultMap="result-map-tabHaobanHmQrcodeTemp">
SELECT <include refid="Base_Column_List" /> FROM tab_haoban_hm_qrcode_temp WHERE relation_id = #{relationId}
</select>
<select id="listAll" resultMap="result-map-tabHaobanHmQrcodeTemp">
select <include refid="Base_Column_List" /> from tab_haoban_hm_qrcode_temp where create_time >= DATE_ADD(now(),INTERVAL -6 HOUR) and create_time <![CDATA[<=]]> DATE_ADD(now(),INTERVAL -1 HOUR) and status_flag = 1 limit 10000
......
......@@ -28,12 +28,6 @@
create_time, update_time, over_flag, add_num,staff_id,staff_name
</sql>
<!--查询单个-->
<select id="queryById" resultMap="TabHaobanHmClerkRelationMap">
select <include refid="Base_Column_List"></include>
from tab_haoban_hm_clerk_relation
where relation_id = #{relationId}
</select>
<!--新增所有列-->
<insert id="insert" keyProperty="relationId" useGeneratedKeys="true">
......@@ -44,84 +38,6 @@
#{clerkId}, #{clerkName}, #{clerkCode}, #{status}, #{createTime}, #{updateTime}, #{overFlag}, #{addNum},#{staffId},#{staffName})
</insert>
<insert id="insertBatch" keyProperty="relationId" useGeneratedKeys="true">
insert into tab_haoban_hm_clerk_relation(relation_id,hm_id, wx_enterprise_id, enterprise_id, store_id,
store_name, store_code, clerk_id, clerk_name, clerk_code, status, create_time, update_time, over_flag,add_num,staff_id,staff_name)
values
<foreach collection="entities" item="entity" separator=",">
(#{entity.relationId},#{entity.hmId}, #{entity.wxEnterpriseId}, #{entity.enterpriseId}, #{entity.storeId},
#{entity.storeName}, #{entity.storeCode}, #{entity.clerkId}, #{entity.clerkName}, #{entity.clerkCode},
#{entity.status}, #{entity.createTime}, #{entity.updateTime}, #{entity.overFlag},#{entity.addNum},
#{entity.staffId},#{entity.staffName})
</foreach>
</insert>
<!--通过主键修改数据-->
<update id="update">
update tab_haoban_hm_clerk_relation
<set>
<if test="hmId != null">
hm_id = #{hmId},
</if>
<if test="wxEnterpriseId != null and wxEnterpriseId != ''">
wx_enterprise_id = #{wxEnterpriseId},
</if>
<if test="enterpriseId != null and enterpriseId != ''">
enterprise_id = #{enterpriseId},
</if>
<if test="storeId != null and storeId != ''">
store_id = #{storeId},
</if>
<if test="storeName != null and storeName != ''">
store_name = #{storeName},
</if>
<if test="storeCode != null and storeCode != ''">
store_code = #{storeCode},
</if>
<if test="clerkId != null and clerkId != ''">
clerk_id = #{clerkId},
</if>
<if test="clerkName != null and clerkName != ''">
clerk_name = #{clerkName},
</if>
<if test="clerkCode != null and clerkCode != ''">
clerk_code = #{clerkCode},
</if>
<if test="status != null">
status = #{status},
</if>
<if test="createTime != null">
create_time = #{createTime},
</if>
<if test="updateTime != null">
update_time = #{updateTime},
</if>
<if test="overFlag != null">
over_flag = #{overFlag},
</if>
<if test="addNum != null">
add_num = #{addNum},
</if>
<if test="staffId != null">
staff_id = #{staffId},
</if>
<if test="staffName != null">
staff_name = #{staffName},
</if>
</set>
where relation_id = #{relationId}
</update>
<!--通过主键删除-->
<update id="updateStatusByHmId">
update tab_haoban_hm_clerk_relation
<set>
status = #{status},
update_time = now()
</set>
where hm_id = #{hmId}
</update>
<!--查询单个-->
<select id="queryByHmIdAndClerkId" resultMap="TabHaobanHmClerkRelationMap">
select <include refid="Base_Column_List"></include>
......
......@@ -198,15 +198,6 @@
where hm_id = #{hmId}
</update>
<select id="listByClerkId" resultMap="TabHaobanHmQrcodeMap">
select
<include refid="Base_Column_List"></include>
from tab_haoban_hm_qrcode
where enterprise_id = #{enterpriseId}
and clerk_id = #{clerkId}
and status_flag in (1, 3)
</select>
<select id="listByStoreId" resultMap="TabHaobanHmQrcodeMap">
select
<include refid="Base_Column_List"></include>
......
......@@ -29,12 +29,6 @@
where role_id = #{roleId}
</select>
<!--新增所有列-->
<insert id="insert" keyProperty="roleId" useGeneratedKeys="true">
insert into tab_haoban_role(role_id, role_name, clerk_type, wx_enterprise_id, creator_id, creator_name, modifier_id, modifier_name, status_flag, create_time, update_time,system_flag)
values (#{roleId}, #{roleName}, #{clerkType}, #{wxEnterpriseId}, #{creatorId}, #{creatorName}, #{modifierId}, #{modifierName}, #{statusFlag}, #{createTime}, #{updateTime},#{systemFlag})
</insert>
<insert id="insertBatch" keyProperty="roleId" useGeneratedKeys="true">
insert into tab_haoban_role(role_id, role_name, clerk_type, wx_enterprise_id,
creator_id, creator_name, modifier_id, modifier_name, status_flag, create_time, update_time,system_flag)
......@@ -89,10 +83,6 @@
where role_id = #{roleId}
</update>
<delete id="deleteByRoleId">
delete from tab_haoban_role where role_id = #{roleId}
</delete>
<select id="getByWxEnterpriseIdAndClerkType" resultMap="TabHaobanRoleMap">
select
<include refid="Base_Column_List"/>
......
......@@ -16,21 +16,6 @@
role_menu_id, role_id, wx_enterprise_id ,menu_code, status_flag, create_time, update_time
</sql>
<!--查询单个-->
<select id="queryById" resultMap="TabHaobanRoleMenuMap">
select
<include refid="Base_Column_List"/>
from tab_haoban_role_menu
where role_menu_id = #{roleMenuId}
</select>
<!--新增所有列-->
<insert id="insert" keyProperty="roleMenuId" useGeneratedKeys="true">
insert into tab_haoban_role_menu(role_menu_id, role_id, wx_enterprise_id,menu_code, status_flag, create_time, update_time)
values ( #{roleMenuId}, #{roleId}, #{wxEnterpriseId},#{menuCode}, #{statusFlag}, #{createTime}, #{updateTime})
</insert>
<insert id="insertBatch" keyProperty="roleMenuId" useGeneratedKeys="true">
insert into tab_haoban_role_menu( role_menu_id, role_id,wx_enterprise_id,menu_code, status_flag, create_time, update_time)
values
......@@ -40,37 +25,6 @@
</insert>
<!--通过主键修改数据-->
<update id="update">
update tab_haoban_role_menu
<set>
<if test="roleId != null">
role_id = #{roleId},
</if>
<if test="wxEnterpriseId != null and wxEnterpriseId != ''">
wx_enterprise_id = #{wxEnterpriseId},
</if>
<if test="menuCode != null and menuCode != ''">
menu_code = #{menuCode},
</if>
<if test="statusFlag != null">
status_flag = #{statusFlag},
</if>
<if test="createTime != null">
create_time = #{createTime},
</if>
<if test="updateTime != null">
update_time = #{updateTime},
</if>
</set>
where role_menu_id = #{roleMenuId}
</update>
<!--通过主键删除-->
<delete id="deleteById">
delete from tab_haoban_role_menu where role_menu_id = #{roleMenuId}
</delete>
<delete id="deleteByRoleId">
delete from tab_haoban_role_menu where role_id = #{roleId}
......
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