package com.goafanti.admin.controller; import java.text.ParseException; import java.util.Calendar; import java.util.LinkedHashMap; import java.util.List; import java.util.Map; import java.util.UUID; import javax.annotation.Resource; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RequestParam; import com.goafanti.common.bo.Result; import com.goafanti.common.constant.ErrorConstants; import com.goafanti.common.controller.BaseApiController; import com.goafanti.common.model.OrgActivity; import com.goafanti.common.model.OrgActivityCost; import com.goafanti.common.model.OrgCognizance; import com.goafanti.common.model.OrgCognizanceLog; import com.goafanti.common.model.OrgFinance; import com.goafanti.common.model.OrgHonorDatum; import com.goafanti.common.model.OrgHumanResource; import com.goafanti.common.model.OrgIntellectualProperty; import com.goafanti.common.model.OrgRatepay; import com.goafanti.common.model.OrgStandard; 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.UserIdentity; import com.goafanti.common.utils.DateUtils; import com.goafanti.common.utils.StringUtils; import com.goafanti.core.mybatis.page.Pagination; import com.goafanti.core.shiro.token.TokenManager; import com.goafanti.techservice.cognizance.bo.ActivityNumberBo; import com.goafanti.techservice.cognizance.service.OrgActivityCostService; import com.goafanti.techservice.cognizance.service.OrgActivityService; import com.goafanti.techservice.cognizance.service.OrgCognizanceLogService; import com.goafanti.techservice.cognizance.service.OrgCognizanceService; import com.goafanti.techservice.cognizance.service.OrgFinanceService; import com.goafanti.techservice.cognizance.service.OrgHonorDatumService; import com.goafanti.techservice.cognizance.service.OrgIntellectualPropertyService; import com.goafanti.techservice.cognizance.service.OrgRatepayService; import com.goafanti.techservice.cognizance.service.OrgStandardService; import com.goafanti.techservice.cognizance.service.OrgTechAchievementService; import com.goafanti.techservice.cognizance.service.OrgTechCenterService; import com.goafanti.techservice.cognizance.service.OrgTechProductService; 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.UserIdentityService; import com.goafanti.user.service.UserService; @Controller @RequestMapping(value = "/api/admin") public class AdminApiController extends BaseApiController { @Resource private UserService userService; @Resource private UserIdentityService userIdentityService; @Resource private OrganizationIdentityService organizationIdentityService; @Resource private OrgHumanResourceService orgHumanResourceService; @Resource private OrgStandardService orgStandardService; @Resource private OrgIntellectualPropertyService orgIntellectualPropertyService; @Resource private OrgTechProductService orgTechProductService; @Resource private OrgRatepayService orgRatepayService; @Resource private OrgFinanceService orgFinanceService; @Resource private OrgActivityService orgActivityService; @Resource private OrgActivityCostService orgActivityCostService; @Resource private OrgTechAchievementService orgTechAchievementService; @Resource private OrgHonorDatumService orgHonorDatumService; @Resource private OrgTechCenterService orgTechCenterService; @Resource private OrgCognizanceService orgCognizanceService; @Resource private OrgCognizanceLogService orgCognizanceLogService; /** * 个人用户列表 * * @param mobile * @param email * @param createTime * @param number * @param auditStatus * @param pageNo * @param pageSize * @return * @throws ParseException */ @RequestMapping(value = "/userList", method = RequestMethod.POST) public Result userList(String mobile, String email, @RequestParam(name = "createTime[]", required = false) String[] createTime, Integer number, String aftUsername, Integer auditStatus, String pageNo, String pageSize) throws ParseException { Result res = new Result(); Integer pNo = 1; Integer pSize = 10; if (StringUtils.isNumeric(pageSize)) { pSize = Integer.parseInt(pageSize); } if (StringUtils.isNumeric(pageNo)) { pNo = Integer.parseInt(pageNo); } res.setData(getUserList(mobile, email, createTime, number, aftUsername, auditStatus, pNo, pSize)); return res; } /** * 个人用户信息明细 * * @param uid * @return */ @RequestMapping(value = "/userDetail", method = RequestMethod.POST) public Result userDetail(String uid) { Result res = new Result(); res.setData(userIdentityService.selectUserIdentityByUserId(uid)); return res; } /** * 修改个人用户信息 * * @return */ @RequestMapping(value = "updateUserDetail", method = RequestMethod.POST) public Result updateUserDetail(UserIdentity userIdentity) { Result res = new Result(); res.setData(userIdentityService.updateByPrimaryKeySelective(userIdentity)); return res; } /** * 团体用户列表 * * @param mobile * @param email * @param createTime * @param number * @param auditStatus * @param pageNo * @param pageSize * @return * @throws ParseException */ @RequestMapping(value = "/orgList", method = RequestMethod.POST) public Result orgList(String mobile, String email, @RequestParam(name = "createTime[]", required = false) String[] createTime, Integer number, String aftUsername, Integer auditStatus, String pageNo, String pageSize) throws ParseException { Result res = new Result(); Integer pNo = 1; Integer pSize = 10; if (StringUtils.isNumeric(pageSize)) { pSize = Integer.parseInt(pageSize); } if (StringUtils.isNumeric(pageNo)) { pNo = Integer.parseInt(pageNo); } res.setData(getOrgList(mobile, email, createTime, number, aftUsername, auditStatus, pNo, pSize)); return res; } /** * 团体用户明细 * * @param uid * @return */ @RequestMapping(value = "/orgDetail", method = RequestMethod.POST) public Result orgDetail(String uid) { Result res = new Result(); res.setData(organizationIdentityService.selectOrgIdentityByUserId(uid)); return res; } /** * 修改团体用户信息 * * @param orgIdentity * @return */ @RequestMapping(value = "/updateOrgDetail", method = RequestMethod.POST) public Result updateOrgDetail(OrganizationIdentity orgIdentity) { Result res = new Result(); res.setData(organizationIdentityService.updateByPrimaryKeySelective(orgIdentity)); return res; } /** * 团体用户人力资源情况入口 * * @param uid * 用户ID * @return */ @RequestMapping(value = "/orgHumanResource", method = RequestMethod.POST) public Result orgHumanResource(Integer year, String pageNo, String pageSize, String uid) { Result res = new Result(); res = checkCertify(res,uid); if (res.getError().isEmpty()) { Integer pNo = 1; Integer pSize = 10; if (StringUtils.isNumeric(pageSize)) { pSize = Integer.parseInt(pageSize); } if (StringUtils.isNumeric(pageNo)) { pNo = Integer.parseInt(pageNo); } res.setData(orgHumanResourceService.listOrgHumanResource(year, pNo, pSize, uid)); } return res; } /** * 修改团体用户人力资源情况 * * @param orgHumanResource * @return */ @RequestMapping(value = "/updateOrgHumanResource", method = RequestMethod.POST) public Result updateOrgHumanResource(OrgHumanResource orgHumanResource) { Result res = new Result(); if (null == orgHumanResource.getId()) { orgHumanResource.setId(UUID.randomUUID().toString()); orgHumanResourceService.insert(orgHumanResource); } else { orgHumanResourceService.updateByPrimaryKeySelective(orgHumanResource); } return res; } /** * 企业参与国家标准或行业标准制定情况明细入口 * * @param uid * 用户id * @return */ @RequestMapping(value = "/standard", method = RequestMethod.POST) public Result standard(String uid, String standardName, String standardNumber, Integer standardLevel, Integer participateWay, String pageNo, String pageSize) { Result res = new Result(); res = checkCertify(res, uid); if (res.getError().isEmpty()) { Integer pNo = 1; Integer pSize = 10; if (StringUtils.isNumeric(pageSize)) { pSize = Integer.parseInt(pageSize); } if (StringUtils.isNumeric(pageNo)) { pNo = Integer.parseInt(pageNo); } res.setData(orgStandardService.listOrgStandard(standardName, standardNumber, standardLevel, participateWay, pNo, pSize, uid)); } return res; } /** * 企业参与国家标准或行业标准制定情况明细修改保存 * * @param orgStandard * @return */ @RequestMapping(value = "/developStandard", method = RequestMethod.POST) public Result developStandard(OrgStandard orgStandard) { Result res = new Result(); if (StringUtils.isBlank(orgStandard.getId())) { orgStandard.setId(UUID.randomUUID().toString()); orgStandard.setDeletedSign(0); Calendar now = Calendar.getInstance(); now.set(Calendar.MILLISECOND, 0); orgStandard.setCreateTime(now.getTime()); orgStandardService.insert(orgStandard); } else { orgStandardService.updateByPrimaryKeySelective(orgStandard); } res.setData(orgStandard); return res; } /** * 管理端录入+修改知识产权信息 * * @return * @throws ParseException */ @RequestMapping(value = "/intellectual", method = RequestMethod.POST) public Result intellectual(OrgIntellectualProperty orgIntellectualProperty, String authorizationDateFormattedDate, String uid) throws ParseException { Result res = new Result(); if (!StringUtils.isBlank(authorizationDateFormattedDate)) { orgIntellectualProperty .setAuthorizationDate(DateUtils.parseDate(authorizationDateFormattedDate, "yyyy-MM-dd")); } if (null == orgIntellectualProperty.getId()) { orgIntellectualProperty.setId(UUID.randomUUID().toString()); orgIntellectualProperty.setUid(uid); orgIntellectualProperty.setEvaluationCategory( (orgIntellectualProperty.getCatagory() >= 2 && orgIntellectualProperty.getCatagory() <= 4) ? 1 : 0); orgIntellectualProperty.setDeletedSign(0); res.setData(orgIntellectualPropertyService.insert(orgIntellectualProperty)); } else { orgIntellectualProperty.setEvaluationCategory(orgIntellectualProperty.getCatagory() <= 2 ? 1 : 0); res.setData(orgIntellectualPropertyService.updateByPrimaryKeySelective(orgIntellectualProperty)); } return res; } /** * 知识产权列表 * * @param pageNo * @param pageSize * @return */ @RequestMapping(value = "/intellectualList", method = RequestMethod.POST) public Result intellectualList(String pageNo, String pageSize, String uid) { Result res = new Result(); res = checkCertify(res, uid); if (res.getError().isEmpty()) { Integer pNo = 1; Integer pSize = 10; if (StringUtils.isNumeric(pageSize)) { pSize = Integer.parseInt(pageSize); } if (StringUtils.isNumeric(pageNo)) { pNo = Integer.parseInt(pageNo); } res.setData(orgIntellectualPropertyService.listIntellectual(pNo, pSize, uid)); } return res; } /** * 上年度高新技术产品(服务)情况列表 * * @param pageNo * @param pageSize * @return */ @RequestMapping(value = "/techProductList", method = RequestMethod.POST) public Result techProductList(String pageNo, String pageSize, String uid) { Result res = new Result(); res = checkCertify(res,uid); if (res.getError().isEmpty()) { Integer pNo = 1; Integer pSize = 10; if (StringUtils.isNumeric(pageSize)) { pSize = Integer.parseInt(pageSize); } if (StringUtils.isNumeric(pageNo)) { pNo = Integer.parseInt(pageNo); } res.setData(orgTechProductService.listTechProduct(pNo, pSize, uid)); } return res; } /** * 企业研究开发活动情况表入口 * * @param activityNumber * @param activityName * @param startDate * @param endDate * @param pageNo * @param pageSize * @return * @throws ParseException */ @RequestMapping(value = "/activityList", method = RequestMethod.POST) public Result activityList(String activityNumber, String activityName, String startDateFormattedDate, String endDateFormattedDate, String pageNo, String pageSize, String uid) throws ParseException { Result res = new Result(); res = checkCertify(res,uid); if (res.getError().isEmpty()) { Integer pNo = 1; Integer pSize = 10; if (StringUtils.isNumeric(pageSize)) { pSize = Integer.parseInt(pageSize); } if (StringUtils.isNumeric(pageNo)) { pNo = Integer.parseInt(pageNo); } res.setData(orgActivityService.listOrgActivity(activityNumber, activityName, startDateFormattedDate, endDateFormattedDate, pNo, pSize, uid)); } return res; } /** * 企业研究开发活动情况新增、修改 * * @param orgActivity * @return * @throws ParseException */ @RequestMapping(value = "/activity", method = RequestMethod.POST) public Result activity(OrgActivity orgActivity, String startDateFormattedDate, String endDateFormattedDate) throws ParseException { Result res = new Result(); orgActivity.setDeletedSign(0); if (!StringUtils.isBlank(startDateFormattedDate)) { orgActivity.setStartDate(DateUtils.parseDate(startDateFormattedDate, "yyyy-MM-dd")); } if (StringUtils.isBlank(endDateFormattedDate)) { orgActivity.setEndDate(DateUtils.parseDate(endDateFormattedDate, "yyyy-MM-dd")); } if (StringUtils.isBlank(orgActivity.getId())) { orgActivity.setId(UUID.randomUUID().toString()); orgActivity.setUid(TokenManager.getUserId()); orgActivityService.insert(orgActivity); } else { orgActivityService.updateByPrimaryKeySelective(orgActivity); Boolean flag = false; OrgActivityCost cost = orgActivityCostService.selectOrgActivityCostByAid(orgActivity.getId()); if (null != cost) { if (!StringUtils.isBlank(orgActivity.getActivityNumber())) { cost.setActivityNumber(orgActivity.getActivityNumber()); flag = true; } if (null == orgActivity.getStartDate()) { cost.setStartDate(orgActivity.getStartDate()); flag = true; } if (null == orgActivity.getEndDate()) { cost.setEndDate(orgActivity.getEndDate()); flag = true; } } if (flag) { orgActivityCostService.updateByPrimaryKeySelective(cost); } } res.setData(orgActivity); return res; } /** * 企业年度研究开发费用结构明细表列表入口 * * @return * @throws ParseException */ @RequestMapping(value = "/activityCostList", method = RequestMethod.POST) public Result activityCostList(String activityNumber, String startDateFormattedDate, String endDateFormattedDate, String pageNo, String pageSize, String uid) throws ParseException { Result res = new Result(); res = checkCertify(res,uid); if (res.getError().isEmpty()) { Integer pNo = 1; Integer pSize = 10; if (StringUtils.isNumeric(pageSize)) { pSize = Integer.parseInt(pageSize); } if (StringUtils.isNumeric(pageNo)) { pNo = Integer.parseInt(pageNo); } res.setData(orgActivityCostService.listOrgActivityCost(activityNumber, startDateFormattedDate, endDateFormattedDate, pNo, pSize, uid)); } return res; } /** * 企业年度研究开发费用结构明细表(新增+修改) * * @return * @throws ParseException */ @RequestMapping(value = "/activityCost", method = RequestMethod.POST) public Result activityCost(OrgActivityCost orgActivityCost, String signDateFormattedDate) throws ParseException { Result res = new Result(); if (StringUtils.isBlank(signDateFormattedDate)) { orgActivityCost.setSignDate(DateUtils.parseDate(signDateFormattedDate, "yyyy-MM-dd")); } if (null == orgActivityCost.getId()) { OrgActivity ac = orgActivityService.selectOrgActivityByPrimaryKey(orgActivityCost.getAid()); orgActivityCost.setStartDate(ac.getStartDate()); orgActivityCost.setEndDate(ac.getEndDate()); orgActivityCost.setId(UUID.randomUUID().toString()); orgActivityCost.setUid(TokenManager.getUserId()); orgActivityCost.setDeletedSign(0); orgActivityCostService.insert(orgActivityCost); } else { orgActivityCostService.updateByPrimaryKeySelective(orgActivityCost); } return res; } /** * 上年度高新技术产品(服务)情况(新增+修改) * * @param orgTechProduct * @return */ @RequestMapping(value = "/techProduct", method = RequestMethod.POST) public Result techProduct(OrgTechProduct orgTechProduct) { Result res = new Result(); if (null == orgTechProduct.getId()) { orgTechProduct.setId(UUID.randomUUID().toString()); orgTechProduct.setDeletedSign(0); orgTechProductService.insert(orgTechProduct); } else { orgTechProductService.updateByPrimaryKeySelective(orgTechProduct); } res.setData(orgTechProduct); return res; } /** * 企业纳税申报信息入口 * * @return */ @RequestMapping(value = "/ratepay", method = RequestMethod.POST) public Result ratepay(Integer year, String pageNo, String pageSize, String uid) { Result res = new Result(); res = checkCertify(res,uid); if (res.getError().isEmpty()) { Integer pNo = 1; Integer pSize = 10; if (StringUtils.isNumeric(pageSize)) { pSize = Integer.parseInt(pageSize); } if (StringUtils.isNumeric(pageNo)) { pNo = Integer.parseInt(pageNo); } res.setData(orgRatepayService.listOrgRatepay(year, pNo, pSize, uid)); } return res; } /** * 企业纳税申报信息录入+修改 */ @RequestMapping(value = "/disposeRatepay", method = RequestMethod.POST) public Result disposeRatepay(OrgRatepay orgRatepay) { Result res = new Result(); if (null == orgRatepay.getId()) { orgRatepay.setId(UUID.randomUUID().toString()); orgRatepay.setDeletedSign(0); orgRatepayService.insert(orgRatepay); } else { orgRatepayService.updateByPrimaryKeySelective(orgRatepay); } return res; } /** * 财务报表信息入口 * * @return */ @RequestMapping(value = "/finance", method = RequestMethod.POST) public Result finance(Integer year, String pageNo, String pageSize, String uid) { Result res = new Result(); res = checkCertify(res,uid); if (res.getError().isEmpty()) { Integer pNo = 1; Integer pSize = 10; if (StringUtils.isNumeric(pageSize)) { pSize = Integer.parseInt(pageSize); } if (StringUtils.isNumeric(pageNo)) { pNo = Integer.parseInt(pageNo); } res.setData(orgFinanceService.listFinance(year, pNo, pSize, uid)); } return res; } /** * 财务报表录入+修改 * * @param orgFinance * @return */ @RequestMapping(value = "/disposeFinance", method = RequestMethod.POST) public Result disposeFinance(OrgFinance orgFinance) { Result res = new Result(); if (null == orgFinance.getId()) { orgFinance.setId(UUID.randomUUID().toString()); orgFinance.setDeletedSign(0); orgFinanceService.insert(orgFinance); } else { orgFinanceService.updateByPrimaryKeySelective(orgFinance); } return res; } /** * 获取当前用户已录入项目标号列表 * * @param uid * @return */ @RequestMapping(value = "/activityNumber", method = RequestMethod.POST) public Result listActivityNumber(String uid) { Result res = new Result(); List activityNumberBo = orgActivityService.selectOrgActivityNumberBoByUid(uid); res.setData(activityNumberBo); return res; } /** * 科技成果转化情况列表入口 * * @param pageNo * @param pageSize * @return */ @RequestMapping(value = "/achievementList", method = RequestMethod.POST) public Result achievementList(String pageNo, String pageSize, String uid) { Result res = new Result(); res = checkCertify(res,uid); if (res.getError().isEmpty()) { Integer pNo = 1; Integer pSize = 10; if (StringUtils.isNumeric(pageSize)) { pSize = Integer.parseInt(pageSize); } if (StringUtils.isNumeric(pageNo)) { pNo = Integer.parseInt(pageNo); } res.setData(orgTechAchievementService.listOrgTechAchievement(pNo, pSize, uid)); } return res; } /** * 科技成果转化情况新增+修改 * * @param achievement * @return * @throws ParseException */ @RequestMapping(value = "/disposeAchievement", method = RequestMethod.POST) public Result disposeAchievement(OrgTechAchievement achievement) throws ParseException { Result res = new Result(); if (null == achievement.getId()) { achievement.setId(UUID.randomUUID().toString()); achievement.setDeletedSign(0); orgTechAchievementService.inset(achievement); } else { orgTechAchievementService.updateByPrimaryKeySelective(achievement); } return res; } /** * 企业荣誉及其他证明材料列表入口 * * @return */ @RequestMapping(value = "/honorList", method = RequestMethod.POST) public Result honorList(String pageNo, String pageSize, String uid) { Result res = new Result(); res = checkCertify(res,uid); if (res.getError().isEmpty()) { Integer pNo = 1; Integer pSize = 10; if (StringUtils.isNumeric(pageSize)) { pSize = Integer.parseInt(pageSize); } if (StringUtils.isNumeric(pageNo)) { pNo = Integer.parseInt(pageNo); } res.setData(orgHonorDatumService.listOrgHonorDatum(pNo, pSize, uid)); } return res; } /** * 企业荣誉及其他证明材料新增+修改 * * @param achievement * @return * @throws ParseException */ @RequestMapping(value = "/disposeHonor", method = RequestMethod.POST) public Result disposeHonor(OrgHonorDatum honor, String issuingTimeFormattedDate, String uid) throws ParseException { Result res = new Result(); if (!StringUtils.isBlank(issuingTimeFormattedDate)) { honor.setIssuingTime(DateUtils.parseDate(issuingTimeFormattedDate, "yyyy-MM-dd")); } if (null == honor.getId()) { honor.setId(UUID.randomUUID().toString()); honor.setUid(uid); honor.setDeletedSign(0); orgHonorDatumService.inset(honor); } else { orgHonorDatumService.updateByPrimaryKeySelective(honor); } return res; } /** * 技术中心入口 * * @return */ @RequestMapping(value = "/center", method = RequestMethod.POST) public Result center(String uid) { Result res = new Result(); res = checkCertify(res,uid); if (res.getError().isEmpty()) { res.setData(orgTechCenterService.selectOrgTechCenterByUid(uid)); } return res; } /** * 技术中心新增+修改 * * @return * @throws ParseException */ @RequestMapping(value = "/disposeCenter", method = RequestMethod.POST) public Result disposeCenter(OrgTechCenter orgTechCenter, String foundingTimeFormattedDate, String uid) throws ParseException { Result res = new Result(); if (!StringUtils.isBlank(foundingTimeFormattedDate)) { orgTechCenter.setFoundingTime(DateUtils.parseDate(foundingTimeFormattedDate, "yyyy-MM-dd")); } if (null == orgTechCenter.getId()) { orgTechCenter.setId(UUID.randomUUID().toString()); orgTechCenter.setUid(uid); orgTechCenter.setDeletedSign(0); orgTechCenterService.insert(orgTechCenter); } else { orgTechCenterService.updateByPrimaryKeySelective(orgTechCenter); } return res; } /** * 获取公司联系人 * * @return */ @RequestMapping(value = "/getContacts", method = RequestMethod.POST) public Result getContacts(String uid) { Result res = new Result(); OrganizationIdentity i = organizationIdentityService.selectOrgIdentityByUserId(uid); Map map = new LinkedHashMap(); if (!StringUtils.isBlank(i.getFirstContacts()) && !StringUtils.isBlank(i.getFirstMobile())) { map.put(i.getFirstContacts(), i.getFirstMobile()); } if (!StringUtils.isBlank(i.getSecondContacts()) && !StringUtils.isBlank(i.getSecondMobile())) { map.put(i.getSecondContacts(), i.getSecondMobile()); } if (!StringUtils.isBlank(i.getThirdContacts()) && !StringUtils.isBlank(i.getThirdMobile())) { map.put(i.getThirdContacts(), i.getThirdMobile()); } res.setData(map); return res; } /** * 申请高企认定 * * @return */ @RequestMapping(value = "/applyCognizance", method = RequestMethod.POST) public Result applyCognizance(String contacts, String comment, String consultant, String uid) { Result res = new Result(); OrgCognizance c = new OrgCognizance(); c.setId(UUID.randomUUID().toString()); c.setUid(uid); c.setContacts(contacts); c.setComment(comment); c.setConsultant(consultant); c.setYear(Calendar.getInstance().get(Calendar.YEAR)); c.setDeletedSign(0); orgCognizanceService.insert(c); return res; } /** * 高企认定列表入口 * * @param locationProvince * @param unitName * @return */ @RequestMapping(value = "/listCognizance", method = RequestMethod.POST) public Result listCognizance(String locationProvince, String unitName, String pageNo, String pageSize) { Result res = new Result(); Integer pNo = 1; Integer pSize = 10; if (StringUtils.isNumeric(pageSize)) { pSize = Integer.parseInt(pageSize); } if (StringUtils.isNumeric(pageNo)) { pNo = Integer.parseInt(pageNo); } res.setData(orgCognizanceService.listCognizance(locationProvince, unitName, pNo, pSize)); return res; } /** * 高企认定流转状态 * @param cid * @return */ @RequestMapping(value = "/cognizanceLog", method = RequestMethod.POST) public Result cognizanceLog(String cid){ Result res = new Result(); List list = orgCognizanceLogService.selectOrgCognizanceLogByCid(cid); System.out.println(list.size()); res.setData(list); return res; } /** * 高企认定详情入口 * @param uid * @param cid * @return */ @RequestMapping(value = "/cognizanceDetail", method = RequestMethod.POST) public Result cognizanceDetail(String uid, String cid){ Result res = new Result(); return res; } // 判断用户是否通过认证 private Result checkCertify(Result res, String uid) { if (5 != organizationIdentityService.selectOrgIdentityByUserId(uid).getAuditStatus()) { res.getError().add(buildError(ErrorConstants.NON_CERTIFIED, "未通过实名认证,无法操作!")); } return res; } // org团体列表 private Pagination getOrgList(String mobile, String email, String[] createTime, Integer number, String aftUsername, Integer auditStatus, Integer pNo, Integer pSize) throws ParseException { return (Pagination) userService.listOrg(mobile, email, createTime, number, aftUsername, auditStatus, pNo, pSize); } // user个人列表 private Pagination getUserList(String mobile, String email, String[] createTime, Integer number, String aftUsername, Integer auditStatus, Integer pNo, Integer pSize) throws ParseException { return (Pagination) userService.listUser(mobile, email, createTime, number, aftUsername, auditStatus, pNo, pSize); } }