添加查询
This commit is contained in:
parent
b1db507d7f
commit
2c28848650
|
|
@ -267,4 +267,14 @@ public class OrgApplyInfoController extends JeecgController<OrgApplyInfo, IOrgAp
|
||||||
IPage<OrgAllInfo> resultPage = orgApplyInfoService.queryOrgInfo(page, orgCode, title);
|
IPage<OrgAllInfo> resultPage = orgApplyInfoService.queryOrgInfo(page, orgCode, title);
|
||||||
return Result.OK(resultPage);
|
return Result.OK(resultPage);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@GetMapping(value = "/getOrgByOpenId")
|
||||||
|
public Result<IPage<OrgAllInfo>> getOrgByOpenId(@RequestParam(value = "openId", defaultValue = "", required = false) String openId,
|
||||||
|
@RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo,
|
||||||
|
@RequestParam(name = "pageSize", defaultValue = "8") Integer pageSize) {
|
||||||
|
IPage<OrgAllInfo> page = new Page<>(pageNo, pageSize);
|
||||||
|
IPage<OrgAllInfo> resultPage = orgApplyInfoService.getOrgByOpenId(page, openId);
|
||||||
|
return Result.OK(resultPage);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -170,4 +170,10 @@ public class OrgAllInfo implements Serializable {
|
||||||
private String contractNote;
|
private String contractNote;
|
||||||
/** 加盟时间*/
|
/** 加盟时间*/
|
||||||
private Date franchiseTime;
|
private Date franchiseTime;
|
||||||
|
/** 是否线上机构 0是1否*/
|
||||||
|
private String izOnline;
|
||||||
|
/** 是否冻结 0是1否*/
|
||||||
|
private String izFreeze;
|
||||||
|
/** 入职时间*/
|
||||||
|
private String entryTime;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -19,4 +19,6 @@ public interface OrgApplyInfoMapper extends BaseMapper<OrgApplyInfo> {
|
||||||
void realDelete(@Param("pkId") String pkId);
|
void realDelete(@Param("pkId") String pkId);
|
||||||
|
|
||||||
IPage<OrgAllInfo> queryOrgInfo(@Param("page") IPage<OrgAllInfo> page, @Param("orgCode") String orgCode, @Param("title") String title);
|
IPage<OrgAllInfo> queryOrgInfo(@Param("page") IPage<OrgAllInfo> page, @Param("orgCode") String orgCode, @Param("title") String title);
|
||||||
|
|
||||||
|
IPage<OrgAllInfo> getOrgByOpenId(IPage<OrgAllInfo> page, @Param("openId") String openId);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -65,4 +65,30 @@
|
||||||
where pk_id = #{pkId}
|
where pk_id = #{pkId}
|
||||||
and status = '5'
|
and status = '5'
|
||||||
</delete>
|
</delete>
|
||||||
|
|
||||||
|
<select id="getOrgByOpenId" resultType="com.nu.modules.orgapplyinfo.entity.OrgAllInfo">
|
||||||
|
select
|
||||||
|
d.id as orgId,
|
||||||
|
d.depart_name,
|
||||||
|
d.org_code,
|
||||||
|
d.url,
|
||||||
|
d.plat_type,
|
||||||
|
d.iz_directive_main,
|
||||||
|
d.iz_elder_tag_main,
|
||||||
|
d.media_url,
|
||||||
|
o.*,
|
||||||
|
eo.iz_online,
|
||||||
|
eo.iz_freeze,
|
||||||
|
eo.entry_time
|
||||||
|
from sys_depart d
|
||||||
|
inner join nu_org_apply_info o on d.id = o.pk_id
|
||||||
|
inner join nu_biz_employees_org eo on d.org_code = eo.org_code
|
||||||
|
<where>
|
||||||
|
o.status = '2'
|
||||||
|
and d.del_flag = '0'
|
||||||
|
and eo.status = '2'
|
||||||
|
AND eo.open_id = #{openId}
|
||||||
|
</where>
|
||||||
|
order by (d.org_code + 0) asc
|
||||||
|
</select>
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|
|
||||||
|
|
@ -23,4 +23,6 @@ public interface IOrgApplyInfoService extends IService<OrgApplyInfo> {
|
||||||
void submitContract(OrgApplyInfo orgApplyInfo);
|
void submitContract(OrgApplyInfo orgApplyInfo);
|
||||||
|
|
||||||
IPage<OrgAllInfo> queryOrgInfo(IPage<OrgAllInfo> page, String orgCode, String title);
|
IPage<OrgAllInfo> queryOrgInfo(IPage<OrgAllInfo> page, String orgCode, String title);
|
||||||
|
|
||||||
|
IPage<OrgAllInfo> getOrgByOpenId(IPage<OrgAllInfo> page, String openId);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -339,4 +339,9 @@ public class OrgApplyInfoServiceImpl extends ServiceImpl<OrgApplyInfoMapper, Org
|
||||||
public IPage<OrgAllInfo> queryOrgInfo(IPage<OrgAllInfo> page, String orgCode, String title) {
|
public IPage<OrgAllInfo> queryOrgInfo(IPage<OrgAllInfo> page, String orgCode, String title) {
|
||||||
return baseMapper.queryOrgInfo(page, orgCode, title);
|
return baseMapper.queryOrgInfo(page, orgCode, title);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public IPage<OrgAllInfo> getOrgByOpenId(IPage<OrgAllInfo> page, String openId) {
|
||||||
|
return baseMapper.getOrgByOpenId(page, openId);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue