|
@@ -5,6 +5,8 @@ import com.zhongzheng.common.core.controller.BaseController;
|
|
import com.zhongzheng.common.core.domain.AjaxResult;
|
|
import com.zhongzheng.common.core.domain.AjaxResult;
|
|
import com.zhongzheng.common.core.page.TableDataInfo;
|
|
import com.zhongzheng.common.core.page.TableDataInfo;
|
|
import com.zhongzheng.common.enums.BusinessType;
|
|
import com.zhongzheng.common.enums.BusinessType;
|
|
|
|
+import com.zhongzheng.common.utils.ServletUtils;
|
|
|
|
+import com.zhongzheng.framework.web.service.WxTokenService;
|
|
import com.zhongzheng.modules.base.bo.ProfileTpAddBo;
|
|
import com.zhongzheng.modules.base.bo.ProfileTpAddBo;
|
|
import com.zhongzheng.modules.base.bo.ProfileTpEditBo;
|
|
import com.zhongzheng.modules.base.bo.ProfileTpEditBo;
|
|
import com.zhongzheng.modules.base.bo.ProfileTpQueryBo;
|
|
import com.zhongzheng.modules.base.bo.ProfileTpQueryBo;
|
|
@@ -12,6 +14,7 @@ import com.zhongzheng.modules.base.bo.ProfileTpUserAddBo;
|
|
import com.zhongzheng.modules.base.service.IProfileTpService;
|
|
import com.zhongzheng.modules.base.service.IProfileTpService;
|
|
import com.zhongzheng.modules.base.service.IProfileTpUserService;
|
|
import com.zhongzheng.modules.base.service.IProfileTpUserService;
|
|
import com.zhongzheng.modules.base.vo.ProfileTpVo;
|
|
import com.zhongzheng.modules.base.vo.ProfileTpVo;
|
|
|
|
+import com.zhongzheng.modules.user.entity.ClientLoginUser;
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.ApiOperation;
|
|
import io.swagger.annotations.ApiOperation;
|
|
import lombok.RequiredArgsConstructor;
|
|
import lombok.RequiredArgsConstructor;
|
|
@@ -35,6 +38,7 @@ public class ProfileTpController extends BaseController {
|
|
|
|
|
|
private final IProfileTpService iProfileTpService;
|
|
private final IProfileTpService iProfileTpService;
|
|
private final IProfileTpUserService iProfileTpUserService;
|
|
private final IProfileTpUserService iProfileTpUserService;
|
|
|
|
+ private final WxTokenService wxTokenService;
|
|
|
|
|
|
/**
|
|
/**
|
|
* 查询资料模板列表
|
|
* 查询资料模板列表
|
|
@@ -65,6 +69,8 @@ public class ProfileTpController extends BaseController {
|
|
@Log(title = "填写资料审核", businessType = BusinessType.INSERT)
|
|
@Log(title = "填写资料审核", businessType = BusinessType.INSERT)
|
|
@PostMapping()
|
|
@PostMapping()
|
|
public AjaxResult<Void> add(@RequestBody ProfileTpUserAddBo bo) {
|
|
public AjaxResult<Void> add(@RequestBody ProfileTpUserAddBo bo) {
|
|
|
|
+ ClientLoginUser loginUser = wxTokenService.getLoginUser(ServletUtils.getRequest());
|
|
|
|
+ bo.setUserId(loginUser.getUser().getUserId());
|
|
return toAjax(iProfileTpUserService.insertByAddBo(bo) ? 1 : 0);
|
|
return toAjax(iProfileTpUserService.insertByAddBo(bo) ? 1 : 0);
|
|
}
|
|
}
|
|
}
|
|
}
|