diff --git a/ruoyi-catdog/src/main/java/com/ruoyi/model/controller/AppletAnswerBaseController.java b/ruoyi-catdog/src/main/java/com/ruoyi/model/controller/AppletAnswerBaseController.java index d762ed8..135b545 100644 --- a/ruoyi-catdog/src/main/java/com/ruoyi/model/controller/AppletAnswerBaseController.java +++ b/ruoyi-catdog/src/main/java/com/ruoyi/model/controller/AppletAnswerBaseController.java @@ -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)); } } diff --git a/ruoyi-catdog/src/main/java/com/ruoyi/model/controller/AppletAnswerTrainController.java b/ruoyi-catdog/src/main/java/com/ruoyi/model/controller/AppletAnswerTrainController.java index 15068ef..a9c506a 100644 --- a/ruoyi-catdog/src/main/java/com/ruoyi/model/controller/AppletAnswerTrainController.java +++ b/ruoyi-catdog/src/main/java/com/ruoyi/model/controller/AppletAnswerTrainController.java @@ -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)); } } diff --git a/ruoyi-catdog/src/main/java/com/ruoyi/model/controller/AppletCommentController.java b/ruoyi-catdog/src/main/java/com/ruoyi/model/controller/AppletCommentController.java index eefeea2..2f0c3ee 100644 --- a/ruoyi-catdog/src/main/java/com/ruoyi/model/controller/AppletCommentController.java +++ b/ruoyi-catdog/src/main/java/com/ruoyi/model/controller/AppletCommentController.java @@ -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)); } } diff --git a/ruoyi-catdog/src/main/java/com/ruoyi/model/controller/AppletIncreaseController.java b/ruoyi-catdog/src/main/java/com/ruoyi/model/controller/AppletIncreaseController.java index 5ba33aa..a306261 100644 --- a/ruoyi-catdog/src/main/java/com/ruoyi/model/controller/AppletIncreaseController.java +++ b/ruoyi-catdog/src/main/java/com/ruoyi/model/controller/AppletIncreaseController.java @@ -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)); } } diff --git a/ruoyi-catdog/src/main/java/com/ruoyi/model/controller/AppletLicenseController.java b/ruoyi-catdog/src/main/java/com/ruoyi/model/controller/AppletLicenseController.java index d0d5dbf..6ba8863 100644 --- a/ruoyi-catdog/src/main/java/com/ruoyi/model/controller/AppletLicenseController.java +++ b/ruoyi-catdog/src/main/java/com/ruoyi/model/controller/AppletLicenseController.java @@ -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)); } } diff --git a/ruoyi-catdog/src/main/java/com/ruoyi/model/domain/AppletAnswerBase.java b/ruoyi-catdog/src/main/java/com/ruoyi/model/domain/AppletAnswerBase.java index fa2cb9a..0c2a6a2 100644 --- a/ruoyi-catdog/src/main/java/com/ruoyi/model/domain/AppletAnswerBase.java +++ b/ruoyi-catdog/src/main/java/com/ruoyi/model/domain/AppletAnswerBase.java @@ -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(); } } diff --git a/ruoyi-catdog/src/main/java/com/ruoyi/model/domain/AppletAnswerTrain.java b/ruoyi-catdog/src/main/java/com/ruoyi/model/domain/AppletAnswerTrain.java index 4c11366..0bed77a 100644 --- a/ruoyi-catdog/src/main/java/com/ruoyi/model/domain/AppletAnswerTrain.java +++ b/ruoyi-catdog/src/main/java/com/ruoyi/model/domain/AppletAnswerTrain.java @@ -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(); } } diff --git a/ruoyi-catdog/src/main/java/com/ruoyi/model/domain/AppletComment.java b/ruoyi-catdog/src/main/java/com/ruoyi/model/domain/AppletComment.java index a0a6e50..3ac3856 100644 --- a/ruoyi-catdog/src/main/java/com/ruoyi/model/domain/AppletComment.java +++ b/ruoyi-catdog/src/main/java/com/ruoyi/model/domain/AppletComment.java @@ -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(); } } diff --git a/ruoyi-catdog/src/main/java/com/ruoyi/model/domain/AppletIncrease.java b/ruoyi-catdog/src/main/java/com/ruoyi/model/domain/AppletIncrease.java index e120c38..4cf0b0b 100644 --- a/ruoyi-catdog/src/main/java/com/ruoyi/model/domain/AppletIncrease.java +++ b/ruoyi-catdog/src/main/java/com/ruoyi/model/domain/AppletIncrease.java @@ -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(); } } diff --git a/ruoyi-catdog/src/main/java/com/ruoyi/model/domain/AppletLicense.java b/ruoyi-catdog/src/main/java/com/ruoyi/model/domain/AppletLicense.java index 7177fe8..f1b08ad 100644 --- a/ruoyi-catdog/src/main/java/com/ruoyi/model/domain/AppletLicense.java +++ b/ruoyi-catdog/src/main/java/com/ruoyi/model/domain/AppletLicense.java @@ -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(); } } diff --git a/ruoyi-catdog/src/main/java/com/ruoyi/model/mapper/AppletAnswerBaseMapper.java b/ruoyi-catdog/src/main/java/com/ruoyi/model/mapper/AppletAnswerBaseMapper.java index 86a67b9..967076b 100644 --- a/ruoyi-catdog/src/main/java/com/ruoyi/model/mapper/AppletAnswerBaseMapper.java +++ b/ruoyi-catdog/src/main/java/com/ruoyi/model/mapper/AppletAnswerBaseMapper.java @@ -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); } diff --git a/ruoyi-catdog/src/main/java/com/ruoyi/model/mapper/AppletAnswerTrainMapper.java b/ruoyi-catdog/src/main/java/com/ruoyi/model/mapper/AppletAnswerTrainMapper.java index 131b4e9..dac4126 100644 --- a/ruoyi-catdog/src/main/java/com/ruoyi/model/mapper/AppletAnswerTrainMapper.java +++ b/ruoyi-catdog/src/main/java/com/ruoyi/model/mapper/AppletAnswerTrainMapper.java @@ -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); } diff --git a/ruoyi-catdog/src/main/java/com/ruoyi/model/mapper/AppletCommentMapper.java b/ruoyi-catdog/src/main/java/com/ruoyi/model/mapper/AppletCommentMapper.java index 137851a..8b39e57 100644 --- a/ruoyi-catdog/src/main/java/com/ruoyi/model/mapper/AppletCommentMapper.java +++ b/ruoyi-catdog/src/main/java/com/ruoyi/model/mapper/AppletCommentMapper.java @@ -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); } diff --git a/ruoyi-catdog/src/main/java/com/ruoyi/model/mapper/AppletIncreaseMapper.java b/ruoyi-catdog/src/main/java/com/ruoyi/model/mapper/AppletIncreaseMapper.java index 14e1122..4e5f435 100644 --- a/ruoyi-catdog/src/main/java/com/ruoyi/model/mapper/AppletIncreaseMapper.java +++ b/ruoyi-catdog/src/main/java/com/ruoyi/model/mapper/AppletIncreaseMapper.java @@ -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); } diff --git a/ruoyi-catdog/src/main/java/com/ruoyi/model/mapper/AppletLicenseMapper.java b/ruoyi-catdog/src/main/java/com/ruoyi/model/mapper/AppletLicenseMapper.java index f8dfa35..0a9f3cf 100644 --- a/ruoyi-catdog/src/main/java/com/ruoyi/model/mapper/AppletLicenseMapper.java +++ b/ruoyi-catdog/src/main/java/com/ruoyi/model/mapper/AppletLicenseMapper.java @@ -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); } diff --git a/ruoyi-catdog/src/main/java/com/ruoyi/model/service/IAppletAnswerBaseService.java b/ruoyi-catdog/src/main/java/com/ruoyi/model/service/IAppletAnswerBaseService.java index 61958ed..7e359d2 100644 --- a/ruoyi-catdog/src/main/java/com/ruoyi/model/service/IAppletAnswerBaseService.java +++ b/ruoyi-catdog/src/main/java/com/ruoyi/model/service/IAppletAnswerBaseService.java @@ -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); } diff --git a/ruoyi-catdog/src/main/java/com/ruoyi/model/service/IAppletAnswerTrainService.java b/ruoyi-catdog/src/main/java/com/ruoyi/model/service/IAppletAnswerTrainService.java index 3e33b56..55c9fa9 100644 --- a/ruoyi-catdog/src/main/java/com/ruoyi/model/service/IAppletAnswerTrainService.java +++ b/ruoyi-catdog/src/main/java/com/ruoyi/model/service/IAppletAnswerTrainService.java @@ -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); } diff --git a/ruoyi-catdog/src/main/java/com/ruoyi/model/service/IAppletCommentService.java b/ruoyi-catdog/src/main/java/com/ruoyi/model/service/IAppletCommentService.java index 23de58c..8848ad2 100644 --- a/ruoyi-catdog/src/main/java/com/ruoyi/model/service/IAppletCommentService.java +++ b/ruoyi-catdog/src/main/java/com/ruoyi/model/service/IAppletCommentService.java @@ -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); } diff --git a/ruoyi-catdog/src/main/java/com/ruoyi/model/service/IAppletIncreaseService.java b/ruoyi-catdog/src/main/java/com/ruoyi/model/service/IAppletIncreaseService.java index ff638c0..48e55be 100644 --- a/ruoyi-catdog/src/main/java/com/ruoyi/model/service/IAppletIncreaseService.java +++ b/ruoyi-catdog/src/main/java/com/ruoyi/model/service/IAppletIncreaseService.java @@ -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); } diff --git a/ruoyi-catdog/src/main/java/com/ruoyi/model/service/IAppletLicenseService.java b/ruoyi-catdog/src/main/java/com/ruoyi/model/service/IAppletLicenseService.java index fc2255a..f7a5d0d 100644 --- a/ruoyi-catdog/src/main/java/com/ruoyi/model/service/IAppletLicenseService.java +++ b/ruoyi-catdog/src/main/java/com/ruoyi/model/service/IAppletLicenseService.java @@ -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); } diff --git a/ruoyi-catdog/src/main/java/com/ruoyi/model/service/impl/AppletAnswerBaseServiceImpl.java b/ruoyi-catdog/src/main/java/com/ruoyi/model/service/impl/AppletAnswerBaseServiceImpl.java index cd74cf8..97c6e20 100644 --- a/ruoyi-catdog/src/main/java/com/ruoyi/model/service/impl/AppletAnswerBaseServiceImpl.java +++ b/ruoyi-catdog/src/main/java/com/ruoyi/model/service/impl/AppletAnswerBaseServiceImpl.java @@ -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); } } diff --git a/ruoyi-catdog/src/main/java/com/ruoyi/model/service/impl/AppletAnswerTrainServiceImpl.java b/ruoyi-catdog/src/main/java/com/ruoyi/model/service/impl/AppletAnswerTrainServiceImpl.java index 39056d2..4d5f516 100644 --- a/ruoyi-catdog/src/main/java/com/ruoyi/model/service/impl/AppletAnswerTrainServiceImpl.java +++ b/ruoyi-catdog/src/main/java/com/ruoyi/model/service/impl/AppletAnswerTrainServiceImpl.java @@ -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); } } diff --git a/ruoyi-catdog/src/main/java/com/ruoyi/model/service/impl/AppletCommentServiceImpl.java b/ruoyi-catdog/src/main/java/com/ruoyi/model/service/impl/AppletCommentServiceImpl.java index f5979c8..8ee25e4 100644 --- a/ruoyi-catdog/src/main/java/com/ruoyi/model/service/impl/AppletCommentServiceImpl.java +++ b/ruoyi-catdog/src/main/java/com/ruoyi/model/service/impl/AppletCommentServiceImpl.java @@ -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); } } diff --git a/ruoyi-catdog/src/main/java/com/ruoyi/model/service/impl/AppletIncreaseServiceImpl.java b/ruoyi-catdog/src/main/java/com/ruoyi/model/service/impl/AppletIncreaseServiceImpl.java index 285e038..8b6de3a 100644 --- a/ruoyi-catdog/src/main/java/com/ruoyi/model/service/impl/AppletIncreaseServiceImpl.java +++ b/ruoyi-catdog/src/main/java/com/ruoyi/model/service/impl/AppletIncreaseServiceImpl.java @@ -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); } } diff --git a/ruoyi-catdog/src/main/java/com/ruoyi/model/service/impl/AppletLicenseServiceImpl.java b/ruoyi-catdog/src/main/java/com/ruoyi/model/service/impl/AppletLicenseServiceImpl.java index dc60e0f..9cc4a86 100644 --- a/ruoyi-catdog/src/main/java/com/ruoyi/model/service/impl/AppletLicenseServiceImpl.java +++ b/ruoyi-catdog/src/main/java/com/ruoyi/model/service/impl/AppletLicenseServiceImpl.java @@ -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); } } diff --git a/ruoyi-catdog/src/main/resources/mapper/model/AppletAnswerBaseMapper.xml b/ruoyi-catdog/src/main/resources/mapper/model/AppletAnswerBaseMapper.xml index f6aee9d..81676a8 100644 --- a/ruoyi-catdog/src/main/resources/mapper/model/AppletAnswerBaseMapper.xml +++ b/ruoyi-catdog/src/main/resources/mapper/model/AppletAnswerBaseMapper.xml @@ -5,13 +5,19 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" + + + + + + - 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 - - where question_id = #{questionId} + where id = #{id} - + insert into applet_answer_base question_id, answer_id, user_id, + del_flag, + create_by, + create_time, + update_by, + update_time, #{questionId}, #{answerId}, #{userId}, + #{delFlag}, + #{createBy}, + #{createTime}, + #{updateBy}, + #{updateTime}, update applet_answer_base + question_id = #{questionId}, answer_id = #{answerId}, user_id = #{userId}, + del_flag = #{delFlag}, + create_by = #{createBy}, + create_time = #{createTime}, + update_by = #{updateBy}, + update_time = #{updateTime}, - where question_id = #{questionId} + where id = #{id} - - delete from applet_answer_base where question_id = #{questionId} + + delete from applet_answer_base where id = #{id} - - delete from applet_answer_base where question_id in - - #{questionId} + + delete from applet_answer_base where id in + + #{id} \ No newline at end of file diff --git a/ruoyi-catdog/src/main/resources/mapper/model/AppletAnswerTrainMapper.xml b/ruoyi-catdog/src/main/resources/mapper/model/AppletAnswerTrainMapper.xml index ea3a4bc..303ece8 100644 --- a/ruoyi-catdog/src/main/resources/mapper/model/AppletAnswerTrainMapper.xml +++ b/ruoyi-catdog/src/main/resources/mapper/model/AppletAnswerTrainMapper.xml @@ -5,14 +5,20 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" + + + + + + - 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 - - where question_id = #{questionId} + where id = #{id} - + insert into applet_answer_train question_id, user_id, answer, remark, + del_flag, + create_by, + create_time, + update_by, + update_time, #{questionId}, #{userId}, #{answer}, #{remark}, + #{delFlag}, + #{createBy}, + #{createTime}, + #{updateBy}, + #{updateTime}, update applet_answer_train + question_id = #{questionId}, user_id = #{userId}, answer = #{answer}, remark = #{remark}, + del_flag = #{delFlag}, + create_by = #{createBy}, + create_time = #{createTime}, + update_by = #{updateBy}, + update_time = #{updateTime}, - where question_id = #{questionId} + where id = #{id} - - delete from applet_answer_train where question_id = #{questionId} + + delete from applet_answer_train where id = #{id} - - delete from applet_answer_train where question_id in - - #{questionId} + + delete from applet_answer_train where id in + + #{id} \ No newline at end of file diff --git a/ruoyi-catdog/src/main/resources/mapper/model/AppletCommentMapper.xml b/ruoyi-catdog/src/main/resources/mapper/model/AppletCommentMapper.xml index aa2295c..e8be192 100644 --- a/ruoyi-catdog/src/main/resources/mapper/model/AppletCommentMapper.xml +++ b/ruoyi-catdog/src/main/resources/mapper/model/AppletCommentMapper.xml @@ -5,14 +5,20 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" + + + + + + - 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 - - where comment = #{comment} + where id = #{id} - + insert into applet_comment comment, satisfaction, user1_id, user2_id, + del_flag, + create_by, + create_time, + update_by, + update_time, #{comment}, #{satisfaction}, #{user1Id}, #{user2Id}, + #{delFlag}, + #{createBy}, + #{createTime}, + #{updateBy}, + #{updateTime}, update applet_comment + comment = #{comment}, satisfaction = #{satisfaction}, user1_id = #{user1Id}, user2_id = #{user2Id}, + del_flag = #{delFlag}, + create_by = #{createBy}, + create_time = #{createTime}, + update_by = #{updateBy}, + update_time = #{updateTime}, - where comment = #{comment} + where id = #{id} - - delete from applet_comment where comment = #{comment} + + delete from applet_comment where id = #{id} - - delete from applet_comment where comment in - - #{comment} + + delete from applet_comment where id in + + #{id} \ No newline at end of file diff --git a/ruoyi-catdog/src/main/resources/mapper/model/AppletIncreaseMapper.xml b/ruoyi-catdog/src/main/resources/mapper/model/AppletIncreaseMapper.xml index 4933a9c..a3799da 100644 --- a/ruoyi-catdog/src/main/resources/mapper/model/AppletIncreaseMapper.xml +++ b/ruoyi-catdog/src/main/resources/mapper/model/AppletIncreaseMapper.xml @@ -5,12 +5,18 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" + + + + + + - select title, detail from applet_increase + select id, title, detail, del_flag, create_by, create_time, update_by, update_time from applet_increase - - where title = #{title} + where id = #{id} - + insert into applet_increase title, detail, + del_flag, + create_by, + create_time, + update_by, + update_time, #{title}, #{detail}, + #{delFlag}, + #{createBy}, + #{createTime}, + #{updateBy}, + #{updateTime}, update applet_increase + title = #{title}, detail = #{detail}, + del_flag = #{delFlag}, + create_by = #{createBy}, + create_time = #{createTime}, + update_by = #{updateBy}, + update_time = #{updateTime}, - where title = #{title} + where id = #{id} - - delete from applet_increase where title = #{title} + + delete from applet_increase where id = #{id} - - delete from applet_increase where title in - - #{title} + + delete from applet_increase where id in + + #{id} \ No newline at end of file diff --git a/ruoyi-catdog/src/main/resources/mapper/model/AppletLicenseMapper.xml b/ruoyi-catdog/src/main/resources/mapper/model/AppletLicenseMapper.xml index 8bf3aab..bfc1ed8 100644 --- a/ruoyi-catdog/src/main/resources/mapper/model/AppletLicenseMapper.xml +++ b/ruoyi-catdog/src/main/resources/mapper/model/AppletLicenseMapper.xml @@ -5,12 +5,18 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" + + + + + + - select title, image from applet_license + select id, title, image, del_flag, create_by, create_time, update_by, update_time from applet_license - - where title = #{title} + where id = #{id} - + insert into applet_license title, image, + del_flag, + create_by, + create_time, + update_by, + update_time, #{title}, #{image}, + #{delFlag}, + #{createBy}, + #{createTime}, + #{updateBy}, + #{updateTime}, update applet_license + title = #{title}, image = #{image}, + del_flag = #{delFlag}, + create_by = #{createBy}, + create_time = #{createTime}, + update_by = #{updateBy}, + update_time = #{updateTime}, - where title = #{title} + where id = #{id} - - delete from applet_license where title = #{title} + + delete from applet_license where id = #{id} - - delete from applet_license where title in - - #{title} + + delete from applet_license where id in + + #{id} \ No newline at end of file