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