Commit 4a42b4a5 by 徐高华

Merge branch 'feature/xgh/2406企微托管' into 'developer'

Feature/xgh/2406企微托管

See merge request !1885
parents bcc1ff88 105d8e64
......@@ -30,6 +30,8 @@ public interface OpenStaffApiService {
public ServiceResponse<OpenStaffDTO> getByStaffId(String staffId) ;
public ServiceResponse<OpenStaffDTO> getByUUID(String uuid) ;
public ServiceResponse<OpenStaffDTO> getByQwUserId(Long qwUserId) ;
......
......@@ -87,6 +87,12 @@ public class QywxCallbackController extends WebBaseController {
private void chat(String uuid, JSONObject json) {
int msgtype = json.getIntValue("msgtype") ;
// 群发任务
if(msgtype==573) {
json.put("uuid",uuid);
this.openQwApiService.saveNotice(json.toJSONString());
return ;
}
List<String> msgList = Arrays.asList("0","2","101") ;
if(!msgList.contains(msgtype+"")) {
logger.info("不处理的消息");
......
......@@ -248,6 +248,16 @@ public class OpenStaffApiServiceImpl implements OpenStaffApiService {
}
@Override
public ServiceResponse<OpenStaffDTO> getByUUID(String uuid) {
TabOpenStaff tab = this.openStaffMapper.getByUUID(uuid) ;
if(null == tab) {
return ServiceResponse.failure("9999","不存在") ;
}
OpenStaffDTO dto = EntityUtil.changeEntityByJSON(OpenStaffDTO.class,tab) ;
return ServiceResponse.success(dto);
}
@Override
public List<StaffClerkRelationDTO> listOpenStaffByClerk(String wxEnterpriseId, String enterpriseId, List<String> clerkIdList) {
return this.openStaffMapper.listOpenStaffByClerk(wxEnterpriseId,enterpriseId,clerkIdList);
}
......
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