|
|
@@ -15,7 +15,9 @@ import org.springframework.web.bind.annotation.RequestParam;
|
|
|
import org.springframework.web.bind.annotation.ResponseBody;
|
|
|
|
|
|
import com.uas.platform.b2b.model.Enterprise;
|
|
|
+import com.uas.platform.b2b.model.RegisterRecord;
|
|
|
import com.uas.platform.b2b.service.EnterpriseService;
|
|
|
+import com.uas.platform.b2b.service.RegisterLogService;
|
|
|
import com.uas.platform.b2b.service.UserService;
|
|
|
import com.uas.platform.core.util.serializer.FlexJsonUtils;
|
|
|
|
|
|
@@ -33,6 +35,8 @@ public class EnterpriseController {
|
|
|
private EnterpriseService enterpriseService;
|
|
|
@Autowired
|
|
|
private UserService userService;
|
|
|
+ @Autowired
|
|
|
+ private RegisterLogService registerLogService;
|
|
|
|
|
|
/**
|
|
|
*管理平台获取需要审核的企业
|
|
|
@@ -107,5 +111,32 @@ public class EnterpriseController {
|
|
|
List<Long> enUUs = FlexJsonUtils.fromJsonArray(jsonStr, Long.class);
|
|
|
enterpriseService.enabledUploadSuccess(enUUs);
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 获取平台上记录的注册相关记录
|
|
|
+ *
|
|
|
+ * @param email
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @RequestMapping(value = "/log", method = RequestMethod.GET)
|
|
|
+ @ResponseBody
|
|
|
+ public List<RegisterRecord> getRegisterRecordUpload() {
|
|
|
+ return registerLogService.getNotUpLoadRegisterLog();
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 下载平台上记录成功后修改记录的传输状态
|
|
|
+ *
|
|
|
+ * @param email
|
|
|
+ * @return
|
|
|
+ * @throws UnsupportedEncodingException
|
|
|
+ */
|
|
|
+ @RequestMapping(value = "/log", method = RequestMethod.POST)
|
|
|
+ @ResponseBody
|
|
|
+ public void uploadRegisterLogSuccess(String data) throws UnsupportedEncodingException {
|
|
|
+ String jsonStr = URLDecoder.decode(data, "UTF-8");
|
|
|
+ List<Long> ids = FlexJsonUtils.fromJsonArray(jsonStr, Long.class);
|
|
|
+ registerLogService.upLoadSuccessRegister(ids);
|
|
|
+ }
|
|
|
|
|
|
}
|