Commit 67ec44bd authored by dahai's avatar dahai

push

parent a9078d3a
......@@ -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 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" +
" where to_char(CHECK_DATE,'yyyyMMdd') = #{date} and RECEIPT_LIST.id 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);
......
......@@ -156,9 +156,9 @@ public class ReceiptServiceImpl implements ReceiptService {
@Override
public List<Map<String, Object>> selectReceiptList(List<Integer> stringList, String date, long typeCode) {
String str = null;
String str ="";
for (int i =0;i<stringList.size();i++){
if (i!=stringList.size()-1){
if (i==stringList.size()-1){
str+=stringList.get(i)+"";
}else {
str+=stringList.get(i)+",";
......
......@@ -172,7 +172,7 @@ public class ExportExcel {
FileOutputStream fout = null;
try {
// fout = new FileOutputStream("E:\\Excel\\" + simpleDateFormat.format(new Date()) + countyInfoList.get(0).get("COUNTYNAME") + ".xls");
fout = new FileOutputStream("D:\\Excel\\" + simpleDateFormat.format(new Date())+ "公安网信息表" + ".xls");
fout = new FileOutputStream("D:\\Excel\\" + simpleDateFormat.format(new Date())+ "交接单" + ".xls");
wb.write(fout);
fout.close();
} catch (IOException e) {
......
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