zhuoning 3 سال پیش
والد
کامیت
10397f1eb0

+ 7 - 7
huimv-manage/src/main/java/com/huimv/manage/controller/ApplyController.java

@@ -71,15 +71,15 @@ public class ApplyController {
         log.info("producerId>>"+producerId);
         log.info("webServiceUrl>>"+webServiceUrl);
         //
-//        JSONArray applyJa = newProduceMission.parseApplyXML(soap.callSoap(newProduceMission.getNewMissionText(producerId),webServiceUrl));
+        JSONArray applyJa = newProduceMission.parseApplyXML(soap.callSoap(newProduceMission.getNewMissionText(producerId),webServiceUrl));
         //
-        JSONArray applyJa = newProduceMission.parseApplyXML(newProduceMission.getNewMessionResult());
+//        JSONArray applyJa = newProduceMission.parseApplyXML(newProduceMission.getNewMessionResult());
         if(applyJa.size() > 0){
-            System.out.println("获取任务号:"+applyJa.size());
-            for(int a=0;a<applyJa.size();a++){
-                JSONObject applyJo = applyJa.getJSONObject(a);
-                System.out.println(applyJo);
-            }
+//            System.out.println("获取任务号:"+applyJa.size());
+//            for(int a=0;a<applyJa.size();a++){
+//                JSONObject applyJo = applyJa.getJSONObject(a);
+//                System.out.println(applyJo);
+//            }
             // 保存新任务(号)
             return applyService.saveNewMission(applyJa);
         }else{

+ 4 - 4
huimv-manage/src/main/java/com/huimv/manage/dao/entity/EtApplyEntity.java

@@ -21,8 +21,8 @@ public class EtApplyEntity implements Serializable {
     @Column(name = "id", nullable = false)
     private Integer id;
 
-//    @CreatedDate
-//    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
+    @CreatedDate
+    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
     @Column(name = "download_time")
     private Timestamp downloadTime;
 
@@ -87,8 +87,8 @@ public class EtApplyEntity implements Serializable {
     @Column(name = "deliver_date")
     private Date deliverDate;
 
-//    @CreatedDate
-//    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
+    @CreatedDate
+    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
     @Column(name = "commit_time")
     private Timestamp commitTime;
 

+ 2 - 5
huimv-manage/src/main/java/com/huimv/manage/service/impl/ApplyServiceImpl.java

@@ -57,9 +57,6 @@ public class ApplyServiceImpl implements IApplyService {
     public Result saveNewMission(JSONArray applyJa) {
         for(int a=0;a<applyJa.size();a++){
             JSONObject applyJo = applyJa.getJSONObject(a);
-//            System.out.println("applyJo>>"+applyJo);
-            System.out.println("orgName>>"+applyJo.getString("orgName"));
-
             EtApplyEntity applyEntity = new EtApplyEntity();
             applyEntity.setMissionProcessor(applyJo.getString("missionProcessor"));
             applyEntity.setOrgId(applyJo.getString("orgId"));
@@ -76,8 +73,8 @@ public class ApplyServiceImpl implements IApplyService {
             applyEntity.setApplyRegionName(applyJo.getString("applyRegionName"));
             applyEntity.setAnimalType(applyJo.getString("animalType"));
             applyEntity.setAnimalTypeName(applyJo.getString("animalTypeName"));
-//            applyEntity.setSetDownState(0);
-//            applyEntity.setDeliverState(0);
+            applyEntity.setSetDownState(0);
+            applyEntity.setDeliverState(0);
             applyRepo.saveAndFlush(applyEntity);
         }
         return new Result(ResultCode.SUCCESS, Const.SAVE_NEW_MESSION);