PayMzFeeDao.java 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. package thyyxxk.wxservice_server.dao;
  2. import org.apache.ibatis.annotations.Delete;
  3. import org.apache.ibatis.annotations.Insert;
  4. import org.apache.ibatis.annotations.Mapper;
  5. import org.apache.ibatis.annotations.Select;
  6. import thyyxxk.wxservice_server.entity.paymzfee.MedinsSettle;
  7. import java.util.List;
  8. import java.util.Map;
  9. @Mapper
  10. public interface PayMzFeeDao {
  11. @Select("select * from t_si_setlinfo where pat_no=#{patNo} and times=#{times} and revoked=0")
  12. MedinsSettle selectSettleinfo(String patNo, int times);
  13. @Insert("insert into t_wx_file2del (id,path,type) values (#{id},#{path},'DZFP')")
  14. void insertWx2del(String id, String path);
  15. @Select("select id,path from t_wx_file2del where type='DZFP' and " +
  16. "datediff(hour,create_time,getdate())>=72")
  17. List<Map<String, String>> getDzfp2del();
  18. @Delete("<script>" +
  19. "delete from t_wx_file2del where id in (" +
  20. "<foreach collection='list' item='id' separator=','>" +
  21. "#{id}" +
  22. "</foreach>)" +
  23. "</script>")
  24. void deleteWx2del(List<String> list);
  25. }