|
|
@@ -31,6 +31,7 @@ import com.goafanti.common.model.OrgTechAchievement;
|
|
|
import com.goafanti.common.model.OrgTechCenter;
|
|
|
import com.goafanti.common.model.OrgTechProduct;
|
|
|
import com.goafanti.common.model.OrganizationIdentity;
|
|
|
+import com.goafanti.common.model.UserAbility;
|
|
|
import com.goafanti.common.model.UserIdentity;
|
|
|
import com.goafanti.common.utils.DateUtils;
|
|
|
import com.goafanti.common.utils.StringUtils;
|
|
|
@@ -58,6 +59,7 @@ import com.goafanti.user.bo.OrgListBo;
|
|
|
import com.goafanti.user.bo.UserListBo;
|
|
|
import com.goafanti.user.service.OrgHumanResourceService;
|
|
|
import com.goafanti.user.service.OrganizationIdentityService;
|
|
|
+import com.goafanti.user.service.UserAbilityService;
|
|
|
import com.goafanti.user.service.UserIdentityService;
|
|
|
import com.goafanti.user.service.UserService;
|
|
|
|
|
|
@@ -96,6 +98,8 @@ public class AdminApiController extends BaseApiController {
|
|
|
private OrgCognizanceService orgCognizanceService;
|
|
|
@Resource
|
|
|
private OrgCognizanceLogService orgCognizanceLogService;
|
|
|
+ @Resource
|
|
|
+ private UserAbilityService userAbilityService;
|
|
|
|
|
|
/**
|
|
|
* 个人用户列表
|
|
|
@@ -889,6 +893,34 @@ public class AdminApiController extends BaseApiController {
|
|
|
return res;
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 企业创新能力入口
|
|
|
+ * @param uid
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @RequestMapping(value = "/able", method = RequestMethod.POST)
|
|
|
+ public Result able(String uid){
|
|
|
+ Result res = new Result();
|
|
|
+ res.setData(userAbilityService.selectUserAbilityByUserId(uid));
|
|
|
+ return res;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 企业创新能力新增+保存
|
|
|
+ * @param u
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @RequestMapping(value = "disposeAble", method = RequestMethod.POST)
|
|
|
+ public Result disposeAble(UserAbility u){
|
|
|
+ Result res = new Result();
|
|
|
+ if (null == u.getId()){
|
|
|
+ u.setId(UUID.randomUUID().toString());
|
|
|
+ userAbilityService.insert(u);
|
|
|
+ } else {
|
|
|
+ userAbilityService.updateByPrimaryKeySelective(u);
|
|
|
+ }
|
|
|
+ return res;
|
|
|
+ }
|
|
|
|
|
|
|
|
|
// 判断用户是否通过认证
|