|
|
@@ -9,13 +9,13 @@ import java.util.Date;
|
|
|
|
|
|
public interface ZyConfigMapper {
|
|
|
|
|
|
- /**
|
|
|
- * 加锁
|
|
|
- * @param updateTime
|
|
|
- * @return
|
|
|
- */
|
|
|
- @Update("update zy_config set update_time=#{updateTime,jdbcType=TIMESTAMP} where item_no = 1")
|
|
|
- int updateForBlock(@Param("updateTime") Date updateTime);
|
|
|
+// /**
|
|
|
+// * 加锁
|
|
|
+// * @param updateTime
|
|
|
+// * @return
|
|
|
+// */
|
|
|
+// @Update("update zy_config set update_time=#{updateTime,jdbcType=TIMESTAMP} where item_no = 1")
|
|
|
+// int updateForBlock(@Param("updateTime") Date updateTime);
|
|
|
|
|
|
/**
|
|
|
* 查询住院配置表信息
|
|
|
@@ -24,34 +24,72 @@ public interface ZyConfigMapper {
|
|
|
@Select(" select * from zy_config where item_no = 1")
|
|
|
ZyConfig selectZyConfig();
|
|
|
|
|
|
+//
|
|
|
+// /**
|
|
|
+// * 更新序列号
|
|
|
+// * @param zyConfig
|
|
|
+// * @return
|
|
|
+// */
|
|
|
+// @Update({"<script>",
|
|
|
+// "update zy_config ",
|
|
|
+// "<trim prefix='set' prefixOverrides=',' suffix=' where item_no =1 ' >",
|
|
|
+// "<when test='inpatientNo!=null'>",
|
|
|
+// "inpatient_no =#{inpatientNo,jdbcType=INTEGER}",
|
|
|
+// "</when>",
|
|
|
+// "<when test='zySerialNo!=null'>",
|
|
|
+// ",zy_serial_no =#{zySerialNo,jdbcType=INTEGER}",
|
|
|
+// "</when>",
|
|
|
+// "<when test='delNo!=null'>",
|
|
|
+// ",del_no =#{delNo,jdbcType=INTEGER}",
|
|
|
+// "</when>",
|
|
|
+// "<when test='jcNo!=null'>",
|
|
|
+// ",jc_no =#{jcNo,jdbcType=INTEGER}",
|
|
|
+// "</when>",
|
|
|
+// "<when test='chargeCode!=null'>",
|
|
|
+// ",charge_code =#{chargeCode,jdbcType=INTEGER}",
|
|
|
+// "</when>",
|
|
|
+// "</trim>"
|
|
|
+// ,"</script>"})
|
|
|
+// int updateZyConfig(ZyConfig zyConfig);
|
|
|
+
|
|
|
+
|
|
|
|
|
|
/**
|
|
|
- * 更新序列号
|
|
|
- * @param zyConfig
|
|
|
+ * 更新住院号
|
|
|
+ * @param inpatientNo
|
|
|
+ * @param newInpatientNo
|
|
|
* @return
|
|
|
*/
|
|
|
- @Update({"<script>",
|
|
|
- "update zy_config ",
|
|
|
- "<trim prefix='set' prefixOverrides=',' suffix=' where item_no =1 ' >",
|
|
|
- "<when test='inpatientNo!=null'>",
|
|
|
- "inpatient_no =#{inpatientNo,jdbcType=INTEGER}",
|
|
|
- "</when>",
|
|
|
- "<when test='zySerialNo!=null'>",
|
|
|
- ",zy_serial_no =#{zySerialNo,jdbcType=INTEGER}",
|
|
|
- "</when>",
|
|
|
- "<when test='delNo!=null'>",
|
|
|
- ",del_no =#{delNo,jdbcType=INTEGER}",
|
|
|
- "</when>",
|
|
|
- "<when test='jcNo!=null'>",
|
|
|
- ",jc_no =#{jcNo,jdbcType=INTEGER}",
|
|
|
- "</when>",
|
|
|
- "<when test='chargeCode!=null'>",
|
|
|
- ",charge_code =#{chargeCode,jdbcType=INTEGER}",
|
|
|
- "</when>",
|
|
|
- "</trim>"
|
|
|
- ,"</script>"})
|
|
|
- int updateZyConfig(ZyConfig zyConfig);
|
|
|
+ @Update("update zy_config set inpatient_no =#{newInpatientNo} where item_no =1 and inpatient_no =#{inpatientNo} ")
|
|
|
+ int updateInpatientNo(@Param("inpatientNo")Integer inpatientNo, @Param("newInpatientNo")Integer newInpatientNo);
|
|
|
|
|
|
|
|
|
+ /**
|
|
|
+ * 更新家床号码
|
|
|
+ * @param jcNo
|
|
|
+ * @param newJcNo
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @Update("update zy_config set jc_no =#{newJcNo} where item_no =1 and jc_no =#{jcNo} ")
|
|
|
+ int updateJcNo(@Param("jcNo")Integer jcNo, @Param("newJcNo")Integer newJcNo);
|
|
|
+
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 更新住院流水号
|
|
|
+ * @param zySerialNo
|
|
|
+ * @param newZySerialNo
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @Update("update zy_config set zy_serial_no =#{newZySerialNo} where item_no =1 and zy_serial_no =#{zySerialNo} ")
|
|
|
+ int updateZySerialNo(@Param("zySerialNo")Integer zySerialNo, @Param("newZySerialNo")Integer newZySerialNo);
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 更新收费编码
|
|
|
+ * @param chargeCode
|
|
|
+ * @param newChargeCode
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @Update("update zy_config set charge_code =#{newChargeCode} where item_no =1 and charge_code =#{chargeCode} ")
|
|
|
+ int updateChargeCode(@Param("chargeCode")Integer chargeCode, @Param("newChargeCode")Integer newChargeCode);
|
|
|
|
|
|
}
|