|
@@ -5,16 +5,24 @@ import com.zhongzheng.common.config.RuoYiConfig;
|
|
|
import com.zhongzheng.common.constant.Constants;
|
|
import com.zhongzheng.common.constant.Constants;
|
|
|
import com.zhongzheng.common.core.domain.AjaxResult;
|
|
import com.zhongzheng.common.core.domain.AjaxResult;
|
|
|
import com.zhongzheng.common.core.domain.model.LoginBody;
|
|
import com.zhongzheng.common.core.domain.model.LoginBody;
|
|
|
|
|
+import com.zhongzheng.common.utils.ServletUtils;
|
|
|
import com.zhongzheng.common.utils.ToolsUtils;
|
|
import com.zhongzheng.common.utils.ToolsUtils;
|
|
|
import com.zhongzheng.common.utils.file.FileUploadUtils;
|
|
import com.zhongzheng.common.utils.file.FileUploadUtils;
|
|
|
import com.zhongzheng.common.utils.file.FileUtils;
|
|
import com.zhongzheng.common.utils.file.FileUtils;
|
|
|
|
|
+import com.zhongzheng.common.utils.poi.ExcelUtil;
|
|
|
import com.zhongzheng.framework.config.ServerConfig;
|
|
import com.zhongzheng.framework.config.ServerConfig;
|
|
|
import com.zhongzheng.modules.course.vo.CourseMenuVo;
|
|
import com.zhongzheng.modules.course.vo.CourseMenuVo;
|
|
|
import com.zhongzheng.modules.goods.bo.GoodsQueryBo;
|
|
import com.zhongzheng.modules.goods.bo.GoodsQueryBo;
|
|
|
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.GoodsJzsVo;
|
|
|
|
|
+import com.zhongzheng.modules.grade.bo.RollBackPeriodBo;
|
|
|
|
|
+import com.zhongzheng.modules.grade.bo.UserPeriodEditBo;
|
|
|
|
|
+import com.zhongzheng.modules.grade.service.IUserPeriodService;
|
|
|
|
|
+import com.zhongzheng.modules.grade.vo.ClassPeriodStudentExportAllVo;
|
|
|
|
|
+import com.zhongzheng.modules.grade.vo.SyncGoodsExport;
|
|
|
import com.zhongzheng.modules.order.bo.OrderAddBo;
|
|
import com.zhongzheng.modules.order.bo.OrderAddBo;
|
|
|
import com.zhongzheng.modules.system.service.ISysUserService;
|
|
import com.zhongzheng.modules.system.service.ISysUserService;
|
|
|
|
|
+import com.zhongzheng.modules.user.vo.UserExportVo;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import org.slf4j.Logger;
|
|
import org.slf4j.Logger;
|
|
|
import org.slf4j.LoggerFactory;
|
|
import org.slf4j.LoggerFactory;
|
|
@@ -46,6 +54,8 @@ public class CommonController
|
|
|
|
|
|
|
|
@Autowired
|
|
@Autowired
|
|
|
private IGoodsService iGoodsService;
|
|
private IGoodsService iGoodsService;
|
|
|
|
|
+ @Autowired
|
|
|
|
|
+ private IUserPeriodService iUserPeriodService;
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 通用下载请求
|
|
* 通用下载请求
|
|
@@ -53,6 +63,7 @@ public class CommonController
|
|
|
* @param fileName 文件名称
|
|
* @param fileName 文件名称
|
|
|
* @param delete 是否删除
|
|
* @param delete 是否删除
|
|
|
*/
|
|
*/
|
|
|
|
|
+ @ApiOperation("通用下载请求")
|
|
|
@GetMapping("common/download")
|
|
@GetMapping("common/download")
|
|
|
public void fileDownload(String fileName, Boolean delete, HttpServletResponse response, HttpServletRequest request)
|
|
public void fileDownload(String fileName, Boolean delete, HttpServletResponse response, HttpServletRequest request)
|
|
|
{
|
|
{
|
|
@@ -135,11 +146,38 @@ public class CommonController
|
|
|
|
|
|
|
|
@ApiOperation("获取继教二建的商品结构列表")
|
|
@ApiOperation("获取继教二建的商品结构列表")
|
|
|
@GetMapping("common/jzs/goodsList")
|
|
@GetMapping("common/jzs/goodsList")
|
|
|
- public AjaxResult<List<GoodsJzsVo>> goodsList()
|
|
|
|
|
|
|
+ public AjaxResult<GoodsJzsVo> goodsList()
|
|
|
{
|
|
{
|
|
|
-
|
|
|
|
|
GoodsQueryBo queryBo = new GoodsQueryBo();
|
|
GoodsQueryBo queryBo = new GoodsQueryBo();
|
|
|
- List<GoodsJzsVo> goodsJzsVoList = iGoodsService.selectRjJzsList(queryBo);
|
|
|
|
|
- return AjaxResult.success(goodsJzsVoList);
|
|
|
|
|
|
|
+ List<SyncGoodsExport> goodsJzsVoList = iGoodsService.selectRjJzsList(queryBo);
|
|
|
|
|
+ ExcelUtil<SyncGoodsExport> util = new ExcelUtil<SyncGoodsExport>(SyncGoodsExport.class);
|
|
|
|
|
+ // ExcelUtil<SyncGoodsExport> util = new ExcelUtil<>(SyncGoodsExport.class);
|
|
|
|
|
+ return util.exportEasyExcel(util.exportEasyData(goodsJzsVoList), "继建商品");
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ @ApiOperation("测试列表")
|
|
|
|
|
+ @GetMapping("common/jzs/test")
|
|
|
|
|
+ public AjaxResult<Void> testList()
|
|
|
|
|
+ {
|
|
|
|
|
+
|
|
|
|
|
+ UserPeriodEditBo queryBo = new UserPeriodEditBo();
|
|
|
|
|
+ queryBo.setGoodsId(911L);
|
|
|
|
|
+ queryBo.setGradeId(792L);
|
|
|
|
|
+ queryBo.setUserId(114L);
|
|
|
|
|
+ iUserPeriodService.syncStudyLogToOld(queryBo);
|
|
|
|
|
+ return AjaxResult.success();
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ @ApiOperation("旧系统打回重审")
|
|
|
|
|
+ @PostMapping("common/rollback/period")
|
|
|
|
|
+ public AjaxResult<Void> rollbackPeriod(@RequestBody RollBackPeriodBo bo)
|
|
|
|
|
+ {
|
|
|
|
|
+ String sign = bo.getStamp().toString()+"pubilc2022";
|
|
|
|
|
+ if(!bo.getSign().equals(ToolsUtils.EncoderByMd5(sign))){
|
|
|
|
|
+ return AjaxResult.error("签名错误");
|
|
|
|
|
+ }
|
|
|
|
|
+ return AjaxResult.success();
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|