Commit cf45fc12 authored by suichenguang's avatar suichenguang

交接单5.0

parent 559ff0b7
......@@ -53,21 +53,21 @@ public interface ReceiptMapper {
//根据组号查询特证表
@Select("SELECT count(*) FROM SPECIAL_CARD WHERE subStr(ACCEPT_NO,0,8) =#{GROUP_NO}")
public int selectSpecialCard(String GROUP_NO);
public int selectSpecialCard(@Param("GROUP_NO") String GROUP_NO);
@Select("select FINISH_COUNT from RECEIPT_LIST where QR_CODE=#{GROUP_NO}")
public int selectCount(String GROUP_NO);
public int selectCount(@Param("GROUP_NO") String GROUP_NO);
@Update("update RECEIPT_LIST set FINISH_COUNT=#{count} where QR_CODE=#{GROUP_NO}")
public boolean updateFinishCount(String GROUP_NO,int count);
public boolean updateFinishCount(@Param("GROUP_NO") String GROUP_NO,@Param("count") int count);
//根据身份证号查询特证表count
@Select("select count(*) from SPECIAL_CARD \n" +
"left join prod_card_t@prod_link on special_card.accept_no = prod_card_t.accept_no\n" +
"where prod_card_t.id_no = #{id}")
public int selectSpecialCardByAcceptNo(String id);
public int selectSpecialCardByAcceptNo(@Param("id") String id);
......@@ -79,7 +79,7 @@ public interface ReceiptMapper {
@Select("SELECT RECEIPT_LIST.* FROM RECEIPT_LIST \n" +
"LEFT JOIN PROD_CARD_T@PROD_LINK ON subStr(PROD_CARD_T.ACCEPT_NO,0,8) =RECEIPT_LIST.QR_CODE\n" +
"WHERE PROD_CARD_T.ID_NO =#{id}")
public Map<String,Object> selectReceiptList(String id);
public Map<String,Object> selectReceiptList(@Param("id") String id);
//根据交接单号查详单信息
......@@ -123,7 +123,7 @@ public interface ReceiptMapper {
"count(prod_trace_t.ELECTRIC_WRITER_NO)as electricCount\n" +
"from prod_trace_t@PROD_LINK \n" +
"WHERE subStr(ACCEPT_NO,0,8) = #{groupNo} or ACCEPT_NO=#{groupNo}")
public Map<String,Object> selectCountTime(String groupNo);
public Map<String,Object> selectCountTime(@Param("groupNo") String groupNo);
@Select("select \n" +
"prod_trace_t.DOWNLOAD_DATE as downloadDate,\n" +
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment