|
@@ -32,8 +32,10 @@ import com.zhongzheng.modules.bank.service.IQuestionOtherService;
|
|
|
import com.zhongzheng.modules.bank.service.IQuestionService;
|
|
import com.zhongzheng.modules.bank.service.IQuestionService;
|
|
|
import com.zhongzheng.modules.bank.vo.QuestionVo;
|
|
import com.zhongzheng.modules.bank.vo.QuestionVo;
|
|
|
import com.zhongzheng.modules.base.bo.ConfigQueryBo;
|
|
import com.zhongzheng.modules.base.bo.ConfigQueryBo;
|
|
|
|
|
+import com.zhongzheng.modules.base.service.ICertificateTpService;
|
|
|
import com.zhongzheng.modules.course.bo.ExternalQuestionBo;
|
|
import com.zhongzheng.modules.course.bo.ExternalQuestionBo;
|
|
|
import com.zhongzheng.modules.course.bo.ReplenishExamBo;
|
|
import com.zhongzheng.modules.course.bo.ReplenishExamBo;
|
|
|
|
|
+import com.zhongzheng.modules.course.vo.CourseChapterVo;
|
|
|
import com.zhongzheng.modules.course.vo.ExternalQuestionVo;
|
|
import com.zhongzheng.modules.course.vo.ExternalQuestionVo;
|
|
|
import com.zhongzheng.modules.course.vo.ReplenishExamVo;
|
|
import com.zhongzheng.modules.course.vo.ReplenishExamVo;
|
|
|
import com.zhongzheng.modules.distribution.bo.DistributionActivityGoodsQueryBo;
|
|
import com.zhongzheng.modules.distribution.bo.DistributionActivityGoodsQueryBo;
|
|
@@ -42,10 +44,7 @@ import com.zhongzheng.modules.distribution.service.IDistributionActivityGoodsSer
|
|
|
import com.zhongzheng.modules.distribution.service.IDistributionCashWithdrawalService;
|
|
import com.zhongzheng.modules.distribution.service.IDistributionCashWithdrawalService;
|
|
|
import com.zhongzheng.modules.distribution.service.IDistributionSellerService;
|
|
import com.zhongzheng.modules.distribution.service.IDistributionSellerService;
|
|
|
import com.zhongzheng.modules.distribution.vo.DistributionSellerVo;
|
|
import com.zhongzheng.modules.distribution.vo.DistributionSellerVo;
|
|
|
-import com.zhongzheng.modules.exam.bo.ExamApplyDetailBo;
|
|
|
|
|
-import com.zhongzheng.modules.exam.bo.ExamApplyResultBo;
|
|
|
|
|
-import com.zhongzheng.modules.exam.bo.ExamApplySubscribeBo;
|
|
|
|
|
-import com.zhongzheng.modules.exam.bo.UpdateStudentImageBo;
|
|
|
|
|
|
|
+import com.zhongzheng.modules.exam.bo.*;
|
|
|
import com.zhongzheng.modules.exam.service.IExamApplyService;
|
|
import com.zhongzheng.modules.exam.service.IExamApplyService;
|
|
|
import com.zhongzheng.modules.exam.vo.ExamApplyDetailVo;
|
|
import com.zhongzheng.modules.exam.vo.ExamApplyDetailVo;
|
|
|
import com.zhongzheng.modules.goods.bo.AlikeGoodsBo;
|
|
import com.zhongzheng.modules.goods.bo.AlikeGoodsBo;
|
|
@@ -53,10 +52,7 @@ import com.zhongzheng.modules.goods.bo.GoodsQueryBo;
|
|
|
import com.zhongzheng.modules.goods.bo.GoodsStudyUrlBo;
|
|
import com.zhongzheng.modules.goods.bo.GoodsStudyUrlBo;
|
|
|
import com.zhongzheng.modules.goods.bo.UserGoodsListBo;
|
|
import com.zhongzheng.modules.goods.bo.UserGoodsListBo;
|
|
|
import com.zhongzheng.modules.goods.service.IGoodsService;
|
|
import com.zhongzheng.modules.goods.service.IGoodsService;
|
|
|
-import com.zhongzheng.modules.goods.vo.GoodsJzsVo;
|
|
|
|
|
-import com.zhongzheng.modules.goods.vo.GoodsVo;
|
|
|
|
|
-import com.zhongzheng.modules.goods.vo.UserGoodsListVo;
|
|
|
|
|
-import com.zhongzheng.modules.goods.vo.UserOrderGoodsListVo;
|
|
|
|
|
|
|
+import com.zhongzheng.modules.goods.vo.*;
|
|
|
import com.zhongzheng.modules.grade.bo.*;
|
|
import com.zhongzheng.modules.grade.bo.*;
|
|
|
import com.zhongzheng.modules.grade.service.IClassGradeService;
|
|
import com.zhongzheng.modules.grade.service.IClassGradeService;
|
|
|
import com.zhongzheng.modules.grade.service.IClassGradeUserService;
|
|
import com.zhongzheng.modules.grade.service.IClassGradeUserService;
|
|
@@ -98,6 +94,9 @@ import org.springframework.web.multipart.MultipartFile;
|
|
|
|
|
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
|
|
+import java.io.UnsupportedEncodingException;
|
|
|
|
|
+import java.math.BigDecimal;
|
|
|
|
|
+import java.net.URLEncoder;
|
|
|
import java.util.ArrayList;
|
|
import java.util.ArrayList;
|
|
|
import java.util.HashMap;
|
|
import java.util.HashMap;
|
|
|
import java.util.List;
|
|
import java.util.List;
|
|
@@ -165,6 +164,8 @@ public class CommonController extends BaseController {
|
|
|
private IQuestionOtherService iQuestionOtherService;
|
|
private IQuestionOtherService iQuestionOtherService;
|
|
|
@Autowired
|
|
@Autowired
|
|
|
private OssService ossService;
|
|
private OssService ossService;
|
|
|
|
|
+ @Autowired
|
|
|
|
|
+ private ICertificateTpService iCertificateTpService;
|
|
|
/**
|
|
/**
|
|
|
* 通用下载请求
|
|
* 通用下载请求
|
|
|
*
|
|
*
|
|
@@ -289,9 +290,8 @@ public class CommonController extends BaseController {
|
|
|
if (!ToolsUtils.checkSignFromOldSys(bo.getStamp().toString(), bo.getSign())) {
|
|
if (!ToolsUtils.checkSignFromOldSys(bo.getStamp().toString(), bo.getSign())) {
|
|
|
return AjaxResult.error("签名错误");
|
|
return AjaxResult.error("签名错误");
|
|
|
}
|
|
}
|
|
|
- List<UserOrderGoodsListVo> voList = iGoodsService.getUserOrderGoods(bo);
|
|
|
|
|
-
|
|
|
|
|
- return AjaxResult.success(voList);
|
|
|
|
|
|
|
+ UserNewGoodsVo goodsVo = iGoodsService.getUserOrderGoods(bo);
|
|
|
|
|
+ return AjaxResult.success(goodsVo);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@ApiOperation("校验用户是否有账号")
|
|
@ApiOperation("校验用户是否有账号")
|
|
@@ -312,6 +312,31 @@ public class CommonController extends BaseController {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@ApiOperation("七大员新考结果")
|
|
@ApiOperation("七大员新考结果")
|
|
|
|
|
+ @PostMapping("common/apply/result/receipt")
|
|
|
|
|
+ public AjaxResult examApplyResultReceipt(List<MultipartFile> files) {
|
|
|
|
|
+ files.forEach(item -> {
|
|
|
|
|
+ try {
|
|
|
|
|
+ ExcelUtil<ExamApplyResultExportBo> util = new ExcelUtil<ExamApplyResultExportBo>(ExamApplyResultExportBo.class);
|
|
|
|
|
+ //测试时间
|
|
|
|
|
+ String time = util.examApplyTimeAnalysis(item.getInputStream(), 1);
|
|
|
|
|
+ //成绩数据
|
|
|
|
|
+ List<ExamApplyResultExportBo> exportBo = util.examApplyImportExcel("", item.getInputStream());
|
|
|
|
|
+ iExamApplyService.examApplyResultReceipt(exportBo,time);
|
|
|
|
|
+ } catch (Exception e) {
|
|
|
|
|
+ e.printStackTrace();
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+ return AjaxResult.success("操作成功",null);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ @ApiOperation("七大员新考证书")
|
|
|
|
|
+ @PostMapping("common/apply/result/certificate")
|
|
|
|
|
+ public AjaxResult examApplyResultCertificate(List<MultipartFile> files) {
|
|
|
|
|
+ String msg = iExamApplyService.examApplyResultCertificate(files);
|
|
|
|
|
+ return AjaxResult.success("操作成功",msg);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ @ApiOperation("七大员考试结果回执")
|
|
|
@PostMapping("common/apply/result")
|
|
@PostMapping("common/apply/result")
|
|
|
public AjaxResult examApplyResult(@RequestBody ExamApplyResultBo bo) {
|
|
public AjaxResult examApplyResult(@RequestBody ExamApplyResultBo bo) {
|
|
|
if (!ToolsUtils.checkSignFromOldSys(bo.getStamp().toString(), bo.getSign())) {
|
|
if (!ToolsUtils.checkSignFromOldSys(bo.getStamp().toString(), bo.getSign())) {
|
|
@@ -431,6 +456,17 @@ public class CommonController extends BaseController {
|
|
|
return AjaxResult.success(iClassGradeService.getOfficialGradeNum(bo));
|
|
return AjaxResult.success(iClassGradeService.getOfficialGradeNum(bo));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ @ApiOperation("新增二建班级")
|
|
|
|
|
+ @PostMapping("common/free/save/class")
|
|
|
|
|
+ public AjaxResult openOfficialSaveGrade(@RequestBody ClassGradeOpenBo bo) {
|
|
|
|
|
+ if (!ToolsUtils.checkSignFromOldSys(bo.getStamp().toString(), bo.getSign())) {
|
|
|
|
|
+ return AjaxResult.error("签名错误");
|
|
|
|
|
+ }
|
|
|
|
|
+ iClassGradeService.openOfficialSaveGrade(bo);
|
|
|
|
|
+ return AjaxResult.success();
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
@ApiOperation("预报名班级开班")
|
|
@ApiOperation("预报名班级开班")
|
|
|
@PostMapping("common/free/open/class")
|
|
@PostMapping("common/free/open/class")
|
|
|
public AjaxResult openOfficialGrade(@RequestBody ClassGradeOpenBo bo) {
|
|
public AjaxResult openOfficialGrade(@RequestBody ClassGradeOpenBo bo) {
|
|
@@ -442,10 +478,11 @@ public class CommonController extends BaseController {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@ApiOperation("测试分班")
|
|
@ApiOperation("测试分班")
|
|
|
- @GetMapping("common/jzs/grade")
|
|
|
|
|
- public AjaxResult<Void> testGrade() {
|
|
|
|
|
|
|
+ @PostMapping("common/free/grade")
|
|
|
|
|
+ public AjaxResult<Void> testGrade(@RequestBody ClassGradeUserQueryBo bo) {
|
|
|
// iClassGradeService.checkEjjjPeopleNumLimit(195L,984L);
|
|
// iClassGradeService.checkEjjjPeopleNumLimit(195L,984L);
|
|
|
// iUserService.batchUpdateTelId();
|
|
// iUserService.batchUpdateTelId();
|
|
|
|
|
+ iCertificateTpService.makeCertificatePhoto(bo);
|
|
|
return AjaxResult.success();
|
|
return AjaxResult.success();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -495,14 +532,14 @@ public class CommonController extends BaseController {
|
|
|
|
|
|
|
|
@ApiOperation("同步其他机构角色菜单")
|
|
@ApiOperation("同步其他机构角色菜单")
|
|
|
@PostMapping("common/update/role")
|
|
@PostMapping("common/update/role")
|
|
|
- public AjaxResult updateRoleTenant(@RequestBody List<Long> tenantIds) {
|
|
|
|
|
|
|
+ public AjaxResult updateRoleTenant(@RequestBody List<String> tenantIds) {
|
|
|
iSysTenantService.updateRoleTenant(tenantIds);
|
|
iSysTenantService.updateRoleTenant(tenantIds);
|
|
|
return AjaxResult.success();
|
|
return AjaxResult.success();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@ApiOperation("同步其他机构字典")
|
|
@ApiOperation("同步其他机构字典")
|
|
|
@PostMapping("common/update/dict")
|
|
@PostMapping("common/update/dict")
|
|
|
- public AjaxResult updateDictTenant(@RequestBody List<Long> tenantIds) {
|
|
|
|
|
|
|
+ public AjaxResult updateDictTenant(@RequestBody List<String> tenantIds) {
|
|
|
iSysTenantService.updateDictTenant(tenantIds);
|
|
iSysTenantService.updateDictTenant(tenantIds);
|
|
|
return AjaxResult.success();
|
|
return AjaxResult.success();
|
|
|
}
|
|
}
|
|
@@ -544,8 +581,8 @@ public class CommonController extends BaseController {
|
|
|
if (!ToolsUtils.checkSignFromOldSys(bo.getStamp().toString(), bo.getSign())) {
|
|
if (!ToolsUtils.checkSignFromOldSys(bo.getStamp().toString(), bo.getSign())) {
|
|
|
return AjaxResult.error("签名错误");
|
|
return AjaxResult.error("签名错误");
|
|
|
}
|
|
}
|
|
|
- iTopSysTenantRegisterService.insertByAddBo(bo);
|
|
|
|
|
- return AjaxResult.success("成功", webService.restartWebService() ? 1 : 0);
|
|
|
|
|
|
|
+
|
|
|
|
|
+ return AjaxResult.success("成功", iTopSysTenantRegisterService.insertByAddBo(bo) ? 1 : 0);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@ApiOperation("重启服务restart")
|
|
@ApiOperation("重启服务restart")
|
|
@@ -595,9 +632,9 @@ public class CommonController extends BaseController {
|
|
|
@ApiOperation("获取企业ID")
|
|
@ApiOperation("获取企业ID")
|
|
|
@GetMapping("common/free/findTenantId")
|
|
@GetMapping("common/free/findTenantId")
|
|
|
public AjaxResult<String> findTenantId(SysTenantQueryBo bo) {
|
|
public AjaxResult<String> findTenantId(SysTenantQueryBo bo) {
|
|
|
- Long tenantId = iSysTenantService.findTenantId(bo);
|
|
|
|
|
|
|
+ String tenantId = iSysTenantService.findTenantId(bo);
|
|
|
if (Validator.isNotEmpty(tenantId)) {
|
|
if (Validator.isNotEmpty(tenantId)) {
|
|
|
- return AjaxResult.success("成功", tenantId.toString());
|
|
|
|
|
|
|
+ return AjaxResult.success("成功", tenantId);
|
|
|
} else {
|
|
} else {
|
|
|
if (Validator.isNotEmpty(bo.getHostH5()) && bo.getHostH5().equals("120.79.166.78:19012")) {
|
|
if (Validator.isNotEmpty(bo.getHostH5()) && bo.getHostH5().equals("120.79.166.78:19012")) {
|
|
|
return AjaxResult.success("成功", "867735392558919680");
|
|
return AjaxResult.success("成功", "867735392558919680");
|
|
@@ -743,16 +780,19 @@ public class CommonController extends BaseController {
|
|
|
return AjaxResult.success(iClassGradeUserService.pushOfficialPeriodMore(list));
|
|
return AjaxResult.success(iClassGradeUserService.pushOfficialPeriodMore(list));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
@ApiOperation("测试获取山东题库")
|
|
@ApiOperation("测试获取山东题库")
|
|
|
@PreAuthorize("@ss.hasPermi('system:withdrawal:add')")
|
|
@PreAuthorize("@ss.hasPermi('system:withdrawal:add')")
|
|
|
@Log(title = "测试获取山东题库", businessType = BusinessType.INSERT)
|
|
@Log(title = "测试获取山东题库", businessType = BusinessType.INSERT)
|
|
|
@GetMapping("/common/free/getShanDongExam")
|
|
@GetMapping("/common/free/getShanDongExam")
|
|
|
- public AjaxResult getShanDongExam(GoodsQueryBo bo) {
|
|
|
|
|
- iQuestionOtherService.queryById(3L);
|
|
|
|
|
|
|
+ public AjaxResult getShanDongExam(GoodsQueryBo bo) throws UnsupportedEncodingException {
|
|
|
|
|
+ System.out.println(bo.getBuyNote());
|
|
|
return AjaxResult.success();
|
|
return AjaxResult.success();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
+
|
|
|
@ApiOperation("旧系统post请求")
|
|
@ApiOperation("旧系统post请求")
|
|
|
@PostMapping("/common/free/clientPost")
|
|
@PostMapping("/common/free/clientPost")
|
|
|
public AjaxResult<Void> clientPost(@RequestBody ClientPostAddBo bo) {
|
|
public AjaxResult<Void> clientPost(@RequestBody ClientPostAddBo bo) {
|