解决测试中出现的问题;

This commit is contained in:
mengkuiliang 2023-11-07 17:39:06 +08:00
parent bb69917dc6
commit c756ba39a3
8 changed files with 32 additions and 9 deletions

View File

@ -83,7 +83,7 @@ public class ResidentRescindApplyServiceImpl implements IResidentRescindApplySer
MessagePushBody messagePushBody = new MessagePushBody(); MessagePushBody messagePushBody = new MessagePushBody();
messagePushBody.setMessageCategory("4"); messagePushBody.setMessageCategory("4");
messagePushBody.setBusType("10"); messagePushBody.setBusType("10");
messagePushBody.setOpenid(patientInfo.getOpenid()); messagePushBody.setOpenid(patientInfo.getBindOpenid());
messagePushBody.setReceiveName(patientInfo.getPatientName()); messagePushBody.setReceiveName(patientInfo.getPatientName());
messagePushBody.setText1(body.getOrgName()); messagePushBody.setText1(body.getOrgName());
messagePushBody.setText2("解约申请"); messagePushBody.setText2("解约申请");

View File

@ -91,12 +91,15 @@ public class ResidentServiceApplyServiceImpl implements IResidentServiceAppletSe
if(StringUtils.isBlank(entity.getServiceWay())) { if(StringUtils.isBlank(entity.getServiceWay())) {
entity.setServiceWay("2"); entity.setServiceWay("2");
} }
if(StringUtils.isBlank(entity.getResidentName())) {
entity.setResidentName(patientInfo.getPatientName());
}
residentServiceApplyMapper.insert(entity); residentServiceApplyMapper.insert(entity);
MessagePushBody messagePushBody = new MessagePushBody(); MessagePushBody messagePushBody = new MessagePushBody();
messagePushBody.setMessageCategory("4"); messagePushBody.setMessageCategory("4");
messagePushBody.setBusType("10"); messagePushBody.setBusType("10");
messagePushBody.setOpenid(patientInfo.getOpenid()); messagePushBody.setOpenid(patientInfo.getBindOpenid());
messagePushBody.setReceiveName(patientInfo.getPatientName()); messagePushBody.setReceiveName(patientInfo.getPatientName());
messagePushBody.setText1(body.getOrgName()); messagePushBody.setText1(body.getOrgName());
messagePushBody.setText2(body.getFormName().length() >= 20? body.getFormName().substring(0,17) + "...": body.getFormName()); messagePushBody.setText2(body.getFormName().length() >= 20? body.getFormName().substring(0,17) + "...": body.getFormName());
@ -329,6 +332,7 @@ public class ResidentServiceApplyServiceImpl implements IResidentServiceAppletSe
sp.setProjectName(project.getProjectName()); sp.setProjectName(project.getProjectName());
sp.setPrice(project.getPrice()); sp.setPrice(project.getPrice());
sp.setDiscountPrice(project.getDiscountPrice()); sp.setDiscountPrice(project.getDiscountPrice());
sp.setPackageName(project.getHospitalName());
projectList.add(sp); projectList.add(sp);
} }
} }

View File

@ -100,7 +100,7 @@ public class ResidentSignApplyServiceImpl implements IResidentSignAppletService
MessagePushBody messagePushBody = new MessagePushBody(); MessagePushBody messagePushBody = new MessagePushBody();
messagePushBody.setMessageCategory("4"); messagePushBody.setMessageCategory("4");
messagePushBody.setBusType("10"); messagePushBody.setBusType("10");
messagePushBody.setOpenid(patientInfo.getOpenid()); messagePushBody.setOpenid(patientInfo.getBindOpenid());
messagePushBody.setReceiveName(body.getResidentName()); messagePushBody.setReceiveName(body.getResidentName());
messagePushBody.setText1(body.getOrgName()); messagePushBody.setText1(body.getOrgName());
messagePushBody.setText2("签约申请"); messagePushBody.setText2("签约申请");

View File

@ -264,6 +264,13 @@ public class PatientInfo extends BaseDomain implements Serializable {
*/ */
private String isChecked; private String isChecked;
/**
* 同一微信绑定标识openid用于区分同一账号绑定的居民
*/
@ApiModelProperty(value = "同一微信绑定标识openid用于区分同一账号绑定的居民")
@Excel(name = "同一微信绑定标识openid用于区分同一账号绑定的居民")
private String bindOpenid;
@Override @Override
public String toString() { public String toString() {
@ -296,6 +303,7 @@ public class PatientInfo extends BaseDomain implements Serializable {
.append("cityCode", getCityCode()) .append("cityCode", getCityCode())
.append("bindingTime", getBindingTime()) .append("bindingTime", getBindingTime())
.append("isChecked", getIsChecked()) .append("isChecked", getIsChecked())
.append("bindOpenid", getBindOpenid())
.toString(); .toString();
} }
} }

View File

@ -372,7 +372,7 @@ public class MessagePushServiceImpl implements MessagePushService {
} }
FDWxMegDto wxMegDto = new FDWxMegDto(); FDWxMegDto wxMegDto = new FDWxMegDto();
wxMegDto.setTouser(patientInfo.getOpenid()); wxMegDto.setTouser(patientInfo.getBindOpenid());
wxMegDto.setTemplate_id(MessageTemplateType.getFolllowupTypeByCode(body.getTemplateType()).getTemplateId()); wxMegDto.setTemplate_id(MessageTemplateType.getFolllowupTypeByCode(body.getTemplateType()).getTemplateId());
Map<String, TemplateData> meg = new HashMap<>(); Map<String, TemplateData> meg = new HashMap<>();
switch (body.getTemplateType()) { switch (body.getTemplateType()) {

View File

@ -135,7 +135,7 @@ public class ScreeningRecordServiceImpl implements IScreeningRecordService {
int flag = screeningRecordMapper.insert(recordBody); int flag = screeningRecordMapper.insert(recordBody);
if(flag > 0) { if(flag > 0) {
// 组装发送消息通知参数 // 组装发送消息通知参数
result.put("openid", registerVo.getOpenid()); result.put("openid", registerVo.getBindOpenid());
result.put("receiveName", registerVo.getPatientName()); result.put("receiveName", registerVo.getPatientName());
result.put("text1", body.getHospitalName()); result.put("text1", body.getHospitalName());
result.put("text2", (body.getProjectName().length() >= 17? (body.getProjectName().substring(0, 17) + "..."): body.getProjectName())); result.put("text2", (body.getProjectName().length() >= 17? (body.getProjectName().substring(0, 17) + "..."): body.getProjectName()));

View File

@ -46,6 +46,7 @@
<result property="cityCode" column="city_code"/> <result property="cityCode" column="city_code"/>
<result property="bindingTime" column="binding_time"/> <result property="bindingTime" column="binding_time"/>
<result property="isChecked" column="is_checked"/> <result property="isChecked" column="is_checked"/>
<result property="bindOpenid" column="bind_openid"/>
</resultMap> </resultMap>
<sql id="selectPatientInfoVo"> <sql id="selectPatientInfoVo">
@ -85,7 +86,8 @@
disease, disease,
city_code, city_code,
binding_time, binding_time,
is_checked is_checked,
bind_openid
from patient_info from patient_info
</sql> </sql>
@ -122,6 +124,7 @@
pi.create_time, pi.create_time,
pi.disabling_condition, pi.disabling_condition,
pi.disabling_reason, pi.disabling_reason,
pi.bind_openid,
sa.area_name sa.area_name
from patient_info pi from patient_info pi
left join sys_area sa on sa.area_code = pi.area_code left join sys_area sa on sa.area_code = pi.area_code
@ -217,6 +220,7 @@
pi.create_time, pi.create_time,
pi.disabling_condition, pi.disabling_condition,
pi.disabling_reason, pi.disabling_reason,
pi.bind_openid,
sa.area_name sa.area_name
from patient_info pi from patient_info pi
INNER join sys_area sa on sa.area_code = pi.area_code INNER join sys_area sa on sa.area_code = pi.area_code
@ -305,6 +309,7 @@
</if> </if>
<if test="isChecked != null">is_checked, <if test="isChecked != null">is_checked,
</if> </if>
<if test="bindOpenid != null">bind_openid,</if>
</trim> </trim>
<trim prefix="values (" suffix=")" suffixOverrides=","> <trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="communityCode != null and communityCode != ''">#{communityCode}, <if test="communityCode != null and communityCode != ''">#{communityCode},
@ -385,6 +390,7 @@
</if> </if>
<if test="isChecked != null">#{isChecked}, <if test="isChecked != null">#{isChecked},
</if> </if>
<if test="bindOpenid != null">#{bindOpenid},</if>
</trim> </trim>
</insert> </insert>
@ -508,6 +514,9 @@
<if test="isChecked != null">is_checked = <if test="isChecked != null">is_checked =
#{isChecked}, #{isChecked},
</if> </if>
<if test="bindOpenid != null">
bind_openid = #{bindOpenid},
</if>
</trim> </trim>
where id = #{id} where id = #{id}
</update> </update>
@ -565,7 +574,8 @@
disabling_condition, disabling_condition,
disabling_reason, disabling_reason,
city_code, city_code,
binding_time binding_time,
bind_openid
FROM patient_info FROM patient_info
WHERE id = #{id} WHERE id = #{id}
and del_flag = 0 and del_flag = 0
@ -603,7 +613,8 @@
birth_date, birth_date,
personal_wechat_code_url, personal_wechat_code_url,
disabling_condition, disabling_condition,
disabling_reason disabling_reason,
bind_openid
FROM patient_info FROM patient_info
WHERE card_no = #{cardNo} WHERE card_no = #{cardNo}
and del_flag = 0 limit 1 and del_flag = 0 limit 1

View File

@ -51,7 +51,7 @@
<if test="createTime != null"> <if test="createTime != null">
and date_format(create_time,'%Y%m%d') = date_format(#{createTime},'%Y%m%d') and date_format(create_time,'%Y%m%d') = date_format(#{createTime},'%Y%m%d')
</if> </if>
order By id desc order By hospital_id asc
</select> </select>
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap"> <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">