14 changed files with 1036 additions and 5 deletions
@ -0,0 +1,104 @@ |
|||
package com.mmxt.web.controller.mmxt; |
|||
|
|||
import java.util.List; |
|||
import javax.servlet.http.HttpServletResponse; |
|||
import org.springframework.security.access.prepost.PreAuthorize; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.web.bind.annotation.GetMapping; |
|||
import org.springframework.web.bind.annotation.PostMapping; |
|||
import org.springframework.web.bind.annotation.PutMapping; |
|||
import org.springframework.web.bind.annotation.DeleteMapping; |
|||
import org.springframework.web.bind.annotation.PathVariable; |
|||
import org.springframework.web.bind.annotation.RequestBody; |
|||
import org.springframework.web.bind.annotation.RequestMapping; |
|||
import org.springframework.web.bind.annotation.RestController; |
|||
import com.mmxt.common.annotation.Log; |
|||
import com.mmxt.common.core.controller.BaseController; |
|||
import com.mmxt.common.core.domain.AjaxResult; |
|||
import com.mmxt.common.enums.BusinessType; |
|||
import com.mmxt.business.domain.MmxtMeiyuStudentOperateStat; |
|||
import com.mmxt.business.service.IMmxtMeiyuStudentOperateStatService; |
|||
import com.mmxt.common.utils.poi.ExcelUtil; |
|||
import com.mmxt.common.core.page.TableDataInfo; |
|||
|
|||
/** |
|||
* 美美学堂智慧美育学生操作统计Controller |
|||
* |
|||
* @author mmxt |
|||
* @date 2026-01-12 |
|||
*/ |
|||
@RestController |
|||
@RequestMapping("/business/mmxtMeiyuStudentOperateStat") |
|||
public class MmxtMeiyuStudentOperateStatController extends BaseController |
|||
{ |
|||
@Autowired |
|||
private IMmxtMeiyuStudentOperateStatService mmxtMeiyuStudentOperateStatService; |
|||
|
|||
/** |
|||
* 查询美美学堂智慧美育学生操作统计列表 |
|||
*/ |
|||
@PreAuthorize("@ss.hasPermi('business:mmxtMeiyuStudentOperateStat:list')") |
|||
@GetMapping("/list") |
|||
public TableDataInfo list(MmxtMeiyuStudentOperateStat mmxtMeiyuStudentOperateStat) |
|||
{ |
|||
startPage(); |
|||
List<MmxtMeiyuStudentOperateStat> list = mmxtMeiyuStudentOperateStatService.selectMmxtMeiyuStudentOperateStatList(mmxtMeiyuStudentOperateStat); |
|||
return getDataTable(list); |
|||
} |
|||
|
|||
/** |
|||
* 导出美美学堂智慧美育学生操作统计列表 |
|||
*/ |
|||
@PreAuthorize("@ss.hasPermi('business:mmxtMeiyuStudentOperateStat:export')") |
|||
@Log(title = "美美学堂智慧美育学生操作统计", businessType = BusinessType.EXPORT) |
|||
@PostMapping("/export") |
|||
public void export(HttpServletResponse response, MmxtMeiyuStudentOperateStat mmxtMeiyuStudentOperateStat) |
|||
{ |
|||
List<MmxtMeiyuStudentOperateStat> list = mmxtMeiyuStudentOperateStatService.selectMmxtMeiyuStudentOperateStatList(mmxtMeiyuStudentOperateStat); |
|||
ExcelUtil<MmxtMeiyuStudentOperateStat> util = new ExcelUtil<MmxtMeiyuStudentOperateStat>(MmxtMeiyuStudentOperateStat.class); |
|||
util.exportExcel(response, list, "美美学堂智慧美育学生操作统计数据"); |
|||
} |
|||
|
|||
/** |
|||
* 获取美美学堂智慧美育学生操作统计详细信息 |
|||
*/ |
|||
@PreAuthorize("@ss.hasPermi('business:mmxtMeiyuStudentOperateStat:query')") |
|||
@GetMapping(value = "/{textbookId}") |
|||
public AjaxResult getInfo(@PathVariable("textbookId") String textbookId) |
|||
{ |
|||
return success(mmxtMeiyuStudentOperateStatService.selectMmxtMeiyuStudentOperateStatByTextbookId(textbookId)); |
|||
} |
|||
|
|||
/** |
|||
* 新增美美学堂智慧美育学生操作统计 |
|||
*/ |
|||
@PreAuthorize("@ss.hasPermi('business:mmxtMeiyuStudentOperateStat:add')") |
|||
@Log(title = "美美学堂智慧美育学生操作统计", businessType = BusinessType.INSERT) |
|||
@PostMapping |
|||
public AjaxResult add(@RequestBody MmxtMeiyuStudentOperateStat mmxtMeiyuStudentOperateStat) |
|||
{ |
|||
return toAjax(mmxtMeiyuStudentOperateStatService.insertMmxtMeiyuStudentOperateStat(mmxtMeiyuStudentOperateStat)); |
|||
} |
|||
|
|||
/** |
|||
* 修改美美学堂智慧美育学生操作统计 |
|||
*/ |
|||
@PreAuthorize("@ss.hasPermi('business:mmxtMeiyuStudentOperateStat:edit')") |
|||
@Log(title = "美美学堂智慧美育学生操作统计", businessType = BusinessType.UPDATE) |
|||
@PutMapping |
|||
public AjaxResult edit(@RequestBody MmxtMeiyuStudentOperateStat mmxtMeiyuStudentOperateStat) |
|||
{ |
|||
return toAjax(mmxtMeiyuStudentOperateStatService.updateMmxtMeiyuStudentOperateStat(mmxtMeiyuStudentOperateStat)); |
|||
} |
|||
|
|||
/** |
|||
* 删除美美学堂智慧美育学生操作统计 |
|||
*/ |
|||
@PreAuthorize("@ss.hasPermi('business:mmxtMeiyuStudentOperateStat:remove')") |
|||
@Log(title = "美美学堂智慧美育学生操作统计", businessType = BusinessType.DELETE) |
|||
@DeleteMapping("/{textbookIds}") |
|||
public AjaxResult remove(@PathVariable String[] textbookIds) |
|||
{ |
|||
return toAjax(mmxtMeiyuStudentOperateStatService.deleteMmxtMeiyuStudentOperateStatByTextbookIds(textbookIds)); |
|||
} |
|||
} |
|||
@ -0,0 +1,105 @@ |
|||
package com.mmxt.web.controller.mmxt; |
|||
|
|||
import java.util.List; |
|||
import javax.servlet.http.HttpServletResponse; |
|||
import org.springframework.security.access.prepost.PreAuthorize; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.web.bind.annotation.GetMapping; |
|||
import org.springframework.web.bind.annotation.PostMapping; |
|||
import org.springframework.web.bind.annotation.PutMapping; |
|||
import org.springframework.web.bind.annotation.DeleteMapping; |
|||
import org.springframework.web.bind.annotation.PathVariable; |
|||
import org.springframework.web.bind.annotation.RequestBody; |
|||
import org.springframework.web.bind.annotation.RequestMapping; |
|||
import org.springframework.web.bind.annotation.RestController; |
|||
import com.mmxt.common.annotation.Log; |
|||
import com.mmxt.common.core.controller.BaseController; |
|||
import com.mmxt.common.core.domain.AjaxResult; |
|||
import com.mmxt.common.enums.BusinessType; |
|||
import com.mmxt.business.domain.MmxtMeiyuStudentTextbookRelation; |
|||
import com.mmxt.business.service.IMmxtMeiyuStudentTextbookRelationService; |
|||
import com.mmxt.common.utils.poi.ExcelUtil; |
|||
import com.mmxt.common.core.page.TableDataInfo; |
|||
|
|||
/** |
|||
* 美美系统智慧美育学生教材状态关系Controller |
|||
* |
|||
* @author mmxt |
|||
* @date 2026-01-12 |
|||
*/ |
|||
@RestController |
|||
@RequestMapping("/business/mmxtMeiyuStudentTextbookRel") |
|||
public class MmxtMeiyuStudentTextbookRelationController extends BaseController |
|||
{ |
|||
@Autowired |
|||
private IMmxtMeiyuStudentTextbookRelationService mmxtMeiyuStudentTextbookRelationService; |
|||
|
|||
/** |
|||
* 查询美美系统智慧美育学生教材状态关系列表 |
|||
*/ |
|||
@PreAuthorize("@ss.hasPermi('business:mmxtMeiyuStudentTextbookRel:list')") |
|||
@GetMapping("/list") |
|||
public TableDataInfo list(MmxtMeiyuStudentTextbookRelation mmxtMeiyuStudentTextbookRelation) |
|||
{ |
|||
startPage(); |
|||
List<MmxtMeiyuStudentTextbookRelation> list = mmxtMeiyuStudentTextbookRelationService.selectMmxtMeiyuStudentTextbookRelationList(mmxtMeiyuStudentTextbookRelation); |
|||
return getDataTable(list); |
|||
} |
|||
|
|||
/** |
|||
* 导出美美系统智慧美育学生教材状态关系列表 |
|||
*/ |
|||
@PreAuthorize("@ss.hasPermi('business:mmxtMeiyuStudentTextbookRel:export')") |
|||
@Log(title = "美美系统智慧美育学生教材状态关系", businessType = BusinessType.EXPORT) |
|||
@PostMapping("/export") |
|||
public void export(HttpServletResponse response, MmxtMeiyuStudentTextbookRelation mmxtMeiyuStudentTextbookRelation) |
|||
{ |
|||
List<MmxtMeiyuStudentTextbookRelation> list = mmxtMeiyuStudentTextbookRelationService.selectMmxtMeiyuStudentTextbookRelationList(mmxtMeiyuStudentTextbookRelation); |
|||
ExcelUtil<MmxtMeiyuStudentTextbookRelation> util = new ExcelUtil<MmxtMeiyuStudentTextbookRelation>(MmxtMeiyuStudentTextbookRelation.class); |
|||
util.exportExcel(response, list, "美美系统智慧美育学生教材状态关系数据"); |
|||
} |
|||
|
|||
/** |
|||
* 获取美美系统智慧美育学生教材状态关系详细信息 |
|||
*/ |
|||
@PreAuthorize("@ss.hasPermi('business:mmxtMeiyuStudentTextbookRel:query')") |
|||
@GetMapping(value = "/{studentId}") |
|||
public AjaxResult getInfo(@PathVariable("studentId") Long studentId) |
|||
{ |
|||
return success(mmxtMeiyuStudentTextbookRelationService.selectMmxtMeiyuStudentTextbookRelationByStudentId(studentId)); |
|||
} |
|||
|
|||
/** |
|||
* 新增美美系统智慧美育学生教材状态关系 |
|||
*/ |
|||
@PreAuthorize("@ss.hasPermi('business:mmxtMeiyuStudentTextbookRel:add')") |
|||
@Log(title = "美美系统智慧美育学生教材状态关系", businessType = BusinessType.INSERT) |
|||
@PostMapping |
|||
public AjaxResult add(@RequestBody MmxtMeiyuStudentTextbookRelation mmxtMeiyuStudentTextbookRelation) |
|||
{ |
|||
return toAjax(mmxtMeiyuStudentTextbookRelationService.insertMmxtMeiyuStudentTextbookRelation(mmxtMeiyuStudentTextbookRelation)); |
|||
} |
|||
|
|||
/** |
|||
* 修改美美系统智慧美育学生教材状态关系 |
|||
*/ |
|||
@PreAuthorize("@ss.hasPermi('business:mmxtMeiyuStudentTextbookRel:edit')") |
|||
@Log(title = "美美系统智慧美育学生教材状态关系", businessType = BusinessType.UPDATE) |
|||
@PutMapping |
|||
public AjaxResult edit(@RequestBody MmxtMeiyuStudentTextbookRelation mmxtMeiyuStudentTextbookRelation) |
|||
{ |
|||
return toAjax(mmxtMeiyuStudentTextbookRelationService.updateMmxtMeiyuStudentTextbookRelation(mmxtMeiyuStudentTextbookRelation)); |
|||
} |
|||
|
|||
/** |
|||
* 删除美美系统智慧美育学生教材状态关系 |
|||
*/ |
|||
@PreAuthorize("@ss.hasPermi('business:mmxtMeiyuStudentTextbookRel:remove')") |
|||
@Log(title = "美美系统智慧美育学生教材状态关系", businessType = BusinessType.DELETE) |
|||
@DeleteMapping("/{studentIds}") |
|||
public AjaxResult remove(@PathVariable Long[] studentIds) |
|||
{ |
|||
return toAjax(mmxtMeiyuStudentTextbookRelationService.deleteMmxtMeiyuStudentTextbookRelationByStudentIds(studentIds)); |
|||
} |
|||
} |
|||
|
|||
@ -0,0 +1,127 @@ |
|||
package com.mmxt.business.domain; |
|||
|
|||
import org.apache.commons.lang3.builder.ToStringBuilder; |
|||
import org.apache.commons.lang3.builder.ToStringStyle; |
|||
import com.mmxt.common.annotation.Excel; |
|||
import com.mmxt.common.core.domain.BaseEntity; |
|||
|
|||
/** |
|||
* 美美学堂智慧美育学生操作统计对象 mmxt_meiyu_student_operate_stat |
|||
* |
|||
* @author mmxt |
|||
* @date 2026-01-12 |
|||
*/ |
|||
public class MmxtMeiyuStudentOperateStat extends BaseEntity |
|||
{ |
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** 教材id */ |
|||
private String textbookId; |
|||
|
|||
/** 点赞数 */ |
|||
@Excel(name = "点赞数") |
|||
private Long likeCount; |
|||
|
|||
/** 收藏数 */ |
|||
@Excel(name = "收藏数") |
|||
private Long collectCount; |
|||
|
|||
/** 转发数 */ |
|||
@Excel(name = "转发数") |
|||
private Long shareCount; |
|||
|
|||
/** |
|||
* 学习数 |
|||
*/ |
|||
@Excel(name = "学习数") |
|||
private Long studyCount; |
|||
|
|||
/** 评分人数 */ |
|||
@Excel(name = "评分人数") |
|||
private Long scoreCount; |
|||
|
|||
/** 评分总分 */ |
|||
@Excel(name = "评分总分") |
|||
private Long scoreTotal; |
|||
|
|||
public Long getStudyCount() { |
|||
return studyCount; |
|||
} |
|||
|
|||
public void setStudyCount(Long studyCount) { |
|||
this.studyCount = studyCount; |
|||
} |
|||
|
|||
public void setTextbookId(String textbookId) |
|||
{ |
|||
this.textbookId = textbookId; |
|||
} |
|||
|
|||
public String getTextbookId() |
|||
{ |
|||
return textbookId; |
|||
} |
|||
|
|||
public void setLikeCount(Long likeCount) |
|||
{ |
|||
this.likeCount = likeCount; |
|||
} |
|||
|
|||
public Long getLikeCount() |
|||
{ |
|||
return likeCount; |
|||
} |
|||
|
|||
public void setCollectCount(Long collectCount) |
|||
{ |
|||
this.collectCount = collectCount; |
|||
} |
|||
|
|||
public Long getCollectCount() |
|||
{ |
|||
return collectCount; |
|||
} |
|||
|
|||
public void setShareCount(Long shareCount) |
|||
{ |
|||
this.shareCount = shareCount; |
|||
} |
|||
|
|||
public Long getShareCount() |
|||
{ |
|||
return shareCount; |
|||
} |
|||
|
|||
public void setScoreCount(Long scoreCount) |
|||
{ |
|||
this.scoreCount = scoreCount; |
|||
} |
|||
|
|||
public Long getScoreCount() |
|||
{ |
|||
return scoreCount; |
|||
} |
|||
|
|||
public void setScoreTotal(Long scoreTotal) |
|||
{ |
|||
this.scoreTotal = scoreTotal; |
|||
} |
|||
|
|||
public Long getScoreTotal() |
|||
{ |
|||
return scoreTotal; |
|||
} |
|||
|
|||
@Override |
|||
public String toString() { |
|||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) |
|||
.append("textbookId", getTextbookId()) |
|||
.append("likeCount", getLikeCount()) |
|||
.append("collectCount", getCollectCount()) |
|||
.append("shareCount", getShareCount()) |
|||
.append("scoreCount", getScoreCount()) |
|||
.append("scoreTotal", getScoreTotal()) |
|||
.append("updateTime", getUpdateTime()) |
|||
.toString(); |
|||
} |
|||
} |
|||
@ -0,0 +1,98 @@ |
|||
package com.mmxt.business.domain; |
|||
|
|||
import org.apache.commons.lang3.builder.ToStringBuilder; |
|||
import org.apache.commons.lang3.builder.ToStringStyle; |
|||
import com.mmxt.common.annotation.Excel; |
|||
import com.mmxt.common.core.domain.BaseEntity; |
|||
|
|||
/** |
|||
* 美美系统智慧美育学生教材状态关系对象 mmxt_meiyu_student_textbook_relation |
|||
* |
|||
* @author mmxt |
|||
* @date 2026-01-12 |
|||
*/ |
|||
public class MmxtMeiyuStudentTextbookRelation extends BaseEntity |
|||
{ |
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** 学生id */ |
|||
private Long studentId; |
|||
|
|||
/** 教材id */ |
|||
@Excel(name = "教材id") |
|||
private String textbookId; |
|||
|
|||
/** 是否点赞 (0否 1是) */ |
|||
@Excel(name = "是否点赞 (0否 1是)") |
|||
private String isLike; |
|||
|
|||
/** 是否收藏 (0否 1是) */ |
|||
@Excel(name = "是否收藏 (0否 1是)") |
|||
private String isCollect; |
|||
|
|||
/** 最后一次评分值 */ |
|||
@Excel(name = "最后一次评分值") |
|||
private String lastScore; |
|||
|
|||
public void setStudentId(Long studentId) |
|||
{ |
|||
this.studentId = studentId; |
|||
} |
|||
|
|||
public Long getStudentId() |
|||
{ |
|||
return studentId; |
|||
} |
|||
|
|||
public void setTextbookId(String textbookId) |
|||
{ |
|||
this.textbookId = textbookId; |
|||
} |
|||
|
|||
public String getTextbookId() |
|||
{ |
|||
return textbookId; |
|||
} |
|||
|
|||
public void setIsLike(String isLike) |
|||
{ |
|||
this.isLike = isLike; |
|||
} |
|||
|
|||
public String getIsLike() |
|||
{ |
|||
return isLike; |
|||
} |
|||
|
|||
public void setIsCollect(String isCollect) |
|||
{ |
|||
this.isCollect = isCollect; |
|||
} |
|||
|
|||
public String getIsCollect() |
|||
{ |
|||
return isCollect; |
|||
} |
|||
|
|||
public void setLastScore(String lastScore) |
|||
{ |
|||
this.lastScore = lastScore; |
|||
} |
|||
|
|||
public String getLastScore() |
|||
{ |
|||
return lastScore; |
|||
} |
|||
|
|||
@Override |
|||
public String toString() { |
|||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) |
|||
.append("studentId", getStudentId()) |
|||
.append("textbookId", getTextbookId()) |
|||
.append("isLike", getIsLike()) |
|||
.append("isCollect", getIsCollect()) |
|||
.append("lastScore", getLastScore()) |
|||
.append("updateTime", getUpdateTime()) |
|||
.toString(); |
|||
} |
|||
} |
|||
@ -0,0 +1,61 @@ |
|||
package com.mmxt.business.mapper; |
|||
|
|||
import java.util.List; |
|||
import com.mmxt.business.domain.MmxtMeiyuStudentOperateStat; |
|||
|
|||
/** |
|||
* 美美学堂智慧美育学生操作统计Mapper接口 |
|||
* |
|||
* @author mmxt |
|||
* @date 2026-01-12 |
|||
*/ |
|||
public interface MmxtMeiyuStudentOperateStatMapper |
|||
{ |
|||
/** |
|||
* 查询美美学堂智慧美育学生操作统计 |
|||
* |
|||
* @param textbookId 美美学堂智慧美育学生操作统计主键 |
|||
* @return 美美学堂智慧美育学生操作统计 |
|||
*/ |
|||
public MmxtMeiyuStudentOperateStat selectMmxtMeiyuStudentOperateStatByTextbookId(String textbookId); |
|||
|
|||
/** |
|||
* 查询美美学堂智慧美育学生操作统计列表 |
|||
* |
|||
* @param mmxtMeiyuStudentOperateStat 美美学堂智慧美育学生操作统计 |
|||
* @return 美美学堂智慧美育学生操作统计集合 |
|||
*/ |
|||
public List<MmxtMeiyuStudentOperateStat> selectMmxtMeiyuStudentOperateStatList(MmxtMeiyuStudentOperateStat mmxtMeiyuStudentOperateStat); |
|||
|
|||
/** |
|||
* 新增美美学堂智慧美育学生操作统计 |
|||
* |
|||
* @param mmxtMeiyuStudentOperateStat 美美学堂智慧美育学生操作统计 |
|||
* @return 结果 |
|||
*/ |
|||
public int insertMmxtMeiyuStudentOperateStat(MmxtMeiyuStudentOperateStat mmxtMeiyuStudentOperateStat); |
|||
|
|||
/** |
|||
* 修改美美学堂智慧美育学生操作统计 |
|||
* |
|||
* @param mmxtMeiyuStudentOperateStat 美美学堂智慧美育学生操作统计 |
|||
* @return 结果 |
|||
*/ |
|||
public int updateMmxtMeiyuStudentOperateStat(MmxtMeiyuStudentOperateStat mmxtMeiyuStudentOperateStat); |
|||
|
|||
/** |
|||
* 删除美美学堂智慧美育学生操作统计 |
|||
* |
|||
* @param textbookId 美美学堂智慧美育学生操作统计主键 |
|||
* @return 结果 |
|||
*/ |
|||
public int deleteMmxtMeiyuStudentOperateStatByTextbookId(String textbookId); |
|||
|
|||
/** |
|||
* 批量删除美美学堂智慧美育学生操作统计 |
|||
* |
|||
* @param textbookIds 需要删除的数据主键集合 |
|||
* @return 结果 |
|||
*/ |
|||
public int deleteMmxtMeiyuStudentOperateStatByTextbookIds(String[] textbookIds); |
|||
} |
|||
@ -0,0 +1,61 @@ |
|||
package com.mmxt.business.mapper; |
|||
|
|||
import java.util.List; |
|||
import com.mmxt.business.domain.MmxtMeiyuStudentTextbookRelation; |
|||
|
|||
/** |
|||
* 美美系统智慧美育学生教材状态关系Mapper接口 |
|||
* |
|||
* @author mmxt |
|||
* @date 2026-01-12 |
|||
*/ |
|||
public interface MmxtMeiyuStudentTextbookRelationMapper |
|||
{ |
|||
/** |
|||
* 查询美美系统智慧美育学生教材状态关系 |
|||
* |
|||
* @param studentId 美美系统智慧美育学生教材状态关系主键 |
|||
* @return 美美系统智慧美育学生教材状态关系 |
|||
*/ |
|||
public MmxtMeiyuStudentTextbookRelation selectMmxtMeiyuStudentTextbookRelationByStudentId(Long studentId); |
|||
|
|||
/** |
|||
* 查询美美系统智慧美育学生教材状态关系列表 |
|||
* |
|||
* @param mmxtMeiyuStudentTextbookRelation 美美系统智慧美育学生教材状态关系 |
|||
* @return 美美系统智慧美育学生教材状态关系集合 |
|||
*/ |
|||
public List<MmxtMeiyuStudentTextbookRelation> selectMmxtMeiyuStudentTextbookRelationList(MmxtMeiyuStudentTextbookRelation mmxtMeiyuStudentTextbookRelation); |
|||
|
|||
/** |
|||
* 新增美美系统智慧美育学生教材状态关系 |
|||
* |
|||
* @param mmxtMeiyuStudentTextbookRelation 美美系统智慧美育学生教材状态关系 |
|||
* @return 结果 |
|||
*/ |
|||
public int insertMmxtMeiyuStudentTextbookRelation(MmxtMeiyuStudentTextbookRelation mmxtMeiyuStudentTextbookRelation); |
|||
|
|||
/** |
|||
* 修改美美系统智慧美育学生教材状态关系 |
|||
* |
|||
* @param mmxtMeiyuStudentTextbookRelation 美美系统智慧美育学生教材状态关系 |
|||
* @return 结果 |
|||
*/ |
|||
public int updateMmxtMeiyuStudentTextbookRelation(MmxtMeiyuStudentTextbookRelation mmxtMeiyuStudentTextbookRelation); |
|||
|
|||
/** |
|||
* 删除美美系统智慧美育学生教材状态关系 |
|||
* |
|||
* @param studentId 美美系统智慧美育学生教材状态关系主键 |
|||
* @return 结果 |
|||
*/ |
|||
public int deleteMmxtMeiyuStudentTextbookRelationByStudentId(Long studentId); |
|||
|
|||
/** |
|||
* 批量删除美美系统智慧美育学生教材状态关系 |
|||
* |
|||
* @param studentIds 需要删除的数据主键集合 |
|||
* @return 结果 |
|||
*/ |
|||
public int deleteMmxtMeiyuStudentTextbookRelationByStudentIds(Long[] studentIds); |
|||
} |
|||
@ -0,0 +1,61 @@ |
|||
package com.mmxt.business.service; |
|||
|
|||
import java.util.List; |
|||
import com.mmxt.business.domain.MmxtMeiyuStudentOperateStat; |
|||
|
|||
/** |
|||
* 美美学堂智慧美育学生操作统计Service接口 |
|||
* |
|||
* @author mmxt |
|||
* @date 2026-01-12 |
|||
*/ |
|||
public interface IMmxtMeiyuStudentOperateStatService |
|||
{ |
|||
/** |
|||
* 查询美美学堂智慧美育学生操作统计 |
|||
* |
|||
* @param textbookId 美美学堂智慧美育学生操作统计主键 |
|||
* @return 美美学堂智慧美育学生操作统计 |
|||
*/ |
|||
public MmxtMeiyuStudentOperateStat selectMmxtMeiyuStudentOperateStatByTextbookId(String textbookId); |
|||
|
|||
/** |
|||
* 查询美美学堂智慧美育学生操作统计列表 |
|||
* |
|||
* @param mmxtMeiyuStudentOperateStat 美美学堂智慧美育学生操作统计 |
|||
* @return 美美学堂智慧美育学生操作统计集合 |
|||
*/ |
|||
public List<MmxtMeiyuStudentOperateStat> selectMmxtMeiyuStudentOperateStatList(MmxtMeiyuStudentOperateStat mmxtMeiyuStudentOperateStat); |
|||
|
|||
/** |
|||
* 新增美美学堂智慧美育学生操作统计 |
|||
* |
|||
* @param mmxtMeiyuStudentOperateStat 美美学堂智慧美育学生操作统计 |
|||
* @return 结果 |
|||
*/ |
|||
public int insertMmxtMeiyuStudentOperateStat(MmxtMeiyuStudentOperateStat mmxtMeiyuStudentOperateStat); |
|||
|
|||
/** |
|||
* 修改美美学堂智慧美育学生操作统计 |
|||
* |
|||
* @param mmxtMeiyuStudentOperateStat 美美学堂智慧美育学生操作统计 |
|||
* @return 结果 |
|||
*/ |
|||
public int updateMmxtMeiyuStudentOperateStat(MmxtMeiyuStudentOperateStat mmxtMeiyuStudentOperateStat); |
|||
|
|||
/** |
|||
* 批量删除美美学堂智慧美育学生操作统计 |
|||
* |
|||
* @param textbookIds 需要删除的美美学堂智慧美育学生操作统计主键集合 |
|||
* @return 结果 |
|||
*/ |
|||
public int deleteMmxtMeiyuStudentOperateStatByTextbookIds(String[] textbookIds); |
|||
|
|||
/** |
|||
* 删除美美学堂智慧美育学生操作统计信息 |
|||
* |
|||
* @param textbookId 美美学堂智慧美育学生操作统计主键 |
|||
* @return 结果 |
|||
*/ |
|||
public int deleteMmxtMeiyuStudentOperateStatByTextbookId(String textbookId); |
|||
} |
|||
@ -0,0 +1,61 @@ |
|||
package com.mmxt.business.service; |
|||
|
|||
import java.util.List; |
|||
import com.mmxt.business.domain.MmxtMeiyuStudentTextbookRelation; |
|||
|
|||
/** |
|||
* 美美系统智慧美育学生教材状态关系Service接口 |
|||
* |
|||
* @author mmxt |
|||
* @date 2026-01-12 |
|||
*/ |
|||
public interface IMmxtMeiyuStudentTextbookRelationService |
|||
{ |
|||
/** |
|||
* 查询美美系统智慧美育学生教材状态关系 |
|||
* |
|||
* @param studentId 美美系统智慧美育学生教材状态关系主键 |
|||
* @return 美美系统智慧美育学生教材状态关系 |
|||
*/ |
|||
public MmxtMeiyuStudentTextbookRelation selectMmxtMeiyuStudentTextbookRelationByStudentId(Long studentId); |
|||
|
|||
/** |
|||
* 查询美美系统智慧美育学生教材状态关系列表 |
|||
* |
|||
* @param mmxtMeiyuStudentTextbookRelation 美美系统智慧美育学生教材状态关系 |
|||
* @return 美美系统智慧美育学生教材状态关系集合 |
|||
*/ |
|||
public List<MmxtMeiyuStudentTextbookRelation> selectMmxtMeiyuStudentTextbookRelationList(MmxtMeiyuStudentTextbookRelation mmxtMeiyuStudentTextbookRelation); |
|||
|
|||
/** |
|||
* 新增美美系统智慧美育学生教材状态关系 |
|||
* |
|||
* @param mmxtMeiyuStudentTextbookRelation 美美系统智慧美育学生教材状态关系 |
|||
* @return 结果 |
|||
*/ |
|||
public int insertMmxtMeiyuStudentTextbookRelation(MmxtMeiyuStudentTextbookRelation mmxtMeiyuStudentTextbookRelation); |
|||
|
|||
/** |
|||
* 修改美美系统智慧美育学生教材状态关系 |
|||
* |
|||
* @param mmxtMeiyuStudentTextbookRelation 美美系统智慧美育学生教材状态关系 |
|||
* @return 结果 |
|||
*/ |
|||
public int updateMmxtMeiyuStudentTextbookRelation(MmxtMeiyuStudentTextbookRelation mmxtMeiyuStudentTextbookRelation); |
|||
|
|||
/** |
|||
* 批量删除美美系统智慧美育学生教材状态关系 |
|||
* |
|||
* @param studentIds 需要删除的美美系统智慧美育学生教材状态关系主键集合 |
|||
* @return 结果 |
|||
*/ |
|||
public int deleteMmxtMeiyuStudentTextbookRelationByStudentIds(Long[] studentIds); |
|||
|
|||
/** |
|||
* 删除美美系统智慧美育学生教材状态关系信息 |
|||
* |
|||
* @param studentId 美美系统智慧美育学生教材状态关系主键 |
|||
* @return 结果 |
|||
*/ |
|||
public int deleteMmxtMeiyuStudentTextbookRelationByStudentId(Long studentId); |
|||
} |
|||
@ -0,0 +1,95 @@ |
|||
package com.mmxt.business.service.impl; |
|||
|
|||
import java.util.List; |
|||
import com.mmxt.common.utils.DateUtils; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.stereotype.Service; |
|||
import com.mmxt.business.mapper.MmxtMeiyuStudentOperateStatMapper; |
|||
import com.mmxt.business.domain.MmxtMeiyuStudentOperateStat; |
|||
import com.mmxt.business.service.IMmxtMeiyuStudentOperateStatService; |
|||
|
|||
/** |
|||
* 美美学堂智慧美育学生操作统计Service业务层处理 |
|||
* |
|||
* @author mmxt |
|||
* @date 2026-01-12 |
|||
*/ |
|||
@Service |
|||
public class MmxtMeiyuStudentOperateStatServiceImpl implements IMmxtMeiyuStudentOperateStatService |
|||
{ |
|||
@Autowired |
|||
private MmxtMeiyuStudentOperateStatMapper mmxtMeiyuStudentOperateStatMapper; |
|||
|
|||
/** |
|||
* 查询美美学堂智慧美育学生操作统计 |
|||
* |
|||
* @param textbookId 美美学堂智慧美育学生操作统计主键 |
|||
* @return 美美学堂智慧美育学生操作统计 |
|||
*/ |
|||
@Override |
|||
public MmxtMeiyuStudentOperateStat selectMmxtMeiyuStudentOperateStatByTextbookId(String textbookId) |
|||
{ |
|||
return mmxtMeiyuStudentOperateStatMapper.selectMmxtMeiyuStudentOperateStatByTextbookId(textbookId); |
|||
} |
|||
|
|||
/** |
|||
* 查询美美学堂智慧美育学生操作统计列表 |
|||
* |
|||
* @param mmxtMeiyuStudentOperateStat 美美学堂智慧美育学生操作统计 |
|||
* @return 美美学堂智慧美育学生操作统计 |
|||
*/ |
|||
@Override |
|||
public List<MmxtMeiyuStudentOperateStat> selectMmxtMeiyuStudentOperateStatList(MmxtMeiyuStudentOperateStat mmxtMeiyuStudentOperateStat) |
|||
{ |
|||
return mmxtMeiyuStudentOperateStatMapper.selectMmxtMeiyuStudentOperateStatList(mmxtMeiyuStudentOperateStat); |
|||
} |
|||
|
|||
/** |
|||
* 新增美美学堂智慧美育学生操作统计 |
|||
* |
|||
* @param mmxtMeiyuStudentOperateStat 美美学堂智慧美育学生操作统计 |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int insertMmxtMeiyuStudentOperateStat(MmxtMeiyuStudentOperateStat mmxtMeiyuStudentOperateStat) |
|||
{ |
|||
return mmxtMeiyuStudentOperateStatMapper.insertMmxtMeiyuStudentOperateStat(mmxtMeiyuStudentOperateStat); |
|||
} |
|||
|
|||
/** |
|||
* 修改美美学堂智慧美育学生操作统计 |
|||
* |
|||
* @param mmxtMeiyuStudentOperateStat 美美学堂智慧美育学生操作统计 |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int updateMmxtMeiyuStudentOperateStat(MmxtMeiyuStudentOperateStat mmxtMeiyuStudentOperateStat) |
|||
{ |
|||
mmxtMeiyuStudentOperateStat.setUpdateTime(DateUtils.getNowDate()); |
|||
return mmxtMeiyuStudentOperateStatMapper.updateMmxtMeiyuStudentOperateStat(mmxtMeiyuStudentOperateStat); |
|||
} |
|||
|
|||
/** |
|||
* 批量删除美美学堂智慧美育学生操作统计 |
|||
* |
|||
* @param textbookIds 需要删除的美美学堂智慧美育学生操作统计主键 |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int deleteMmxtMeiyuStudentOperateStatByTextbookIds(String[] textbookIds) |
|||
{ |
|||
return mmxtMeiyuStudentOperateStatMapper.deleteMmxtMeiyuStudentOperateStatByTextbookIds(textbookIds); |
|||
} |
|||
|
|||
/** |
|||
* 删除美美学堂智慧美育学生操作统计信息 |
|||
* |
|||
* @param textbookId 美美学堂智慧美育学生操作统计主键 |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int deleteMmxtMeiyuStudentOperateStatByTextbookId(String textbookId) |
|||
{ |
|||
return mmxtMeiyuStudentOperateStatMapper.deleteMmxtMeiyuStudentOperateStatByTextbookId(textbookId); |
|||
} |
|||
} |
|||
@ -0,0 +1,95 @@ |
|||
package com.mmxt.business.service.impl; |
|||
|
|||
import java.util.List; |
|||
import com.mmxt.common.utils.DateUtils; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.stereotype.Service; |
|||
import com.mmxt.business.mapper.MmxtMeiyuStudentTextbookRelationMapper; |
|||
import com.mmxt.business.domain.MmxtMeiyuStudentTextbookRelation; |
|||
import com.mmxt.business.service.IMmxtMeiyuStudentTextbookRelationService; |
|||
|
|||
/** |
|||
* 美美系统智慧美育学生教材状态关系Service业务层处理 |
|||
* |
|||
* @author mmxt |
|||
* @date 2026-01-12 |
|||
*/ |
|||
@Service |
|||
public class MmxtMeiyuStudentTextbookRelationServiceImpl implements IMmxtMeiyuStudentTextbookRelationService |
|||
{ |
|||
@Autowired |
|||
private MmxtMeiyuStudentTextbookRelationMapper mmxtMeiyuStudentTextbookRelationMapper; |
|||
|
|||
/** |
|||
* 查询美美系统智慧美育学生教材状态关系 |
|||
* |
|||
* @param studentId 美美系统智慧美育学生教材状态关系主键 |
|||
* @return 美美系统智慧美育学生教材状态关系 |
|||
*/ |
|||
@Override |
|||
public MmxtMeiyuStudentTextbookRelation selectMmxtMeiyuStudentTextbookRelationByStudentId(Long studentId) |
|||
{ |
|||
return mmxtMeiyuStudentTextbookRelationMapper.selectMmxtMeiyuStudentTextbookRelationByStudentId(studentId); |
|||
} |
|||
|
|||
/** |
|||
* 查询美美系统智慧美育学生教材状态关系列表 |
|||
* |
|||
* @param mmxtMeiyuStudentTextbookRelation 美美系统智慧美育学生教材状态关系 |
|||
* @return 美美系统智慧美育学生教材状态关系 |
|||
*/ |
|||
@Override |
|||
public List<MmxtMeiyuStudentTextbookRelation> selectMmxtMeiyuStudentTextbookRelationList(MmxtMeiyuStudentTextbookRelation mmxtMeiyuStudentTextbookRelation) |
|||
{ |
|||
return mmxtMeiyuStudentTextbookRelationMapper.selectMmxtMeiyuStudentTextbookRelationList(mmxtMeiyuStudentTextbookRelation); |
|||
} |
|||
|
|||
/** |
|||
* 新增美美系统智慧美育学生教材状态关系 |
|||
* |
|||
* @param mmxtMeiyuStudentTextbookRelation 美美系统智慧美育学生教材状态关系 |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int insertMmxtMeiyuStudentTextbookRelation(MmxtMeiyuStudentTextbookRelation mmxtMeiyuStudentTextbookRelation) |
|||
{ |
|||
return mmxtMeiyuStudentTextbookRelationMapper.insertMmxtMeiyuStudentTextbookRelation(mmxtMeiyuStudentTextbookRelation); |
|||
} |
|||
|
|||
/** |
|||
* 修改美美系统智慧美育学生教材状态关系 |
|||
* |
|||
* @param mmxtMeiyuStudentTextbookRelation 美美系统智慧美育学生教材状态关系 |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int updateMmxtMeiyuStudentTextbookRelation(MmxtMeiyuStudentTextbookRelation mmxtMeiyuStudentTextbookRelation) |
|||
{ |
|||
mmxtMeiyuStudentTextbookRelation.setUpdateTime(DateUtils.getNowDate()); |
|||
return mmxtMeiyuStudentTextbookRelationMapper.updateMmxtMeiyuStudentTextbookRelation(mmxtMeiyuStudentTextbookRelation); |
|||
} |
|||
|
|||
/** |
|||
* 批量删除美美系统智慧美育学生教材状态关系 |
|||
* |
|||
* @param studentIds 需要删除的美美系统智慧美育学生教材状态关系主键 |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int deleteMmxtMeiyuStudentTextbookRelationByStudentIds(Long[] studentIds) |
|||
{ |
|||
return mmxtMeiyuStudentTextbookRelationMapper.deleteMmxtMeiyuStudentTextbookRelationByStudentIds(studentIds); |
|||
} |
|||
|
|||
/** |
|||
* 删除美美系统智慧美育学生教材状态关系信息 |
|||
* |
|||
* @param studentId 美美系统智慧美育学生教材状态关系主键 |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int deleteMmxtMeiyuStudentTextbookRelationByStudentId(Long studentId) |
|||
{ |
|||
return mmxtMeiyuStudentTextbookRelationMapper.deleteMmxtMeiyuStudentTextbookRelationByStudentId(studentId); |
|||
} |
|||
} |
|||
@ -0,0 +1,86 @@ |
|||
<?xml version="1.0" encoding="UTF-8" ?> |
|||
<!DOCTYPE mapper |
|||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|||
<mapper namespace="com.mmxt.business.mapper.MmxtMeiyuStudentOperateStatMapper"> |
|||
|
|||
<resultMap type="com.mmxt.business.domain.MmxtMeiyuStudentOperateStat" id="MmxtMeiyuStudentOperateStatResult"> |
|||
<result property="textbookId" column="textbook_id" /> |
|||
<result property="likeCount" column="like_count" /> |
|||
<result property="collectCount" column="collect_count" /> |
|||
<result property="shareCount" column="share_count" /> |
|||
<result property="scoreCount" column="score_count" /> |
|||
<result property="scoreTotal" column="score_total" /> |
|||
<result property="updateTime" column="update_time" /> |
|||
<result property="studyCount" column="study_count" /> |
|||
</resultMap> |
|||
|
|||
<sql id="selectMmxtMeiyuStudentOperateStatVo"> |
|||
select textbook_id, like_count, collect_count, share_count, score_count,study_count, score_total, update_time from mmxt_meiyu_student_operate_stat |
|||
</sql> |
|||
|
|||
<select id="selectMmxtMeiyuStudentOperateStatList" parameterType="com.mmxt.business.domain.MmxtMeiyuStudentOperateStat" resultMap="MmxtMeiyuStudentOperateStatResult"> |
|||
<include refid="selectMmxtMeiyuStudentOperateStatVo"/> |
|||
<where> |
|||
<if test="likeCount != null "> and like_count = #{likeCount}</if> |
|||
<if test="collectCount != null "> and collect_count = #{collectCount}</if> |
|||
<if test="shareCount != null "> and share_count = #{shareCount}</if> |
|||
<if test="scoreCount != null "> and score_count = #{scoreCount}</if> |
|||
<if test="scoreTotal != null "> and score_total = #{scoreTotal}</if> |
|||
</where> |
|||
</select> |
|||
|
|||
<select id="selectMmxtMeiyuStudentOperateStatByTextbookId" parameterType="String" resultMap="MmxtMeiyuStudentOperateStatResult"> |
|||
<include refid="selectMmxtMeiyuStudentOperateStatVo"/> |
|||
where textbook_id = #{textbookId} |
|||
</select> |
|||
|
|||
<insert id="insertMmxtMeiyuStudentOperateStat" parameterType="com.mmxt.business.domain.MmxtMeiyuStudentOperateStat"> |
|||
insert into mmxt_meiyu_student_operate_stat |
|||
<trim prefix="(" suffix=")" suffixOverrides=","> |
|||
<if test="textbookId != null">textbook_id,</if> |
|||
<if test="likeCount != null">like_count,</if> |
|||
<if test="collectCount != null">collect_count,</if> |
|||
<if test="shareCount != null">share_count,</if> |
|||
<if test="scoreCount != null">score_count,</if> |
|||
<if test="scoreTotal != null">score_total,</if> |
|||
<if test="updateTime != null">update_time,</if> |
|||
<if test="studyCount != null">study_count,</if> |
|||
</trim> |
|||
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|||
<if test="textbookId != null">#{textbookId},</if> |
|||
<if test="likeCount != null">#{likeCount},</if> |
|||
<if test="collectCount != null">#{collectCount},</if> |
|||
<if test="shareCount != null">#{shareCount},</if> |
|||
<if test="scoreCount != null">#{scoreCount},</if> |
|||
<if test="scoreTotal != null">#{scoreTotal},</if> |
|||
<if test="updateTime != null">#{updateTime},</if> |
|||
<if test="studyCount != null">#{studyCount},</if> |
|||
</trim> |
|||
</insert> |
|||
|
|||
<update id="updateMmxtMeiyuStudentOperateStat" parameterType="com.mmxt.business.domain.MmxtMeiyuStudentOperateStat"> |
|||
update mmxt_meiyu_student_operate_stat |
|||
<trim prefix="SET" suffixOverrides=","> |
|||
<if test="likeCount != null">like_count = #{likeCount},</if> |
|||
<if test="collectCount != null">collect_count = #{collectCount},</if> |
|||
<if test="shareCount != null">share_count = #{shareCount},</if> |
|||
<if test="scoreCount != null">score_count = #{scoreCount},</if> |
|||
<if test="scoreTotal != null">score_total = #{scoreTotal},</if> |
|||
<if test="updateTime != null">update_time = #{updateTime},</if> |
|||
<if test="studyCount != null">study_count = #{studyCount},</if> |
|||
</trim> |
|||
where textbook_id = #{textbookId} |
|||
</update> |
|||
|
|||
<delete id="deleteMmxtMeiyuStudentOperateStatByTextbookId" parameterType="String"> |
|||
delete from mmxt_meiyu_student_operate_stat where textbook_id = #{textbookId} |
|||
</delete> |
|||
|
|||
<delete id="deleteMmxtMeiyuStudentOperateStatByTextbookIds" parameterType="String"> |
|||
delete from mmxt_meiyu_student_operate_stat where textbook_id in |
|||
<foreach item="textbookId" collection="array" open="(" separator="," close=")"> |
|||
#{textbookId} |
|||
</foreach> |
|||
</delete> |
|||
</mapper> |
|||
@ -0,0 +1,77 @@ |
|||
<?xml version="1.0" encoding="UTF-8" ?> |
|||
<!DOCTYPE mapper |
|||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|||
<mapper namespace="com.mmxt.business.mapper.MmxtMeiyuStudentTextbookRelationMapper"> |
|||
|
|||
<resultMap type="com.mmxt.business.domain.MmxtMeiyuStudentTextbookRelation" id="MmxtMeiyuStudentTextbookRelationResult"> |
|||
<result property="studentId" column="student_id" /> |
|||
<result property="textbookId" column="textbook_id" /> |
|||
<result property="isLike" column="is_like" /> |
|||
<result property="isCollect" column="is_collect" /> |
|||
<result property="lastScore" column="last_score" /> |
|||
<result property="updateTime" column="update_time" /> |
|||
</resultMap> |
|||
|
|||
<sql id="selectMmxtMeiyuStudentTextbookRelationVo"> |
|||
select student_id, textbook_id, is_like, is_collect, last_score, update_time from mmxt_meiyu_student_textbook_relation |
|||
</sql> |
|||
|
|||
<select id="selectMmxtMeiyuStudentTextbookRelationList" parameterType="com.mmxt.business.domain.MmxtMeiyuStudentTextbookRelation" resultMap="MmxtMeiyuStudentTextbookRelationResult"> |
|||
<include refid="selectMmxtMeiyuStudentTextbookRelationVo"/> |
|||
<where> |
|||
<if test="textbookId != null and textbookId != ''"> and textbook_id = #{textbookId}</if> |
|||
<if test="isLike != null and isLike != ''"> and is_like = #{isLike}</if> |
|||
<if test="isCollect != null and isCollect != ''"> and is_collect = #{isCollect}</if> |
|||
<if test="lastScore != null and lastScore != ''"> and last_score = #{lastScore}</if> |
|||
</where> |
|||
</select> |
|||
|
|||
<select id="selectMmxtMeiyuStudentTextbookRelationByStudentId" parameterType="Long" resultMap="MmxtMeiyuStudentTextbookRelationResult"> |
|||
<include refid="selectMmxtMeiyuStudentTextbookRelationVo"/> |
|||
where student_id = #{studentId} |
|||
</select> |
|||
|
|||
<insert id="insertMmxtMeiyuStudentTextbookRelation" parameterType="com.mmxt.business.domain.MmxtMeiyuStudentTextbookRelation"> |
|||
insert into mmxt_meiyu_student_textbook_relation |
|||
<trim prefix="(" suffix=")" suffixOverrides=","> |
|||
<if test="studentId != null">student_id,</if> |
|||
<if test="textbookId != null and textbookId != ''">textbook_id,</if> |
|||
<if test="isLike != null">is_like,</if> |
|||
<if test="isCollect != null">is_collect,</if> |
|||
<if test="lastScore != null">last_score,</if> |
|||
<if test="updateTime != null">update_time,</if> |
|||
</trim> |
|||
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|||
<if test="studentId != null">#{studentId},</if> |
|||
<if test="textbookId != null and textbookId != ''">#{textbookId},</if> |
|||
<if test="isLike != null">#{isLike},</if> |
|||
<if test="isCollect != null">#{isCollect},</if> |
|||
<if test="lastScore != null">#{lastScore},</if> |
|||
<if test="updateTime != null">#{updateTime},</if> |
|||
</trim> |
|||
</insert> |
|||
|
|||
<update id="updateMmxtMeiyuStudentTextbookRelation" parameterType="com.mmxt.business.domain.MmxtMeiyuStudentTextbookRelation"> |
|||
update mmxt_meiyu_student_textbook_relation |
|||
<trim prefix="SET" suffixOverrides=","> |
|||
<if test="textbookId != null and textbookId != ''">textbook_id = #{textbookId},</if> |
|||
<if test="isLike != null">is_like = #{isLike},</if> |
|||
<if test="isCollect != null">is_collect = #{isCollect},</if> |
|||
<if test="lastScore != null">last_score = #{lastScore},</if> |
|||
<if test="updateTime != null">update_time = #{updateTime},</if> |
|||
</trim> |
|||
where student_id = #{studentId} |
|||
</update> |
|||
|
|||
<delete id="deleteMmxtMeiyuStudentTextbookRelationByStudentId" parameterType="Long"> |
|||
delete from mmxt_meiyu_student_textbook_relation where student_id = #{studentId} |
|||
</delete> |
|||
|
|||
<delete id="deleteMmxtMeiyuStudentTextbookRelationByStudentIds" parameterType="String"> |
|||
delete from mmxt_meiyu_student_textbook_relation where student_id in |
|||
<foreach item="studentId" collection="array" open="(" separator="," close=")"> |
|||
#{studentId} |
|||
</foreach> |
|||
</delete> |
|||
</mapper> |
|||
Loading…
Reference in new issue