diff --git a/src/com/dao/mapper/data-details-mapper.xml b/src/com/dao/mapper/data-details-mapper.xml
index 89b9f52e..5cd57968 100644
--- a/src/com/dao/mapper/data-details-mapper.xml
+++ b/src/com/dao/mapper/data-details-mapper.xml
@@ -113,7 +113,7 @@ PUBLIC "-//ibatis.apache.org//DTD Mapper 3.0//EN"
regionalism_code,
-
+
system_code,
diff --git a/src/com/dao/mapper/data-detaisl-mapper.xml b/src/com/dao/mapper/data-detaisl-mapper.xml
deleted file mode 100644
index d0f8d7c7..00000000
--- a/src/com/dao/mapper/data-detaisl-mapper.xml
+++ /dev/null
@@ -1,109 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- and data_details.data_type=#{PagerOptions.dataType}
-
-
- and
- data_details.submitted_batch=#{PagerOptions.submittedBatch}
-
-
- and data_details.city_name=#{PagerOptions.cityName}
-
-
- and
- data_details.district_name=#{PagerOptions.districtName}
-
-
- and data_details.data_version=#{PagerOptions.dataVersion}
-
-
- and data_details=#{PagerOptions.systemName}
-
-
- and data_details.data_year=#{PagerOptions.dataYear}
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/src/com/dao/mapper/dataInfoMoveTmpmapper.xml b/src/com/dao/mapper/dataInfoMoveTmpmapper.xml
index 7d1145d6..bf4987f4 100644
--- a/src/com/dao/mapper/dataInfoMoveTmpmapper.xml
+++ b/src/com/dao/mapper/dataInfoMoveTmpmapper.xml
@@ -43,10 +43,12 @@ PUBLIC "-//ibatis.apache.org//DTD Mapper 3.0//EN"
jdbcType="INTEGER" />
+
+
- regionalism_code,system_code,dst_path,lasttime
+ regionalism_code,system_code,dst_path,lasttime,fkid
@@ -54,12 +56,12 @@ PUBLIC "-//ibatis.apache.org//DTD Mapper 3.0//EN"
SELECT
a.id id,a.regionalism_code regionalismCode,b.city_name cityName,b.district_name districtName,
a.system_code systemCode,b.system_name systemName,b.data_type dataType,b.data_version dataVersion,
- b.submitted_batch submittedBatch,b.data_path dataPath,b.data_charset charset,b.collection_time collectionTime,
+ b.submitted_batch submittedBatch,b.data_path dataPath,b.data_charset charset,b.collection_time collectingTime,
b.collector_name collectorName,b.collector_contacts collectorContacts,b.data_year dataYear,a.dst_path dstPath,
a.complete_status completeStatus,a.rate rate, a.lasttime lastTime
FROM
move_data_tmp a LEFT JOIN data_details b
- ON a.system_code = b.system_code AND a.regionalism_code = b.regionalism_code
+ ON a.system_code = b.system_code AND a.regionalism_code = b.regionalism_code AND a.fkid = b.id
ORDER BY a.id
@@ -112,6 +114,9 @@ PUBLIC "-//ibatis.apache.org//DTD Mapper 3.0//EN"
lasttime,
+
+ fkid,
+
)
VALUES(
@@ -137,6 +142,9 @@ PUBLIC "-//ibatis.apache.org//DTD Mapper 3.0//EN"
#{lastTime},
+
+ #{fkid),
+
)
@@ -145,7 +153,7 @@ PUBLIC "-//ibatis.apache.org//DTD Mapper 3.0//EN"
INSERT INTO move_data_tmp ( )
VALUES
- (#{item.regionalismCode,jdbcType=VARCHAR},#{item.systemCode,jdbcType=INTEGER},#{item.dstPath,jdbcType=VARCHAR},#{item.lastTime,jdbcType=VARCHAR})
+ (#{item.regionalismCode,jdbcType=VARCHAR},#{item.systemCode,jdbcType=INTEGER},#{item.dstPath,jdbcType=VARCHAR},#{item.lastTime,jdbcType=VARCHAR},#{item.fkid})
diff --git a/src/com/platform/controller/DataModelController.java b/src/com/platform/controller/DataModelController.java
index 7cf47830..743b3bd3 100644
--- a/src/com/platform/controller/DataModelController.java
+++ b/src/com/platform/controller/DataModelController.java
@@ -16,9 +16,11 @@ import net.sf.json.JSONArray;
import net.sf.json.JSONObject;
import org.apache.commons.lang.StringUtils;
+import org.apache.log4j.Logger;
import org.springframework.stereotype.Controller;
import org.springframework.stereotype.Service;
import org.springframework.ui.ModelMap;
+import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
@@ -31,6 +33,7 @@ import com.platform.entities.GatherOracleInfo;
import com.platform.entities.OracleConnectorParams;
import com.platform.entities.PagerOptions;
import com.platform.entities.VolumeEntity;
+import com.platform.glusterfs.CheckoutMD5;
import com.platform.service.DataInfoService;
import com.platform.service.IGfsService;
import com.platform.service.IMoveDataService;
@@ -48,6 +51,9 @@ import com.platform.utils.UtilsHelper;
@Controller
public class DataModelController extends BaseController{
+
+ public static Logger log = Logger.getLogger(DataModelController.class);
+
@Resource(name = "dataInfoService")
private DataInfoService dfs;
@@ -62,7 +68,7 @@ public class DataModelController extends BaseController{
@Resource(name = "moveDataService")
private IMoveDataService moveDataService;
-
+
public void setDfsImp(DataInfoService dfs) {
this.dfs = dfs;
}
@@ -129,7 +135,7 @@ public class DataModelController extends BaseController{
}
@RequestMapping(value="/oracle/{name}/extract", method= RequestMethod.POST)
- public void extractOracleData(HttpServletRequest res,
+ public void oracleExtract(HttpServletRequest res,
HttpServletResponse req, String name) throws Exception {
res.setCharacterEncoding("UTF-8");
System.out.println("------extract-------");
@@ -155,23 +161,44 @@ public class DataModelController extends BaseController{
OracleExtract.extractOracle(name, colleclist, map);
}
+// public void oracleExtract(HttpServletRequest res,
+// HttpServletResponse req, String name, @RequestBody GatherOracleInfo gather, @RequestBody List collectOracles)
+// throws Exception {
+//// res.setCharacterEncoding("UTF-8");
+// log.debug("------extract-------");
+//// Map paramMap = res.getParameterMap();
+//// log.debug(paramMap);
+//// //汇总库 对象信息--带有tableName-
+//// String[] nodes = paramMap.get("target");
+//// Map map = null;
+//// for (String string : nodes) {
+//// JSONObject jsonobject = JSONObject.fromObject(string);
+//// map = jsonobject;
+//// System.out.println(map);
+//// }
+////
+//// // 采集库对象--(多个采集库抽取到1个汇总库的1个tableName下)
+//// String[] inneed = paramMap.get("inneed");
+//// List