From bab7a0280bb066ef4c718589f2c782f2702b0407 Mon Sep 17 00:00:00 2001 From: lixiangrong Date: Sun, 17 Jul 2016 18:54:33 +0800 Subject: [PATCH] hh --- .../dsp/archer/dao/GroupTargetAuditDao.java | 30 --- .../dsp/archer/dao/GroupTargetAuditDao.xml | 229 ------------------ src/main/java/osc/git/eh3/test/TestCode.java | 23 +- .../java/osc/git/eh3/test/TestReadFile.java | 25 +- src/main/resources/generatorConfig.xml | 2 +- test.md | 7 + 6 files changed, 47 insertions(+), 269 deletions(-) delete mode 100644 src/main/java/com/pxene/dsp/archer/dao/GroupTargetAuditDao.java delete mode 100644 src/main/java/com/pxene/dsp/archer/dao/GroupTargetAuditDao.xml create mode 100644 test.md diff --git a/src/main/java/com/pxene/dsp/archer/dao/GroupTargetAuditDao.java b/src/main/java/com/pxene/dsp/archer/dao/GroupTargetAuditDao.java deleted file mode 100644 index 9f106b5..0000000 --- a/src/main/java/com/pxene/dsp/archer/dao/GroupTargetAuditDao.java +++ /dev/null @@ -1,30 +0,0 @@ -package com.pxene.dsp.archer.dao; - -import com.pxene.dsp.archer.model.GroupTargetAuditModel; -import com.pxene.dsp.archer.model.GroupTargetAuditModelExample; -import java.util.List; -import org.apache.ibatis.annotations.Param; - -public interface GroupTargetAuditDao { - int countByExample(GroupTargetAuditModelExample example); - - int deleteByExample(GroupTargetAuditModelExample example); - - int deleteByPrimaryKey(String id); - - int insert(GroupTargetAuditModel record); - - int insertSelective(GroupTargetAuditModel record); - - List selectByExample(GroupTargetAuditModelExample example); - - GroupTargetAuditModel selectByPrimaryKey(String id); - - int updateByExampleSelective(@Param("record") GroupTargetAuditModel record, @Param("example") GroupTargetAuditModelExample example); - - int updateByExample(@Param("record") GroupTargetAuditModel record, @Param("example") GroupTargetAuditModelExample example); - - int updateByPrimaryKeySelective(GroupTargetAuditModel record); - - int updateByPrimaryKey(GroupTargetAuditModel record); -} \ No newline at end of file diff --git a/src/main/java/com/pxene/dsp/archer/dao/GroupTargetAuditDao.xml b/src/main/java/com/pxene/dsp/archer/dao/GroupTargetAuditDao.xml deleted file mode 100644 index 9d1bb24..0000000 --- a/src/main/java/com/pxene/dsp/archer/dao/GroupTargetAuditDao.xml +++ /dev/null @@ -1,229 +0,0 @@ - - - - - - - - - - - - - - - - - - - - and ${criterion.condition} - - - and ${criterion.condition} #{criterion.value} - - - and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} - - - and ${criterion.condition} - - #{listItem} - - - - - - - - - - - - - - - - - - and ${criterion.condition} - - - and ${criterion.condition} #{criterion.value} - - - and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} - - - and ${criterion.condition} - - #{listItem} - - - - - - - - - - - id, groupid, result, reason, remark, createtime - - - - - delete from dsp_t_group_target_audit - where id = #{id,jdbcType=VARCHAR} - - - delete from dsp_t_group_target_audit - - - - - - insert into dsp_t_group_target_audit (id, groupid, result, - reason, remark, createtime - ) - values (#{id,jdbcType=VARCHAR}, #{groupid,jdbcType=VARCHAR}, #{result,jdbcType=VARCHAR}, - #{reason,jdbcType=VARCHAR}, #{remark,jdbcType=VARCHAR}, #{createtime,jdbcType=TIMESTAMP} - ) - - - insert into dsp_t_group_target_audit - - - id, - - - groupid, - - - result, - - - reason, - - - remark, - - - createtime, - - - - - #{id,jdbcType=VARCHAR}, - - - #{groupid,jdbcType=VARCHAR}, - - - #{result,jdbcType=VARCHAR}, - - - #{reason,jdbcType=VARCHAR}, - - - #{remark,jdbcType=VARCHAR}, - - - #{createtime,jdbcType=TIMESTAMP}, - - - - - - update dsp_t_group_target_audit - - - id = #{record.id,jdbcType=VARCHAR}, - - - groupid = #{record.groupid,jdbcType=VARCHAR}, - - - result = #{record.result,jdbcType=VARCHAR}, - - - reason = #{record.reason,jdbcType=VARCHAR}, - - - remark = #{record.remark,jdbcType=VARCHAR}, - - - createtime = #{record.createtime,jdbcType=TIMESTAMP}, - - - - - - - - update dsp_t_group_target_audit - set id = #{record.id,jdbcType=VARCHAR}, - groupid = #{record.groupid,jdbcType=VARCHAR}, - result = #{record.result,jdbcType=VARCHAR}, - reason = #{record.reason,jdbcType=VARCHAR}, - remark = #{record.remark,jdbcType=VARCHAR}, - createtime = #{record.createtime,jdbcType=TIMESTAMP} - - - - - - update dsp_t_group_target_audit - - - groupid = #{groupid,jdbcType=VARCHAR}, - - - result = #{result,jdbcType=VARCHAR}, - - - reason = #{reason,jdbcType=VARCHAR}, - - - remark = #{remark,jdbcType=VARCHAR}, - - - createtime = #{createtime,jdbcType=TIMESTAMP}, - - - where id = #{id,jdbcType=VARCHAR} - - - update dsp_t_group_target_audit - set groupid = #{groupid,jdbcType=VARCHAR}, - result = #{result,jdbcType=VARCHAR}, - reason = #{reason,jdbcType=VARCHAR}, - remark = #{remark,jdbcType=VARCHAR}, - createtime = #{createtime,jdbcType=TIMESTAMP} - where id = #{id,jdbcType=VARCHAR} - - \ No newline at end of file diff --git a/src/main/java/osc/git/eh3/test/TestCode.java b/src/main/java/osc/git/eh3/test/TestCode.java index ed39f13..da4640a 100644 --- a/src/main/java/osc/git/eh3/test/TestCode.java +++ b/src/main/java/osc/git/eh3/test/TestCode.java @@ -3,7 +3,6 @@ package osc.git.eh3.test; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Arrays; -import java.util.Calendar; import java.util.Date; import java.util.HashSet; import java.util.Set; @@ -357,13 +356,23 @@ public class TestCode { //String nowStr = sdf.format(cl.getTime()); //System.out.println(nowStr); - Calendar calendar = Calendar.getInstance(); - calendar.set(Calendar.HOUR_OF_DAY, 0); // 控制时 - calendar.set(Calendar.MINUTE, 0); // 控制分 - calendar.set(Calendar.SECOND, 1); // 控制秒 + //Calendar calendar = Calendar.getInstance(); + //calendar.set(Calendar.HOUR_OF_DAY, 0); // 控制时 + //calendar.set(Calendar.MINUTE, 0); // 控制分 + //calendar.set(Calendar.SECOND, 1); // 控制秒 + // + //Date time = calendar.getTime(); // 得出执行任务的时间,此处为今天的00:00:01 + //System.out.println(time); + + //List list = new ArrayList(); + //list.add("str1"); + //list.add("str2"); + //int size = list.size(); + //String[] arr = list.toArray(new String[size]);//使用了第二种接口,返回值和参数均为结果 + + String str = null; + System.out.println((String)str == null); - Date time = calendar.getTime(); // 得出执行任务的时间,此处为今天的00:00:01 - System.out.println(time); } public static Long parseDate(String s) { diff --git a/src/main/java/osc/git/eh3/test/TestReadFile.java b/src/main/java/osc/git/eh3/test/TestReadFile.java index daee96a..ccb950b 100644 --- a/src/main/java/osc/git/eh3/test/TestReadFile.java +++ b/src/main/java/osc/git/eh3/test/TestReadFile.java @@ -5,7 +5,6 @@ import java.io.File; import java.io.FileReader; import java.io.IOException; import java.util.ArrayList; -import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; @@ -52,8 +51,30 @@ public class TestReadFile { } } + public static void readFile1() { + File file = new File("C:\\Users\\lixiangrong\\Desktop\\白名单\\IMEI\\000000_0"); + BufferedReader reader = null; + try { + reader = new BufferedReader(new FileReader(file)); + String tempString = null; + while ((tempString = reader.readLine()) != null) { + System.out.println(tempString); + } + reader.close(); + } catch (IOException e) { + e.printStackTrace(); + } finally { + if (reader != null) { + try { + reader.close(); + } catch (IOException ignored) { + } + } + } + } + public static void main(String[] args) { - readFile(); + readFile1(); } /** diff --git a/src/main/resources/generatorConfig.xml b/src/main/resources/generatorConfig.xml index 9844167..4e6f0ca 100644 --- a/src/main/resources/generatorConfig.xml +++ b/src/main/resources/generatorConfig.xml @@ -23,7 +23,7 @@ - +