|
@@ -21,8 +21,8 @@ public interface SiSettleApplyDao {
|
|
|
"and status_flag > '1' and isnull(group_no, '00')='00' and order_code in ('06026','06053','05973')")
|
|
|
Date selectActOrderDisDate(@Param("table") String table, @Param("patNo") String patNo, @Param("times") Integer times);
|
|
|
|
|
|
- @Select("select status,handle_comment,type,settle_datetime from t_si_settle_apply with(nolock) where pat_no=#{patNo} " +
|
|
|
- "and times=#{times} and ledger_sn=#{ledger} and type=#{type}")
|
|
|
+ @Select("select status,handle_comment,type,settle_datetime,acct_used_flag from t_si_settle_apply with(nolock) " +
|
|
|
+ "where pat_no=#{patNo} and times=#{times} and ledger_sn=#{ledger} and type=#{type}")
|
|
|
SiSettleApply selectSettleApply(@Param("patNo") String patNo,
|
|
|
@Param("times") int times,
|
|
|
@Param("ledger") int ledger,
|
|
@@ -35,8 +35,8 @@ public interface SiSettleApplyDao {
|
|
|
@Param("type") int type);
|
|
|
|
|
|
@Insert("insert into t_si_settle_apply (pat_no,times,ledger_sn,input_staff,input_comment,input_datetime,status,type," +
|
|
|
- "settle_datetime,settled) values (#{patNo},#{times},#{ledgerSn},#{inputStaff},#{inputComment},getdate()," +
|
|
|
- "0,#{type},#{settleDatetime},0)")
|
|
|
+ "settle_datetime,settled,acct_used_flag) values (#{patNo},#{times},#{ledgerSn},#{inputStaff},#{inputComment},getdate()," +
|
|
|
+ "0,#{type},#{settleDatetime},0,#{acctUsedFlag})")
|
|
|
void insertSettleApply(SiSettleApply apply);
|
|
|
|
|
|
@Select("select a.pat_no,a.times,a.ledger_sn,a.status,a.type,c.sex as gender,rtrim(c.name) as name,b.med_type, " +
|