|
@@ -14,6 +14,7 @@ import io.swagger.annotations.ApiOperation;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
|
|
|
|
|
|
|
|
|
+import org.apache.commons.lang3.StringUtils;
|
|
import org.codehaus.jackson.map.ObjectMapper;
|
|
import org.codehaus.jackson.map.ObjectMapper;
|
|
import org.joda.time.DateTime;
|
|
import org.joda.time.DateTime;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -257,6 +258,7 @@ public class UiasApiController {
|
|
@ResponseBody
|
|
@ResponseBody
|
|
public MessageResult<Map> uploadProvincialUser(
|
|
public MessageResult<Map> uploadProvincialUser(
|
|
@RequestParam(value="schoolType",defaultValue="test") String status,
|
|
@RequestParam(value="schoolType",defaultValue="test") String status,
|
|
|
|
+ @RequestParam(value="userId",defaultValue="") String userId,
|
|
@RequestParam(value="limit",defaultValue="10") Integer limit,
|
|
@RequestParam(value="limit",defaultValue="10") Integer limit,
|
|
@RequestParam(value="token",defaultValue="") String token
|
|
@RequestParam(value="token",defaultValue="") String token
|
|
) {
|
|
) {
|
|
@@ -268,9 +270,9 @@ public class UiasApiController {
|
|
String appSecret = "secret_onethingApi_test_ztsbk_421000000000_jyzspt_b3670cf58542411c8605df86cee70a2e";
|
|
String appSecret = "secret_onethingApi_test_ztsbk_421000000000_jyzspt_b3670cf58542411c8605df86cee70a2e";
|
|
if("real".equals(status)) {
|
|
if("real".equals(status)) {
|
|
path = "https://59.208.149.51:10086/";//正式
|
|
path = "https://59.208.149.51:10086/";//正式
|
|
- appId = "key_onethingApi_prod_ztsbk_421000000000_jyzspt_50a9bb4e0a80487c9f517672cb3ba36";
|
|
|
|
|
|
+ appId = "key_onethingApi_prod_ztsbk_421000000000_jyzspt_50a9bb4e0a80487c9f517672cb3ba36b";
|
|
appSecret = "secret_onethingApi_prod_ztsbk_421000000000_jyzspt_764c9a3cf7f94633a0ebf1ff18f0057";
|
|
appSecret = "secret_onethingApi_prod_ztsbk_421000000000_jyzspt_764c9a3cf7f94633a0ebf1ff18f0057";
|
|
- //https://59.208.149.51:10086/gateway/api/getToken?key=key_onethingApi_prod_ztsbk_421000000000_jyzspt_50a9bb4e0a80487c9f517672cb3ba36
|
|
|
|
|
|
+// https://59.208.149.51:10086/gateway/api/getToken?key=key_onethingApi_prod_ztsbk_421000000000_jyzspt_50a9bb4e0a80487c9f517672cb3ba36b
|
|
// token = uiasService.getProvincialToken(path,appId,appSecret);
|
|
// token = uiasService.getProvincialToken(path,appId,appSecret);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -287,13 +289,16 @@ public class UiasApiController {
|
|
subDeclares.setApplicantName(provincial.getApplicantName());
|
|
subDeclares.setApplicantName(provincial.getApplicantName());
|
|
subDeclares.setApplicantPhone(provincial.getApplicantPhone());
|
|
subDeclares.setApplicantPhone(provincial.getApplicantPhone());
|
|
subDeclares.setApplyNo(applyNo);
|
|
subDeclares.setApplyNo(applyNo);
|
|
|
|
+ subDeclares.setSubApplyNo(applyNo);
|
|
subDeclares.setLiceseNo(provincial.getLicenseNo());
|
|
subDeclares.setLiceseNo(provincial.getLicenseNo());
|
|
subDeclares.setTargetId(provincial.getTargetId());
|
|
subDeclares.setTargetId(provincial.getTargetId());
|
|
subDeclares.setTargetName(provincial.getTargetName());
|
|
subDeclares.setTargetName(provincial.getTargetName());
|
|
|
|
+ provincial.setApplyNo(applyNo);
|
|
subDeclares.setSourceId(appId);
|
|
subDeclares.setSourceId(appId);
|
|
|
|
|
|
UserInformationProvincialFileDeclares fileDeclares = new UserInformationProvincialFileDeclares();
|
|
UserInformationProvincialFileDeclares fileDeclares = new UserInformationProvincialFileDeclares();
|
|
fileDeclares.setApplyNo(applyNo);
|
|
fileDeclares.setApplyNo(applyNo);
|
|
|
|
+ fileDeclares.setSubApplyNo(applyNo);
|
|
fileDeclares.setSourceId(appId);
|
|
fileDeclares.setSourceId(appId);
|
|
|
|
|
|
List<UserInformationProvincialFileDeclares> fileDeclaresList = new ArrayList<>();
|
|
List<UserInformationProvincialFileDeclares> fileDeclaresList = new ArrayList<>();
|
|
@@ -301,9 +306,10 @@ public class UiasApiController {
|
|
|
|
|
|
// subDeclares.setFileDeclares(fileDeclaresList);
|
|
// subDeclares.setFileDeclares(fileDeclaresList);
|
|
provincial.setSourceId(appId);
|
|
provincial.setSourceId(appId);
|
|
- /**
|
|
|
|
- provincial.setApplicantId();
|
|
|
|
- **/
|
|
|
|
|
|
+
|
|
|
|
+ if(StringUtils.isNoneBlank(userId)) {
|
|
|
|
+ provincial.setApplicantId(userId);
|
|
|
|
+ }
|
|
|
|
|
|
List<UserInformationProvincialSubDeclares> subDeclaresList = new ArrayList<>();
|
|
List<UserInformationProvincialSubDeclares> subDeclaresList = new ArrayList<>();
|
|
subDeclaresList.add(subDeclares);
|
|
subDeclaresList.add(subDeclares);
|
|
@@ -319,7 +325,8 @@ public class UiasApiController {
|
|
System.out.println(code);
|
|
System.out.println(code);
|
|
System.out.println(subNos);
|
|
System.out.println(subNos);
|
|
|
|
|
|
- ApplicationPrimary primary = applicationPrimaryService.get(provincial.getApplicantId());
|
|
|
|
|
|
+
|
|
|
|
+ ApplicationPrimary primary = applicationPrimaryService.get(provincial.getAppId());
|
|
primary.setCode(code);
|
|
primary.setCode(code);
|
|
primary.setSubNos(subNos);
|
|
primary.setSubNos(subNos);
|
|
primary.setUpdateTime(new Date());
|
|
primary.setUpdateTime(new Date());
|