目录修改
This commit is contained in:
parent
21da267ac9
commit
c7e7425ba5
@ -51,4 +51,9 @@ public class AppletPersonCenterController {
|
|||||||
public AjaxResult getResidentInfoById(Long residentId) {
|
public AjaxResult getResidentInfoById(Long residentId) {
|
||||||
return appletPersonCenterService.getResidentInfoById(residentId);
|
return appletPersonCenterService.getResidentInfoById(residentId);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@GetMapping("/test")
|
||||||
|
public void test() {
|
||||||
|
appletPersonCenterService.test();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -0,0 +1,18 @@
|
|||||||
|
package com.xinelu.mobile.mapper.appletpersoncenter;
|
||||||
|
|
||||||
|
import com.xinelu.manage.domain.residentinfo.ResidentInfo;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description 院后小程序个人中心Mapper层
|
||||||
|
* @Author 纪寒
|
||||||
|
* @Date 2024-04-16 10:49:14
|
||||||
|
* @Version 1.0
|
||||||
|
*/
|
||||||
|
public interface AppletPersonCenterMapper {
|
||||||
|
/**
|
||||||
|
* 查询居民信息
|
||||||
|
*
|
||||||
|
* @return 居民信息
|
||||||
|
*/
|
||||||
|
ResidentInfo selectResidentInfoTwo();
|
||||||
|
}
|
||||||
@ -1,10 +0,0 @@
|
|||||||
package com.xinelu.mobile.mapper.mobiletest;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @Description 测试 Mapper
|
|
||||||
* @Author 纪寒
|
|
||||||
* @Date 2024-02-18 16:59:30
|
|
||||||
* @Version 1.0
|
|
||||||
*/
|
|
||||||
public interface MobileTestMapper {
|
|
||||||
}
|
|
||||||
@ -26,4 +26,6 @@ public interface AppletPersonCenterService {
|
|||||||
* @return 个人信息
|
* @return 个人信息
|
||||||
*/
|
*/
|
||||||
AjaxResult getResidentInfoById(Long residentId);
|
AjaxResult getResidentInfoById(Long residentId);
|
||||||
|
|
||||||
|
void test();
|
||||||
}
|
}
|
||||||
|
|||||||
@ -5,6 +5,7 @@ import com.xinelu.common.constant.Constants;
|
|||||||
import com.xinelu.common.core.domain.AjaxResult;
|
import com.xinelu.common.core.domain.AjaxResult;
|
||||||
import com.xinelu.manage.domain.residentinfo.ResidentInfo;
|
import com.xinelu.manage.domain.residentinfo.ResidentInfo;
|
||||||
import com.xinelu.manage.mapper.residentinfo.ResidentInfoMapper;
|
import com.xinelu.manage.mapper.residentinfo.ResidentInfoMapper;
|
||||||
|
import com.xinelu.mobile.mapper.appletpersoncenter.AppletPersonCenterMapper;
|
||||||
import com.xinelu.mobile.service.appletpersoncenter.AppletPersonCenterService;
|
import com.xinelu.mobile.service.appletpersoncenter.AppletPersonCenterService;
|
||||||
import com.xinelu.mobile.utils.WeChatAppletUtils;
|
import com.xinelu.mobile.utils.WeChatAppletUtils;
|
||||||
import com.xinelu.mobile.vo.appletpersoncenter.PostDischargeAppletPhoneVO;
|
import com.xinelu.mobile.vo.appletpersoncenter.PostDischargeAppletPhoneVO;
|
||||||
@ -36,6 +37,8 @@ public class AppletPersonCenterServiceImpl implements AppletPersonCenterService
|
|||||||
private RedisTemplate<String, Object> redisTemplate;
|
private RedisTemplate<String, Object> redisTemplate;
|
||||||
@Resource
|
@Resource
|
||||||
private ResidentInfoMapper residentInfoMapper;
|
private ResidentInfoMapper residentInfoMapper;
|
||||||
|
@Resource
|
||||||
|
private AppletPersonCenterMapper appletPersonCenterMapper;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 院后微信小程序一键登录接口
|
* 院后微信小程序一键登录接口
|
||||||
@ -120,4 +123,9 @@ public class AppletPersonCenterServiceImpl implements AppletPersonCenterService
|
|||||||
public AjaxResult getResidentInfoById(Long residentId) {
|
public AjaxResult getResidentInfoById(Long residentId) {
|
||||||
return AjaxResult.success(residentInfoMapper.selectResidentInfoById(residentId));
|
return AjaxResult.success(residentInfoMapper.selectResidentInfoById(residentId));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void test() {
|
||||||
|
appletPersonCenterMapper.selectResidentInfoTwo();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -0,0 +1,10 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
|
<!DOCTYPE mapper
|
||||||
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="com.xinelu.mobile.mapper.appletpersoncenter.AppletPersonCenterMapper">
|
||||||
|
|
||||||
|
<select id="selectResidentInfoTwo" resultType="residentInfo">
|
||||||
|
select id, patient_name, patient_phone from resident_info limit 1
|
||||||
|
</select>
|
||||||
|
</mapper>
|
||||||
@ -1,6 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" ?>
|
|
||||||
<!DOCTYPE mapper
|
|
||||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
||||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
||||||
<mapper namespace="com.xinelu.mobile.mapper.mobiletest.MobileTestMapper">
|
|
||||||
</mapper>
|
|
||||||
Loading…
Reference in New Issue
Block a user