@Select("SELECT RECEIPT_LIST.* ,DIC_UPLOAD_UNIT_T.UNIT_NAME GAJG_MC FROM RECEIPT_LIST LEFT JOIN PRODYD_DBA.DIC_UPLOAD_UNIT_T@PRODYD_LINK ON RECEIPT_LIST.POLICE_CODE=DIC_UPLOAD_UNIT_T.UPLOAD_UNIT_NO where state=0 and check_name =#{name} \n")
"count(prod_trace_t.download_no)as download, count(prod_trace_t.checker_no) as checkerCount,count(prod_trace_t.ELECTRIC_WRITER_NO)as electricCount \n"+
"FROM RECEIPT_LIST \n"+
"LEFT JOIN DETAIL_RECEIPT_LIST ON RECEIPT_LIST.ID=DETAIL_RECEIPT_LIST.RECEIPT_ID\n"+
"LEFT JOIN PRODYD_DBA.prod_trace_t@PRODYD_LINK prod_trace_t on DETAIL_RECEIPT_LIST.ACCEPT_NO=prod_trace_t.ACCEPT_NO\n"+
"LEFT JOIN PRODYD_DBA.DIC_UPLOAD_UNIT_T@PRODYD_LINK ON RECEIPT_LIST.POLICE_CODE=DIC_UPLOAD_UNIT_T.UPLOAD_UNIT_NO\n"+
"LEFT JOIN CARD_TYPE_DIC ON RECEIPT_LIST.CARD_TYPE_ID=CARD_TYPE_DIC.CARD_TYPE_ID\n"+
"LEFT JOIN POLICE_DIC ON POLICE_DIC.POLICE_CODE=RECEIPT_LIST.FJDM\n"+
"where state=0 and check_name =#{name} \n"+
"GROUP BY RECEIPT_LIST.id ,RECEIPT_LIST.QR_CODE,RECEIPT_LIST.POLICE_CODE,RECEIPT_LIST.FINISH_COUNT,CARD_TYPE_DIC.CARD_TYPE,CARD_TYPE_DIC.CARD_TYPE_ID ,"+