Commit fca73a8f by 伍思炜

查询学校对应的客服二维码时限制查询字段

parent d2d54ff7
...@@ -68,4 +68,6 @@ public interface SchoolMapper extends BaseMapper<School> { ...@@ -68,4 +68,6 @@ public interface SchoolMapper extends BaseMapper<School> {
int insertNetworkInfo(Map<String,Object> map); int insertNetworkInfo(Map<String,Object> map);
List<Schools> selectHhrSchool(); List<Schools> selectHhrSchool();
String selectServiceQrcode(@Param("schoolId") String schoolId);
} }
...@@ -12,6 +12,11 @@ ...@@ -12,6 +12,11 @@
on hs.id = hus.school_id on hs.id = hus.school_id
</select> </select>
<select id="selectServiceQrcode" resultType="java.lang.String">
select service_qrcode from hhr_school where id = #{schoolId};
</select>
<insert id="insertSchoolMap"> <insert id="insertSchoolMap">
INSERT INTO hhr_school INSERT INTO hhr_school
(sub_name,school_name,status,bandproduct_id,net_id,lzgh,lz_user,network_code,network_name,app_id,app_key) (sub_name,school_name,status,bandproduct_id,net_id,lzgh,lz_user,network_code,network_name,app_id,app_key)
......
...@@ -150,7 +150,9 @@ public class ChooseController { ...@@ -150,7 +150,9 @@ public class ChooseController {
@RequestMapping(value = "selectSchoolInfo", method = RequestMethod.POST) @RequestMapping(value = "selectSchoolInfo", method = RequestMethod.POST)
public ResponseData<School> selectSchoolInfo(@RequestParam("partner") String partner) { public ResponseData<School> selectSchoolInfo(@RequestParam("partner") String partner) {
String schoolId = appMapper.selectSchoolId(partner); String schoolId = appMapper.selectSchoolId(partner);
School school = schoolMapper.selectById(schoolId); String serviceQrcode = schoolMapper.selectServiceQrcode(schoolId);
School school = new School();
school.setServiceQrcode(serviceQrcode);
return ResponseData.success(school); return ResponseData.success(school);
} }
......
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