Commit 37af3535 authored by suichenguang's avatar suichenguang

Merge remote-tracking branch 'origin/dev' into dev

parents 1b5e0aab dcfcc47d
...@@ -79,6 +79,7 @@ public class ExportExcelApi { ...@@ -79,6 +79,7 @@ public class ExportExcelApi {
byte[] b = new byte[fis.available()]; byte[] b = new byte[fis.available()];
fis.read(b); fis.read(b);
fis.close(); fis.close();
response.setContentType("APPLICATION/OCTET-STREAM");
response.addHeader("Content-Disposition", "attachment;filename=" + outFile + ".xls"); response.addHeader("Content-Disposition", "attachment;filename=" + outFile + ".xls");
return b; return b;
} catch (FileNotFoundException e) { } catch (FileNotFoundException e) {
......
...@@ -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);
......
...@@ -62,7 +62,7 @@ public interface ReceiptService { ...@@ -62,7 +62,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)+"',";
} }
} }
return receiptMapper.selectReceiptDate(date,str,typeCode); return receiptMapper.selectReceiptDate(date,str,typeCode);
......
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