Browse Source

修复代码

master
主管理员 2 months ago
parent
commit
07cd248cb4
30 changed files with 475 additions and 200 deletions
  1. +7
    -7
      ruoyi-catdog/src/main/java/com/ruoyi/model/controller/AppletAnswerBaseController.java
  2. +7
    -7
      ruoyi-catdog/src/main/java/com/ruoyi/model/controller/AppletAnswerTrainController.java
  3. +6
    -6
      ruoyi-catdog/src/main/java/com/ruoyi/model/controller/AppletCommentController.java
  4. +6
    -6
      ruoyi-catdog/src/main/java/com/ruoyi/model/controller/AppletIncreaseController.java
  5. +6
    -6
      ruoyi-catdog/src/main/java/com/ruoyi/model/controller/AppletLicenseController.java
  6. +31
    -1
      ruoyi-catdog/src/main/java/com/ruoyi/model/domain/AppletAnswerBase.java
  7. +31
    -1
      ruoyi-catdog/src/main/java/com/ruoyi/model/domain/AppletAnswerTrain.java
  8. +30
    -0
      ruoyi-catdog/src/main/java/com/ruoyi/model/domain/AppletComment.java
  9. +30
    -0
      ruoyi-catdog/src/main/java/com/ruoyi/model/domain/AppletIncrease.java
  10. +30
    -0
      ruoyi-catdog/src/main/java/com/ruoyi/model/domain/AppletLicense.java
  11. +7
    -7
      ruoyi-catdog/src/main/java/com/ruoyi/model/mapper/AppletAnswerBaseMapper.java
  12. +7
    -7
      ruoyi-catdog/src/main/java/com/ruoyi/model/mapper/AppletAnswerTrainMapper.java
  13. +6
    -6
      ruoyi-catdog/src/main/java/com/ruoyi/model/mapper/AppletCommentMapper.java
  14. +6
    -6
      ruoyi-catdog/src/main/java/com/ruoyi/model/mapper/AppletIncreaseMapper.java
  15. +6
    -6
      ruoyi-catdog/src/main/java/com/ruoyi/model/mapper/AppletLicenseMapper.java
  16. +7
    -7
      ruoyi-catdog/src/main/java/com/ruoyi/model/service/IAppletAnswerBaseService.java
  17. +7
    -7
      ruoyi-catdog/src/main/java/com/ruoyi/model/service/IAppletAnswerTrainService.java
  18. +6
    -6
      ruoyi-catdog/src/main/java/com/ruoyi/model/service/IAppletCommentService.java
  19. +6
    -6
      ruoyi-catdog/src/main/java/com/ruoyi/model/service/IAppletIncreaseService.java
  20. +6
    -6
      ruoyi-catdog/src/main/java/com/ruoyi/model/service/IAppletLicenseService.java
  21. +13
    -10
      ruoyi-catdog/src/main/java/com/ruoyi/model/service/impl/AppletAnswerBaseServiceImpl.java
  22. +13
    -10
      ruoyi-catdog/src/main/java/com/ruoyi/model/service/impl/AppletAnswerTrainServiceImpl.java
  23. +12
    -9
      ruoyi-catdog/src/main/java/com/ruoyi/model/service/impl/AppletCommentServiceImpl.java
  24. +12
    -9
      ruoyi-catdog/src/main/java/com/ruoyi/model/service/impl/AppletIncreaseServiceImpl.java
  25. +12
    -9
      ruoyi-catdog/src/main/java/com/ruoyi/model/service/impl/AppletLicenseServiceImpl.java
  26. +33
    -11
      ruoyi-catdog/src/main/resources/mapper/model/AppletAnswerBaseMapper.xml
  27. +33
    -11
      ruoyi-catdog/src/main/resources/mapper/model/AppletAnswerTrainMapper.xml
  28. +33
    -11
      ruoyi-catdog/src/main/resources/mapper/model/AppletCommentMapper.xml
  29. +33
    -11
      ruoyi-catdog/src/main/resources/mapper/model/AppletIncreaseMapper.xml
  30. +33
    -11
      ruoyi-catdog/src/main/resources/mapper/model/AppletLicenseMapper.xml

+ 7
- 7
ruoyi-catdog/src/main/java/com/ruoyi/model/controller/AppletAnswerBaseController.java View File

@ -26,7 +26,7 @@ import com.ruoyi.common.core.page.TableDataInfo;
* 用户基本考核答案Controller
*
* @author ruoyi
* @date 2025-03-27
* @date 2025-03-28
*/
@RestController
@RequestMapping("/model/AppletAnswerBase")
@ -63,10 +63,10 @@ public class AppletAnswerBaseController extends BaseController
* 获取用户基本考核答案详细信息
*/
@PreAuthorize("@ss.hasPermi('model:AppletAnswerBase:query')")
@GetMapping(value = "/{questionId}")
public AjaxResult getInfo(@PathVariable("questionId") Long questionId)
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(appletAnswerBaseService.selectAppletAnswerBaseByQuestionId(questionId));
return success(appletAnswerBaseService.selectAppletAnswerBaseById(id));
}
/**
@ -96,9 +96,9 @@ public class AppletAnswerBaseController extends BaseController
*/
@PreAuthorize("@ss.hasPermi('model:AppletAnswerBase:remove')")
@Log(title = "用户基本考核答案", businessType = BusinessType.DELETE)
@DeleteMapping("/{questionIds}")
public AjaxResult remove(@PathVariable Long[] questionIds)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(appletAnswerBaseService.deleteAppletAnswerBaseByQuestionIds(questionIds));
return toAjax(appletAnswerBaseService.deleteAppletAnswerBaseByIds(ids));
}
}

+ 7
- 7
ruoyi-catdog/src/main/java/com/ruoyi/model/controller/AppletAnswerTrainController.java View File

@ -26,7 +26,7 @@ import com.ruoyi.common.core.page.TableDataInfo;
* 用户培训考核答案Controller
*
* @author ruoyi
* @date 2025-03-27
* @date 2025-03-28
*/
@RestController
@RequestMapping("/model/AppletAnswerTrain")
@ -63,10 +63,10 @@ public class AppletAnswerTrainController extends BaseController
* 获取用户培训考核答案详细信息
*/
@PreAuthorize("@ss.hasPermi('model:AppletAnswerTrain:query')")
@GetMapping(value = "/{questionId}")
public AjaxResult getInfo(@PathVariable("questionId") Long questionId)
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(appletAnswerTrainService.selectAppletAnswerTrainByQuestionId(questionId));
return success(appletAnswerTrainService.selectAppletAnswerTrainById(id));
}
/**
@ -96,9 +96,9 @@ public class AppletAnswerTrainController extends BaseController
*/
@PreAuthorize("@ss.hasPermi('model:AppletAnswerTrain:remove')")
@Log(title = "用户培训考核答案", businessType = BusinessType.DELETE)
@DeleteMapping("/{questionIds}")
public AjaxResult remove(@PathVariable Long[] questionIds)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(appletAnswerTrainService.deleteAppletAnswerTrainByQuestionIds(questionIds));
return toAjax(appletAnswerTrainService.deleteAppletAnswerTrainByIds(ids));
}
}

+ 6
- 6
ruoyi-catdog/src/main/java/com/ruoyi/model/controller/AppletCommentController.java View File

@ -63,10 +63,10 @@ public class AppletCommentController extends BaseController
* 获取用户评价详细信息
*/
@PreAuthorize("@ss.hasPermi('model:AppletComment:query')")
@GetMapping(value = "/{comment}")
public AjaxResult getInfo(@PathVariable("comment") String comment)
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(appletCommentService.selectAppletCommentByComment(comment));
return success(appletCommentService.selectAppletCommentById(id));
}
/**
@ -96,9 +96,9 @@ public class AppletCommentController extends BaseController
*/
@PreAuthorize("@ss.hasPermi('model:AppletComment:remove')")
@Log(title = "用户评价", businessType = BusinessType.DELETE)
@DeleteMapping("/{comments}")
public AjaxResult remove(@PathVariable String[] comments)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(appletCommentService.deleteAppletCommentByComments(comments));
return toAjax(appletCommentService.deleteAppletCommentByIds(ids));
}
}

+ 6
- 6
ruoyi-catdog/src/main/java/com/ruoyi/model/controller/AppletIncreaseController.java View File

@ -63,10 +63,10 @@ public class AppletIncreaseController extends BaseController
* 获取增值服务详细信息
*/
@PreAuthorize("@ss.hasPermi('model:AppletIncrease:query')")
@GetMapping(value = "/{title}")
public AjaxResult getInfo(@PathVariable("title") String title)
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(appletIncreaseService.selectAppletIncreaseByTitle(title));
return success(appletIncreaseService.selectAppletIncreaseById(id));
}
/**
@ -96,9 +96,9 @@ public class AppletIncreaseController extends BaseController
*/
@PreAuthorize("@ss.hasPermi('model:AppletIncrease:remove')")
@Log(title = "增值服务", businessType = BusinessType.DELETE)
@DeleteMapping("/{titles}")
public AjaxResult remove(@PathVariable String[] titles)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(appletIncreaseService.deleteAppletIncreaseByTitles(titles));
return toAjax(appletIncreaseService.deleteAppletIncreaseByIds(ids));
}
}

+ 6
- 6
ruoyi-catdog/src/main/java/com/ruoyi/model/controller/AppletLicenseController.java View File

@ -63,10 +63,10 @@ public class AppletLicenseController extends BaseController
* 获取专业执照信息详细信息
*/
@PreAuthorize("@ss.hasPermi('model:AppletLicense:query')")
@GetMapping(value = "/{title}")
public AjaxResult getInfo(@PathVariable("title") String title)
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(appletLicenseService.selectAppletLicenseByTitle(title));
return success(appletLicenseService.selectAppletLicenseById(id));
}
/**
@ -96,9 +96,9 @@ public class AppletLicenseController extends BaseController
*/
@PreAuthorize("@ss.hasPermi('model:AppletLicense:remove')")
@Log(title = "专业执照信息", businessType = BusinessType.DELETE)
@DeleteMapping("/{titles}")
public AjaxResult remove(@PathVariable String[] titles)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(appletLicenseService.deleteAppletLicenseByTitles(titles));
return toAjax(appletLicenseService.deleteAppletLicenseByIds(ids));
}
}

+ 31
- 1
ruoyi-catdog/src/main/java/com/ruoyi/model/domain/AppletAnswerBase.java View File

@ -9,12 +9,15 @@ import com.ruoyi.common.core.domain.BaseEntity;
* 用户基本考核答案对象 applet_answer_base
*
* @author ruoyi
* @date 2025-03-27
* @date 2025-03-28
*/
public class AppletAnswerBase extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 唯一标识 */
private Long id;
/** 关联题目ID */
@Excel(name = "关联题目ID")
private Long questionId;
@ -27,6 +30,18 @@ public class AppletAnswerBase extends BaseEntity
@Excel(name = "关联用户ID")
private Long userId;
/** 删除标识 */
private Integer delFlag;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setQuestionId(Long questionId)
{
this.questionId = questionId;
@ -54,13 +69,28 @@ public class AppletAnswerBase extends BaseEntity
{
return userId;
}
public void setDelFlag(Integer delFlag)
{
this.delFlag = delFlag;
}
public Integer getDelFlag()
{
return delFlag;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("questionId", getQuestionId())
.append("answerId", getAnswerId())
.append("userId", getUserId())
.append("delFlag", getDelFlag())
.append("createBy", getCreateBy())
.append("createTime", getCreateTime())
.append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime())
.toString();
}
}

+ 31
- 1
ruoyi-catdog/src/main/java/com/ruoyi/model/domain/AppletAnswerTrain.java View File

@ -9,12 +9,15 @@ import com.ruoyi.common.core.domain.BaseEntity;
* 用户培训考核答案对象 applet_answer_train
*
* @author ruoyi
* @date 2025-03-27
* @date 2025-03-28
*/
public class AppletAnswerTrain extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 唯一标识 */
private Long id;
/** 关联题目ID */
@Excel(name = "关联题目ID")
private Long questionId;
@ -27,6 +30,18 @@ public class AppletAnswerTrain extends BaseEntity
@Excel(name = "答案内容")
private String answer;
/** 删除标识 */
private Integer delFlag;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setQuestionId(Long questionId)
{
this.questionId = questionId;
@ -54,14 +69,29 @@ public class AppletAnswerTrain extends BaseEntity
{
return answer;
}
public void setDelFlag(Integer delFlag)
{
this.delFlag = delFlag;
}
public Integer getDelFlag()
{
return delFlag;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("questionId", getQuestionId())
.append("userId", getUserId())
.append("answer", getAnswer())
.append("remark", getRemark())
.append("delFlag", getDelFlag())
.append("createBy", getCreateBy())
.append("createTime", getCreateTime())
.append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime())
.toString();
}
}

+ 30
- 0
ruoyi-catdog/src/main/java/com/ruoyi/model/domain/AppletComment.java View File

@ -15,6 +15,9 @@ public class AppletComment extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 唯一标识 */
private Long id;
/** 评价内容 */
@Excel(name = "评价内容")
private String comment;
@ -31,6 +34,18 @@ public class AppletComment extends BaseEntity
@Excel(name = "关联服务人员ID")
private Long user2Id;
/** 删除标识 */
private Integer delFlag;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setComment(String comment)
{
this.comment = comment;
@ -67,14 +82,29 @@ public class AppletComment extends BaseEntity
{
return user2Id;
}
public void setDelFlag(Integer delFlag)
{
this.delFlag = delFlag;
}
public Integer getDelFlag()
{
return delFlag;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("comment", getComment())
.append("satisfaction", getSatisfaction())
.append("user1Id", getUser1Id())
.append("user2Id", getUser2Id())
.append("delFlag", getDelFlag())
.append("createBy", getCreateBy())
.append("createTime", getCreateTime())
.append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime())
.toString();
}
}

+ 30
- 0
ruoyi-catdog/src/main/java/com/ruoyi/model/domain/AppletIncrease.java View File

@ -15,6 +15,9 @@ public class AppletIncrease extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 唯一标识 */
private Long id;
/** 标题 */
@Excel(name = "标题")
private String title;
@ -23,6 +26,18 @@ public class AppletIncrease extends BaseEntity
@Excel(name = "详情")
private String detail;
/** 删除标识 */
private Integer delFlag;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setTitle(String title)
{
this.title = title;
@ -41,12 +56,27 @@ public class AppletIncrease extends BaseEntity
{
return detail;
}
public void setDelFlag(Integer delFlag)
{
this.delFlag = delFlag;
}
public Integer getDelFlag()
{
return delFlag;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("title", getTitle())
.append("detail", getDetail())
.append("delFlag", getDelFlag())
.append("createBy", getCreateBy())
.append("createTime", getCreateTime())
.append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime())
.toString();
}
}

+ 30
- 0
ruoyi-catdog/src/main/java/com/ruoyi/model/domain/AppletLicense.java View File

@ -15,6 +15,9 @@ public class AppletLicense extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 唯一标识 */
private Long id;
/** 标题 */
@Excel(name = "标题")
private String title;
@ -23,6 +26,18 @@ public class AppletLicense extends BaseEntity
@Excel(name = "图片")
private String image;
/** 删除标识 */
private Integer delFlag;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setTitle(String title)
{
this.title = title;
@ -41,12 +56,27 @@ public class AppletLicense extends BaseEntity
{
return image;
}
public void setDelFlag(Integer delFlag)
{
this.delFlag = delFlag;
}
public Integer getDelFlag()
{
return delFlag;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("title", getTitle())
.append("image", getImage())
.append("delFlag", getDelFlag())
.append("createBy", getCreateBy())
.append("createTime", getCreateTime())
.append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime())
.toString();
}
}

+ 7
- 7
ruoyi-catdog/src/main/java/com/ruoyi/model/mapper/AppletAnswerBaseMapper.java View File

@ -7,17 +7,17 @@ import com.ruoyi.model.domain.AppletAnswerBase;
* 用户基本考核答案Mapper接口
*
* @author ruoyi
* @date 2025-03-27
* @date 2025-03-28
*/
public interface AppletAnswerBaseMapper
{
/**
* 查询用户基本考核答案
*
* @param questionId 用户基本考核答案主键
* @param id 用户基本考核答案主键
* @return 用户基本考核答案
*/
public AppletAnswerBase selectAppletAnswerBaseByQuestionId(Long questionId);
public AppletAnswerBase selectAppletAnswerBaseById(Long id);
/**
* 查询用户基本考核答案列表
@ -46,16 +46,16 @@ public interface AppletAnswerBaseMapper
/**
* 删除用户基本考核答案
*
* @param questionId 用户基本考核答案主键
* @param id 用户基本考核答案主键
* @return 结果
*/
public int deleteAppletAnswerBaseByQuestionId(Long questionId);
public int deleteAppletAnswerBaseById(Long id);
/**
* 批量删除用户基本考核答案
*
* @param questionIds 需要删除的数据主键集合
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int deleteAppletAnswerBaseByQuestionIds(Long[] questionIds);
public int deleteAppletAnswerBaseByIds(Long[] ids);
}

+ 7
- 7
ruoyi-catdog/src/main/java/com/ruoyi/model/mapper/AppletAnswerTrainMapper.java View File

@ -7,17 +7,17 @@ import com.ruoyi.model.domain.AppletAnswerTrain;
* 用户培训考核答案Mapper接口
*
* @author ruoyi
* @date 2025-03-27
* @date 2025-03-28
*/
public interface AppletAnswerTrainMapper
{
/**
* 查询用户培训考核答案
*
* @param questionId 用户培训考核答案主键
* @param id 用户培训考核答案主键
* @return 用户培训考核答案
*/
public AppletAnswerTrain selectAppletAnswerTrainByQuestionId(Long questionId);
public AppletAnswerTrain selectAppletAnswerTrainById(Long id);
/**
* 查询用户培训考核答案列表
@ -46,16 +46,16 @@ public interface AppletAnswerTrainMapper
/**
* 删除用户培训考核答案
*
* @param questionId 用户培训考核答案主键
* @param id 用户培训考核答案主键
* @return 结果
*/
public int deleteAppletAnswerTrainByQuestionId(Long questionId);
public int deleteAppletAnswerTrainById(Long id);
/**
* 批量删除用户培训考核答案
*
* @param questionIds 需要删除的数据主键集合
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int deleteAppletAnswerTrainByQuestionIds(Long[] questionIds);
public int deleteAppletAnswerTrainByIds(Long[] ids);
}

+ 6
- 6
ruoyi-catdog/src/main/java/com/ruoyi/model/mapper/AppletCommentMapper.java View File

@ -14,10 +14,10 @@ public interface AppletCommentMapper
/**
* 查询用户评价
*
* @param comment 用户评价主键
* @param id 用户评价主键
* @return 用户评价
*/
public AppletComment selectAppletCommentByComment(String comment);
public AppletComment selectAppletCommentById(Long id);
/**
* 查询用户评价列表
@ -46,16 +46,16 @@ public interface AppletCommentMapper
/**
* 删除用户评价
*
* @param comment 用户评价主键
* @param id 用户评价主键
* @return 结果
*/
public int deleteAppletCommentByComment(String comment);
public int deleteAppletCommentById(Long id);
/**
* 批量删除用户评价
*
* @param comments 需要删除的数据主键集合
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int deleteAppletCommentByComments(String[] comments);
public int deleteAppletCommentByIds(Long[] ids);
}

+ 6
- 6
ruoyi-catdog/src/main/java/com/ruoyi/model/mapper/AppletIncreaseMapper.java View File

@ -14,10 +14,10 @@ public interface AppletIncreaseMapper
/**
* 查询增值服务
*
* @param title 增值服务主键
* @param id 增值服务主键
* @return 增值服务
*/
public AppletIncrease selectAppletIncreaseByTitle(String title);
public AppletIncrease selectAppletIncreaseById(Long id);
/**
* 查询增值服务列表
@ -46,16 +46,16 @@ public interface AppletIncreaseMapper
/**
* 删除增值服务
*
* @param title 增值服务主键
* @param id 增值服务主键
* @return 结果
*/
public int deleteAppletIncreaseByTitle(String title);
public int deleteAppletIncreaseById(Long id);
/**
* 批量删除增值服务
*
* @param titles 需要删除的数据主键集合
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int deleteAppletIncreaseByTitles(String[] titles);
public int deleteAppletIncreaseByIds(Long[] ids);
}

+ 6
- 6
ruoyi-catdog/src/main/java/com/ruoyi/model/mapper/AppletLicenseMapper.java View File

@ -14,10 +14,10 @@ public interface AppletLicenseMapper
/**
* 查询专业执照信息
*
* @param title 专业执照信息主键
* @param id 专业执照信息主键
* @return 专业执照信息
*/
public AppletLicense selectAppletLicenseByTitle(String title);
public AppletLicense selectAppletLicenseById(Long id);
/**
* 查询专业执照信息列表
@ -46,16 +46,16 @@ public interface AppletLicenseMapper
/**
* 删除专业执照信息
*
* @param title 专业执照信息主键
* @param id 专业执照信息主键
* @return 结果
*/
public int deleteAppletLicenseByTitle(String title);
public int deleteAppletLicenseById(Long id);
/**
* 批量删除专业执照信息
*
* @param titles 需要删除的数据主键集合
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int deleteAppletLicenseByTitles(String[] titles);
public int deleteAppletLicenseByIds(Long[] ids);
}

+ 7
- 7
ruoyi-catdog/src/main/java/com/ruoyi/model/service/IAppletAnswerBaseService.java View File

@ -7,17 +7,17 @@ import com.ruoyi.model.domain.AppletAnswerBase;
* 用户基本考核答案Service接口
*
* @author ruoyi
* @date 2025-03-27
* @date 2025-03-28
*/
public interface IAppletAnswerBaseService
{
/**
* 查询用户基本考核答案
*
* @param questionId 用户基本考核答案主键
* @param id 用户基本考核答案主键
* @return 用户基本考核答案
*/
public AppletAnswerBase selectAppletAnswerBaseByQuestionId(Long questionId);
public AppletAnswerBase selectAppletAnswerBaseById(Long id);
/**
* 查询用户基本考核答案列表
@ -46,16 +46,16 @@ public interface IAppletAnswerBaseService
/**
* 批量删除用户基本考核答案
*
* @param questionIds 需要删除的用户基本考核答案主键集合
* @param ids 需要删除的用户基本考核答案主键集合
* @return 结果
*/
public int deleteAppletAnswerBaseByQuestionIds(Long[] questionIds);
public int deleteAppletAnswerBaseByIds(Long[] ids);
/**
* 删除用户基本考核答案信息
*
* @param questionId 用户基本考核答案主键
* @param id 用户基本考核答案主键
* @return 结果
*/
public int deleteAppletAnswerBaseByQuestionId(Long questionId);
public int deleteAppletAnswerBaseById(Long id);
}

+ 7
- 7
ruoyi-catdog/src/main/java/com/ruoyi/model/service/IAppletAnswerTrainService.java View File

@ -7,17 +7,17 @@ import com.ruoyi.model.domain.AppletAnswerTrain;
* 用户培训考核答案Service接口
*
* @author ruoyi
* @date 2025-03-27
* @date 2025-03-28
*/
public interface IAppletAnswerTrainService
{
/**
* 查询用户培训考核答案
*
* @param questionId 用户培训考核答案主键
* @param id 用户培训考核答案主键
* @return 用户培训考核答案
*/
public AppletAnswerTrain selectAppletAnswerTrainByQuestionId(Long questionId);
public AppletAnswerTrain selectAppletAnswerTrainById(Long id);
/**
* 查询用户培训考核答案列表
@ -46,16 +46,16 @@ public interface IAppletAnswerTrainService
/**
* 批量删除用户培训考核答案
*
* @param questionIds 需要删除的用户培训考核答案主键集合
* @param ids 需要删除的用户培训考核答案主键集合
* @return 结果
*/
public int deleteAppletAnswerTrainByQuestionIds(Long[] questionIds);
public int deleteAppletAnswerTrainByIds(Long[] ids);
/**
* 删除用户培训考核答案信息
*
* @param questionId 用户培训考核答案主键
* @param id 用户培训考核答案主键
* @return 结果
*/
public int deleteAppletAnswerTrainByQuestionId(Long questionId);
public int deleteAppletAnswerTrainById(Long id);
}

+ 6
- 6
ruoyi-catdog/src/main/java/com/ruoyi/model/service/IAppletCommentService.java View File

@ -14,10 +14,10 @@ public interface IAppletCommentService
/**
* 查询用户评价
*
* @param comment 用户评价主键
* @param id 用户评价主键
* @return 用户评价
*/
public AppletComment selectAppletCommentByComment(String comment);
public AppletComment selectAppletCommentById(Long id);
/**
* 查询用户评价列表
@ -46,16 +46,16 @@ public interface IAppletCommentService
/**
* 批量删除用户评价
*
* @param comments 需要删除的用户评价主键集合
* @param ids 需要删除的用户评价主键集合
* @return 结果
*/
public int deleteAppletCommentByComments(String[] comments);
public int deleteAppletCommentByIds(Long[] ids);
/**
* 删除用户评价信息
*
* @param comment 用户评价主键
* @param id 用户评价主键
* @return 结果
*/
public int deleteAppletCommentByComment(String comment);
public int deleteAppletCommentById(Long id);
}

+ 6
- 6
ruoyi-catdog/src/main/java/com/ruoyi/model/service/IAppletIncreaseService.java View File

@ -14,10 +14,10 @@ public interface IAppletIncreaseService
/**
* 查询增值服务
*
* @param title 增值服务主键
* @param id 增值服务主键
* @return 增值服务
*/
public AppletIncrease selectAppletIncreaseByTitle(String title);
public AppletIncrease selectAppletIncreaseById(Long id);
/**
* 查询增值服务列表
@ -46,16 +46,16 @@ public interface IAppletIncreaseService
/**
* 批量删除增值服务
*
* @param titles 需要删除的增值服务主键集合
* @param ids 需要删除的增值服务主键集合
* @return 结果
*/
public int deleteAppletIncreaseByTitles(String[] titles);
public int deleteAppletIncreaseByIds(Long[] ids);
/**
* 删除增值服务信息
*
* @param title 增值服务主键
* @param id 增值服务主键
* @return 结果
*/
public int deleteAppletIncreaseByTitle(String title);
public int deleteAppletIncreaseById(Long id);
}

+ 6
- 6
ruoyi-catdog/src/main/java/com/ruoyi/model/service/IAppletLicenseService.java View File

@ -14,10 +14,10 @@ public interface IAppletLicenseService
/**
* 查询专业执照信息
*
* @param title 专业执照信息主键
* @param id 专业执照信息主键
* @return 专业执照信息
*/
public AppletLicense selectAppletLicenseByTitle(String title);
public AppletLicense selectAppletLicenseById(Long id);
/**
* 查询专业执照信息列表
@ -46,16 +46,16 @@ public interface IAppletLicenseService
/**
* 批量删除专业执照信息
*
* @param titles 需要删除的专业执照信息主键集合
* @param ids 需要删除的专业执照信息主键集合
* @return 结果
*/
public int deleteAppletLicenseByTitles(String[] titles);
public int deleteAppletLicenseByIds(Long[] ids);
/**
* 删除专业执照信息信息
*
* @param title 专业执照信息主键
* @param id 专业执照信息主键
* @return 结果
*/
public int deleteAppletLicenseByTitle(String title);
public int deleteAppletLicenseById(Long id);
}

+ 13
- 10
ruoyi-catdog/src/main/java/com/ruoyi/model/service/impl/AppletAnswerBaseServiceImpl.java View File

@ -1,6 +1,7 @@
package com.ruoyi.model.service.impl;
import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.model.mapper.AppletAnswerBaseMapper;
@ -11,7 +12,7 @@ import com.ruoyi.model.service.IAppletAnswerBaseService;
* 用户基本考核答案Service业务层处理
*
* @author ruoyi
* @date 2025-03-27
* @date 2025-03-28
*/
@Service
public class AppletAnswerBaseServiceImpl implements IAppletAnswerBaseService
@ -22,13 +23,13 @@ public class AppletAnswerBaseServiceImpl implements IAppletAnswerBaseService
/**
* 查询用户基本考核答案
*
* @param questionId 用户基本考核答案主键
* @param id 用户基本考核答案主键
* @return 用户基本考核答案
*/
@Override
public AppletAnswerBase selectAppletAnswerBaseByQuestionId(Long questionId)
public AppletAnswerBase selectAppletAnswerBaseById(Long id)
{
return appletAnswerBaseMapper.selectAppletAnswerBaseByQuestionId(questionId);
return appletAnswerBaseMapper.selectAppletAnswerBaseById(id);
}
/**
@ -52,6 +53,7 @@ public class AppletAnswerBaseServiceImpl implements IAppletAnswerBaseService
@Override
public int insertAppletAnswerBase(AppletAnswerBase appletAnswerBase)
{
appletAnswerBase.setCreateTime(DateUtils.getNowDate());
return appletAnswerBaseMapper.insertAppletAnswerBase(appletAnswerBase);
}
@ -64,30 +66,31 @@ public class AppletAnswerBaseServiceImpl implements IAppletAnswerBaseService
@Override
public int updateAppletAnswerBase(AppletAnswerBase appletAnswerBase)
{
appletAnswerBase.setUpdateTime(DateUtils.getNowDate());
return appletAnswerBaseMapper.updateAppletAnswerBase(appletAnswerBase);
}
/**
* 批量删除用户基本考核答案
*
* @param questionIds 需要删除的用户基本考核答案主键
* @param ids 需要删除的用户基本考核答案主键
* @return 结果
*/
@Override
public int deleteAppletAnswerBaseByQuestionIds(Long[] questionIds)
public int deleteAppletAnswerBaseByIds(Long[] ids)
{
return appletAnswerBaseMapper.deleteAppletAnswerBaseByQuestionIds(questionIds);
return appletAnswerBaseMapper.deleteAppletAnswerBaseByIds(ids);
}
/**
* 删除用户基本考核答案信息
*
* @param questionId 用户基本考核答案主键
* @param id 用户基本考核答案主键
* @return 结果
*/
@Override
public int deleteAppletAnswerBaseByQuestionId(Long questionId)
public int deleteAppletAnswerBaseById(Long id)
{
return appletAnswerBaseMapper.deleteAppletAnswerBaseByQuestionId(questionId);
return appletAnswerBaseMapper.deleteAppletAnswerBaseById(id);
}
}

+ 13
- 10
ruoyi-catdog/src/main/java/com/ruoyi/model/service/impl/AppletAnswerTrainServiceImpl.java View File

@ -1,6 +1,7 @@
package com.ruoyi.model.service.impl;
import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.model.mapper.AppletAnswerTrainMapper;
@ -11,7 +12,7 @@ import com.ruoyi.model.service.IAppletAnswerTrainService;
* 用户培训考核答案Service业务层处理
*
* @author ruoyi
* @date 2025-03-27
* @date 2025-03-28
*/
@Service
public class AppletAnswerTrainServiceImpl implements IAppletAnswerTrainService
@ -22,13 +23,13 @@ public class AppletAnswerTrainServiceImpl implements IAppletAnswerTrainService
/**
* 查询用户培训考核答案
*
* @param questionId 用户培训考核答案主键
* @param id 用户培训考核答案主键
* @return 用户培训考核答案
*/
@Override
public AppletAnswerTrain selectAppletAnswerTrainByQuestionId(Long questionId)
public AppletAnswerTrain selectAppletAnswerTrainById(Long id)
{
return appletAnswerTrainMapper.selectAppletAnswerTrainByQuestionId(questionId);
return appletAnswerTrainMapper.selectAppletAnswerTrainById(id);
}
/**
@ -52,6 +53,7 @@ public class AppletAnswerTrainServiceImpl implements IAppletAnswerTrainService
@Override
public int insertAppletAnswerTrain(AppletAnswerTrain appletAnswerTrain)
{
appletAnswerTrain.setCreateTime(DateUtils.getNowDate());
return appletAnswerTrainMapper.insertAppletAnswerTrain(appletAnswerTrain);
}
@ -64,30 +66,31 @@ public class AppletAnswerTrainServiceImpl implements IAppletAnswerTrainService
@Override
public int updateAppletAnswerTrain(AppletAnswerTrain appletAnswerTrain)
{
appletAnswerTrain.setUpdateTime(DateUtils.getNowDate());
return appletAnswerTrainMapper.updateAppletAnswerTrain(appletAnswerTrain);
}
/**
* 批量删除用户培训考核答案
*
* @param questionIds 需要删除的用户培训考核答案主键
* @param ids 需要删除的用户培训考核答案主键
* @return 结果
*/
@Override
public int deleteAppletAnswerTrainByQuestionIds(Long[] questionIds)
public int deleteAppletAnswerTrainByIds(Long[] ids)
{
return appletAnswerTrainMapper.deleteAppletAnswerTrainByQuestionIds(questionIds);
return appletAnswerTrainMapper.deleteAppletAnswerTrainByIds(ids);
}
/**
* 删除用户培训考核答案信息
*
* @param questionId 用户培训考核答案主键
* @param id 用户培训考核答案主键
* @return 结果
*/
@Override
public int deleteAppletAnswerTrainByQuestionId(Long questionId)
public int deleteAppletAnswerTrainById(Long id)
{
return appletAnswerTrainMapper.deleteAppletAnswerTrainByQuestionId(questionId);
return appletAnswerTrainMapper.deleteAppletAnswerTrainById(id);
}
}

+ 12
- 9
ruoyi-catdog/src/main/java/com/ruoyi/model/service/impl/AppletCommentServiceImpl.java View File

@ -1,6 +1,7 @@
package com.ruoyi.model.service.impl;
import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.model.mapper.AppletCommentMapper;
@ -22,13 +23,13 @@ public class AppletCommentServiceImpl implements IAppletCommentService
/**
* 查询用户评价
*
* @param comment 用户评价主键
* @param id 用户评价主键
* @return 用户评价
*/
@Override
public AppletComment selectAppletCommentByComment(String comment)
public AppletComment selectAppletCommentById(Long id)
{
return appletCommentMapper.selectAppletCommentByComment(comment);
return appletCommentMapper.selectAppletCommentById(id);
}
/**
@ -52,6 +53,7 @@ public class AppletCommentServiceImpl implements IAppletCommentService
@Override
public int insertAppletComment(AppletComment appletComment)
{
appletComment.setCreateTime(DateUtils.getNowDate());
return appletCommentMapper.insertAppletComment(appletComment);
}
@ -64,30 +66,31 @@ public class AppletCommentServiceImpl implements IAppletCommentService
@Override
public int updateAppletComment(AppletComment appletComment)
{
appletComment.setUpdateTime(DateUtils.getNowDate());
return appletCommentMapper.updateAppletComment(appletComment);
}
/**
* 批量删除用户评价
*
* @param comments 需要删除的用户评价主键
* @param ids 需要删除的用户评价主键
* @return 结果
*/
@Override
public int deleteAppletCommentByComments(String[] comments)
public int deleteAppletCommentByIds(Long[] ids)
{
return appletCommentMapper.deleteAppletCommentByComments(comments);
return appletCommentMapper.deleteAppletCommentByIds(ids);
}
/**
* 删除用户评价信息
*
* @param comment 用户评价主键
* @param id 用户评价主键
* @return 结果
*/
@Override
public int deleteAppletCommentByComment(String comment)
public int deleteAppletCommentById(Long id)
{
return appletCommentMapper.deleteAppletCommentByComment(comment);
return appletCommentMapper.deleteAppletCommentById(id);
}
}

+ 12
- 9
ruoyi-catdog/src/main/java/com/ruoyi/model/service/impl/AppletIncreaseServiceImpl.java View File

@ -1,6 +1,7 @@
package com.ruoyi.model.service.impl;
import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.model.mapper.AppletIncreaseMapper;
@ -22,13 +23,13 @@ public class AppletIncreaseServiceImpl implements IAppletIncreaseService
/**
* 查询增值服务
*
* @param title 增值服务主键
* @param id 增值服务主键
* @return 增值服务
*/
@Override
public AppletIncrease selectAppletIncreaseByTitle(String title)
public AppletIncrease selectAppletIncreaseById(Long id)
{
return appletIncreaseMapper.selectAppletIncreaseByTitle(title);
return appletIncreaseMapper.selectAppletIncreaseById(id);
}
/**
@ -52,6 +53,7 @@ public class AppletIncreaseServiceImpl implements IAppletIncreaseService
@Override
public int insertAppletIncrease(AppletIncrease appletIncrease)
{
appletIncrease.setCreateTime(DateUtils.getNowDate());
return appletIncreaseMapper.insertAppletIncrease(appletIncrease);
}
@ -64,30 +66,31 @@ public class AppletIncreaseServiceImpl implements IAppletIncreaseService
@Override
public int updateAppletIncrease(AppletIncrease appletIncrease)
{
appletIncrease.setUpdateTime(DateUtils.getNowDate());
return appletIncreaseMapper.updateAppletIncrease(appletIncrease);
}
/**
* 批量删除增值服务
*
* @param titles 需要删除的增值服务主键
* @param ids 需要删除的增值服务主键
* @return 结果
*/
@Override
public int deleteAppletIncreaseByTitles(String[] titles)
public int deleteAppletIncreaseByIds(Long[] ids)
{
return appletIncreaseMapper.deleteAppletIncreaseByTitles(titles);
return appletIncreaseMapper.deleteAppletIncreaseByIds(ids);
}
/**
* 删除增值服务信息
*
* @param title 增值服务主键
* @param id 增值服务主键
* @return 结果
*/
@Override
public int deleteAppletIncreaseByTitle(String title)
public int deleteAppletIncreaseById(Long id)
{
return appletIncreaseMapper.deleteAppletIncreaseByTitle(title);
return appletIncreaseMapper.deleteAppletIncreaseById(id);
}
}

+ 12
- 9
ruoyi-catdog/src/main/java/com/ruoyi/model/service/impl/AppletLicenseServiceImpl.java View File

@ -1,6 +1,7 @@
package com.ruoyi.model.service.impl;
import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.model.mapper.AppletLicenseMapper;
@ -22,13 +23,13 @@ public class AppletLicenseServiceImpl implements IAppletLicenseService
/**
* 查询专业执照信息
*
* @param title 专业执照信息主键
* @param id 专业执照信息主键
* @return 专业执照信息
*/
@Override
public AppletLicense selectAppletLicenseByTitle(String title)
public AppletLicense selectAppletLicenseById(Long id)
{
return appletLicenseMapper.selectAppletLicenseByTitle(title);
return appletLicenseMapper.selectAppletLicenseById(id);
}
/**
@ -52,6 +53,7 @@ public class AppletLicenseServiceImpl implements IAppletLicenseService
@Override
public int insertAppletLicense(AppletLicense appletLicense)
{
appletLicense.setCreateTime(DateUtils.getNowDate());
return appletLicenseMapper.insertAppletLicense(appletLicense);
}
@ -64,30 +66,31 @@ public class AppletLicenseServiceImpl implements IAppletLicenseService
@Override
public int updateAppletLicense(AppletLicense appletLicense)
{
appletLicense.setUpdateTime(DateUtils.getNowDate());
return appletLicenseMapper.updateAppletLicense(appletLicense);
}
/**
* 批量删除专业执照信息
*
* @param titles 需要删除的专业执照信息主键
* @param ids 需要删除的专业执照信息主键
* @return 结果
*/
@Override
public int deleteAppletLicenseByTitles(String[] titles)
public int deleteAppletLicenseByIds(Long[] ids)
{
return appletLicenseMapper.deleteAppletLicenseByTitles(titles);
return appletLicenseMapper.deleteAppletLicenseByIds(ids);
}
/**
* 删除专业执照信息信息
*
* @param title 专业执照信息主键
* @param id 专业执照信息主键
* @return 结果
*/
@Override
public int deleteAppletLicenseByTitle(String title)
public int deleteAppletLicenseById(Long id)
{
return appletLicenseMapper.deleteAppletLicenseByTitle(title);
return appletLicenseMapper.deleteAppletLicenseById(id);
}
}

+ 33
- 11
ruoyi-catdog/src/main/resources/mapper/model/AppletAnswerBaseMapper.xml View File

@ -5,13 +5,19 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<mapper namespace="com.ruoyi.model.mapper.AppletAnswerBaseMapper">
<resultMap type="AppletAnswerBase" id="AppletAnswerBaseResult">
<result property="id" column="id" />
<result property="questionId" column="question_id" />
<result property="answerId" column="answer_id" />
<result property="userId" column="user_id" />
<result property="delFlag" column="del_flag" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
</resultMap>
<sql id="selectAppletAnswerBaseVo">
select question_id, answer_id, user_id from applet_answer_base
select id, question_id, answer_id, user_id, del_flag, create_by, create_time, update_by, update_time from applet_answer_base
</sql>
<select id="selectAppletAnswerBaseList" parameterType="AppletAnswerBase" resultMap="AppletAnswerBaseResult">
@ -23,42 +29,58 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</where>
</select>
<select id="selectAppletAnswerBaseByQuestionId" parameterType="Long" resultMap="AppletAnswerBaseResult">
<select id="selectAppletAnswerBaseById" parameterType="Long" resultMap="AppletAnswerBaseResult">
<include refid="selectAppletAnswerBaseVo"/>
where question_id = #{questionId}
where id = #{id}
</select>
<insert id="insertAppletAnswerBase" parameterType="AppletAnswerBase">
<insert id="insertAppletAnswerBase" parameterType="AppletAnswerBase" useGeneratedKeys="true" keyProperty="id">
insert into applet_answer_base
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="questionId != null">question_id,</if>
<if test="answerId != null">answer_id,</if>
<if test="userId != null">user_id,</if>
<if test="delFlag != null">del_flag,</if>
<if test="createBy != null">create_by,</if>
<if test="createTime != null">create_time,</if>
<if test="updateBy != null">update_by,</if>
<if test="updateTime != null">update_time,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="questionId != null">#{questionId},</if>
<if test="answerId != null">#{answerId},</if>
<if test="userId != null">#{userId},</if>
<if test="delFlag != null">#{delFlag},</if>
<if test="createBy != null">#{createBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
</trim>
</insert>
<update id="updateAppletAnswerBase" parameterType="AppletAnswerBase">
update applet_answer_base
<trim prefix="SET" suffixOverrides=",">
<if test="questionId != null">question_id = #{questionId},</if>
<if test="answerId != null">answer_id = #{answerId},</if>
<if test="userId != null">user_id = #{userId},</if>
<if test="delFlag != null">del_flag = #{delFlag},</if>
<if test="createBy != null">create_by = #{createBy},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
</trim>
where question_id = #{questionId}
where id = #{id}
</update>
<delete id="deleteAppletAnswerBaseByQuestionId" parameterType="Long">
delete from applet_answer_base where question_id = #{questionId}
<delete id="deleteAppletAnswerBaseById" parameterType="Long">
delete from applet_answer_base where id = #{id}
</delete>
<delete id="deleteAppletAnswerBaseByQuestionIds" parameterType="String">
delete from applet_answer_base where question_id in
<foreach item="questionId" collection="array" open="(" separator="," close=")">
#{questionId}
<delete id="deleteAppletAnswerBaseByIds" parameterType="String">
delete from applet_answer_base where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

+ 33
- 11
ruoyi-catdog/src/main/resources/mapper/model/AppletAnswerTrainMapper.xml View File

@ -5,14 +5,20 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<mapper namespace="com.ruoyi.model.mapper.AppletAnswerTrainMapper">
<resultMap type="AppletAnswerTrain" id="AppletAnswerTrainResult">
<result property="id" column="id" />
<result property="questionId" column="question_id" />
<result property="userId" column="user_id" />
<result property="answer" column="answer" />
<result property="remark" column="remark" />
<result property="delFlag" column="del_flag" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
</resultMap>
<sql id="selectAppletAnswerTrainVo">
select question_id, user_id, answer, remark from applet_answer_train
select id, question_id, user_id, answer, remark, del_flag, create_by, create_time, update_by, update_time from applet_answer_train
</sql>
<select id="selectAppletAnswerTrainList" parameterType="AppletAnswerTrain" resultMap="AppletAnswerTrainResult">
@ -24,45 +30,61 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</where>
</select>
<select id="selectAppletAnswerTrainByQuestionId" parameterType="Long" resultMap="AppletAnswerTrainResult">
<select id="selectAppletAnswerTrainById" parameterType="Long" resultMap="AppletAnswerTrainResult">
<include refid="selectAppletAnswerTrainVo"/>
where question_id = #{questionId}
where id = #{id}
</select>
<insert id="insertAppletAnswerTrain" parameterType="AppletAnswerTrain">
<insert id="insertAppletAnswerTrain" parameterType="AppletAnswerTrain" useGeneratedKeys="true" keyProperty="id">
insert into applet_answer_train
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="questionId != null">question_id,</if>
<if test="userId != null">user_id,</if>
<if test="answer != null and answer != ''">answer,</if>
<if test="remark != null">remark,</if>
<if test="delFlag != null">del_flag,</if>
<if test="createBy != null">create_by,</if>
<if test="createTime != null">create_time,</if>
<if test="updateBy != null">update_by,</if>
<if test="updateTime != null">update_time,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="questionId != null">#{questionId},</if>
<if test="userId != null">#{userId},</if>
<if test="answer != null and answer != ''">#{answer},</if>
<if test="remark != null">#{remark},</if>
<if test="delFlag != null">#{delFlag},</if>
<if test="createBy != null">#{createBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
</trim>
</insert>
<update id="updateAppletAnswerTrain" parameterType="AppletAnswerTrain">
update applet_answer_train
<trim prefix="SET" suffixOverrides=",">
<if test="questionId != null">question_id = #{questionId},</if>
<if test="userId != null">user_id = #{userId},</if>
<if test="answer != null and answer != ''">answer = #{answer},</if>
<if test="remark != null">remark = #{remark},</if>
<if test="delFlag != null">del_flag = #{delFlag},</if>
<if test="createBy != null">create_by = #{createBy},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
</trim>
where question_id = #{questionId}
where id = #{id}
</update>
<delete id="deleteAppletAnswerTrainByQuestionId" parameterType="Long">
delete from applet_answer_train where question_id = #{questionId}
<delete id="deleteAppletAnswerTrainById" parameterType="Long">
delete from applet_answer_train where id = #{id}
</delete>
<delete id="deleteAppletAnswerTrainByQuestionIds" parameterType="String">
delete from applet_answer_train where question_id in
<foreach item="questionId" collection="array" open="(" separator="," close=")">
#{questionId}
<delete id="deleteAppletAnswerTrainByIds" parameterType="String">
delete from applet_answer_train where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

+ 33
- 11
ruoyi-catdog/src/main/resources/mapper/model/AppletCommentMapper.xml View File

@ -5,14 +5,20 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<mapper namespace="com.ruoyi.model.mapper.AppletCommentMapper">
<resultMap type="AppletComment" id="AppletCommentResult">
<result property="id" column="id" />
<result property="comment" column="comment" />
<result property="satisfaction" column="satisfaction" />
<result property="user1Id" column="user1_id" />
<result property="user2Id" column="user2_id" />
<result property="delFlag" column="del_flag" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
</resultMap>
<sql id="selectAppletCommentVo">
select comment, satisfaction, user1_id, user2_id from applet_comment
select id, comment, satisfaction, user1_id, user2_id, del_flag, create_by, create_time, update_by, update_time from applet_comment
</sql>
<select id="selectAppletCommentList" parameterType="AppletComment" resultMap="AppletCommentResult">
@ -25,45 +31,61 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</where>
</select>
<select id="selectAppletCommentByComment" parameterType="String" resultMap="AppletCommentResult">
<select id="selectAppletCommentById" parameterType="Long" resultMap="AppletCommentResult">
<include refid="selectAppletCommentVo"/>
where comment = #{comment}
where id = #{id}
</select>
<insert id="insertAppletComment" parameterType="AppletComment">
<insert id="insertAppletComment" parameterType="AppletComment" useGeneratedKeys="true" keyProperty="id">
insert into applet_comment
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="comment != null and comment != ''">comment,</if>
<if test="satisfaction != null">satisfaction,</if>
<if test="user1Id != null">user1_id,</if>
<if test="user2Id != null">user2_id,</if>
<if test="delFlag != null">del_flag,</if>
<if test="createBy != null">create_by,</if>
<if test="createTime != null">create_time,</if>
<if test="updateBy != null">update_by,</if>
<if test="updateTime != null">update_time,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="comment != null and comment != ''">#{comment},</if>
<if test="satisfaction != null">#{satisfaction},</if>
<if test="user1Id != null">#{user1Id},</if>
<if test="user2Id != null">#{user2Id},</if>
<if test="delFlag != null">#{delFlag},</if>
<if test="createBy != null">#{createBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
</trim>
</insert>
<update id="updateAppletComment" parameterType="AppletComment">
update applet_comment
<trim prefix="SET" suffixOverrides=",">
<if test="comment != null and comment != ''">comment = #{comment},</if>
<if test="satisfaction != null">satisfaction = #{satisfaction},</if>
<if test="user1Id != null">user1_id = #{user1Id},</if>
<if test="user2Id != null">user2_id = #{user2Id},</if>
<if test="delFlag != null">del_flag = #{delFlag},</if>
<if test="createBy != null">create_by = #{createBy},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
</trim>
where comment = #{comment}
where id = #{id}
</update>
<delete id="deleteAppletCommentByComment" parameterType="String">
delete from applet_comment where comment = #{comment}
<delete id="deleteAppletCommentById" parameterType="Long">
delete from applet_comment where id = #{id}
</delete>
<delete id="deleteAppletCommentByComments" parameterType="String">
delete from applet_comment where comment in
<foreach item="comment" collection="array" open="(" separator="," close=")">
#{comment}
<delete id="deleteAppletCommentByIds" parameterType="String">
delete from applet_comment where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

+ 33
- 11
ruoyi-catdog/src/main/resources/mapper/model/AppletIncreaseMapper.xml View File

@ -5,12 +5,18 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<mapper namespace="com.ruoyi.model.mapper.AppletIncreaseMapper">
<resultMap type="AppletIncrease" id="AppletIncreaseResult">
<result property="id" column="id" />
<result property="title" column="title" />
<result property="detail" column="detail" />
<result property="delFlag" column="del_flag" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
</resultMap>
<sql id="selectAppletIncreaseVo">
select title, detail from applet_increase
select id, title, detail, del_flag, create_by, create_time, update_by, update_time from applet_increase
</sql>
<select id="selectAppletIncreaseList" parameterType="AppletIncrease" resultMap="AppletIncreaseResult">
@ -21,39 +27,55 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</where>
</select>
<select id="selectAppletIncreaseByTitle" parameterType="String" resultMap="AppletIncreaseResult">
<select id="selectAppletIncreaseById" parameterType="Long" resultMap="AppletIncreaseResult">
<include refid="selectAppletIncreaseVo"/>
where title = #{title}
where id = #{id}
</select>
<insert id="insertAppletIncrease" parameterType="AppletIncrease">
<insert id="insertAppletIncrease" parameterType="AppletIncrease" useGeneratedKeys="true" keyProperty="id">
insert into applet_increase
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="title != null and title != ''">title,</if>
<if test="detail != null">detail,</if>
<if test="delFlag != null">del_flag,</if>
<if test="createBy != null">create_by,</if>
<if test="createTime != null">create_time,</if>
<if test="updateBy != null">update_by,</if>
<if test="updateTime != null">update_time,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="title != null and title != ''">#{title},</if>
<if test="detail != null">#{detail},</if>
<if test="delFlag != null">#{delFlag},</if>
<if test="createBy != null">#{createBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
</trim>
</insert>
<update id="updateAppletIncrease" parameterType="AppletIncrease">
update applet_increase
<trim prefix="SET" suffixOverrides=",">
<if test="title != null and title != ''">title = #{title},</if>
<if test="detail != null">detail = #{detail},</if>
<if test="delFlag != null">del_flag = #{delFlag},</if>
<if test="createBy != null">create_by = #{createBy},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
</trim>
where title = #{title}
where id = #{id}
</update>
<delete id="deleteAppletIncreaseByTitle" parameterType="String">
delete from applet_increase where title = #{title}
<delete id="deleteAppletIncreaseById" parameterType="Long">
delete from applet_increase where id = #{id}
</delete>
<delete id="deleteAppletIncreaseByTitles" parameterType="String">
delete from applet_increase where title in
<foreach item="title" collection="array" open="(" separator="," close=")">
#{title}
<delete id="deleteAppletIncreaseByIds" parameterType="String">
delete from applet_increase where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

+ 33
- 11
ruoyi-catdog/src/main/resources/mapper/model/AppletLicenseMapper.xml View File

@ -5,12 +5,18 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<mapper namespace="com.ruoyi.model.mapper.AppletLicenseMapper">
<resultMap type="AppletLicense" id="AppletLicenseResult">
<result property="id" column="id" />
<result property="title" column="title" />
<result property="image" column="image" />
<result property="delFlag" column="del_flag" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
</resultMap>
<sql id="selectAppletLicenseVo">
select title, image from applet_license
select id, title, image, del_flag, create_by, create_time, update_by, update_time from applet_license
</sql>
<select id="selectAppletLicenseList" parameterType="AppletLicense" resultMap="AppletLicenseResult">
@ -21,39 +27,55 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</where>
</select>
<select id="selectAppletLicenseByTitle" parameterType="String" resultMap="AppletLicenseResult">
<select id="selectAppletLicenseById" parameterType="Long" resultMap="AppletLicenseResult">
<include refid="selectAppletLicenseVo"/>
where title = #{title}
where id = #{id}
</select>
<insert id="insertAppletLicense" parameterType="AppletLicense">
<insert id="insertAppletLicense" parameterType="AppletLicense" useGeneratedKeys="true" keyProperty="id">
insert into applet_license
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="title != null and title != ''">title,</if>
<if test="image != null">image,</if>
<if test="delFlag != null">del_flag,</if>
<if test="createBy != null">create_by,</if>
<if test="createTime != null">create_time,</if>
<if test="updateBy != null">update_by,</if>
<if test="updateTime != null">update_time,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="title != null and title != ''">#{title},</if>
<if test="image != null">#{image},</if>
<if test="delFlag != null">#{delFlag},</if>
<if test="createBy != null">#{createBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
</trim>
</insert>
<update id="updateAppletLicense" parameterType="AppletLicense">
update applet_license
<trim prefix="SET" suffixOverrides=",">
<if test="title != null and title != ''">title = #{title},</if>
<if test="image != null">image = #{image},</if>
<if test="delFlag != null">del_flag = #{delFlag},</if>
<if test="createBy != null">create_by = #{createBy},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
</trim>
where title = #{title}
where id = #{id}
</update>
<delete id="deleteAppletLicenseByTitle" parameterType="String">
delete from applet_license where title = #{title}
<delete id="deleteAppletLicenseById" parameterType="Long">
delete from applet_license where id = #{id}
</delete>
<delete id="deleteAppletLicenseByTitles" parameterType="String">
delete from applet_license where title in
<foreach item="title" collection="array" open="(" separator="," close=")">
#{title}
<delete id="deleteAppletLicenseByIds" parameterType="String">
delete from applet_license where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

Loading…
Cancel
Save