|
|
@@ -14,8 +14,8 @@ public interface ClinicMapper {
|
|
|
* @param clinic
|
|
|
* @return
|
|
|
*/
|
|
|
- @Insert("INSERT IGNORE INTO t_clinic(patient_id, patient_name, times, receipt_no,dept_code,doctor_code,icd_code,icd_text,op_id,op_day,first_or_not,clinic_status,jz_flag) VALUES " +
|
|
|
- "(#{patientId}, #{patientName}, #{times}, #{receiptNo},#{deptCode},#{doctorCode},#{icdCode},#{icdText},#{opId},#{opDay},#{firstOrNot},#{clinicStatus},#{jzFlag})")
|
|
|
+ @Insert("INSERT IGNORE INTO t_clinic(patient_id, patient_name, times, receipt_no,dept_code,doctor_code,icd_code,icd_text,op_id,op_day,first_or_not,clinic_status,jz_flag,zgmztczf) VALUES " +
|
|
|
+ "(#{patientId}, #{patientName}, #{times}, #{receiptNo},#{deptCode},#{doctorCode},#{icdCode},#{icdText},#{opId},#{opDay},#{firstOrNot},#{clinicStatus},#{jzFlag},#{zgmztczf})")
|
|
|
@Options(useGeneratedKeys = true, keyProperty = "id", keyColumn = "id")
|
|
|
int insertClinic(Clinic clinic);
|
|
|
|
|
|
@@ -28,9 +28,9 @@ public interface ClinicMapper {
|
|
|
*/
|
|
|
@Insert({
|
|
|
"<script>",
|
|
|
- "INSERT INTO t_clinic(patient_id, patient_name, times, receipt_no,dept_code,doctor_code,icd_code,icd_text,op_id,op_day,first_or_not,clinic_status,jz_flag) VALUES ",
|
|
|
+ "INSERT INTO t_clinic(patient_id, patient_name, times, receipt_no,dept_code,doctor_code,icd_code,icd_text,op_id,op_day,first_or_not,clinic_status,jz_flag,zgmztczf) VALUES ",
|
|
|
"<foreach collection='clinicList' item='item' index='index' separator=','>",
|
|
|
- " (#{item.patientId}, #{item.patientName}, #{item.times}, #{item.receiptNo},#{item.deptCode},#{item.doctorCode},#{item.icdCode},#{item.icdText},#{item.opId},#{item.opDay},#{item.firstOrNot},#{item.clinicStatus},#{item.jzFlag}) ",
|
|
|
+ " (#{item.patientId}, #{item.patientName}, #{item.times}, #{item.receiptNo},#{item.deptCode},#{item.doctorCode},#{item.icdCode},#{item.icdText},#{item.opId},#{item.opDay},#{item.firstOrNot},#{item.clinicStatus},#{item.jzFlag},#{item.zgmztczf}) ",
|
|
|
"</foreach>",
|
|
|
"</script>"
|
|
|
})
|
|
|
@@ -43,7 +43,7 @@ public interface ClinicMapper {
|
|
|
* @param id
|
|
|
* @return
|
|
|
*/
|
|
|
- @Select("select id,patient_id, patient_name, times, receipt_no,dept_code,doctor_code,icd_code,icd_text,op_id,op_day,first_or_not,clinic_status,jz_flag from t_clinic where id=#{id,jdbcType=BIGINT}")
|
|
|
+ @Select("select id,patient_id, patient_name, times, receipt_no,dept_code,doctor_code,icd_code,icd_text,op_id,op_day,first_or_not,clinic_status,jz_flag,zgmztczf from t_clinic where id=#{id,jdbcType=BIGINT}")
|
|
|
Clinic selectById(@Param("id") Long id);
|
|
|
|
|
|
|
|
|
@@ -54,7 +54,7 @@ public interface ClinicMapper {
|
|
|
* @return
|
|
|
*/
|
|
|
@Select({"<script>" +
|
|
|
- "select a.id,patient_id, patient_name, times, receipt_no,dept_code,doctor_code,icd_code,icd_text,op_id,op_day,first_or_not,clinic_status,jz_flag from t_clinic a join (" +
|
|
|
+ "select a.id,patient_id, patient_name, times, receipt_no,dept_code,doctor_code,icd_code,icd_text,op_id,op_day,first_or_not,clinic_status,jz_flag,zgmztczf from t_clinic a join (" +
|
|
|
"select id from t_clinic where 1=1" +
|
|
|
"<when test='beginDate!=null'>" +
|
|
|
" and op_day <![CDATA[>=]]>#{beginDate} " +
|