refactor(consultation): 优化代码格式和空行规范

- 统一各实体类、Mapper 和 XML 文件的代码格式
- 规范化导入语句和类声明之间的空行
- 调整 ConSessionView、ConCostStatistics 等实体类格式
- 优化 Mapper 接口和 XML 映射文件的空行结构
- 提升代码可读性和一致性
- 去掉view及_qh表依赖
This commit is contained in:
2026-03-09 10:55:55 +08:00
parent 8fd4cd9253
commit 0b403a559e
6 changed files with 14 additions and 24 deletions
@@ -20,7 +20,7 @@ import java.util.Date;
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "con_session_view")
@TableName(value = "con_session")
public class ConSessionView implements Serializable {
private static final long serialVersionUID = 1L;
@TableField(value = "id")
@@ -30,6 +30,4 @@ public interface ConHelperSchedulingMapper extends BaseMapper<ConHelperSchedulin
@Select("SELECT * FROM con_helper_scheduling WHERE week = #{week} and del_flag = '0' and status = '1'")
public List<ConHelperScheduling> getYesterDayScheduling(Integer week);
@Select("SELECT * FROM con_helper_scheduling_qh WHERE week = #{week} and del_flag = '0' and status = '1'")
public List<ConHelperScheduling> getYesterDaySchedulingQh(Integer week);
}
@@ -36,6 +36,6 @@ public interface ConMedicalRecordsMapper extends BaseMapper<ConMedicalRecords> {
ConMedicalRecords selectByMemberIdAndUserId(String memberId, String userId);
@Select("SELECT * FROM con_medical_records_view WHERE status = '1' and del_flag = '0' and id = #{id}")
@Select("SELECT * FROM con_medical_records WHERE status = '1' and del_flag = '0' and id = #{id}")
public ConMedicalRecordsDO selectConMedicalRecordsViewInfoById(String id);
}
@@ -240,21 +240,13 @@ public interface ConSessionMapper extends BaseMapper<ConSession> , MPJBaseMapper
@Param("fromAccount")String fromAccount);
@Select("select * from con_session_view where im_id = #{imId} and del_flag = 0 and status = 1")
@Select("select * from con_session where im_id = #{imId} and del_flag = 0 and status = 1")
ConSession selectConSessionByImIdOnlyBackUp(String imId);
@Update("update con_session_qh set reply_time = SYSDATE where im_id = #{imId}")
int updateSessionReplyTimeBackUp(String imId);
@Update("update con_session_qh set tf_reply = 1 where id = #{id}")
int updateConSessionTfReplyBackUp(String id);
@Select("select * from con_session_view where id = #{id} and del_flag = 0 and status = 1")
@Select("select * from con_session where id = #{id} and del_flag = 0 and status = 1")
ConSession selectConSessionByIdView(String id);
@Select("select * from con_session_view where im_id = #{id} and del_flag = 0 and status = 1")
@Select("select * from con_session where im_id = #{id} and del_flag = 0 and status = 1")
ConSession selectConSessionByIdViewAndImId(String imId);
@Update("update con_session set user_tf_reply = 1 where id = #{id}")
@@ -162,7 +162,7 @@
<select id="groupByTypehListNew" resultType="String">
select
count(1)
from con_session_view
from con_session
where
session_type = 1 and to_account = #{userId} and content_type = #{type}
<if test="state != null and state != '' and state == '1'.toString()">
@@ -715,7 +715,7 @@
<select id="selectSessionProfessorIngNewNew" resultType="String">
select
count(1)
from con_session_view
from con_session
where status = '1' and del_flag = 0
and session_type = 1
and to_account = #{toAccount}
@@ -750,7 +750,7 @@
<select id="selectSessionProfessorIngNewNewNew" resultType="String">
select
count(1)
from con_session_view
from con_session
where status = '1' and del_flag = 0
and session_type = 1
and to_account = #{toAccount}
@@ -795,7 +795,7 @@
create_time as "createTime",
im_id as "imId",
tf_reply as "tfReply"
from con_session_view
from con_session
where status = '1' and del_flag = 0 and session_type = 1 and (to_account = #{doctorId} or third_account =
#{doctorId})
<if test="contentType != null and contentType != ''">
@@ -842,7 +842,7 @@
create_time as "createTime",
im_id as "imId",
tf_reply as "tfReply"
from con_session_view
from con_session
where status = '1'
and content_type = '1'
and del_flag = 0
@@ -878,7 +878,7 @@
create_time as "createTime",
im_id as "imId",
tf_reply as "tfReply"
from con_session_view
from con_session
where status = '1'
and content_type = '1'
and del_flag = 0
@@ -909,7 +909,7 @@
create_time as "createTime",
im_id as "imId",
tf_reply as "tfReply"
from con_session_view
from con_session
where status = '1' and user_tf_reply = 1 and del_flag = 0 and session_type = 1 and (to_account = #{doctorId} or third_account =
#{doctorId})
<if test="contentType != null and contentType != ''">
@@ -945,7 +945,7 @@
<select id="selectSessionProfessorIngNewNewAnother" resultType="String">
select
count(1)
from con_session_view
from con_session
where status = '1' and del_flag = 0
and session_type = 1
and user_tf_reply = 1
@@ -981,7 +981,7 @@
<select id="selectSessionProfessorIngNewNewNewAnother" resultType="String">
select
count(1)
from con_session_view
from con_session
where status = '1' and del_flag = 0
and session_type = 1
and to_account = #{toAccount}