From 6dbb0ec61f494dd287c69d8d82d3e3f81b5effbd Mon Sep 17 00:00:00 2001 From: adan <3126044859@qq.com> Date: Mon, 9 Dec 2024 00:05:23 +0800 Subject: [PATCH] 8 --- .../system/controller/ContactController.java | 101 ++++++++++++++++++ .../system/controller/Item2Controller.java | 8 +- .../system/controller/MyUserController.java | 2 +- .../system/controller/StrokeController.java | 101 ++++++++++++++++++ .../java/com/ruoyi/system/domain/Contact.java | 65 +++++++++++ .../java/com/ruoyi/system/domain/Stroke.java | 51 +++++++++ .../ruoyi/system/mapper/ContactMapper.java | 61 +++++++++++ .../com/ruoyi/system/mapper/StrokeMapper.java | 61 +++++++++++ .../ruoyi/system/service/IContactService.java | 61 +++++++++++ .../ruoyi/system/service/IStrokeService.java | 61 +++++++++++ .../service/impl/ContactServiceImpl.java | 93 ++++++++++++++++ .../service/impl/StrokeServiceImpl.java | 93 ++++++++++++++++ .../resources/mapper/system/ContactMapper.xml | 61 +++++++++++ .../resources/mapper/system/StrokeMapper.xml | 56 ++++++++++ 14 files changed, 871 insertions(+), 4 deletions(-) create mode 100644 ruoyi-system/src/main/java/com/ruoyi/system/controller/ContactController.java create mode 100644 ruoyi-system/src/main/java/com/ruoyi/system/controller/StrokeController.java create mode 100644 ruoyi-system/src/main/java/com/ruoyi/system/domain/Contact.java create mode 100644 ruoyi-system/src/main/java/com/ruoyi/system/domain/Stroke.java create mode 100644 ruoyi-system/src/main/java/com/ruoyi/system/mapper/ContactMapper.java create mode 100644 ruoyi-system/src/main/java/com/ruoyi/system/mapper/StrokeMapper.java create mode 100644 ruoyi-system/src/main/java/com/ruoyi/system/service/IContactService.java create mode 100644 ruoyi-system/src/main/java/com/ruoyi/system/service/IStrokeService.java create mode 100644 ruoyi-system/src/main/java/com/ruoyi/system/service/impl/ContactServiceImpl.java create mode 100644 ruoyi-system/src/main/java/com/ruoyi/system/service/impl/StrokeServiceImpl.java create mode 100644 ruoyi-system/src/main/resources/mapper/system/ContactMapper.xml create mode 100644 ruoyi-system/src/main/resources/mapper/system/StrokeMapper.xml diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/controller/ContactController.java b/ruoyi-system/src/main/java/com/ruoyi/system/controller/ContactController.java new file mode 100644 index 0000000..b8b45d0 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/controller/ContactController.java @@ -0,0 +1,101 @@ +package com.ruoyi.system.controller; + +import java.util.List; +import javax.servlet.http.HttpServletResponse; + +import com.ruoyi.common.annotation.Anonymous; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.system.domain.Contact; +import com.ruoyi.system.service.IContactService; +import com.ruoyi.common.utils.poi.ExcelUtil; +import com.ruoyi.common.core.page.TableDataInfo; + +/** + * contactController + * + * @author ruoyi + * @date 2024-12-08 + */ +@CrossOrigin +@RestController +@RequestMapping("/system/contact") +public class ContactController extends BaseController +{ + @Autowired + private IContactService contactService; + + /** + * 查询contact列表 + */ + /*@PreAuthorize("@ss.hasPermi('system:contact:list')")*/ + @Anonymous + @GetMapping("/list") + public TableDataInfo list(Contact contact) + { + startPage(); + List list = contactService.selectContactList(contact); + return getDataTable(list); + } + + /** + * 导出contact列表 + */ + @PreAuthorize("@ss.hasPermi('system:contact:export')") + @Log(title = "contact", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, Contact contact) + { + List list = contactService.selectContactList(contact); + ExcelUtil util = new ExcelUtil(Contact.class); + util.exportExcel(response, list, "contact数据"); + } + + /** + * 获取contact详细信息 + */ + @PreAuthorize("@ss.hasPermi('system:contact:query')") + @GetMapping(value = "/{id}") + public AjaxResult getInfo(@PathVariable("id") Integer id) + { + return success(contactService.selectContactById(id)); + } + + /** + * 新增contact + */ + @PreAuthorize("@ss.hasPermi('system:contact:add')") + @Log(title = "contact", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody Contact contact) + { + return toAjax(contactService.insertContact(contact)); + } + + /** + * 修改contact + */ + @PreAuthorize("@ss.hasPermi('system:contact:edit')") + @Log(title = "contact", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody Contact contact) + { + return toAjax(contactService.updateContact(contact)); + } + + /** + * 删除contact + */ + @PreAuthorize("@ss.hasPermi('system:contact:remove')") + @Log(title = "contact", businessType = BusinessType.DELETE) + @DeleteMapping("/{ids}") + public AjaxResult remove(@PathVariable Integer[] ids) + { + return toAjax(contactService.deleteContactByIds(ids)); + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/controller/Item2Controller.java b/ruoyi-system/src/main/java/com/ruoyi/system/controller/Item2Controller.java index 20b36f2..c0805b8 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/system/controller/Item2Controller.java +++ b/ruoyi-system/src/main/java/com/ruoyi/system/controller/Item2Controller.java @@ -87,9 +87,10 @@ public class Item2Controller extends BaseController /** * 修改item2 */ - @PreAuthorize("@ss.hasPermi('system:item2:edit')") + /*@PreAuthorize("@ss.hasPermi('system:item2:edit')")*/ + @Anonymous @Log(title = "item2", businessType = BusinessType.UPDATE) - @PutMapping + @PutMapping("/update") public AjaxResult edit(@RequestBody Item2 item2) { return toAjax(item2Service.updateItem2(item2)); @@ -98,7 +99,8 @@ public class Item2Controller extends BaseController /** * 删除item2 */ - @PreAuthorize("@ss.hasPermi('system:item2:remove')") + /* @PreAuthorize("@ss.hasPermi('system:item2:remove')")*/ + @Anonymous @Log(title = "item2", businessType = BusinessType.DELETE) @DeleteMapping("/{ids}") public AjaxResult remove(@PathVariable Integer[] ids) diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/controller/MyUserController.java b/ruoyi-system/src/main/java/com/ruoyi/system/controller/MyUserController.java index b0990e6..949de30 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/system/controller/MyUserController.java +++ b/ruoyi-system/src/main/java/com/ruoyi/system/controller/MyUserController.java @@ -34,7 +34,7 @@ public class MyUserController extends BaseController * 查询MyUser列表 */ /*@PreAuthorize("@ss.hasPermi('system:MyUser:list')")*/ - @Anonymous +@Anonymous @GetMapping("/list") public TableDataInfo list(MyUser myUser) { diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/controller/StrokeController.java b/ruoyi-system/src/main/java/com/ruoyi/system/controller/StrokeController.java new file mode 100644 index 0000000..b14c251 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/controller/StrokeController.java @@ -0,0 +1,101 @@ +package com.ruoyi.system.controller; + +import java.util.List; +import javax.servlet.http.HttpServletResponse; + +import com.ruoyi.common.annotation.Anonymous; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.system.domain.Stroke; +import com.ruoyi.system.service.IStrokeService; +import com.ruoyi.common.utils.poi.ExcelUtil; +import com.ruoyi.common.core.page.TableDataInfo; + +/** + * strokeController + * + * @author ruoyi + * @date 2024-12-08 + */ +@CrossOrigin +@RestController +@RequestMapping("/system/stroke") +public class StrokeController extends BaseController +{ + @Autowired + private IStrokeService strokeService; + + /** + * 查询stroke列表 + */ + /*@PreAuthorize("@ss.hasPermi('system:stroke:list')")*/ + @Anonymous + @GetMapping("/list") + public TableDataInfo list(Stroke stroke) + { + startPage(); + List list = strokeService.selectStrokeList(stroke); + return getDataTable(list); + } + + /** + * 导出stroke列表 + */ + @PreAuthorize("@ss.hasPermi('system:stroke:export')") + @Log(title = "stroke", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, Stroke stroke) + { + List list = strokeService.selectStrokeList(stroke); + ExcelUtil util = new ExcelUtil(Stroke.class); + util.exportExcel(response, list, "stroke数据"); + } + + /** + * 获取stroke详细信息 + */ + @PreAuthorize("@ss.hasPermi('system:stroke:query')") + @GetMapping(value = "/{id}") + public AjaxResult getInfo(@PathVariable("id") Integer id) + { + return success(strokeService.selectStrokeById(id)); + } + + /** + * 新增stroke + */ + @PreAuthorize("@ss.hasPermi('system:stroke:add')") + @Log(title = "stroke", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody Stroke stroke) + { + return toAjax(strokeService.insertStroke(stroke)); + } + + /** + * 修改stroke + */ + @PreAuthorize("@ss.hasPermi('system:stroke:edit')") + @Log(title = "stroke", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody Stroke stroke) + { + return toAjax(strokeService.updateStroke(stroke)); + } + + /** + * 删除stroke + */ + @PreAuthorize("@ss.hasPermi('system:stroke:remove')") + @Log(title = "stroke", businessType = BusinessType.DELETE) + @DeleteMapping("/{ids}") + public AjaxResult remove(@PathVariable Integer[] ids) + { + return toAjax(strokeService.deleteStrokeByIds(ids)); + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/domain/Contact.java b/ruoyi-system/src/main/java/com/ruoyi/system/domain/Contact.java new file mode 100644 index 0000000..654f511 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/domain/Contact.java @@ -0,0 +1,65 @@ +package com.ruoyi.system.domain; + +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.ruoyi.common.annotation.Excel; +import com.ruoyi.common.core.domain.BaseEntity; + +/** + * contact对象 contact + * + * @author ruoyi + * @date 2024-12-08 + */ +public class Contact extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** id */ + private Integer id; + + /** text */ + @Excel(name = "text") + private String text; + + /** result */ + @Excel(name = "result") + private String result; + + public void setId(Integer id) + { + this.id = id; + } + + public Integer getId() + { + return id; + } + public void setText(String text) + { + this.text = text; + } + + public String getText() + { + return text; + } + public void setResult(String result) + { + this.result = result; + } + + public String getResult() + { + return result; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("id", getId()) + .append("text", getText()) + .append("result", getResult()) + .toString(); + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/domain/Stroke.java b/ruoyi-system/src/main/java/com/ruoyi/system/domain/Stroke.java new file mode 100644 index 0000000..5cde91c --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/domain/Stroke.java @@ -0,0 +1,51 @@ +package com.ruoyi.system.domain; + +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.ruoyi.common.annotation.Excel; +import com.ruoyi.common.core.domain.BaseEntity; + +/** + * stroke对象 stroke + * + * @author ruoyi + * @date 2024-12-08 + */ +public class Stroke extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** id */ + private Integer id; + + /** text */ + @Excel(name = "text") + private String text; + + public void setId(Integer id) + { + this.id = id; + } + + public Integer getId() + { + return id; + } + public void setText(String text) + { + this.text = text; + } + + public String getText() + { + return text; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("id", getId()) + .append("text", getText()) + .toString(); + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/mapper/ContactMapper.java b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/ContactMapper.java new file mode 100644 index 0000000..9789b15 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/ContactMapper.java @@ -0,0 +1,61 @@ +package com.ruoyi.system.mapper; + +import java.util.List; +import com.ruoyi.system.domain.Contact; + +/** + * contactMapper接口 + * + * @author ruoyi + * @date 2024-12-08 + */ +public interface ContactMapper +{ + /** + * 查询contact + * + * @param id contact主键 + * @return contact + */ + public Contact selectContactById(Integer id); + + /** + * 查询contact列表 + * + * @param contact contact + * @return contact集合 + */ + public List selectContactList(Contact contact); + + /** + * 新增contact + * + * @param contact contact + * @return 结果 + */ + public int insertContact(Contact contact); + + /** + * 修改contact + * + * @param contact contact + * @return 结果 + */ + public int updateContact(Contact contact); + + /** + * 删除contact + * + * @param id contact主键 + * @return 结果 + */ + public int deleteContactById(Integer id); + + /** + * 批量删除contact + * + * @param ids 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteContactByIds(Integer[] ids); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/mapper/StrokeMapper.java b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/StrokeMapper.java new file mode 100644 index 0000000..3de6c7c --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/StrokeMapper.java @@ -0,0 +1,61 @@ +package com.ruoyi.system.mapper; + +import java.util.List; +import com.ruoyi.system.domain.Stroke; + +/** + * strokeMapper接口 + * + * @author ruoyi + * @date 2024-12-08 + */ +public interface StrokeMapper +{ + /** + * 查询stroke + * + * @param id stroke主键 + * @return stroke + */ + public Stroke selectStrokeById(Integer id); + + /** + * 查询stroke列表 + * + * @param stroke stroke + * @return stroke集合 + */ + public List selectStrokeList(Stroke stroke); + + /** + * 新增stroke + * + * @param stroke stroke + * @return 结果 + */ + public int insertStroke(Stroke stroke); + + /** + * 修改stroke + * + * @param stroke stroke + * @return 结果 + */ + public int updateStroke(Stroke stroke); + + /** + * 删除stroke + * + * @param id stroke主键 + * @return 结果 + */ + public int deleteStrokeById(Integer id); + + /** + * 批量删除stroke + * + * @param ids 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteStrokeByIds(Integer[] ids); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/IContactService.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/IContactService.java new file mode 100644 index 0000000..12cb23a --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/IContactService.java @@ -0,0 +1,61 @@ +package com.ruoyi.system.service; + +import java.util.List; +import com.ruoyi.system.domain.Contact; + +/** + * contactService接口 + * + * @author ruoyi + * @date 2024-12-08 + */ +public interface IContactService +{ + /** + * 查询contact + * + * @param id contact主键 + * @return contact + */ + public Contact selectContactById(Integer id); + + /** + * 查询contact列表 + * + * @param contact contact + * @return contact集合 + */ + public List selectContactList(Contact contact); + + /** + * 新增contact + * + * @param contact contact + * @return 结果 + */ + public int insertContact(Contact contact); + + /** + * 修改contact + * + * @param contact contact + * @return 结果 + */ + public int updateContact(Contact contact); + + /** + * 批量删除contact + * + * @param ids 需要删除的contact主键集合 + * @return 结果 + */ + public int deleteContactByIds(Integer[] ids); + + /** + * 删除contact信息 + * + * @param id contact主键 + * @return 结果 + */ + public int deleteContactById(Integer id); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/IStrokeService.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/IStrokeService.java new file mode 100644 index 0000000..b65afec --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/IStrokeService.java @@ -0,0 +1,61 @@ +package com.ruoyi.system.service; + +import java.util.List; +import com.ruoyi.system.domain.Stroke; + +/** + * strokeService接口 + * + * @author ruoyi + * @date 2024-12-08 + */ +public interface IStrokeService +{ + /** + * 查询stroke + * + * @param id stroke主键 + * @return stroke + */ + public Stroke selectStrokeById(Integer id); + + /** + * 查询stroke列表 + * + * @param stroke stroke + * @return stroke集合 + */ + public List selectStrokeList(Stroke stroke); + + /** + * 新增stroke + * + * @param stroke stroke + * @return 结果 + */ + public int insertStroke(Stroke stroke); + + /** + * 修改stroke + * + * @param stroke stroke + * @return 结果 + */ + public int updateStroke(Stroke stroke); + + /** + * 批量删除stroke + * + * @param ids 需要删除的stroke主键集合 + * @return 结果 + */ + public int deleteStrokeByIds(Integer[] ids); + + /** + * 删除stroke信息 + * + * @param id stroke主键 + * @return 结果 + */ + public int deleteStrokeById(Integer id); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/ContactServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/ContactServiceImpl.java new file mode 100644 index 0000000..d23bb75 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/ContactServiceImpl.java @@ -0,0 +1,93 @@ +package com.ruoyi.system.service.impl; + +import java.util.List; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ruoyi.system.mapper.ContactMapper; +import com.ruoyi.system.domain.Contact; +import com.ruoyi.system.service.IContactService; + +/** + * contactService业务层处理 + * + * @author ruoyi + * @date 2024-12-08 + */ +@Service +public class ContactServiceImpl implements IContactService +{ + @Autowired + private ContactMapper contactMapper; + + /** + * 查询contact + * + * @param id contact主键 + * @return contact + */ + @Override + public Contact selectContactById(Integer id) + { + return contactMapper.selectContactById(id); + } + + /** + * 查询contact列表 + * + * @param contact contact + * @return contact + */ + @Override + public List selectContactList(Contact contact) + { + return contactMapper.selectContactList(contact); + } + + /** + * 新增contact + * + * @param contact contact + * @return 结果 + */ + @Override + public int insertContact(Contact contact) + { + return contactMapper.insertContact(contact); + } + + /** + * 修改contact + * + * @param contact contact + * @return 结果 + */ + @Override + public int updateContact(Contact contact) + { + return contactMapper.updateContact(contact); + } + + /** + * 批量删除contact + * + * @param ids 需要删除的contact主键 + * @return 结果 + */ + @Override + public int deleteContactByIds(Integer[] ids) + { + return contactMapper.deleteContactByIds(ids); + } + + /** + * 删除contact信息 + * + * @param id contact主键 + * @return 结果 + */ + @Override + public int deleteContactById(Integer id) + { + return contactMapper.deleteContactById(id); + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/StrokeServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/StrokeServiceImpl.java new file mode 100644 index 0000000..62610ae --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/StrokeServiceImpl.java @@ -0,0 +1,93 @@ +package com.ruoyi.system.service.impl; + +import java.util.List; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ruoyi.system.mapper.StrokeMapper; +import com.ruoyi.system.domain.Stroke; +import com.ruoyi.system.service.IStrokeService; + +/** + * strokeService业务层处理 + * + * @author ruoyi + * @date 2024-12-08 + */ +@Service +public class StrokeServiceImpl implements IStrokeService +{ + @Autowired + private StrokeMapper strokeMapper; + + /** + * 查询stroke + * + * @param id stroke主键 + * @return stroke + */ + @Override + public Stroke selectStrokeById(Integer id) + { + return strokeMapper.selectStrokeById(id); + } + + /** + * 查询stroke列表 + * + * @param stroke stroke + * @return stroke + */ + @Override + public List selectStrokeList(Stroke stroke) + { + return strokeMapper.selectStrokeList(stroke); + } + + /** + * 新增stroke + * + * @param stroke stroke + * @return 结果 + */ + @Override + public int insertStroke(Stroke stroke) + { + return strokeMapper.insertStroke(stroke); + } + + /** + * 修改stroke + * + * @param stroke stroke + * @return 结果 + */ + @Override + public int updateStroke(Stroke stroke) + { + return strokeMapper.updateStroke(stroke); + } + + /** + * 批量删除stroke + * + * @param ids 需要删除的stroke主键 + * @return 结果 + */ + @Override + public int deleteStrokeByIds(Integer[] ids) + { + return strokeMapper.deleteStrokeByIds(ids); + } + + /** + * 删除stroke信息 + * + * @param id stroke主键 + * @return 结果 + */ + @Override + public int deleteStrokeById(Integer id) + { + return strokeMapper.deleteStrokeById(id); + } +} diff --git a/ruoyi-system/src/main/resources/mapper/system/ContactMapper.xml b/ruoyi-system/src/main/resources/mapper/system/ContactMapper.xml new file mode 100644 index 0000000..383ae06 --- /dev/null +++ b/ruoyi-system/src/main/resources/mapper/system/ContactMapper.xml @@ -0,0 +1,61 @@ + + + + + + + + + + + + select id, text, result from contact + + + + + + + + insert into contact + + text, + result, + + + #{text}, + #{result}, + + + + + update contact + + text = #{text}, + result = #{result}, + + where id = #{id} + + + + delete from contact where id = #{id} + + + + delete from contact where id in + + #{id} + + + \ No newline at end of file diff --git a/ruoyi-system/src/main/resources/mapper/system/StrokeMapper.xml b/ruoyi-system/src/main/resources/mapper/system/StrokeMapper.xml new file mode 100644 index 0000000..46f7dec --- /dev/null +++ b/ruoyi-system/src/main/resources/mapper/system/StrokeMapper.xml @@ -0,0 +1,56 @@ + + + + + + + + + + + select id, text from stroke + + + + + + + + insert into stroke + + text, + + + #{text}, + + + + + update stroke + + text = #{text}, + + where id = #{id} + + + + delete from stroke where id = #{id} + + + + delete from stroke where id in + + #{id} + + + \ No newline at end of file