Commit ee825a7f by qwmqiuwenmin

fix

parent 49d8a4d8
......@@ -33,4 +33,6 @@ public interface WxEnterpriseApiService {
* @param enterpriseDTO
*/
void update(WxEnterpriseDTO enterpriseDTO);
List<YwWxEnterpriseDTO> list();
}
......@@ -26,4 +26,6 @@ public interface WxEnterpriseMapper {
List<TabHaobanWxEnterprise> listBycorpId(@Param("corpId") String corpId);
List<TabHaobanWxEnterprise> listDelBycorpId(@Param("corpId") String corpId);
List<TabHaobanWxEnterprise> listAll();
}
\ No newline at end of file
......@@ -100,6 +100,12 @@ public class WxEnterpriseApiServiceImpl implements WxEnterpriseApiService {
}
@Override
public List<YwWxEnterpriseDTO> list() {
List<TabHaobanWxEnterprise> list = wxEnterpriseMapper.listAll();
return EntityUtil.changeEntityListByJSON(YwWxEnterpriseDTO.class, list);
}
@Override
public WxEnterpriseDTO getOne(String wxEnterpriseId) {
TabHaobanWxEnterprise tab = wxEnterpriseMapper.selectByPrimaryKey(wxEnterpriseId);
WxEnterpriseDTO wxDTO = EntityUtil.changeEntityByJSON(WxEnterpriseDTO.class, tab);
......
......@@ -388,4 +388,11 @@
where status_flag = 0 and corpid= #{corpId}
</select>
<select id="listAll" resultMap="BaseResultMap" >
select
<include refid="Base_Column_List" />
from tab_haoban_wx_enterprise
where status_flag = 1
</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