@@ -155,12 +145,10 @@ public interface ReceiptMapper {
...
@@ -155,12 +145,10 @@ public interface ReceiptMapper {
@Select("select count(*) from RECEIPT_LIST where QR_CODE=(select accept_no from prod_card_t@prod_link where id_no=#{id})")
@Select("select count(*) from RECEIPT_LIST where QR_CODE=(select accept_no from prod_card_t@prod_link where id_no=#{id})")
publicintselectCountById(@Param("id")Stringid);
publicintselectCountById(@Param("id")Stringid);
//根据输入id查询是否生成详单
//根据输入id查询是否生成详单
@Select("select count(*) from DETAIL_RECEIPT_LIST where ACCEPT_NO=(select accept_no from prod_card_t@prod_link where id_no=#{id})")
@Select("select count(*) from DETAIL_RECEIPT_LIST where ACCEPT_NO=(select accept_no from prod_card_t@prod_link where id_no=#{id})")
publicintselectReceiptById(@Param("id")Stringid);
publicintselectReceiptById(@Param("id")Stringid);
@Select("select \n"+
@Select("select \n"+
"count(prod_trace_t.download_no)as download,\n"+
"count(prod_trace_t.download_no)as download,\n"+
"count(prod_trace_t.checker_no) as checkerCount,\n"+
"count(prod_trace_t.checker_no) as checkerCount,\n"+
...
@@ -169,8 +157,6 @@ public interface ReceiptMapper {
...
@@ -169,8 +157,6 @@ public interface ReceiptMapper {
"WHERE (subStr(ACCEPT_NO,0,8) = #{groupNo} or ACCEPT_NO=#{groupNo}) and prod_trace_t.accept_no not in (select special_card.accept_no from special_card ) ")
"WHERE (subStr(ACCEPT_NO,0,8) = #{groupNo} or ACCEPT_NO=#{groupNo}) and prod_trace_t.accept_no not in (select special_card.accept_no from special_card ) ")
@Select("select DETAIL_RECEIPT_LIST.* , GAJG_DM.GAJG_MC from DETAIL_RECEIPT_LIST LEFT JOIN GAJG_DM ON GAJG_DM.GAJG_DM =DETAIL_RECEIPT_LIST.POLICE_CODE where ACCEPT_NO=#{acceptNo} or card_id=#{acceptNo}")
@Select("select DETAIL_RECEIPT_LIST.* , GAJG_DM.GAJG_MC from DETAIL_RECEIPT_LIST LEFT JOIN GAJG_DM ON GAJG_DM.GAJG_DM =DETAIL_RECEIPT_LIST.POLICE_CODE where ACCEPT_NO=#{acceptNo} or card_id=#{acceptNo}")