| | |
| | | }) |
| | | public Map<String,Object> existsIssueCardByNos(@Param("bussinessNos") String bussinessNos); |
| | | |
| | | @Select({"select top 1 bussinessNo from bussinesssheet where cardno=#{cardno} and sstatus='在办' order by indx" }) |
| | | public String getBusinessNoByCardNo(@Param("cardno") String cardno); |
| | | /** |
| | | * 取销售在用卡 |
| | | * @param cardno |
| | | * @param numberplates |
| | | * @param sdepartNo |
| | | * @return |
| | | */ |
| | | @Select({"<script>" + |
| | | "select top 1 bussinessNo from bussinesssheet " + |
| | | "<where>", |
| | | "cardno=#{cardno} and sstatus='在办' and numberplates = #{numberplates} " , |
| | | "<if test=\"sdepartNo!='' and sdepartNo!=null\">", |
| | | " and sdepartNo=#{sdepartNo}", |
| | | "</if>", |
| | | // "and btid=3", //3为成品销售 |
| | | "</where>", |
| | | " order by indx", |
| | | "</script>" }) |
| | | public String getBusinessNoByCardNo(@Param("cardno") String cardno,@Param("numberplates") String numberplates,@Param("sdepartNo")String sdepartNo); |
| | | |
| | | @Deprecated |
| | | @Select("select top 1 * from bussinesssheet a left join gbusi_type b on a.btid=b.id where b.businesstypeNo=#{btNo} and a.numberplates=#{vehicleID} and a.sstatus=#{sstatus} and a.sdepartNo=#{sdepartNo} ") |