Commit df19e00a authored by dahai's avatar dahai

push

parent 67ec44bd
...@@ -199,7 +199,7 @@ public interface ReceiptMapper { ...@@ -199,7 +199,7 @@ public interface ReceiptMapper {
"left join CARD_TYPE_DIC on CARD_TYPE_DIC.CARD_TYPE_ID = decode(RECEIPT_LIST.Old_CARD_TYPE_ID,null,RECEIPT_LIST.CARD_TYPE_ID,RECEIPT_LIST.Old_CARD_TYPE_ID)\n" + "left join CARD_TYPE_DIC on CARD_TYPE_DIC.CARD_TYPE_ID = decode(RECEIPT_LIST.Old_CARD_TYPE_ID,null,RECEIPT_LIST.CARD_TYPE_ID,RECEIPT_LIST.Old_CARD_TYPE_ID)\n" +
"left join GAJG_DM on GAJG_DM.GAJG_DM = RECEIPT_LIST.POLICE_CODE\n" + "left join GAJG_DM on GAJG_DM.GAJG_DM = RECEIPT_LIST.POLICE_CODE\n" +
"left join COUNTY_DIC on substr(RECEIPT_LIST.POLICE_CODE,0,6) = COUNTY_DIC.COUNTY_CODE" + "left join COUNTY_DIC on substr(RECEIPT_LIST.POLICE_CODE,0,6) = COUNTY_DIC.COUNTY_CODE" +
" where to_char(CHECK_DATE,'yyyyMMdd') = #{date} and RECEIPT_LIST.POLICE_CODE in (#{string}) and CARD_TYPE_DIC.CARD_TYPE_ID=#{type} ") " where to_char(CHECK_DATE,'yyyyMMdd') = ${date} and RECEIPT_LIST.POLICE_CODE in (${string}) and CARD_TYPE_DIC.CARD_TYPE_ID=${type} ")
public List<Map<String,Object>> selectReceiptDate(@Param("date") String date,@Param("string") String string,@Param("type") long type); public List<Map<String,Object>> selectReceiptDate(@Param("date") String date,@Param("string") String string,@Param("type") long type);
......
...@@ -63,7 +63,7 @@ public interface ReceiptService { ...@@ -63,7 +63,7 @@ public interface ReceiptService {
public boolean updateDetail(@Param("acceptNo")String accept,@Param("note")String note); public boolean updateDetail(@Param("acceptNo")String accept,@Param("note")String note);
public List<Map<String,Object>> selectReceiptList(List<Integer> stringList,String date,long typeCode); public List<Map<String,Object>> selectReceiptList(List<String> stringList,String date,long typeCode);
public Map<String,Object>selectDetailedData2(String id); public Map<String,Object>selectDetailedData2(String id);
......
...@@ -155,13 +155,13 @@ public class ReceiptServiceImpl implements ReceiptService { ...@@ -155,13 +155,13 @@ public class ReceiptServiceImpl implements ReceiptService {
} }
@Override @Override
public List<Map<String, Object>> selectReceiptList(List<Integer> stringList, String date, long typeCode) { public List<Map<String, Object>> selectReceiptList(List<String> stringList, String date, long typeCode) {
String str =""; String str ="";
for (int i =0;i<stringList.size();i++){ for (int i =0;i<stringList.size();i++){
if (i==stringList.size()-1){ if (i==stringList.size()-1){
str+=stringList.get(i)+""; str+="'"+stringList.get(i)+"'";
}else { }else {
str+=stringList.get(i)+","; str+="'"+stringList.get(i)+"',";
} }
} }
......
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