|
@@ -16,6 +16,7 @@ import org.fouram.core.util.AppUtil;
|
|
import org.fouram.core.util.AppUtil.ResultConstant;
|
|
import org.fouram.core.util.AppUtil.ResultConstant;
|
|
import org.fouram.dto.input.GetToBeConfirmedListDTO;
|
|
import org.fouram.dto.input.GetToBeConfirmedListDTO;
|
|
import org.fouram.dto.input.UpdateResultDTO;
|
|
import org.fouram.dto.input.UpdateResultDTO;
|
|
|
|
+import org.fouram.dto.output.GetToBeConfirmedListOutput;
|
|
import org.fouram.core.util.ConfConfig;
|
|
import org.fouram.core.util.ConfConfig;
|
|
import org.fouram.core.util.DateUtil;
|
|
import org.fouram.core.util.DateUtil;
|
|
import org.fouram.core.util.ExcelExportUtil;
|
|
import org.fouram.core.util.ExcelExportUtil;
|
|
@@ -43,6 +44,8 @@ import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.ApiImplicitParam;
|
|
import io.swagger.annotations.ApiImplicitParam;
|
|
import io.swagger.annotations.ApiImplicitParams;
|
|
import io.swagger.annotations.ApiImplicitParams;
|
|
import io.swagger.annotations.ApiOperation;
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
|
+import io.swagger.annotations.ApiResponse;
|
|
|
|
+import io.swagger.annotations.ApiResponses;
|
|
import me.chanjar.weixin.cp.bean.WxCpOauth2UserInfo;
|
|
import me.chanjar.weixin.cp.bean.WxCpOauth2UserInfo;
|
|
|
|
|
|
@Controller
|
|
@Controller
|
|
@@ -197,6 +200,7 @@ public class ApiController extends BaseController {
|
|
@ApiImplicitParam(name = "type", value = "同步类型", dataType = "String", paramType = "query"),
|
|
@ApiImplicitParam(name = "type", value = "同步类型", dataType = "String", paramType = "query"),
|
|
@ApiImplicitParam(name = "pageNumber", value = "第几页", dataType = "Integer", paramType = "query"),
|
|
@ApiImplicitParam(name = "pageNumber", value = "第几页", dataType = "Integer", paramType = "query"),
|
|
@ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query")})
|
|
@ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query")})
|
|
|
|
+ @ApiResponses(@ApiResponse(response = GetToBeConfirmedListOutput.class, code = 200, message = "success"))
|
|
@ApiOperation(value = "查询待确认员工列表")
|
|
@ApiOperation(value = "查询待确认员工列表")
|
|
@PostMapping(value = "/getToBeConfirmedList", produces = "application/json;charset=utf-8")
|
|
@PostMapping(value = "/getToBeConfirmedList", produces = "application/json;charset=utf-8")
|
|
@ResponseBody
|
|
@ResponseBody
|
|
@@ -205,7 +209,7 @@ public class ApiController extends BaseController {
|
|
return AppUtil.error(ResultConstant.NO_TOKEN, ResultConstant.TOKEN_ERR_MSG);
|
|
return AppUtil.error(ResultConstant.NO_TOKEN, ResultConstant.TOKEN_ERR_MSG);
|
|
}
|
|
}
|
|
try {
|
|
try {
|
|
- return AppUtil.success(sapUserService.selectToBeConfirmedPrimaryList(dto), null);
|
|
|
|
|
|
+ return ResultUtil.success(sapUserService.selectToBeConfirmedPrimaryList(dto), null);
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
LoggerUtil.error(e);
|
|
LoggerUtil.error(e);
|
|
return AppUtil.error(ResultConstant.WEB_ERR_MSG);
|
|
return AppUtil.error(ResultConstant.WEB_ERR_MSG);
|
|
@@ -222,7 +226,7 @@ public class ApiController extends BaseController {
|
|
}
|
|
}
|
|
try {
|
|
try {
|
|
sapUserService.updateIngore(dto.getUserId());
|
|
sapUserService.updateIngore(dto.getUserId());
|
|
- return AppUtil.success();
|
|
|
|
|
|
+ return ResultUtil.success(null, "操作成功");
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
LoggerUtil.error(e);
|
|
LoggerUtil.error(e);
|
|
return AppUtil.error(ResultConstant.WEB_ERR_MSG);
|
|
return AppUtil.error(ResultConstant.WEB_ERR_MSG);
|
|
@@ -239,7 +243,7 @@ public class ApiController extends BaseController {
|
|
}
|
|
}
|
|
try {
|
|
try {
|
|
sapUserService.updateSyncWxResult(dto.getUserId());
|
|
sapUserService.updateSyncWxResult(dto.getUserId());
|
|
- return AppUtil.success();
|
|
|
|
|
|
+ return ResultUtil.success(null, "操作成功");
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
LoggerUtil.error(e);
|
|
LoggerUtil.error(e);
|
|
return AppUtil.error(ResultConstant.WEB_ERR_MSG);
|
|
return AppUtil.error(ResultConstant.WEB_ERR_MSG);
|
|
@@ -252,7 +256,7 @@ public class ApiController extends BaseController {
|
|
public Object syncWeixinUser() {
|
|
public Object syncWeixinUser() {
|
|
try {
|
|
try {
|
|
syncSapUserToWxService.taskBiz();
|
|
syncSapUserToWxService.taskBiz();
|
|
- return AppUtil.success();
|
|
|
|
|
|
+ return ResultUtil.success(null, "操作成功");
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
LoggerUtil.error(e);
|
|
LoggerUtil.error(e);
|
|
return AppUtil.error(ResultConstant.WEB_ERR_MSG);
|
|
return AppUtil.error(ResultConstant.WEB_ERR_MSG);
|