YpMzFytjMapper.java 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388
  1. package cn.hnthyy.thmz.mapper.his.yp;
  2. import cn.hnthyy.thmz.entity.his.yp.YpMzFytj;
  3. import cn.hnthyy.thmz.vo.ChargeFeeParamsVo;
  4. import org.apache.ibatis.annotations.*;
  5. import java.util.Date;
  6. import java.util.List;
  7. import java.util.Map;
  8. public interface YpMzFytjMapper {
  9. /**
  10. * 查询当前病人本次已经确认发药了的发药统计记录
  11. *
  12. * @return
  13. */
  14. @Select("select rtrim(patient_id) patient_id,times,receipt_no,order_no,item_no,rtrim(charge_item_code) charge_item_code,rtrim(bill_item_code) bill_item_code," +
  15. "quantity,unit_price,rtrim(pay_mark) pay_mark,rtrim(serial) serial,rtrim(charge_item_type) charge_item_type,rtrim(country_flag) country_flag,rtrim(drug_flag) drug_flag," +
  16. "serial_no,rtrim(name) name,charge_date,rtrim(group_no) group_no,confirm_time,rtrim(input_id) input_id,input_time,drugname,specification,confirm_name,confirm_id," +
  17. "rtrim(doctor_id) doctor_id,doctor_name,confirm_flag,cy_fy,rtrim(warn_dept) warn_dept,rtrim(windows_no) windows_no,rtrim(win_no) win_no,input_date," +
  18. "rtrim(group_no_out) group_no_out,rtrim(response_type) response_type,rtrim(self_flag) self_flag,real_no,manu_no from yp_mz_fytj WITH(NOLOCK) where patient_id = #{patientId} and times = #{times} and serial_no > 0 and confirm_flag = '1' ")
  19. List<YpMzFytj> selectConfirdYpMzFytj(@Param(value = "patientId") String patientId, @Param("times") Integer times);
  20. /**
  21. * 根据缴费流水号和药房号查询所有的药品记录
  22. *
  23. * @return
  24. */
  25. @Select("select rtrim(patient_id) patient_id,times,receipt_no,order_no,item_no,rtrim(charge_item_code) charge_item_code,rtrim(bill_item_code) bill_item_code," +
  26. "quantity,unit_price,rtrim(pay_mark) pay_mark,rtrim(serial) serial,rtrim(charge_item_type) charge_item_type,rtrim(country_flag) country_flag,rtrim(drug_flag) drug_flag," +
  27. "serial_no,rtrim(name) name,charge_date,rtrim(group_no) group_no,confirm_time,rtrim(input_id) input_id,input_time,drugname,specification,confirm_name,confirm_id," +
  28. "rtrim(doctor_id) doctor_id,doctor_name,confirm_flag,cy_fy,rtrim(warn_dept) warn_dept,rtrim(windows_no) windows_no,rtrim(win_no) win_no,input_date," +
  29. "rtrim(group_no_out) group_no_out,rtrim(response_type) response_type,rtrim(self_flag) self_flag,real_no,manu_no from yp_mz_fytj WITH(NOLOCK) where serial_no = #{serialNo} and group_no = #{groupNoOut} and order_no = #{orderNo}")
  30. List<YpMzFytj> selectConfirdYpMzFytjBySerialNoAndGroupNo(@Param("serialNo") String serialNo, @Param("groupNoOut") String groupNoOut,@Param("orderNo") String orderNo);
  31. /**
  32. * 查询当前病人本次已经退药的西药发药统计记录
  33. *
  34. * @return
  35. */
  36. @Select("select rtrim(patient_id) patient_id,times,receipt_no,order_no,item_no,rtrim(charge_item_code) charge_item_code,rtrim(bill_item_code) bill_item_code," +
  37. "quantity,unit_price,rtrim(pay_mark) pay_mark,rtrim(serial) serial,rtrim(charge_item_type) charge_item_type,rtrim(country_flag) country_flag,rtrim(drug_flag) drug_flag," +
  38. "serial_no,rtrim(name) name,charge_date,rtrim(group_no) group_no,confirm_time,rtrim(input_id) input_id,input_time,drugname,specification,confirm_name,confirm_id," +
  39. "rtrim(doctor_id) doctor_id,doctor_name,confirm_flag,cy_fy,rtrim(warn_dept) warn_dept,rtrim(windows_no) windows_no,rtrim(win_no) win_no,input_date," +
  40. "rtrim(group_no_out) group_no_out,rtrim(response_type) response_type,rtrim(self_flag) self_flag,real_no,manu_no from yp_mz_fytj WITH(NOLOCK) " +
  41. " where patient_id = #{patientId} and times = #{times} and confirm_flag =3 and bill_item_code in('010','011') ")
  42. List<YpMzFytj> selectXyTyYpMzFytj(@Param(value = "patientId") String patientId, @Param("times") Integer times);
  43. /**
  44. * 新增发药统计
  45. *
  46. * @param ypMzFytj
  47. * @return
  48. */
  49. @Insert("INSERT INTO yp_mz_fytj(patient_id,times,receipt_no,order_no,item_no,charge_item_code,bill_item_code,quantity,unit_price,pay_mark,serial,charge_item_type,country_flag," +
  50. "drug_flag,serial_no,name,charge_date,group_no,confirm_time,input_id,input_time,drugname,specification,confirm_name,confirm_id,doctor_id,doctor_name,confirm_flag,cy_fy," +
  51. "warn_dept,windows_no,win_no,input_date,group_no_out,response_type,self_flag,real_no) " +
  52. "VALUES(#{patientId,jdbcType=CHAR},#{times,jdbcType=INTEGER},#{receiptNo,jdbcType=SMALLINT},#{orderNo,jdbcType=TINYINT},#{itemNo,jdbcType=TINYINT}," +
  53. "#{chargeItemCode,jdbcType=CHAR},#{billItemCode,jdbcType=CHAR},#{quantity,jdbcType=DOUBLE},#{unitPrice,jdbcType=DECIMAL},#{payMark,jdbcType=CHAR}," +
  54. "#{serial,jdbcType=CHAR},#{chargeItemType,jdbcType=CHAR},#{countryFlag,jdbcType=CHAR},#{drugFlag,jdbcType=CHAR},#{serialNo,jdbcType=INTEGER},#{name,jdbcType=CHAR}," +
  55. "#{chargeDate,jdbcType=TIMESTAMP},#{groupNo,jdbcType=CHAR},#{confirmTime,jdbcType=TIMESTAMP},#{inputId,jdbcType=CHAR},#{inputTime,jdbcType=TIMESTAMP}," +
  56. "#{drugname,jdbcType=VARCHAR},#{specification,jdbcType=VARCHAR},#{confirmName,jdbcType=VARCHAR},#{confirmId,jdbcType=VARCHAR},#{doctorId,jdbcType=CHAR}," +
  57. "#{doctorName,jdbcType=VARCHAR},#{confirmFlag,jdbcType=INTEGER},#{cyFy,jdbcType=INTEGER},#{warnDept,jdbcType=CHAR},#{windowsNo,jdbcType=CHAR},#{winNo,jdbcType=CHAR}," +
  58. "#{inputDate,jdbcType=TIMESTAMP},#{groupNoOut,jdbcType=CHAR},#{responseType,jdbcType=CHAR},#{selfFlag,jdbcType=CHAR},#{realNo,jdbcType=INTEGER})")
  59. int insertYpMzFytj(YpMzFytj ypMzFytj);
  60. /**
  61. * 将已经发药的记录改为负数记录
  62. *
  63. * @param ypMzFytj
  64. * @return
  65. */
  66. @Update("update yp_mz_fytj set real_no=#{realNo},serial_no=#{serialNo} where patient_id = #{patientId} and times = #{times} and charge_item_code=#{chargeItemCode} and item_no=#{itemNo}")
  67. int updateYpMzFytj(YpMzFytj ypMzFytj);
  68. /**
  69. * 通用查询发药统计
  70. *
  71. * @return
  72. */
  73. @Select({"<script>",
  74. "select DISTINCT rtrim(patient_id) patient_id,times,receipt_no,order_no,rtrim(name) name,charge_date,rtrim(group_no) group_no,confirm_time,rtrim(doctor_id) doctor_id,rtrim(doctor_name) doctor_name,real_no,manu_no from yp_mz_fytj WITH(NOLOCK) where serial_no <![CDATA[>]]> 0 ",
  75. "<when test='name!=null'>",
  76. " and name like #{name}",
  77. "</when>",
  78. "<when test='patientId!=null'>",
  79. " and patient_id = #{patientId}",
  80. "</when>",
  81. "<when test='opId!=null'>",
  82. " and doctor_id = #{opId}",
  83. "</when>",
  84. "<when test='serialNo!=null'>",
  85. " and serial_no = #{serialNo}",
  86. "</when>",
  87. "<when test='groupNoOut!=null'>",
  88. " and group_no_out = #{groupNoOut}",
  89. "</when>",
  90. "<when test='confirmFlag!=null'>",
  91. " and confirm_flag = #{confirmFlag}",
  92. "</when>",
  93. "<when test='beginDate!=null'>",
  94. " and charge_date <![CDATA[>=]]> #{beginDate}",
  95. "</when>",
  96. "<when test='endDate!=null'>",
  97. " and charge_date <![CDATA[<=]]> #{endDate}",
  98. "</when>",
  99. "</script>"})
  100. List<YpMzFytj> selectYpMzFytj(ChargeFeeParamsVo chargeFeeParamsVo);
  101. /**
  102. * 查询已经确认的药品记录明细
  103. * @param chargeFeeParamsVo
  104. * @return
  105. */
  106. @Select({"<script>" +
  107. "SELECT DISTINCT yp_mz_fytj.serial_no, " +
  108. " yp_mz_fytj.order_no, " +
  109. " yp_mz_fytj.patient_id, " +
  110. " yp_mz_fytj.times, " +
  111. " yp_mz_fytj.receipt_no, " +
  112. " drugname=c.name+'('+isnull(d.abbr_name,isnull(d.name,''))+')', " +
  113. " specification=c.specification, " +
  114. " quantity= case when yp_mz_fytj.cy_fy is not null and yp_mz_fytj.cy_fy >0 then yp_mz_fytj.quantity * cy_fy else yp_mz_fytj.quantity end, " +
  115. " yp_mz_fytj.unit_price, " +
  116. " yp_mz_fytj.item_no, " +
  117. " yp_mz_fytj.drug_flag, " +
  118. " yp_mz_fytj.charge_item_code, " +
  119. " yp_mz_fytj.serial, " +
  120. " yp_mz_fytj.confirm_time, " +
  121. " yp_mz_fytj.group_no, " +
  122. " yp_mz_fytj.bill_item_code, " +
  123. " yp_mz_fytj.pay_mark, " +
  124. " yp_mz_fytj.charge_item_type, " +
  125. " yp_mz_fytj.name, " +
  126. " yp_mz_fytj.charge_date, " +
  127. " '', " +
  128. " yp_mz_fytj.cy_fy, " +
  129. " yp_mz_fytj.specification, " +
  130. " yp_mz_fytj.drugname, " +
  131. " yp_mz_fytj.doctor_name, " +
  132. " yp_mz_fytj.doctor_id, " +
  133. " dec_amount=case when yp_mz_fytj.cy_fy is not null and yp_mz_fytj.cy_fy >0 then yp_mz_fytj.quantity * cy_fy else yp_mz_fytj.quantity end, " +
  134. " warn_dept=yp_mz_fytj.warn_dept, " +
  135. " yp_mz_fytj.country_flag, " +
  136. " yp_mz_fytj.confirm_flag, " +
  137. " yp_mz_fytj.self_flag, " +
  138. " yp_mz_fytj.response_type, " +
  139. " yp_mz_fytj.warn_dept ," +
  140. " real_no=yp_mz_fytj.real_no," +
  141. " win_no = yp_mz_fytj.win_no, " +
  142. " yp_mz_fytj.manu_no " +
  143. " FROM yp_mz_fytj WITH(NOLOCK) , " +
  144. " yp_zd_dict c WITH(NOLOCK), " +
  145. " yp_zd_manufactory d WITH(NOLOCK) " +
  146. " WHERE yp_mz_fytj.patient_id = #{patientId} AND " +
  147. " yp_mz_fytj.times = #{times} AND " +
  148. " yp_mz_fytj.receipt_no = #{receiptNo} AND " +
  149. " yp_mz_fytj.order_no = #{orderNo} AND " +
  150. " yp_mz_fytj.group_no_out = #{groupNoOut} AND " +
  151. " yp_mz_fytj.charge_item_code = c.code and " +
  152. " yp_mz_fytj.serial = c.serial and " +
  153. " yp_mz_fytj.confirm_flag = '1' and " +
  154. " yp_mz_fytj.serial_no > 0 and " +
  155. " c.manu_code *= d.code " +
  156. "ORDER BY yp_mz_fytj.item_no ASC ",
  157. "</script>"})
  158. List<Map<String,Object>> selectYpMx(ChargeFeeParamsVo chargeFeeParamsVo);
  159. /**
  160. * 通用查询退药申请
  161. *
  162. * @return
  163. */
  164. @Select({"<script>",
  165. "select DISTINCT rtrim(patient_id) patient_id,times,receipt_no,order_no,rtrim(name) name,input_time,rtrim(group_no) group_no,confirm_time,rtrim(doctor_id) doctor_id,rtrim(doctor_name) doctor_name,real_no,manu_no from yp_mz_fytj WITH(NOLOCK) where receipt_no <![CDATA[<]]> 0 and confirm_flag =2 ",
  166. "<when test='name!=null'>",
  167. " and name like #{name}",
  168. "</when>",
  169. "<when test='patientId!=null'>",
  170. " and patient_id = #{patientId}",
  171. "</when>",
  172. "<when test='opId!=null'>",
  173. " and doctor_id = #{opId}",
  174. "</when>",
  175. "<when test='serialNo!=null'>",
  176. " and serial_no = -#{serialNo}",
  177. "</when>",
  178. "<when test='groupNoOut!=null'>",
  179. " and group_no_out = #{groupNoOut}",
  180. "</when>",
  181. "<when test='beginDate!=null'>",
  182. " and input_time <![CDATA[>=]]> #{beginDate}",
  183. "</when>",
  184. "<when test='endDate!=null'>",
  185. " and input_time <![CDATA[<=]]> #{endDate}",
  186. "</when>",
  187. "</script>"})
  188. List<YpMzFytj> selectRepealRefund(ChargeFeeParamsVo chargeFeeParamsVo);
  189. /**
  190. * 查询已经申请退药的记录明细
  191. * @param chargeFeeParamsVo
  192. * @return
  193. */
  194. @Select({"<script>" +
  195. "SELECT DISTINCT yp_mz_fytj.serial_no, " +
  196. " yp_mz_fytj.order_no, " +
  197. " yp_mz_fytj.patient_id, " +
  198. " yp_mz_fytj.times, " +
  199. " yp_mz_fytj.receipt_no, " +
  200. " drugname=c.name+'('+isnull(d.abbr_name,isnull(d.name,''))+')', " +
  201. " specification=c.specification, " +
  202. " quantity= case when yp_mz_fytj.cy_fy is not null and yp_mz_fytj.cy_fy >0 then yp_mz_fytj.quantity * cy_fy else yp_mz_fytj.quantity end, " +
  203. " yp_mz_fytj.unit_price, " +
  204. " yp_mz_fytj.item_no, " +
  205. " yp_mz_fytj.drug_flag, " +
  206. " yp_mz_fytj.charge_item_code, " +
  207. " yp_mz_fytj.serial, " +
  208. " yp_mz_fytj.confirm_time, " +
  209. " yp_mz_fytj.group_no, " +
  210. " yp_mz_fytj.bill_item_code, " +
  211. " yp_mz_fytj.pay_mark, " +
  212. " yp_mz_fytj.charge_item_type, " +
  213. " yp_mz_fytj.name, " +
  214. " yp_mz_fytj.charge_date, " +
  215. " '', " +
  216. " yp_mz_fytj.cy_fy, " +
  217. " yp_mz_fytj.specification, " +
  218. " yp_mz_fytj.drugname, " +
  219. " yp_mz_fytj.doctor_name, " +
  220. " yp_mz_fytj.doctor_id, " +
  221. " dec_amount=case when yp_mz_fytj.cy_fy is not null and yp_mz_fytj.cy_fy >0 then yp_mz_fytj.quantity * cy_fy else yp_mz_fytj.quantity end , " +
  222. " warn_dept=yp_mz_fytj.warn_dept, " +
  223. " yp_mz_fytj.country_flag, " +
  224. " yp_mz_fytj.confirm_flag, " +
  225. " yp_mz_fytj.self_flag, " +
  226. " yp_mz_fytj.response_type, " +
  227. " yp_mz_fytj.warn_dept ," +
  228. " real_no=yp_mz_fytj.real_no," +
  229. " win_no = yp_mz_fytj.win_no, " +
  230. " yp_mz_fytj.manu_no " +
  231. " FROM (select * from yp_mz_fytj WITH(NOLOCK) where patient_id = #{patientId} and times = #{times} and receipt_no = #{receiptNo} and quantity <![CDATA[>]]> 0 ) yp_mz_fytj , " +
  232. " yp_zd_dict c WITH(NOLOCK), " +
  233. " yp_zd_manufactory d WITH(NOLOCK) " +
  234. " WHERE yp_mz_fytj.order_no = #{orderNo} AND " +
  235. " yp_mz_fytj.group_no_out = #{groupNoOut} AND " +
  236. " yp_mz_fytj.charge_item_code = c.code and " +
  237. " yp_mz_fytj.serial = c.serial and " +
  238. " yp_mz_fytj.confirm_flag = '2' and " +
  239. " yp_mz_fytj.serial_no <![CDATA[<]]> 0 and " +
  240. " c.manu_code *= d.code " +
  241. "ORDER BY yp_mz_fytj.item_no ASC ",
  242. "</script>"})
  243. List<Map<String,Object>> selectRefundMedicineDetail(ChargeFeeParamsVo chargeFeeParamsVo);
  244. /**
  245. * 修改本院记账的发药统计的流水号为新收款的流水号
  246. * @param ypMzFytj
  247. * @return
  248. */
  249. @Update("update yp_mz_fytj set serial_no=#{serialNo},real_no=#{realNo},receipt_no=#{receiptNo} where patient_id = #{patientId} and times = #{times} ")
  250. int updateSeralNoForByjz(YpMzFytj ypMzFytj);
  251. /**
  252. * 查询最后一条发药记录
  253. * @param groupNo 药房分组 71 西药房 72 住院药房 81 中药房 82 颗粒剂药房
  254. * @param beginDate 开始时间
  255. * @param endDate 结束时间
  256. * @return
  257. */
  258. @Select(" SELECT DISTINCT " +
  259. " top 1 patient_id = a.patient_id, " +
  260. " times = a.times, " +
  261. " receipt_no = a.receipt_no, " +
  262. " order_no = a.order_no, " +
  263. " group_no = a.group_no, " +
  264. " real_no = a.real_no, " +
  265. " name = a.name ," +
  266. " doctor_flag = '' ," +
  267. " warn_dept =warn_dept ," +
  268. " windows_no_yf = a.win_no," +
  269. " confirm_flag = confirm_flag," +
  270. " charge_date=a.charge_date" +
  271. " FROM yp_mz_fytj a WITH(NOLOCK)" +
  272. " WHERE " +
  273. " ( a.group_no_out = #{groupNo} ) AND " +
  274. " ( a.charge_date >= #{beginDate} ) AND " +
  275. " ( a.charge_date <= #{endDate} ) AND " +
  276. " ( a.pay_mark='0' ) and" +
  277. " ( a.confirm_flag>'0') " +
  278. " order by charge_date desc")
  279. YpMzFytj selectlastItem(@Param(value = "groupNo") String groupNo, @Param("beginDate") Date beginDate, @Param("endDate") Date endDate);
  280. /**
  281. * 统计药品最近用量
  282. * @param code
  283. * @param serial
  284. * @param groupNo
  285. * @param day
  286. * @return
  287. */
  288. @Select("select isnull(sum(quantity),0) from yp_mz_fytj WITH(NOLOCK) where group_no_out = #{groupNo} and confirm_flag = 1 and serial = #{serial} and charge_item_code = #{code} and DATEDIFF( day, confirm_time,getdate())<${day} and DATEPART(w, confirm_time) <DATEPART(w, getdate())")
  289. int selectDrugUsageStatistics(@Param("code") String code,@Param("serial") String serial, @Param("groupNo") String groupNo,@Param("day")int day);
  290. /**
  291. * 删除发药申请
  292. * @param ypMzFytj
  293. * @return
  294. */
  295. @Delete("delete from yp_mz_fytj where patient_id =#{patientId} and times = #{times} and receipt_no =#{receiptNo} and order_no=#{orderNo} and confirm_flag=2 ")
  296. int deleteYpMzFytj(YpMzFytj ypMzFytj);
  297. /**
  298. * 撤销退药申请
  299. *
  300. * @param ypMzFytj
  301. * @return
  302. */
  303. @Update("update yp_mz_fytj set real_no=-real_no,serial_no=-serial_no where patient_id = #{patientId} and times = #{times} and receipt_no =abs(#{receiptNo}) and order_no=#{orderNo}")
  304. int repealRefund(YpMzFytj ypMzFytj);
  305. /**
  306. * 查询最近发药量
  307. * @param chargeCode
  308. * @param serial
  309. * @param packSize
  310. * @param groupNo
  311. * @return
  312. */
  313. @Select("select" +
  314. " a.name," +
  315. " a.charge_item_code," +
  316. " a.serial," +
  317. " a.confirm_time" +
  318. " from yp_mz_fytj a WITH(NOLOCK)" +
  319. " where a.charge_item_code=#{chargeCode} and" +
  320. " datediff(day,confirm_time,getdate()) < 31 and" +
  321. " a.group_no=#{groupNo}" +
  322. " group by a.name,a.charge_item_code,a.serial,a.confirm_time")
  323. List<Map<String, Object>> selectLatelyYpMzFytj(@Param("chargeCode") String chargeCode, @Param("serial") String serial, @Param("packSize") Double packSize, @Param("groupNo") String groupNo);
  324. /**
  325. * 查询科室药品销售金额
  326. * @param map
  327. * @return
  328. */
  329. @Select("<script>"+
  330. "select type='门诊',\n" +
  331. " kindName= c.name,\n" +
  332. " totalMoney =sum(round(convert(decimal(18,3),(convert(decimal(18,3),a.unit_price)) * a.quantity * a.cy_fy),2)),\n" +
  333. " deptCode =(case when isnull(a.warn_dept,'')='' then '2020100' else a.warn_dept end) \n" +
  334. "from yp_mz_fytj a WITH(NOLOCK), (select code,drug_kind from yp_zd_dict WITH(NOLOCK) group by code,drug_kind) b,yp_zd_drug_kind c WITH(NOLOCK)\n" +
  335. "where a.charge_item_code=b.code and\n" +
  336. " b.drug_kind=c.code and\n" +
  337. " a.confirm_time <![CDATA[>=]]> #{beginDate,jdbcType=TIMESTAMP} and\n" +
  338. " a.confirm_time <![CDATA[<=]]> #{endDate,jdbcType=TIMESTAMP}\n" +
  339. "group by c.name,a.warn_dept order by warn_dept,c.name\n" +
  340. "</script>")
  341. List<Map<String, Object>> selectYpMzFytjDeptMoney(Map map);
  342. /**
  343. * 药房配药更新处方药品发药批次
  344. *
  345. * @return
  346. */
  347. @Update("update yp_mz_fytj set manu_no=#{manuNo} where real_no=#{realNo} and order_no=#{orderNo} and item_no=#{itemNo}")
  348. int updateManuNo(@Param("manuNo") String manuNo, @Param("realNo") Integer realNo, @Param("orderNo") Integer orderNo, @Param("itemNo") Integer itemNo);
  349. @Select(" select count(*) from yp_mz_fytj where serial_no = #{oriSerialNo} ")
  350. int queryYpMzFytjByOriSerialNo(@Param("oriSerialNo") Integer oriSerialNo);
  351. @Update(" update yp_mz_fytj set receipt_no =#{receiptNo},serial_no=#{serialNo},real_no=#{serialNo} where serial_no = #{oriSerialNo} ")
  352. void updateYpMzFytjBySerialNo(@Param("receiptNo") Integer receiptNo, @Param("serialNo") Integer serialNo, @Param("oriSerialNo") Integer oriSerialNo);
  353. }