yangdamao 1 неделя назад
Родитель
Сommit
7f7fbfc352

+ 10 - 0
zhongzheng-admin/src/main/java/com/zhongzheng/controller/goods/GoodsController.java

@@ -434,4 +434,14 @@ public class GoodsController extends BaseController {
     public AjaxResult<Void> updateGoodsVideo(UpdateGoodsVideoBo bo) {
         return toAjax(iGoodsService.updateGoodsVideo(bo) ? 1 : 0);
     }
+
+
+    /**
+     * 处理题库
+     */
+    @ApiOperation("处理题库")
+    @GetMapping("/dispose/question/{goodsId}")
+    public AjaxResult<Void> disposeQuestion(@PathVariable("goodsId") Long goodsId) {
+        return toAjax(iGoodsService.disposeQuestion(goodsId) ? 1 : 0);
+    }
 }

+ 2 - 0
zhongzheng-system/src/main/java/com/zhongzheng/modules/goods/service/IGoodsService.java

@@ -179,4 +179,6 @@ public interface IGoodsService extends IService<Goods> {
 	boolean updateGoodsVideo(UpdateGoodsVideoBo bo);
 
 	boolean sectionExport(List<SectionExportBo> boList,String json);
+
+	boolean disposeQuestion(Long goodsId);
 }

+ 11 - 0
zhongzheng-system/src/main/java/com/zhongzheng/modules/goods/service/impl/GoodsServiceImpl.java

@@ -5782,6 +5782,17 @@ public class GoodsServiceImpl extends ServiceImpl<GoodsMapper, Goods> implements
         return true;
     }
 
+    @Override
+    public boolean disposeQuestion(Long goodsId) {
+        Goods goods = getById(goodsId);
+        if (Objects.isNull(goods)) {
+            throw new CustomException("商品ID有误");
+        }
+        
+
+        return false;
+    }
+
     private void updateHandoutsId(Long goodsId, Long tenantId, Long handoutsId) {
         baseMapper.updateHandoutsId(goodsId, tenantId, handoutsId);
     }

+ 2 - 2
zhongzheng-system/src/main/java/com/zhongzheng/modules/system/mapper/SysUserMapper.java

@@ -43,8 +43,8 @@ public interface SysUserMapper extends BaseMapper<SysUser> {
     @InterceptorIgnore(tenantLine = "true")
     public SysUser selectUserByTenant(@Param("userName") String userName,@Param("tenantId") Long tenantId);
 
-    @InterceptorIgnore(tenantLine = "true")
-    Integer saveSysUser(SysUser admin);
+//    @InterceptorIgnore(tenantLine = "true")
+//    Integer saveSysUser(SysUser admin);
 
     List<String> getUserNameByRoleKey(@Param("roleKey") String roleKey);
 

+ 1 - 1
zhongzheng-system/src/main/resources/mapper/modules/course/CourseSubjectMapper.xml

@@ -178,7 +178,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             LIMIT 1
     </select>
 
-    <select id="listByProId"  resultType="com.zhichen.modules.course.domain.CourseSubject">
+    <select id="listByProId"  resultType="com.zhongzheng.modules.course.domain.CourseSubject">
         SELECT
             cs.*
         FROM