提交 b1cda11f 作者: 沈振路

是否允许批量操作判断接口

上级 89ca5ab4
......@@ -16,6 +16,7 @@ import com.yaoyaozw.customer.vo.customer.CustomerDelayListVO;
import com.yaoyaozw.customer.vo.customer.CustomerDelayGraphicsDetailVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import jodd.util.StringUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
......@@ -98,4 +99,12 @@ public class CustomerDelayGraphicsController {
return customerGraphicsDelayService.getTimeIntervalList();
}
@GetMapping("/canBatchOperate")
public GenericsResult<Boolean> canBatchOperate(@RequestParam String appid) {
if (StringUtil.isEmpty(appid)) {
return new GenericsResult<>(false);
}
return customerGraphicsDelayService.canBatchOperate(appid);
}
}
......@@ -21,13 +21,14 @@ public interface CustomerGraphicsDelayMapper extends BaseMapper<CustomerGraphics
/**
* 根据appid找有限序列的延时客服
*
* @param appidList
* @param maxSort
* @return
*/
List<CustomerDelayItemVO> findDelayCustomerMessageByRange(@Param("appidList") Set<String> appidList, @Param("maxSort") Integer maxSort);
void updateSendNumByVo(@Param("CustomerDelayItems")Set<CustomerDelayItemVO>voList);
void updateSendNumByVo(@Param("CustomerDelayItems") Set<CustomerDelayItemVO> voList);
/**
* 页面列表
......@@ -65,9 +66,18 @@ public interface CustomerGraphicsDelayMapper extends BaseMapper<CustomerGraphics
/**
* 获取延时客服主体的公众号
*
* @param customerId 延时客服主键
* @return 公众号
*/
AuthInfoVO getCustomerDelayAuthInfo(@Param("customerId") Long customerId);
/**
* 帐户名和物质
*
* @param appidList appid列表
* @return {@link List}<{@link String}>
*/
List<String> getAccountNameWithMaterial(@Param("appidList") List<String> appidList);
}
\ No newline at end of file
......@@ -118,5 +118,13 @@ public interface CustomerGraphicsDelayService extends IService<CustomerGraphicsD
* @param appId 应用程序id
*/
void reSortCustomer(String appId);
/**
* 可以批量操作
*
* @param appid appId
* @return {@link GenericsResult}<{@link Boolean}>
*/
GenericsResult<Boolean> canBatchOperate(String appid);
}
......@@ -140,4 +140,18 @@
where cgd.id = #{customerId}
</select>
<select id="getAccountNameWithMaterial" resultType="java.lang.String">
select
distinct ai.nick_name
from yyzwoperate.customer_graphics_delay delay
left join authorizer_info ai
on delay.app_id = ai.appid
where delay.is_deleted = 0
and ai.appid in
<foreach collection="appidList" item="appid" open="(" close=")" separator=",">
#{appid}
</foreach>
</select>
</mapper>
\ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论