Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
B
byh-family-doctor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
包
包
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
杨凯
byh-family-doctor
Commits
f6310f70
提交
f6310f70
authored
3月 20, 2024
作者:
杨凯
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat:家庭医生初始化
上级
ee1e0436
显示空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
28 行增加
和
1 行删除
+28
-1
MobileBenefitPackageEntity.java
...mily/doctor/server/entity/MobileBenefitPackageEntity.java
+3
-0
MobileBenefitPackageMapper.java
...mily/doctor/server/mapper/MobileBenefitPackageMapper.java
+2
-0
MobileBenefitPackageServiceImpl.java
.../server/service/impl/MobileBenefitPackageServiceImpl.java
+17
-1
MobileBenefitPackageMapper.xml
.../src/main/resources/mapper/MobileBenefitPackageMapper.xml
+6
-0
没有找到文件。
family-doctor-server/src/main/java/com/ebaiyihui/family/doctor/server/entity/MobileBenefitPackageEntity.java
浏览文件 @
f6310f70
...
...
@@ -58,4 +58,7 @@ public class MobileBenefitPackageEntity {
@ApiModelProperty
(
value
=
"使用次数"
)
private
Integer
used
;
@ApiModelProperty
(
value
=
"医生id"
)
private
String
doctorId
;
}
family-doctor-server/src/main/java/com/ebaiyihui/family/doctor/server/mapper/MobileBenefitPackageMapper.java
浏览文件 @
f6310f70
...
...
@@ -25,5 +25,7 @@ public interface MobileBenefitPackageMapper {
void
update
(
MobileBenefitPackageEntity
entity
);
void
updateDoctorId
(
MobileBenefitPackageEntity
entity
);
List
<
String
>
getPatientIdsByPhoneAndOrderId
(
@Param
(
"phone"
)
String
phone
);
}
family-doctor-server/src/main/java/com/ebaiyihui/family/doctor/server/service/impl/MobileBenefitPackageServiceImpl.java
浏览文件 @
f6310f70
...
...
@@ -13,8 +13,10 @@ import com.ebaiyihui.family.doctor.common.vo.RegisterPatientVo;
import
com.ebaiyihui.family.doctor.server.common.constants.CommonConstants
;
import
com.ebaiyihui.family.doctor.server.entity.MobileBenefitPackageEntity
;
import
com.ebaiyihui.family.doctor.server.entity.PatientEntity
;
import
com.ebaiyihui.family.doctor.server.entity.PatientSignEntity
;
import
com.ebaiyihui.family.doctor.server.mapper.MobileBenefitPackageMapper
;
import
com.ebaiyihui.family.doctor.server.mapper.PatientMapper
;
import
com.ebaiyihui.family.doctor.server.mapper.PatientSignMapper
;
import
com.ebaiyihui.family.doctor.server.service.MobileBenefitPackageService
;
import
com.ebaiyihui.family.doctor.server.util.DESUtils
;
import
com.ebaiyihui.framework.response.BaseResponse
;
...
...
@@ -45,6 +47,9 @@ public class MobileBenefitPackageServiceImpl implements MobileBenefitPackageServ
@Autowired
private
PatientMapper
patientMapper
;
@Autowired
private
PatientSignMapper
patientSignMapper
;
@Autowired
private
MobileBenefitPackageMapper
mobileBenefitPackageMapper
;
...
...
@@ -83,8 +88,19 @@ public class MobileBenefitPackageServiceImpl implements MobileBenefitPackageServ
RegisterPatientVo
registerPatientVo
=
new
RegisterPatientVo
();
registerPatientVo
.
setPatientInfo
(
data
);
registerPatientVo
.
setActivateOrderId
(
map
.
get
(
"activateOrderId"
));
if
(
Objects
.
nonNull
(
map
.
get
(
"
consultOrderNo
"
)))
{
if
(
Objects
.
nonNull
(
map
.
get
(
"
admId
"
)))
{
registerPatientVo
.
setAdmId
(
map
.
get
(
"admId"
));
// 更新权益医生id
QueryWrapper
<
PatientSignEntity
>
psWrapper
=
new
QueryWrapper
<>();
PatientSignEntity
patientSign
=
new
PatientSignEntity
();
patientSign
.
setAdmId
(
map
.
get
(
"admId"
));
psWrapper
.
setEntity
(
patientSign
);
PatientSignEntity
patientSignEntity
=
patientSignMapper
.
selectOne
(
psWrapper
);
if
(
Objects
.
nonNull
(
patientSignEntity
))
{
entity
.
setDoctorId
(
String
.
valueOf
(
patientSignEntity
.
getDoctorId
()));
mobileBenefitPackageMapper
.
updateDoctorId
(
entity
);
}
}
if
(
Objects
.
nonNull
(
map
.
get
(
"scheduleFlag"
)))
{
registerPatientVo
.
setScheduleFlag
(
Integer
.
valueOf
(
map
.
get
(
"scheduleFlag"
)));
...
...
family-doctor-server/src/main/resources/mapper/MobileBenefitPackageMapper.xml
浏览文件 @
f6310f70
...
...
@@ -40,6 +40,12 @@
where phone = #{phone,jdbcType=VARCHAR} and orderId = #{orderId}
</update>
<update
id=
"updateDoctorId"
>
update mobile_benefit_package set
doctorId = #{doctorId,jdbcType=VARCHAR}
where phone = #{phone,jdbcType=VARCHAR} and orderId = #{orderId}
</update>
<select
id=
"queryByPhone"
resultType=
"com.ebaiyihui.family.doctor.server.entity.MobileBenefitPackageEntity"
>
SELECT
<include
refid=
"base_columns"
/>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论