Selaa lähdekoodia

鄂州办一网通接口

shuzhan 8 kuukautta sitten
vanhempi
commit
862c044672

+ 2 - 2
common/src/main/java/com/jpsoft/campus/modules/base/entity/UserInformationProvincial.java

@@ -24,8 +24,8 @@ public class UserInformationProvincial {
 	private String licenseType = "113";
 	private Integer prequalification = 0;
 	private Integer sceneBusiness = 1;
-	private String sceneName = "教育入学一件事";
-	private String sceneNo = "";
+	private String sceneName = "教育入学一件事";
+	private String sceneNo = "42PC00079A24";
 	private Integer simpleApproval = 0;
 	private String sourceId = "";
 	private Integer sourceName = 14;

+ 3 - 3
common/src/main/java/com/jpsoft/campus/modules/base/entity/UserInformationProvincialFileDeclares.java

@@ -12,8 +12,8 @@ public class UserInformationProvincialFileDeclares {
 	private String applyNo;
 	private String fileId = "";
 	private String fileName = "";
-	private String itemCode = "";
-	private String sceneName = "教育入学一件事";
+	private String itemCode = "422005056000";
+	private String sceneName = "教育入学一件事";
 	private String sourceId = "";
 	private String stuffCode = "";
 	private String stuffName = "";
@@ -21,5 +21,5 @@ public class UserInformationProvincialFileDeclares {
 	private Integer stuffStatus = 0;
 	private Integer stuffType = 0;
 	private String subApplyNo = "";
-	private String taskHandleItem = "";
+	private String taskHandleItem = "114210000110971354442200505600001";
 }

+ 11 - 10
common/src/main/java/com/jpsoft/campus/modules/base/entity/UserInformationProvincialSubDeclares.java

@@ -14,19 +14,20 @@ public class UserInformationProvincialSubDeclares {
 	private String applicantPhone;
 	private String applicantType = "1";
 	private String applyNo;
-	private String areaCode = "421003";
+	//private String areaCode = "421003";
+	private String areaCode = "421050000000";
 	private String areaName = "荆州经济技术开发区";
-	private String departCode = "";
-	private String departName = "";
+	private String departCode = "114210000110971000";
+	private String departName = "荆州经济技术开发区管理委员会";
 	private String formContent = "";
-	private String info = "";
-	private String itemCode = "";
-	private String itemName = "";
+	private String info = "{}";
+	private String itemCode = "422005056000";
+	private String itemName = "新生入学信息采集";
 	private String licenseType = "113";
 	private String liceseNo;
 	private Integer prequalification = 0;
-	private String sceneName = "教育入学一件事";
-	private String sceneNo = "";
+	private String sceneName = "教育入学一件事";
+	private String sceneNo = "42PC00079A24";
 	private Integer simpleApproval = 0;
 	private String sourceId = "";
 	private Integer sourceName = 14;
@@ -38,8 +39,8 @@ public class UserInformationProvincialSubDeclares {
 	private String targetId;
 	private String targetName;
 	private String targetType = "1";
-	private String taskHandleItem = "";
-	private String taskHandleName = "";
+	private String taskHandleItem = "114210000110971354442200505600001";
+	private String taskHandleName = "新生入学信息采集";
 
 	private List<UserInformationProvincialFileDeclares> fileDeclares;
 

+ 0 - 4
common/src/main/resources/mapper/base/ApplicationPrimary.xml

@@ -454,16 +454,12 @@
         1 AS applicantType,
         #{applyNo} AS applyNo,
         1 AS applyStatus,
-        '421003' AS areaCode ,
-        '荆州经济技术开发区' AS areaName,
         '' as formContent,
         c.id_card as licenseNo,
         '113' as licenseType,
         0 as prequalification,
         1 as sceneBusiness,
-        '' as sceneNo,
         0 as simpleApproval,
-        '' as sourceId,
         14 as sourceName,
         1 as sourceRoute,
         b.id_card as targetId,

+ 6 - 3
web/src/main/java/com/jpsoft/campus/modules/mobile/controller/UiasApiController.java

@@ -204,6 +204,7 @@ public class UiasApiController {
     @ResponseBody
     public MessageResult<Map> uploadProvincialUser(
             @RequestParam(value="schoolType",defaultValue="test") String status,
+            @RequestParam(value="limit",defaultValue="10") Integer limit,
             @RequestParam(value="token",defaultValue="") String token
             ) {
         MessageResult<Map> messageResult = new MessageResult<>();
@@ -220,8 +221,8 @@ public class UiasApiController {
 
 //            String token = uiasService.getProvincialToken(path,appId,appSecret);
 //            String token = "eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9.eyJrZXkiOiJrZXlfb25ldGhpbmdBcGlfdGVzdF96dHNia180MjEwMDAwMDAwMDBfanl6c3B0XzEzZWUyNGEwYzQyNDRjZGJhMmExMGJkYmY1NDE1MTZlIiwiZXhwIjoxNzI5MzAxNDczfQ._ZT6ceoP4CpWASjQhCC6NU2hO3BQLQPB9GTA90lS1Vx_vQSnpnETzHjIYqrS_6odhAXW2m-ToQ_usXy6qIV2Og";
-            String applyNo = uiasService.applyno(path,token);
-            Integer limit = 10;
+//            String applyNo = uiasService.applyno(path,token);
+            String applyNo = "test";
 
             List<UserInformationProvincial> primaryList = applicationPrimaryService.findOfficeByProvincial(applyNo,limit);
             List<Map> returnList = new ArrayList<>();
@@ -233,14 +234,17 @@ public class UiasApiController {
                 subDeclares.setLiceseNo(provincial.getLicenseNo());
                 subDeclares.setTargetId(provincial.getTargetId());
                 subDeclares.setTargetName(provincial.getTargetName());
+                subDeclares.setSourceId(appId);
 
                 UserInformationProvincialFileDeclares fileDeclares = new UserInformationProvincialFileDeclares();
                 fileDeclares.setApplyNo(applyNo);
+                fileDeclares.setSourceId(appId);
 
                 List<UserInformationProvincialFileDeclares> fileDeclaresList = new ArrayList<>();
                 fileDeclaresList.add(fileDeclares);
 
                 subDeclares.setFileDeclares(fileDeclaresList);
+                provincial.setSourceId(appId);
 
                 List<UserInformationProvincialSubDeclares> subDeclaresList = new ArrayList<>();
                 subDeclaresList.add(subDeclares);
@@ -250,7 +254,6 @@ public class UiasApiController {
                 userMap.put("declare",provincial);
                 returnList.add(userMap);
 
-
                 String data = uiasService.submitAll(path,token,provincial,subDeclares);
             }