Commit ae7b0a12 by qwmqiuwenmin

fix

parent ebea1e7f
package com.gic.haoban.manage.api.service;
import java.util.List;
import java.util.Set;
import com.gic.haoban.base.api.common.BasePageInfo;
import com.gic.haoban.manage.api.dto.QywxCorpInfoSimpleDTO;
......@@ -35,4 +36,6 @@ public interface WxEnterpriseApiService {
void update(WxEnterpriseDTO enterpriseDTO);
List<YwWxEnterpriseDTO> listAll();
List<YwWxEnterpriseDTO> listByIds(Set<String> enterpriseIds);
}
package com.gic.haoban.manage.service.dao.mapper;
import java.util.List;
import java.util.Set;
import com.gic.haoban.base.api.common.BasePageInfo;
import com.gic.haoban.manage.service.entity.TabHaobanWxEnterprise;
......@@ -28,4 +29,6 @@ public interface WxEnterpriseMapper {
List<TabHaobanWxEnterprise> listDelBycorpId(@Param("corpId") String corpId);
List<TabHaobanWxEnterprise> listAll();
List<TabHaobanWxEnterprise> listByIds(@Param("enterpriseIds")Set<String> enterpriseIds);
}
\ No newline at end of file
......@@ -2,6 +2,7 @@ package com.gic.haoban.manage.service.service.out.impl;
import java.util.ArrayList;
import java.util.List;
import java.util.Set;
import com.alibaba.fastjson.JSON;
import com.gic.haoban.base.api.common.BasePageInfo;
......@@ -104,6 +105,12 @@ public class WxEnterpriseApiServiceImpl implements WxEnterpriseApiService {
List<TabHaobanWxEnterprise> list = wxEnterpriseMapper.listAll();
return EntityUtil.changeEntityListByJSON(YwWxEnterpriseDTO.class, list);
}
@Override
public List<YwWxEnterpriseDTO> listByIds(Set<String> enterpriseIds) {
List<TabHaobanWxEnterprise> list = wxEnterpriseMapper.listByIds(enterpriseIds);
return EntityUtil.changeEntityListByJSON(YwWxEnterpriseDTO.class, list);
}
@Override
public WxEnterpriseDTO getOne(String wxEnterpriseId) {
......
......@@ -395,4 +395,17 @@
where status_flag = 1
</select>
<select id="listAll" resultMap="BaseResultMap" >
select
<include refid="Base_Column_List" />
from tab_haoban_wx_enterprise
where status_flag = 1
<if test="enterpriseIds != null and enterpriseIds.size() > 0">
and wx_enterprise_id IN
<foreach collection="enterpriseIds" item="id" index="index" open="(" close=")" separator=",">
#{id,jdbcType=VARCHAR}
</foreach>
</if>
</select>
</mapper>
\ No newline at end of file
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