¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.controller; |
| | | |
| | | 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.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.smartor.domain.SvyFinish; |
| | | import com.smartor.service.ISvyFinishService; |
| | | import com.ruoyi.common.utils.poi.ExcelUtil; |
| | | import com.ruoyi.common.core.page.TableDataInfo; |
| | | |
| | | /** |
| | | * é®å·æç»ç»æController |
| | | * |
| | | * @author ruoyi |
| | | * @date 2023-03-03 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/smartor/svyfinish") |
| | | public class SvyFinishController extends BaseController |
| | | { |
| | | @Autowired |
| | | private ISvyFinishService svyFinishService; |
| | | |
| | | /** |
| | | * æ¥è¯¢é®å·æç»ç»æå表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:svyfinish:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(SvyFinish svyFinish) |
| | | { |
| | | startPage(); |
| | | List<SvyFinish> list = svyFinishService.selectSvyFinishList(svyFinish); |
| | | return getDataTable(list); |
| | | } |
| | | |
| | | /** |
| | | * 导åºé®å·æç»ç»æå表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:svyfinish:export')") |
| | | @Log(title = "é®å·æç»ç»æ", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, SvyFinish svyFinish) |
| | | { |
| | | List<SvyFinish> list = svyFinishService.selectSvyFinishList(svyFinish); |
| | | ExcelUtil<SvyFinish> util = new ExcelUtil<SvyFinish>(SvyFinish.class); |
| | | util.exportExcel(response, list, "é®å·æç»ç»ææ°æ®"); |
| | | } |
| | | |
| | | /** |
| | | * è·åé®å·æç»ç»æè¯¦ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:svyfinish:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) |
| | | { |
| | | return success(svyFinishService.selectSvyFinishById(id)); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢é®å·æç»ç»æ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:svyfinish:add')") |
| | | @Log(title = "é®å·æç»ç»æ", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody SvyFinish svyFinish) |
| | | { |
| | | return toAjax(svyFinishService.insertSvyFinish(svyFinish)); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹é®å·æç»ç»æ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:svyfinish:edit')") |
| | | @Log(title = "é®å·æç»ç»æ", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody SvyFinish svyFinish) |
| | | { |
| | | return toAjax(svyFinishService.updateSvyFinish(svyFinish)); |
| | | } |
| | | |
| | | /** |
| | | * å é¤é®å·æç»ç»æ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:svyfinish:remove')") |
| | | @Log(title = "é®å·æç»ç»æ", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) |
| | | { |
| | | return toAjax(svyFinishService.deleteSvyFinishByIds(ids)); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.controller; |
| | | |
| | | 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.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.smartor.domain.SvyFinishoption; |
| | | import com.smartor.service.ISvyFinishoptionService; |
| | | import com.ruoyi.common.utils.poi.ExcelUtil; |
| | | import com.ruoyi.common.core.page.TableDataInfo; |
| | | |
| | | /** |
| | | * é®å·æç»ç»æé项详æ
Controller |
| | | * |
| | | * @author ruoyi |
| | | * @date 2023-03-03 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/smartor/svyfinishoption") |
| | | public class SvyFinishoptionController extends BaseController |
| | | { |
| | | @Autowired |
| | | private ISvyFinishoptionService svyFinishoptionService; |
| | | |
| | | /** |
| | | * æ¥è¯¢é®å·æç»ç»æé项详æ
å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:svyfinishoption:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(SvyFinishoption svyFinishoption) |
| | | { |
| | | startPage(); |
| | | List<SvyFinishoption> list = svyFinishoptionService.selectSvyFinishoptionList(svyFinishoption); |
| | | return getDataTable(list); |
| | | } |
| | | |
| | | /** |
| | | * 导åºé®å·æç»ç»æé项详æ
å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:svyfinishoption:export')") |
| | | @Log(title = "é®å·æç»ç»æé项详æ
", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, SvyFinishoption svyFinishoption) |
| | | { |
| | | List<SvyFinishoption> list = svyFinishoptionService.selectSvyFinishoptionList(svyFinishoption); |
| | | ExcelUtil<SvyFinishoption> util = new ExcelUtil<SvyFinishoption>(SvyFinishoption.class); |
| | | util.exportExcel(response, list, "é®å·æç»ç»æé项详æ
æ°æ®"); |
| | | } |
| | | |
| | | /** |
| | | * è·åé®å·æç»ç»æé项详æ
详ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:svyfinishoption:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) |
| | | { |
| | | return success(svyFinishoptionService.selectSvyFinishoptionById(id)); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢é®å·æç»ç»æé项详æ
|
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:svyfinishoption:add')") |
| | | @Log(title = "é®å·æç»ç»æé项详æ
", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody SvyFinishoption svyFinishoption) |
| | | { |
| | | return toAjax(svyFinishoptionService.insertSvyFinishoption(svyFinishoption)); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹é®å·æç»ç»æé项详æ
|
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:svyfinishoption:edit')") |
| | | @Log(title = "é®å·æç»ç»æé项详æ
", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody SvyFinishoption svyFinishoption) |
| | | { |
| | | return toAjax(svyFinishoptionService.updateSvyFinishoption(svyFinishoption)); |
| | | } |
| | | |
| | | /** |
| | | * å é¤é®å·æç»ç»æé项详æ
|
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:svyfinishoption:remove')") |
| | | @Log(title = "é®å·æç»ç»æé项详æ
", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) |
| | | { |
| | | return toAjax(svyFinishoptionService.deleteSvyFinishoptionByIds(ids)); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.controller; |
| | | |
| | | 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.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.smartor.domain.SvyFinishtopic; |
| | | import com.smartor.service.ISvyFinishtopicService; |
| | | import com.ruoyi.common.utils.poi.ExcelUtil; |
| | | import com.ruoyi.common.core.page.TableDataInfo; |
| | | |
| | | /** |
| | | * é®å·è°æ¥ç»æè¯¦æ
Controller |
| | | * |
| | | * @author ruoyi |
| | | * @date 2023-03-03 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/smartor/svyfinishtopic") |
| | | public class SvyFinishtopicController extends BaseController |
| | | { |
| | | @Autowired |
| | | private ISvyFinishtopicService svyFinishtopicService; |
| | | |
| | | /** |
| | | * æ¥è¯¢é®å·è°æ¥ç»æè¯¦æ
å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:svyfinishtopic:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(SvyFinishtopic svyFinishtopic) |
| | | { |
| | | startPage(); |
| | | List<SvyFinishtopic> list = svyFinishtopicService.selectSvyFinishtopicList(svyFinishtopic); |
| | | return getDataTable(list); |
| | | } |
| | | |
| | | /** |
| | | * 导åºé®å·è°æ¥ç»æè¯¦æ
å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:svyfinishtopic:export')") |
| | | @Log(title = "é®å·è°æ¥ç»æè¯¦æ
", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, SvyFinishtopic svyFinishtopic) |
| | | { |
| | | List<SvyFinishtopic> list = svyFinishtopicService.selectSvyFinishtopicList(svyFinishtopic); |
| | | ExcelUtil<SvyFinishtopic> util = new ExcelUtil<SvyFinishtopic>(SvyFinishtopic.class); |
| | | util.exportExcel(response, list, "é®å·è°æ¥ç»æè¯¦æ
æ°æ®"); |
| | | } |
| | | |
| | | /** |
| | | * è·åé®å·è°æ¥ç»æè¯¦æ
详ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:svyfinishtopic:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) |
| | | { |
| | | return success(svyFinishtopicService.selectSvyFinishtopicById(id)); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢é®å·è°æ¥ç»æè¯¦æ
|
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:svyfinishtopic:add')") |
| | | @Log(title = "é®å·è°æ¥ç»æè¯¦æ
", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody SvyFinishtopic svyFinishtopic) |
| | | { |
| | | return toAjax(svyFinishtopicService.insertSvyFinishtopic(svyFinishtopic)); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹é®å·è°æ¥ç»æè¯¦æ
|
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:svyfinishtopic:edit')") |
| | | @Log(title = "é®å·è°æ¥ç»æè¯¦æ
", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody SvyFinishtopic svyFinishtopic) |
| | | { |
| | | return toAjax(svyFinishtopicService.updateSvyFinishtopic(svyFinishtopic)); |
| | | } |
| | | |
| | | /** |
| | | * å é¤é®å·è°æ¥ç»æè¯¦æ
|
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:svyfinishtopic:remove')") |
| | | @Log(title = "é®å·è°æ¥ç»æè¯¦æ
", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) |
| | | { |
| | | return toAjax(svyFinishtopicService.deleteSvyFinishtopicByIds(ids)); |
| | | } |
| | | } |
| | |
| | | * é®å·é¢ç®Controller |
| | | * |
| | | * @author ruoyi |
| | | * @date 2023-03-02 |
| | | * @date 2023-03-03 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/system/snytopic") |
| | | @RequestMapping("/smartor/svytopic") |
| | | public class SvyLibTopicController extends BaseController |
| | | { |
| | | @Autowired |
| | |
| | | /** |
| | | * æ¥è¯¢é®å·é¢ç®å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:snytopic:list')") |
| | | @PreAuthorize("@ss.hasPermi('smartor:svytopic:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(SvyLibTopic svyLibTopic) |
| | | { |
| | |
| | | /** |
| | | * 导åºé®å·é¢ç®å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:snytopic:export')") |
| | | @PreAuthorize("@ss.hasPermi('smartor:svytopic:export')") |
| | | @Log(title = "é®å·é¢ç®", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, SvyLibTopic svyLibTopic) |
| | |
| | | /** |
| | | * è·åé®å·é¢ç®è¯¦ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:snytopic:query')") |
| | | @PreAuthorize("@ss.hasPermi('smartor:svytopic:query')") |
| | | @GetMapping(value = "/{topicid}") |
| | | public AjaxResult getInfo(@PathVariable("topicid") Long topicid) |
| | | { |
| | |
| | | /** |
| | | * æ°å¢é®å·é¢ç® |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:snytopic:add')") |
| | | @PreAuthorize("@ss.hasPermi('smartor:svytopic:add')") |
| | | @Log(title = "é®å·é¢ç®", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody SvyLibTopic svyLibTopic) |
| | |
| | | /** |
| | | * ä¿®æ¹é®å·é¢ç® |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:snytopic:edit')") |
| | | @PreAuthorize("@ss.hasPermi('smartor:svytopic:edit')") |
| | | @Log(title = "é®å·é¢ç®", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody SvyLibTopic svyLibTopic) |
| | |
| | | /** |
| | | * å é¤é®å·é¢ç® |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:snytopic:remove')") |
| | | @PreAuthorize("@ss.hasPermi('smartor:svytopic:remove')") |
| | | @Log(title = "é®å·é¢ç®", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{topicids}") |
| | | public AjaxResult remove(@PathVariable Long[] topicids) |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.controller; |
| | | |
| | | 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.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.smartor.domain.SvyFinish; |
| | | import com.smartor.service.ISvyFinishService; |
| | | import com.ruoyi.common.utils.poi.ExcelUtil; |
| | | import com.ruoyi.common.core.page.TableDataInfo; |
| | | |
| | | /** |
| | | * é®å·æç»ç»æController |
| | | * |
| | | * @author ruoyi |
| | | * @date 2023-03-03 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/smartor/svyfinish") |
| | | public class SvyFinishController extends BaseController |
| | | { |
| | | @Autowired |
| | | private ISvyFinishService svyFinishService; |
| | | |
| | | /** |
| | | * æ¥è¯¢é®å·æç»ç»æå表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:svyfinish:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(SvyFinish svyFinish) |
| | | { |
| | | startPage(); |
| | | List<SvyFinish> list = svyFinishService.selectSvyFinishList(svyFinish); |
| | | return getDataTable(list); |
| | | } |
| | | |
| | | /** |
| | | * 导åºé®å·æç»ç»æå表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:svyfinish:export')") |
| | | @Log(title = "é®å·æç»ç»æ", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, SvyFinish svyFinish) |
| | | { |
| | | List<SvyFinish> list = svyFinishService.selectSvyFinishList(svyFinish); |
| | | ExcelUtil<SvyFinish> util = new ExcelUtil<SvyFinish>(SvyFinish.class); |
| | | util.exportExcel(response, list, "é®å·æç»ç»ææ°æ®"); |
| | | } |
| | | |
| | | /** |
| | | * è·åé®å·æç»ç»æè¯¦ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:svyfinish:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) |
| | | { |
| | | return success(svyFinishService.selectSvyFinishById(id)); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢é®å·æç»ç»æ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:svyfinish:add')") |
| | | @Log(title = "é®å·æç»ç»æ", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody SvyFinish svyFinish) |
| | | { |
| | | return toAjax(svyFinishService.insertSvyFinish(svyFinish)); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹é®å·æç»ç»æ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:svyfinish:edit')") |
| | | @Log(title = "é®å·æç»ç»æ", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody SvyFinish svyFinish) |
| | | { |
| | | return toAjax(svyFinishService.updateSvyFinish(svyFinish)); |
| | | } |
| | | |
| | | /** |
| | | * å é¤é®å·æç»ç»æ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:svyfinish:remove')") |
| | | @Log(title = "é®å·æç»ç»æ", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) |
| | | { |
| | | return toAjax(svyFinishService.deleteSvyFinishByIds(ids)); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.controller; |
| | | |
| | | 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.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.smartor.domain.SvyFinishoption; |
| | | import com.smartor.service.ISvyFinishoptionService; |
| | | import com.ruoyi.common.utils.poi.ExcelUtil; |
| | | import com.ruoyi.common.core.page.TableDataInfo; |
| | | |
| | | /** |
| | | * é®å·æç»ç»æé项详æ
Controller |
| | | * |
| | | * @author ruoyi |
| | | * @date 2023-03-03 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/smartor/svyfinishoption") |
| | | public class SvyFinishoptionController extends BaseController |
| | | { |
| | | @Autowired |
| | | private ISvyFinishoptionService svyFinishoptionService; |
| | | |
| | | /** |
| | | * æ¥è¯¢é®å·æç»ç»æé项详æ
å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:svyfinishoption:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(SvyFinishoption svyFinishoption) |
| | | { |
| | | startPage(); |
| | | List<SvyFinishoption> list = svyFinishoptionService.selectSvyFinishoptionList(svyFinishoption); |
| | | return getDataTable(list); |
| | | } |
| | | |
| | | /** |
| | | * 导åºé®å·æç»ç»æé项详æ
å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:svyfinishoption:export')") |
| | | @Log(title = "é®å·æç»ç»æé项详æ
", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, SvyFinishoption svyFinishoption) |
| | | { |
| | | List<SvyFinishoption> list = svyFinishoptionService.selectSvyFinishoptionList(svyFinishoption); |
| | | ExcelUtil<SvyFinishoption> util = new ExcelUtil<SvyFinishoption>(SvyFinishoption.class); |
| | | util.exportExcel(response, list, "é®å·æç»ç»æé项详æ
æ°æ®"); |
| | | } |
| | | |
| | | /** |
| | | * è·åé®å·æç»ç»æé项详æ
详ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:svyfinishoption:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) |
| | | { |
| | | return success(svyFinishoptionService.selectSvyFinishoptionById(id)); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢é®å·æç»ç»æé项详æ
|
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:svyfinishoption:add')") |
| | | @Log(title = "é®å·æç»ç»æé项详æ
", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody SvyFinishoption svyFinishoption) |
| | | { |
| | | return toAjax(svyFinishoptionService.insertSvyFinishoption(svyFinishoption)); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹é®å·æç»ç»æé项详æ
|
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:svyfinishoption:edit')") |
| | | @Log(title = "é®å·æç»ç»æé项详æ
", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody SvyFinishoption svyFinishoption) |
| | | { |
| | | return toAjax(svyFinishoptionService.updateSvyFinishoption(svyFinishoption)); |
| | | } |
| | | |
| | | /** |
| | | * å é¤é®å·æç»ç»æé项详æ
|
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:svyfinishoption:remove')") |
| | | @Log(title = "é®å·æç»ç»æé项详æ
", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) |
| | | { |
| | | return toAjax(svyFinishoptionService.deleteSvyFinishoptionByIds(ids)); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.controller; |
| | | |
| | | 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.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.smartor.domain.SvyFinishtopic; |
| | | import com.smartor.service.ISvyFinishtopicService; |
| | | import com.ruoyi.common.utils.poi.ExcelUtil; |
| | | import com.ruoyi.common.core.page.TableDataInfo; |
| | | |
| | | /** |
| | | * é®å·è°æ¥ç»æè¯¦æ
Controller |
| | | * |
| | | * @author ruoyi |
| | | * @date 2023-03-03 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/smartor/svyfinishtopic") |
| | | public class SvyFinishtopicController extends BaseController |
| | | { |
| | | @Autowired |
| | | private ISvyFinishtopicService svyFinishtopicService; |
| | | |
| | | /** |
| | | * æ¥è¯¢é®å·è°æ¥ç»æè¯¦æ
å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:svyfinishtopic:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(SvyFinishtopic svyFinishtopic) |
| | | { |
| | | startPage(); |
| | | List<SvyFinishtopic> list = svyFinishtopicService.selectSvyFinishtopicList(svyFinishtopic); |
| | | return getDataTable(list); |
| | | } |
| | | |
| | | /** |
| | | * 导åºé®å·è°æ¥ç»æè¯¦æ
å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:svyfinishtopic:export')") |
| | | @Log(title = "é®å·è°æ¥ç»æè¯¦æ
", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, SvyFinishtopic svyFinishtopic) |
| | | { |
| | | List<SvyFinishtopic> list = svyFinishtopicService.selectSvyFinishtopicList(svyFinishtopic); |
| | | ExcelUtil<SvyFinishtopic> util = new ExcelUtil<SvyFinishtopic>(SvyFinishtopic.class); |
| | | util.exportExcel(response, list, "é®å·è°æ¥ç»æè¯¦æ
æ°æ®"); |
| | | } |
| | | |
| | | /** |
| | | * è·åé®å·è°æ¥ç»æè¯¦æ
详ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:svyfinishtopic:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) |
| | | { |
| | | return success(svyFinishtopicService.selectSvyFinishtopicById(id)); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢é®å·è°æ¥ç»æè¯¦æ
|
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:svyfinishtopic:add')") |
| | | @Log(title = "é®å·è°æ¥ç»æè¯¦æ
", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody SvyFinishtopic svyFinishtopic) |
| | | { |
| | | return toAjax(svyFinishtopicService.insertSvyFinishtopic(svyFinishtopic)); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹é®å·è°æ¥ç»æè¯¦æ
|
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:svyfinishtopic:edit')") |
| | | @Log(title = "é®å·è°æ¥ç»æè¯¦æ
", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody SvyFinishtopic svyFinishtopic) |
| | | { |
| | | return toAjax(svyFinishtopicService.updateSvyFinishtopic(svyFinishtopic)); |
| | | } |
| | | |
| | | /** |
| | | * å é¤é®å·è°æ¥ç»æè¯¦æ
|
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:svyfinishtopic:remove')") |
| | | @Log(title = "é®å·è°æ¥ç»æè¯¦æ
", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) |
| | | { |
| | | return toAjax(svyFinishtopicService.deleteSvyFinishtopicByIds(ids)); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.controller; |
| | | |
| | | 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.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.smartor.domain.SvyLibTopic; |
| | | import com.smartor.service.ISvyLibTopicService; |
| | | import com.ruoyi.common.utils.poi.ExcelUtil; |
| | | import com.ruoyi.common.core.page.TableDataInfo; |
| | | |
| | | /** |
| | | * é®å·é¢ç®Controller |
| | | * |
| | | * @author ruoyi |
| | | * @date 2023-03-03 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/smartor/svytopic") |
| | | public class SvyLibTopicController extends BaseController |
| | | { |
| | | @Autowired |
| | | private ISvyLibTopicService svyLibTopicService; |
| | | |
| | | /** |
| | | * æ¥è¯¢é®å·é¢ç®å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:svytopic:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(SvyLibTopic svyLibTopic) |
| | | { |
| | | startPage(); |
| | | List<SvyLibTopic> list = svyLibTopicService.selectSvyLibTopicList(svyLibTopic); |
| | | return getDataTable(list); |
| | | } |
| | | |
| | | /** |
| | | * 导åºé®å·é¢ç®å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:svytopic:export')") |
| | | @Log(title = "é®å·é¢ç®", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, SvyLibTopic svyLibTopic) |
| | | { |
| | | List<SvyLibTopic> list = svyLibTopicService.selectSvyLibTopicList(svyLibTopic); |
| | | ExcelUtil<SvyLibTopic> util = new ExcelUtil<SvyLibTopic>(SvyLibTopic.class); |
| | | util.exportExcel(response, list, "é®å·é¢ç®æ°æ®"); |
| | | } |
| | | |
| | | /** |
| | | * è·åé®å·é¢ç®è¯¦ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:svytopic:query')") |
| | | @GetMapping(value = "/{topicid}") |
| | | public AjaxResult getInfo(@PathVariable("topicid") Long topicid) |
| | | { |
| | | return success(svyLibTopicService.selectSvyLibTopicByTopicid(topicid)); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢é®å·é¢ç® |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:svytopic:add')") |
| | | @Log(title = "é®å·é¢ç®", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody SvyLibTopic svyLibTopic) |
| | | { |
| | | return toAjax(svyLibTopicService.insertSvyLibTopic(svyLibTopic)); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹é®å·é¢ç® |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:svytopic:edit')") |
| | | @Log(title = "é®å·é¢ç®", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody SvyLibTopic svyLibTopic) |
| | | { |
| | | return toAjax(svyLibTopicService.updateSvyLibTopic(svyLibTopic)); |
| | | } |
| | | |
| | | /** |
| | | * å é¤é®å·é¢ç® |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('smartor:svytopic:remove')") |
| | | @Log(title = "é®å·é¢ç®", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{topicids}") |
| | | public AjaxResult remove(@PathVariable Long[] topicids) |
| | | { |
| | | return toAjax(svyLibTopicService.deleteSvyLibTopicByTopicids(topicids)); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.domain; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.Date; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | 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; |
| | | |
| | | /** |
| | | * é®å·æç»ç»æå¯¹è±¡ svy_finish |
| | | * |
| | | * @author ruoyi |
| | | * @date 2023-03-03 |
| | | */ |
| | | public class SvyFinish extends BaseEntity |
| | | { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** èªå¢ID */ |
| | | private Long id; |
| | | |
| | | /** æ£è
ID */ |
| | | @Excel(name = " æ£è
ID ") |
| | | private Long patid; |
| | | |
| | | /** å
³èæ¹æ¡ID */ |
| | | @Excel(name = " å
³èæ¹æ¡ID ") |
| | | private Long schemeid; |
| | | |
| | | /** é®å·æ é¢ */ |
| | | @Excel(name = " é®å·æ é¢ ") |
| | | private String svytitle; |
| | | |
| | | /** é®å·ID */ |
| | | @Excel(name = " é®å·ID ") |
| | | private Long svyid; |
| | | |
| | | /** æ»å¾å */ |
| | | @Excel(name = " æ»å¾å ") |
| | | private BigDecimal totalscore; |
| | | |
| | | /** åé¦ç»æå
容 */ |
| | | @Excel(name = " åé¦ç»æå
容 ") |
| | | private String resultcontent; |
| | | |
| | | /** æºæID */ |
| | | @Excel(name = " æºæID ") |
| | | private String orgid; |
| | | |
| | | /** å±ç¤ºå¾å */ |
| | | @Excel(name = " å±ç¤ºå¾å ") |
| | | private Long isshowscore; |
| | | |
| | | /** 计åID */ |
| | | @Excel(name = " 计åID ") |
| | | private Long schemeplanid; |
| | | |
| | | /** ä»»å¡ID */ |
| | | @Excel(name = " ä»»å¡ID ") |
| | | private Long schemetaskid; |
| | | |
| | | /** æ¯å¦å¼å¸¸ */ |
| | | @Excel(name = " æ¯å¦å¼å¸¸ ") |
| | | private Long isabnormal; |
| | | |
| | | /** å 餿 è®° */ |
| | | private String delFlag; |
| | | |
| | | /** ä¸ä¼ æ è®° */ |
| | | private Long isupload; |
| | | |
| | | /** ä¸ä¼ æ¶é´ */ |
| | | private Date uploadTime; |
| | | |
| | | public void setId(Long id) |
| | | { |
| | | this.id = id; |
| | | } |
| | | |
| | | public Long getId() |
| | | { |
| | | return id; |
| | | } |
| | | public void setPatid(Long patid) |
| | | { |
| | | this.patid = patid; |
| | | } |
| | | |
| | | public Long getPatid() |
| | | { |
| | | return patid; |
| | | } |
| | | public void setSchemeid(Long schemeid) |
| | | { |
| | | this.schemeid = schemeid; |
| | | } |
| | | |
| | | public Long getSchemeid() |
| | | { |
| | | return schemeid; |
| | | } |
| | | public void setSvytitle(String svytitle) |
| | | { |
| | | this.svytitle = svytitle; |
| | | } |
| | | |
| | | public String getSvytitle() |
| | | { |
| | | return svytitle; |
| | | } |
| | | public void setSvyid(Long svyid) |
| | | { |
| | | this.svyid = svyid; |
| | | } |
| | | |
| | | public Long getSvyid() |
| | | { |
| | | return svyid; |
| | | } |
| | | public void setTotalscore(BigDecimal totalscore) |
| | | { |
| | | this.totalscore = totalscore; |
| | | } |
| | | |
| | | public BigDecimal getTotalscore() |
| | | { |
| | | return totalscore; |
| | | } |
| | | public void setResultcontent(String resultcontent) |
| | | { |
| | | this.resultcontent = resultcontent; |
| | | } |
| | | |
| | | public String getResultcontent() |
| | | { |
| | | return resultcontent; |
| | | } |
| | | public void setOrgid(String orgid) |
| | | { |
| | | this.orgid = orgid; |
| | | } |
| | | |
| | | public String getOrgid() |
| | | { |
| | | return orgid; |
| | | } |
| | | public void setIsshowscore(Long isshowscore) |
| | | { |
| | | this.isshowscore = isshowscore; |
| | | } |
| | | |
| | | public Long getIsshowscore() |
| | | { |
| | | return isshowscore; |
| | | } |
| | | public void setSchemeplanid(Long schemeplanid) |
| | | { |
| | | this.schemeplanid = schemeplanid; |
| | | } |
| | | |
| | | public Long getSchemeplanid() |
| | | { |
| | | return schemeplanid; |
| | | } |
| | | public void setSchemetaskid(Long schemetaskid) |
| | | { |
| | | this.schemetaskid = schemetaskid; |
| | | } |
| | | |
| | | public Long getSchemetaskid() |
| | | { |
| | | return schemetaskid; |
| | | } |
| | | public void setIsabnormal(Long isabnormal) |
| | | { |
| | | this.isabnormal = isabnormal; |
| | | } |
| | | |
| | | public Long getIsabnormal() |
| | | { |
| | | return isabnormal; |
| | | } |
| | | public void setDelFlag(String delFlag) |
| | | { |
| | | this.delFlag = delFlag; |
| | | } |
| | | |
| | | public String getDelFlag() |
| | | { |
| | | return delFlag; |
| | | } |
| | | public void setIsupload(Long isupload) |
| | | { |
| | | this.isupload = isupload; |
| | | } |
| | | |
| | | public Long getIsupload() |
| | | { |
| | | return isupload; |
| | | } |
| | | public void setUploadTime(Date uploadTime) |
| | | { |
| | | this.uploadTime = uploadTime; |
| | | } |
| | | |
| | | public Date getUploadTime() |
| | | { |
| | | return uploadTime; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) |
| | | .append("id", getId()) |
| | | .append("patid", getPatid()) |
| | | .append("schemeid", getSchemeid()) |
| | | .append("svytitle", getSvytitle()) |
| | | .append("svyid", getSvyid()) |
| | | .append("totalscore", getTotalscore()) |
| | | .append("resultcontent", getResultcontent()) |
| | | .append("orgid", getOrgid()) |
| | | .append("isshowscore", getIsshowscore()) |
| | | .append("schemeplanid", getSchemeplanid()) |
| | | .append("schemetaskid", getSchemetaskid()) |
| | | .append("isabnormal", getIsabnormal()) |
| | | .append("delFlag", getDelFlag()) |
| | | .append("createBy", getCreateBy()) |
| | | .append("createTime", getCreateTime()) |
| | | .append("updateBy", getUpdateBy()) |
| | | .append("updateTime", getUpdateTime()) |
| | | .append("isupload", getIsupload()) |
| | | .append("uploadTime", getUploadTime()) |
| | | .toString(); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.domain; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.Date; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | 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; |
| | | |
| | | /** |
| | | * é®å·æç»ç»æé项详æ
对象 svy_finishoption |
| | | * |
| | | * @author ruoyi |
| | | * @date 2023-03-03 |
| | | */ |
| | | public class SvyFinishoption extends BaseEntity |
| | | { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** èªå¢ID */ |
| | | private Long id; |
| | | |
| | | /** 详æ
ID */ |
| | | @Excel(name = " 详æ
ID ") |
| | | private Long finshresultdetailid; |
| | | |
| | | /** æéé¢ç®é项ID */ |
| | | @Excel(name = " æéé¢ç®é项ID ") |
| | | private Long psqoptionid; |
| | | |
| | | /** æå¡«é项å
容 */ |
| | | @Excel(name = " æå¡«é项å
容 ") |
| | | private String content; |
| | | |
| | | /** å½åé项å¾å */ |
| | | @Excel(name = " å½åé项å¾å ") |
| | | private BigDecimal score; |
| | | |
| | | /** æºæID */ |
| | | @Excel(name = " æºæID ") |
| | | private String orgid; |
| | | |
| | | /** å 餿 è®° */ |
| | | private String delFlag; |
| | | |
| | | /** ä¸ä¼ æ è®° */ |
| | | private Long isupload; |
| | | |
| | | /** ä¸ä¼ æ¶é´ */ |
| | | private Date uploadTime; |
| | | |
| | | /** æ¯å¦å¼å¸¸ */ |
| | | private Long isabnormal; |
| | | |
| | | /** æºå¨äººéæ©æ è®° */ |
| | | @Excel(name = " æºå¨äººéæ©æ è®° ") |
| | | private Long isrobot; |
| | | |
| | | public void setId(Long id) |
| | | { |
| | | this.id = id; |
| | | } |
| | | |
| | | public Long getId() |
| | | { |
| | | return id; |
| | | } |
| | | public void setFinshresultdetailid(Long finshresultdetailid) |
| | | { |
| | | this.finshresultdetailid = finshresultdetailid; |
| | | } |
| | | |
| | | public Long getFinshresultdetailid() |
| | | { |
| | | return finshresultdetailid; |
| | | } |
| | | public void setPsqoptionid(Long psqoptionid) |
| | | { |
| | | this.psqoptionid = psqoptionid; |
| | | } |
| | | |
| | | public Long getPsqoptionid() |
| | | { |
| | | return psqoptionid; |
| | | } |
| | | public void setContent(String content) |
| | | { |
| | | this.content = content; |
| | | } |
| | | |
| | | public String getContent() |
| | | { |
| | | return content; |
| | | } |
| | | public void setScore(BigDecimal score) |
| | | { |
| | | this.score = score; |
| | | } |
| | | |
| | | public BigDecimal getScore() |
| | | { |
| | | return score; |
| | | } |
| | | public void setOrgid(String orgid) |
| | | { |
| | | this.orgid = orgid; |
| | | } |
| | | |
| | | public String getOrgid() |
| | | { |
| | | return orgid; |
| | | } |
| | | public void setDelFlag(String delFlag) |
| | | { |
| | | this.delFlag = delFlag; |
| | | } |
| | | |
| | | public String getDelFlag() |
| | | { |
| | | return delFlag; |
| | | } |
| | | public void setIsupload(Long isupload) |
| | | { |
| | | this.isupload = isupload; |
| | | } |
| | | |
| | | public Long getIsupload() |
| | | { |
| | | return isupload; |
| | | } |
| | | public void setUploadTime(Date uploadTime) |
| | | { |
| | | this.uploadTime = uploadTime; |
| | | } |
| | | |
| | | public Date getUploadTime() |
| | | { |
| | | return uploadTime; |
| | | } |
| | | public void setIsabnormal(Long isabnormal) |
| | | { |
| | | this.isabnormal = isabnormal; |
| | | } |
| | | |
| | | public Long getIsabnormal() |
| | | { |
| | | return isabnormal; |
| | | } |
| | | public void setIsrobot(Long isrobot) |
| | | { |
| | | this.isrobot = isrobot; |
| | | } |
| | | |
| | | public Long getIsrobot() |
| | | { |
| | | return isrobot; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) |
| | | .append("id", getId()) |
| | | .append("finshresultdetailid", getFinshresultdetailid()) |
| | | .append("psqoptionid", getPsqoptionid()) |
| | | .append("content", getContent()) |
| | | .append("score", getScore()) |
| | | .append("orgid", getOrgid()) |
| | | .append("delFlag", getDelFlag()) |
| | | .append("updateBy", getUpdateBy()) |
| | | .append("updateTime", getUpdateTime()) |
| | | .append("createBy", getCreateBy()) |
| | | .append("createTime", getCreateTime()) |
| | | .append("isupload", getIsupload()) |
| | | .append("uploadTime", getUploadTime()) |
| | | .append("isabnormal", getIsabnormal()) |
| | | .append("isrobot", getIsrobot()) |
| | | .toString(); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.domain; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.Date; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | 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; |
| | | |
| | | /** |
| | | * é®å·è°æ¥ç»æè¯¦æ
对象 svy_finishtopic |
| | | * |
| | | * @author ruoyi |
| | | * @date 2023-03-03 |
| | | */ |
| | | public class SvyFinishtopic extends BaseEntity |
| | | { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** èªå¢ID */ |
| | | private Long id; |
| | | |
| | | /** é®å·ID */ |
| | | @Excel(name = " é®å·ID ") |
| | | private Long psqid; |
| | | |
| | | /** æç»ç»æID */ |
| | | @Excel(name = " æç»ç»æID ") |
| | | private Long resultid; |
| | | |
| | | /** å½åé¢ç®ID */ |
| | | @Excel(name = " å½åé¢ç®ID ") |
| | | private Long topicid; |
| | | |
| | | /** å½åé项å¾å */ |
| | | @Excel(name = " å½åé项å¾å ") |
| | | private BigDecimal score; |
| | | |
| | | /** æºæID */ |
| | | @Excel(name = " æºæID ") |
| | | private String orgid; |
| | | |
| | | /** å 餿 è®° */ |
| | | private String delFlag; |
| | | |
| | | /** ä¸ä¼ æ è®° */ |
| | | @Excel(name = " ä¸ä¼ æ è®° ") |
| | | private Long isupload; |
| | | |
| | | /** ä¸ä¼ æ¶é´ */ |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @Excel(name = " ä¸ä¼ æ¶é´ ", width = 30, dateFormat = "yyyy-MM-dd") |
| | | private Date uploadTime; |
| | | |
| | | public void setId(Long id) |
| | | { |
| | | this.id = id; |
| | | } |
| | | |
| | | public Long getId() |
| | | { |
| | | return id; |
| | | } |
| | | public void setPsqid(Long psqid) |
| | | { |
| | | this.psqid = psqid; |
| | | } |
| | | |
| | | public Long getPsqid() |
| | | { |
| | | return psqid; |
| | | } |
| | | public void setResultid(Long resultid) |
| | | { |
| | | this.resultid = resultid; |
| | | } |
| | | |
| | | public Long getResultid() |
| | | { |
| | | return resultid; |
| | | } |
| | | public void setTopicid(Long topicid) |
| | | { |
| | | this.topicid = topicid; |
| | | } |
| | | |
| | | public Long getTopicid() |
| | | { |
| | | return topicid; |
| | | } |
| | | public void setScore(BigDecimal score) |
| | | { |
| | | this.score = score; |
| | | } |
| | | |
| | | public BigDecimal getScore() |
| | | { |
| | | return score; |
| | | } |
| | | public void setOrgid(String orgid) |
| | | { |
| | | this.orgid = orgid; |
| | | } |
| | | |
| | | public String getOrgid() |
| | | { |
| | | return orgid; |
| | | } |
| | | public void setDelFlag(String delFlag) |
| | | { |
| | | this.delFlag = delFlag; |
| | | } |
| | | |
| | | public String getDelFlag() |
| | | { |
| | | return delFlag; |
| | | } |
| | | public void setIsupload(Long isupload) |
| | | { |
| | | this.isupload = isupload; |
| | | } |
| | | |
| | | public Long getIsupload() |
| | | { |
| | | return isupload; |
| | | } |
| | | public void setUploadTime(Date uploadTime) |
| | | { |
| | | this.uploadTime = uploadTime; |
| | | } |
| | | |
| | | public Date getUploadTime() |
| | | { |
| | | return uploadTime; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) |
| | | .append("id", getId()) |
| | | .append("psqid", getPsqid()) |
| | | .append("resultid", getResultid()) |
| | | .append("topicid", getTopicid()) |
| | | .append("score", getScore()) |
| | | .append("orgid", getOrgid()) |
| | | .append("delFlag", getDelFlag()) |
| | | .append("updateBy", getUpdateBy()) |
| | | .append("updateTime", getUpdateTime()) |
| | | .append("createBy", getCreateBy()) |
| | | .append("createTime", getCreateTime()) |
| | | .append("isupload", getIsupload()) |
| | | .append("uploadTime", getUploadTime()) |
| | | .toString(); |
| | | } |
| | | } |
| | |
| | | * é®å·é¢ç®å¯¹è±¡ svy_lib_topic |
| | | * |
| | | * @author ruoyi |
| | | * @date 2023-03-02 |
| | | * @date 2023-03-03 |
| | | */ |
| | | public class SvyLibTopic extends BaseEntity |
| | | { |
| | |
| | | private Long topicid; |
| | | |
| | | /** èçæ¬ID */ |
| | | @Excel(name = " èçæ¬ID ") |
| | | private Long oldid; |
| | | |
| | | /** é®å·ID */ |
| | |
| | | private Long topictype; |
| | | |
| | | /** é¢ç®Code */ |
| | | @Excel(name = " é¢ç®Code ") |
| | | private String topiccode; |
| | | |
| | | /** é¢ç® */ |
| | |
| | | private Long sort; |
| | | |
| | | /** æ¯å¦å¿
å¡« */ |
| | | @Excel(name = " æ¯å¦å¿
å¡« ") |
| | | private Long ismandatory; |
| | | |
| | | /** æ¯å¦éè */ |
| | |
| | | private String orgid; |
| | | |
| | | /** ä¸ä¼ æ è®° */ |
| | | @Excel(name = " ä¸ä¼ æ è®° ") |
| | | private Long isupload; |
| | | |
| | | /** ä¸ä¼ æ¶é´ */ |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @Excel(name = " ä¸ä¼ æ¶é´ ", width = 30, dateFormat = "yyyy-MM-dd") |
| | | private Date uploadTime; |
| | | |
| | | public void setTopicid(Long topicid) |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.mapper; |
| | | |
| | | import java.util.List; |
| | | import com.smartor.domain.SvyFinish; |
| | | |
| | | /** |
| | | * é®å·æç»ç»æMapperæ¥å£ |
| | | * |
| | | * @author ruoyi |
| | | * @date 2023-03-03 |
| | | */ |
| | | public interface SvyFinishMapper |
| | | { |
| | | /** |
| | | * æ¥è¯¢é®å·æç»ç»æ |
| | | * |
| | | * @param id é®å·æç»ç»æä¸»é® |
| | | * @return é®å·æç»ç»æ |
| | | */ |
| | | public SvyFinish selectSvyFinishById(Long id); |
| | | |
| | | /** |
| | | * æ¥è¯¢é®å·æç»ç»æå表 |
| | | * |
| | | * @param svyFinish é®å·æç»ç»æ |
| | | * @return é®å·æç»ç»æéå |
| | | */ |
| | | public List<SvyFinish> selectSvyFinishList(SvyFinish svyFinish); |
| | | |
| | | /** |
| | | * æ°å¢é®å·æç»ç»æ |
| | | * |
| | | * @param svyFinish é®å·æç»ç»æ |
| | | * @return ç»æ |
| | | */ |
| | | public int insertSvyFinish(SvyFinish svyFinish); |
| | | |
| | | /** |
| | | * ä¿®æ¹é®å·æç»ç»æ |
| | | * |
| | | * @param svyFinish é®å·æç»ç»æ |
| | | * @return ç»æ |
| | | */ |
| | | public int updateSvyFinish(SvyFinish svyFinish); |
| | | |
| | | /** |
| | | * å é¤é®å·æç»ç»æ |
| | | * |
| | | * @param id é®å·æç»ç»æä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteSvyFinishById(Long id); |
| | | |
| | | /** |
| | | * æ¹éå é¤é®å·æç»ç»æ |
| | | * |
| | | * @param ids éè¦å é¤çæ°æ®ä¸»é®éå |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteSvyFinishByIds(Long[] ids); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.mapper; |
| | | |
| | | import java.util.List; |
| | | import com.smartor.domain.SvyFinishoption; |
| | | |
| | | /** |
| | | * é®å·æç»ç»æé项详æ
Mapperæ¥å£ |
| | | * |
| | | * @author ruoyi |
| | | * @date 2023-03-03 |
| | | */ |
| | | public interface SvyFinishoptionMapper |
| | | { |
| | | /** |
| | | * æ¥è¯¢é®å·æç»ç»æé项详æ
|
| | | * |
| | | * @param id é®å·æç»ç»æé项详æ
ä¸»é® |
| | | * @return é®å·æç»ç»æé项详æ
|
| | | */ |
| | | public SvyFinishoption selectSvyFinishoptionById(Long id); |
| | | |
| | | /** |
| | | * æ¥è¯¢é®å·æç»ç»æé项详æ
å表 |
| | | * |
| | | * @param svyFinishoption é®å·æç»ç»æé项详æ
|
| | | * @return é®å·æç»ç»æé项详æ
éå |
| | | */ |
| | | public List<SvyFinishoption> selectSvyFinishoptionList(SvyFinishoption svyFinishoption); |
| | | |
| | | /** |
| | | * æ°å¢é®å·æç»ç»æé项详æ
|
| | | * |
| | | * @param svyFinishoption é®å·æç»ç»æé项详æ
|
| | | * @return ç»æ |
| | | */ |
| | | public int insertSvyFinishoption(SvyFinishoption svyFinishoption); |
| | | |
| | | /** |
| | | * ä¿®æ¹é®å·æç»ç»æé项详æ
|
| | | * |
| | | * @param svyFinishoption é®å·æç»ç»æé项详æ
|
| | | * @return ç»æ |
| | | */ |
| | | public int updateSvyFinishoption(SvyFinishoption svyFinishoption); |
| | | |
| | | /** |
| | | * å é¤é®å·æç»ç»æé项详æ
|
| | | * |
| | | * @param id é®å·æç»ç»æé项详æ
ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteSvyFinishoptionById(Long id); |
| | | |
| | | /** |
| | | * æ¹éå é¤é®å·æç»ç»æé项详æ
|
| | | * |
| | | * @param ids éè¦å é¤çæ°æ®ä¸»é®éå |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteSvyFinishoptionByIds(Long[] ids); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.mapper; |
| | | |
| | | import java.util.List; |
| | | import com.smartor.domain.SvyFinishtopic; |
| | | |
| | | /** |
| | | * é®å·è°æ¥ç»æè¯¦æ
Mapperæ¥å£ |
| | | * |
| | | * @author ruoyi |
| | | * @date 2023-03-03 |
| | | */ |
| | | public interface SvyFinishtopicMapper |
| | | { |
| | | /** |
| | | * æ¥è¯¢é®å·è°æ¥ç»æè¯¦æ
|
| | | * |
| | | * @param id é®å·è°æ¥ç»æè¯¦æ
ä¸»é® |
| | | * @return é®å·è°æ¥ç»æè¯¦æ
|
| | | */ |
| | | public SvyFinishtopic selectSvyFinishtopicById(Long id); |
| | | |
| | | /** |
| | | * æ¥è¯¢é®å·è°æ¥ç»æè¯¦æ
å表 |
| | | * |
| | | * @param svyFinishtopic é®å·è°æ¥ç»æè¯¦æ
|
| | | * @return é®å·è°æ¥ç»æè¯¦æ
éå |
| | | */ |
| | | public List<SvyFinishtopic> selectSvyFinishtopicList(SvyFinishtopic svyFinishtopic); |
| | | |
| | | /** |
| | | * æ°å¢é®å·è°æ¥ç»æè¯¦æ
|
| | | * |
| | | * @param svyFinishtopic é®å·è°æ¥ç»æè¯¦æ
|
| | | * @return ç»æ |
| | | */ |
| | | public int insertSvyFinishtopic(SvyFinishtopic svyFinishtopic); |
| | | |
| | | /** |
| | | * ä¿®æ¹é®å·è°æ¥ç»æè¯¦æ
|
| | | * |
| | | * @param svyFinishtopic é®å·è°æ¥ç»æè¯¦æ
|
| | | * @return ç»æ |
| | | */ |
| | | public int updateSvyFinishtopic(SvyFinishtopic svyFinishtopic); |
| | | |
| | | /** |
| | | * å é¤é®å·è°æ¥ç»æè¯¦æ
|
| | | * |
| | | * @param id é®å·è°æ¥ç»æè¯¦æ
ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteSvyFinishtopicById(Long id); |
| | | |
| | | /** |
| | | * æ¹éå é¤é®å·è°æ¥ç»æè¯¦æ
|
| | | * |
| | | * @param ids éè¦å é¤çæ°æ®ä¸»é®éå |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteSvyFinishtopicByIds(Long[] ids); |
| | | } |
| | |
| | | * é®å·é¢ç®Mapperæ¥å£ |
| | | * |
| | | * @author ruoyi |
| | | * @date 2023-03-02 |
| | | * @date 2023-03-03 |
| | | */ |
| | | public interface SvyLibTopicMapper |
| | | { |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.service; |
| | | |
| | | import java.util.List; |
| | | import com.smartor.domain.SvyFinish; |
| | | |
| | | /** |
| | | * é®å·æç»ç»æServiceæ¥å£ |
| | | * |
| | | * @author ruoyi |
| | | * @date 2023-03-03 |
| | | */ |
| | | public interface ISvyFinishService |
| | | { |
| | | /** |
| | | * æ¥è¯¢é®å·æç»ç»æ |
| | | * |
| | | * @param id é®å·æç»ç»æä¸»é® |
| | | * @return é®å·æç»ç»æ |
| | | */ |
| | | public SvyFinish selectSvyFinishById(Long id); |
| | | |
| | | /** |
| | | * æ¥è¯¢é®å·æç»ç»æå表 |
| | | * |
| | | * @param svyFinish é®å·æç»ç»æ |
| | | * @return é®å·æç»ç»æéå |
| | | */ |
| | | public List<SvyFinish> selectSvyFinishList(SvyFinish svyFinish); |
| | | |
| | | /** |
| | | * æ°å¢é®å·æç»ç»æ |
| | | * |
| | | * @param svyFinish é®å·æç»ç»æ |
| | | * @return ç»æ |
| | | */ |
| | | public int insertSvyFinish(SvyFinish svyFinish); |
| | | |
| | | /** |
| | | * ä¿®æ¹é®å·æç»ç»æ |
| | | * |
| | | * @param svyFinish é®å·æç»ç»æ |
| | | * @return ç»æ |
| | | */ |
| | | public int updateSvyFinish(SvyFinish svyFinish); |
| | | |
| | | /** |
| | | * æ¹éå é¤é®å·æç»ç»æ |
| | | * |
| | | * @param ids éè¦å é¤çé®å·æç»ç»æä¸»é®éå |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteSvyFinishByIds(Long[] ids); |
| | | |
| | | /** |
| | | * å é¤é®å·æç»ç»æä¿¡æ¯ |
| | | * |
| | | * @param id é®å·æç»ç»æä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteSvyFinishById(Long id); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.service; |
| | | |
| | | import java.util.List; |
| | | import com.smartor.domain.SvyFinishoption; |
| | | |
| | | /** |
| | | * é®å·æç»ç»æé项详æ
Serviceæ¥å£ |
| | | * |
| | | * @author ruoyi |
| | | * @date 2023-03-03 |
| | | */ |
| | | public interface ISvyFinishoptionService |
| | | { |
| | | /** |
| | | * æ¥è¯¢é®å·æç»ç»æé项详æ
|
| | | * |
| | | * @param id é®å·æç»ç»æé项详æ
ä¸»é® |
| | | * @return é®å·æç»ç»æé项详æ
|
| | | */ |
| | | public SvyFinishoption selectSvyFinishoptionById(Long id); |
| | | |
| | | /** |
| | | * æ¥è¯¢é®å·æç»ç»æé项详æ
å表 |
| | | * |
| | | * @param svyFinishoption é®å·æç»ç»æé项详æ
|
| | | * @return é®å·æç»ç»æé项详æ
éå |
| | | */ |
| | | public List<SvyFinishoption> selectSvyFinishoptionList(SvyFinishoption svyFinishoption); |
| | | |
| | | /** |
| | | * æ°å¢é®å·æç»ç»æé项详æ
|
| | | * |
| | | * @param svyFinishoption é®å·æç»ç»æé项详æ
|
| | | * @return ç»æ |
| | | */ |
| | | public int insertSvyFinishoption(SvyFinishoption svyFinishoption); |
| | | |
| | | /** |
| | | * ä¿®æ¹é®å·æç»ç»æé项详æ
|
| | | * |
| | | * @param svyFinishoption é®å·æç»ç»æé项详æ
|
| | | * @return ç»æ |
| | | */ |
| | | public int updateSvyFinishoption(SvyFinishoption svyFinishoption); |
| | | |
| | | /** |
| | | * æ¹éå é¤é®å·æç»ç»æé项详æ
|
| | | * |
| | | * @param ids éè¦å é¤çé®å·æç»ç»æé项详æ
主é®éå |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteSvyFinishoptionByIds(Long[] ids); |
| | | |
| | | /** |
| | | * å é¤é®å·æç»ç»æé项详æ
ä¿¡æ¯ |
| | | * |
| | | * @param id é®å·æç»ç»æé项详æ
ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteSvyFinishoptionById(Long id); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.service; |
| | | |
| | | import java.util.List; |
| | | import com.smartor.domain.SvyFinishtopic; |
| | | |
| | | /** |
| | | * é®å·è°æ¥ç»æè¯¦æ
Serviceæ¥å£ |
| | | * |
| | | * @author ruoyi |
| | | * @date 2023-03-03 |
| | | */ |
| | | public interface ISvyFinishtopicService |
| | | { |
| | | /** |
| | | * æ¥è¯¢é®å·è°æ¥ç»æè¯¦æ
|
| | | * |
| | | * @param id é®å·è°æ¥ç»æè¯¦æ
ä¸»é® |
| | | * @return é®å·è°æ¥ç»æè¯¦æ
|
| | | */ |
| | | public SvyFinishtopic selectSvyFinishtopicById(Long id); |
| | | |
| | | /** |
| | | * æ¥è¯¢é®å·è°æ¥ç»æè¯¦æ
å表 |
| | | * |
| | | * @param svyFinishtopic é®å·è°æ¥ç»æè¯¦æ
|
| | | * @return é®å·è°æ¥ç»æè¯¦æ
éå |
| | | */ |
| | | public List<SvyFinishtopic> selectSvyFinishtopicList(SvyFinishtopic svyFinishtopic); |
| | | |
| | | /** |
| | | * æ°å¢é®å·è°æ¥ç»æè¯¦æ
|
| | | * |
| | | * @param svyFinishtopic é®å·è°æ¥ç»æè¯¦æ
|
| | | * @return ç»æ |
| | | */ |
| | | public int insertSvyFinishtopic(SvyFinishtopic svyFinishtopic); |
| | | |
| | | /** |
| | | * ä¿®æ¹é®å·è°æ¥ç»æè¯¦æ
|
| | | * |
| | | * @param svyFinishtopic é®å·è°æ¥ç»æè¯¦æ
|
| | | * @return ç»æ |
| | | */ |
| | | public int updateSvyFinishtopic(SvyFinishtopic svyFinishtopic); |
| | | |
| | | /** |
| | | * æ¹éå é¤é®å·è°æ¥ç»æè¯¦æ
|
| | | * |
| | | * @param ids éè¦å é¤çé®å·è°æ¥ç»æè¯¦æ
主é®éå |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteSvyFinishtopicByIds(Long[] ids); |
| | | |
| | | /** |
| | | * å é¤é®å·è°æ¥ç»æè¯¦æ
ä¿¡æ¯ |
| | | * |
| | | * @param id é®å·è°æ¥ç»æè¯¦æ
ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteSvyFinishtopicById(Long id); |
| | | } |
| | |
| | | * é®å·é¢ç®Serviceæ¥å£ |
| | | * |
| | | * @author ruoyi |
| | | * @date 2023-03-02 |
| | | * @date 2023-03-03 |
| | | */ |
| | | public interface ISvyLibTopicService |
| | | { |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.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.smartor.mapper.SvyFinishMapper; |
| | | import com.smartor.domain.SvyFinish; |
| | | import com.smartor.service.ISvyFinishService; |
| | | |
| | | /** |
| | | * é®å·æç»ç»æServiceä¸å¡å±å¤ç |
| | | * |
| | | * @author ruoyi |
| | | * @date 2023-03-03 |
| | | */ |
| | | @Service |
| | | public class SvyFinishServiceImpl implements ISvyFinishService |
| | | { |
| | | @Autowired |
| | | private SvyFinishMapper svyFinishMapper; |
| | | |
| | | /** |
| | | * æ¥è¯¢é®å·æç»ç»æ |
| | | * |
| | | * @param id é®å·æç»ç»æä¸»é® |
| | | * @return é®å·æç»ç»æ |
| | | */ |
| | | @Override |
| | | public SvyFinish selectSvyFinishById(Long id) |
| | | { |
| | | return svyFinishMapper.selectSvyFinishById(id); |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢é®å·æç»ç»æå表 |
| | | * |
| | | * @param svyFinish é®å·æç»ç»æ |
| | | * @return é®å·æç»ç»æ |
| | | */ |
| | | @Override |
| | | public List<SvyFinish> selectSvyFinishList(SvyFinish svyFinish) |
| | | { |
| | | return svyFinishMapper.selectSvyFinishList(svyFinish); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢é®å·æç»ç»æ |
| | | * |
| | | * @param svyFinish é®å·æç»ç»æ |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int insertSvyFinish(SvyFinish svyFinish) |
| | | { |
| | | svyFinish.setCreateTime(DateUtils.getNowDate()); |
| | | return svyFinishMapper.insertSvyFinish(svyFinish); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹é®å·æç»ç»æ |
| | | * |
| | | * @param svyFinish é®å·æç»ç»æ |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int updateSvyFinish(SvyFinish svyFinish) |
| | | { |
| | | svyFinish.setUpdateTime(DateUtils.getNowDate()); |
| | | return svyFinishMapper.updateSvyFinish(svyFinish); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éå é¤é®å·æç»ç»æ |
| | | * |
| | | * @param ids éè¦å é¤çé®å·æç»ç»æä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteSvyFinishByIds(Long[] ids) |
| | | { |
| | | return svyFinishMapper.deleteSvyFinishByIds(ids); |
| | | } |
| | | |
| | | /** |
| | | * å é¤é®å·æç»ç»æä¿¡æ¯ |
| | | * |
| | | * @param id é®å·æç»ç»æä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteSvyFinishById(Long id) |
| | | { |
| | | return svyFinishMapper.deleteSvyFinishById(id); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.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.smartor.mapper.SvyFinishoptionMapper; |
| | | import com.smartor.domain.SvyFinishoption; |
| | | import com.smartor.service.ISvyFinishoptionService; |
| | | |
| | | /** |
| | | * é®å·æç»ç»æé项详æ
Serviceä¸å¡å±å¤ç |
| | | * |
| | | * @author ruoyi |
| | | * @date 2023-03-03 |
| | | */ |
| | | @Service |
| | | public class SvyFinishoptionServiceImpl implements ISvyFinishoptionService |
| | | { |
| | | @Autowired |
| | | private SvyFinishoptionMapper svyFinishoptionMapper; |
| | | |
| | | /** |
| | | * æ¥è¯¢é®å·æç»ç»æé项详æ
|
| | | * |
| | | * @param id é®å·æç»ç»æé项详æ
ä¸»é® |
| | | * @return é®å·æç»ç»æé项详æ
|
| | | */ |
| | | @Override |
| | | public SvyFinishoption selectSvyFinishoptionById(Long id) |
| | | { |
| | | return svyFinishoptionMapper.selectSvyFinishoptionById(id); |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢é®å·æç»ç»æé项详æ
å表 |
| | | * |
| | | * @param svyFinishoption é®å·æç»ç»æé项详æ
|
| | | * @return é®å·æç»ç»æé项详æ
|
| | | */ |
| | | @Override |
| | | public List<SvyFinishoption> selectSvyFinishoptionList(SvyFinishoption svyFinishoption) |
| | | { |
| | | return svyFinishoptionMapper.selectSvyFinishoptionList(svyFinishoption); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢é®å·æç»ç»æé项详æ
|
| | | * |
| | | * @param svyFinishoption é®å·æç»ç»æé项详æ
|
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int insertSvyFinishoption(SvyFinishoption svyFinishoption) |
| | | { |
| | | svyFinishoption.setCreateTime(DateUtils.getNowDate()); |
| | | return svyFinishoptionMapper.insertSvyFinishoption(svyFinishoption); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹é®å·æç»ç»æé项详æ
|
| | | * |
| | | * @param svyFinishoption é®å·æç»ç»æé项详æ
|
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int updateSvyFinishoption(SvyFinishoption svyFinishoption) |
| | | { |
| | | svyFinishoption.setUpdateTime(DateUtils.getNowDate()); |
| | | return svyFinishoptionMapper.updateSvyFinishoption(svyFinishoption); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éå é¤é®å·æç»ç»æé项详æ
|
| | | * |
| | | * @param ids éè¦å é¤çé®å·æç»ç»æé项详æ
ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteSvyFinishoptionByIds(Long[] ids) |
| | | { |
| | | return svyFinishoptionMapper.deleteSvyFinishoptionByIds(ids); |
| | | } |
| | | |
| | | /** |
| | | * å é¤é®å·æç»ç»æé项详æ
ä¿¡æ¯ |
| | | * |
| | | * @param id é®å·æç»ç»æé项详æ
ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteSvyFinishoptionById(Long id) |
| | | { |
| | | return svyFinishoptionMapper.deleteSvyFinishoptionById(id); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.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.smartor.mapper.SvyFinishtopicMapper; |
| | | import com.smartor.domain.SvyFinishtopic; |
| | | import com.smartor.service.ISvyFinishtopicService; |
| | | |
| | | /** |
| | | * é®å·è°æ¥ç»æè¯¦æ
Serviceä¸å¡å±å¤ç |
| | | * |
| | | * @author ruoyi |
| | | * @date 2023-03-03 |
| | | */ |
| | | @Service |
| | | public class SvyFinishtopicServiceImpl implements ISvyFinishtopicService |
| | | { |
| | | @Autowired |
| | | private SvyFinishtopicMapper svyFinishtopicMapper; |
| | | |
| | | /** |
| | | * æ¥è¯¢é®å·è°æ¥ç»æè¯¦æ
|
| | | * |
| | | * @param id é®å·è°æ¥ç»æè¯¦æ
ä¸»é® |
| | | * @return é®å·è°æ¥ç»æè¯¦æ
|
| | | */ |
| | | @Override |
| | | public SvyFinishtopic selectSvyFinishtopicById(Long id) |
| | | { |
| | | return svyFinishtopicMapper.selectSvyFinishtopicById(id); |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢é®å·è°æ¥ç»æè¯¦æ
å表 |
| | | * |
| | | * @param svyFinishtopic é®å·è°æ¥ç»æè¯¦æ
|
| | | * @return é®å·è°æ¥ç»æè¯¦æ
|
| | | */ |
| | | @Override |
| | | public List<SvyFinishtopic> selectSvyFinishtopicList(SvyFinishtopic svyFinishtopic) |
| | | { |
| | | return svyFinishtopicMapper.selectSvyFinishtopicList(svyFinishtopic); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢é®å·è°æ¥ç»æè¯¦æ
|
| | | * |
| | | * @param svyFinishtopic é®å·è°æ¥ç»æè¯¦æ
|
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int insertSvyFinishtopic(SvyFinishtopic svyFinishtopic) |
| | | { |
| | | svyFinishtopic.setCreateTime(DateUtils.getNowDate()); |
| | | return svyFinishtopicMapper.insertSvyFinishtopic(svyFinishtopic); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹é®å·è°æ¥ç»æè¯¦æ
|
| | | * |
| | | * @param svyFinishtopic é®å·è°æ¥ç»æè¯¦æ
|
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int updateSvyFinishtopic(SvyFinishtopic svyFinishtopic) |
| | | { |
| | | svyFinishtopic.setUpdateTime(DateUtils.getNowDate()); |
| | | return svyFinishtopicMapper.updateSvyFinishtopic(svyFinishtopic); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éå é¤é®å·è°æ¥ç»æè¯¦æ
|
| | | * |
| | | * @param ids éè¦å é¤çé®å·è°æ¥ç»æè¯¦æ
ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteSvyFinishtopicByIds(Long[] ids) |
| | | { |
| | | return svyFinishtopicMapper.deleteSvyFinishtopicByIds(ids); |
| | | } |
| | | |
| | | /** |
| | | * å é¤é®å·è°æ¥ç»æè¯¦æ
ä¿¡æ¯ |
| | | * |
| | | * @param id é®å·è°æ¥ç»æè¯¦æ
ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteSvyFinishtopicById(Long id) |
| | | { |
| | | return svyFinishtopicMapper.deleteSvyFinishtopicById(id); |
| | | } |
| | | } |
| | |
| | | * é®å·é¢ç®Serviceä¸å¡å±å¤ç |
| | | * |
| | | * @author ruoyi |
| | | * @date 2023-03-02 |
| | | * @date 2023-03-03 |
| | | */ |
| | | @Service |
| | | public class SvyLibTopicServiceImpl implements ISvyLibTopicService |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?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.smartor.mapper.SvyFinishMapper"> |
| | | |
| | | <resultMap type="SvyFinish" id="SvyFinishResult"> |
| | | <result property="id" column="id" /> |
| | | <result property="patid" column="patid" /> |
| | | <result property="schemeid" column="schemeid" /> |
| | | <result property="svytitle" column="svytitle" /> |
| | | <result property="svyid" column="svyid" /> |
| | | <result property="totalscore" column="totalscore" /> |
| | | <result property="resultcontent" column="resultcontent" /> |
| | | <result property="orgid" column="orgid" /> |
| | | <result property="isshowscore" column="isshowscore" /> |
| | | <result property="schemeplanid" column="schemeplanid" /> |
| | | <result property="schemetaskid" column="schemetaskid" /> |
| | | <result property="isabnormal" column="isabnormal" /> |
| | | <result property="delFlag" column="del_flag" /> |
| | | <result property="createBy" column="create_by" /> |
| | | <result property="createTime" column="create_time" /> |
| | | <result property="updateBy" column="update_by" /> |
| | | <result property="updateTime" column="update_time" /> |
| | | <result property="isupload" column="isupload" /> |
| | | <result property="uploadTime" column="upload_time" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectSvyFinishVo"> |
| | | select id, patid, schemeid, svytitle, svyid, totalscore, resultcontent, orgid, isshowscore, schemeplanid, schemetaskid, isabnormal, del_flag, create_by, create_time, update_by, update_time, isupload, upload_time from svy_finish |
| | | </sql> |
| | | |
| | | <select id="selectSvyFinishList" parameterType="SvyFinish" resultMap="SvyFinishResult"> |
| | | <include refid="selectSvyFinishVo"/> |
| | | <where> |
| | | <if test="svytitle != null and svytitle != ''"> and svytitle = #{svytitle}</if> |
| | | <if test="totalscore != null "> and totalscore = #{totalscore}</if> |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | <if test="isabnormal != null "> and isabnormal = #{isabnormal}</if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectSvyFinishById" parameterType="Long" resultMap="SvyFinishResult"> |
| | | <include refid="selectSvyFinishVo"/> |
| | | where id = #{id} |
| | | </select> |
| | | |
| | | <insert id="insertSvyFinish" parameterType="SvyFinish" useGeneratedKeys="true" keyProperty="id"> |
| | | insert into svy_finish |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="patid != null">patid,</if> |
| | | <if test="schemeid != null">schemeid,</if> |
| | | <if test="svytitle != null">svytitle,</if> |
| | | <if test="svyid != null">svyid,</if> |
| | | <if test="totalscore != null">totalscore,</if> |
| | | <if test="resultcontent != null">resultcontent,</if> |
| | | <if test="orgid != null">orgid,</if> |
| | | <if test="isshowscore != null">isshowscore,</if> |
| | | <if test="schemeplanid != null">schemeplanid,</if> |
| | | <if test="schemetaskid != null">schemetaskid,</if> |
| | | <if test="isabnormal != null">isabnormal,</if> |
| | | <if test="delFlag != null and delFlag != ''">del_flag,</if> |
| | | <if test="createBy != null">create_by,</if> |
| | | <if test="createTime != null">create_time,</if> |
| | | <if test="updateBy != null">update_by,</if> |
| | | <if test="updateTime != null">update_time,</if> |
| | | <if test="isupload != null">isupload,</if> |
| | | <if test="uploadTime != null">upload_time,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="patid != null">#{patid},</if> |
| | | <if test="schemeid != null">#{schemeid},</if> |
| | | <if test="svytitle != null">#{svytitle},</if> |
| | | <if test="svyid != null">#{svyid},</if> |
| | | <if test="totalscore != null">#{totalscore},</if> |
| | | <if test="resultcontent != null">#{resultcontent},</if> |
| | | <if test="orgid != null">#{orgid},</if> |
| | | <if test="isshowscore != null">#{isshowscore},</if> |
| | | <if test="schemeplanid != null">#{schemeplanid},</if> |
| | | <if test="schemetaskid != null">#{schemetaskid},</if> |
| | | <if test="isabnormal != null">#{isabnormal},</if> |
| | | <if test="delFlag != null and delFlag != ''">#{delFlag},</if> |
| | | <if test="createBy != null">#{createBy},</if> |
| | | <if test="createTime != null">#{createTime},</if> |
| | | <if test="updateBy != null">#{updateBy},</if> |
| | | <if test="updateTime != null">#{updateTime},</if> |
| | | <if test="isupload != null">#{isupload},</if> |
| | | <if test="uploadTime != null">#{uploadTime},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateSvyFinish" parameterType="SvyFinish"> |
| | | update svy_finish |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="patid != null">patid = #{patid},</if> |
| | | <if test="schemeid != null">schemeid = #{schemeid},</if> |
| | | <if test="svytitle != null">svytitle = #{svytitle},</if> |
| | | <if test="svyid != null">svyid = #{svyid},</if> |
| | | <if test="totalscore != null">totalscore = #{totalscore},</if> |
| | | <if test="resultcontent != null">resultcontent = #{resultcontent},</if> |
| | | <if test="orgid != null">orgid = #{orgid},</if> |
| | | <if test="isshowscore != null">isshowscore = #{isshowscore},</if> |
| | | <if test="schemeplanid != null">schemeplanid = #{schemeplanid},</if> |
| | | <if test="schemetaskid != null">schemetaskid = #{schemetaskid},</if> |
| | | <if test="isabnormal != null">isabnormal = #{isabnormal},</if> |
| | | <if test="delFlag != null and delFlag != ''">del_flag = #{delFlag},</if> |
| | | <if test="createBy != null">create_by = #{createBy},</if> |
| | | <if test="createTime != null">create_time = #{createTime},</if> |
| | | <if test="updateBy != null">update_by = #{updateBy},</if> |
| | | <if test="updateTime != null">update_time = #{updateTime},</if> |
| | | <if test="isupload != null">isupload = #{isupload},</if> |
| | | <if test="uploadTime != null">upload_time = #{uploadTime},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <delete id="deleteSvyFinishById" parameterType="Long"> |
| | | delete from svy_finish where id = #{id} |
| | | </delete> |
| | | |
| | | <delete id="deleteSvyFinishByIds" parameterType="String"> |
| | | delete from svy_finish where id in |
| | | <foreach item="id" collection="array" open="(" separator="," close=")"> |
| | | #{id} |
| | | </foreach> |
| | | </delete> |
| | | </mapper> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?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.smartor.mapper.SvyFinishoptionMapper"> |
| | | |
| | | <resultMap type="SvyFinishoption" id="SvyFinishoptionResult"> |
| | | <result property="id" column="id" /> |
| | | <result property="finshresultdetailid" column="finshresultdetailid" /> |
| | | <result property="psqoptionid" column="psqoptionid" /> |
| | | <result property="content" column="content" /> |
| | | <result property="score" column="score" /> |
| | | <result property="orgid" column="orgid" /> |
| | | <result property="delFlag" column="del_flag" /> |
| | | <result property="updateBy" column="update_by" /> |
| | | <result property="updateTime" column="update_time" /> |
| | | <result property="createBy" column="create_by" /> |
| | | <result property="createTime" column="create_time" /> |
| | | <result property="isupload" column="isupload" /> |
| | | <result property="uploadTime" column="upload_time" /> |
| | | <result property="isabnormal" column="isabnormal" /> |
| | | <result property="isrobot" column="isrobot" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectSvyFinishoptionVo"> |
| | | select id, finshresultdetailid, psqoptionid, content, score, orgid, del_flag, update_by, update_time, create_by, create_time, isupload, upload_time, isabnormal, isrobot from svy_finishoption |
| | | </sql> |
| | | |
| | | <select id="selectSvyFinishoptionList" parameterType="SvyFinishoption" resultMap="SvyFinishoptionResult"> |
| | | <include refid="selectSvyFinishoptionVo"/> |
| | | <where> |
| | | <if test="psqoptionid != null "> and psqoptionid = #{psqoptionid}</if> |
| | | <if test="content != null and content != ''"> and content = #{content}</if> |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | <if test="isrobot != null "> and isrobot = #{isrobot}</if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectSvyFinishoptionById" parameterType="Long" resultMap="SvyFinishoptionResult"> |
| | | <include refid="selectSvyFinishoptionVo"/> |
| | | where id = #{id} |
| | | </select> |
| | | |
| | | <insert id="insertSvyFinishoption" parameterType="SvyFinishoption" useGeneratedKeys="true" keyProperty="id"> |
| | | insert into svy_finishoption |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="finshresultdetailid != null">finshresultdetailid,</if> |
| | | <if test="psqoptionid != null">psqoptionid,</if> |
| | | <if test="content != null">content,</if> |
| | | <if test="score != null">score,</if> |
| | | <if test="orgid != null">orgid,</if> |
| | | <if test="delFlag != null and delFlag != ''">del_flag,</if> |
| | | <if test="updateBy != null">update_by,</if> |
| | | <if test="updateTime != null">update_time,</if> |
| | | <if test="createBy != null">create_by,</if> |
| | | <if test="createTime != null">create_time,</if> |
| | | <if test="isupload != null">isupload,</if> |
| | | <if test="uploadTime != null">upload_time,</if> |
| | | <if test="isabnormal != null">isabnormal,</if> |
| | | <if test="isrobot != null">isrobot,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="finshresultdetailid != null">#{finshresultdetailid},</if> |
| | | <if test="psqoptionid != null">#{psqoptionid},</if> |
| | | <if test="content != null">#{content},</if> |
| | | <if test="score != null">#{score},</if> |
| | | <if test="orgid != null">#{orgid},</if> |
| | | <if test="delFlag != null and delFlag != ''">#{delFlag},</if> |
| | | <if test="updateBy != null">#{updateBy},</if> |
| | | <if test="updateTime != null">#{updateTime},</if> |
| | | <if test="createBy != null">#{createBy},</if> |
| | | <if test="createTime != null">#{createTime},</if> |
| | | <if test="isupload != null">#{isupload},</if> |
| | | <if test="uploadTime != null">#{uploadTime},</if> |
| | | <if test="isabnormal != null">#{isabnormal},</if> |
| | | <if test="isrobot != null">#{isrobot},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateSvyFinishoption" parameterType="SvyFinishoption"> |
| | | update svy_finishoption |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="finshresultdetailid != null">finshresultdetailid = #{finshresultdetailid},</if> |
| | | <if test="psqoptionid != null">psqoptionid = #{psqoptionid},</if> |
| | | <if test="content != null">content = #{content},</if> |
| | | <if test="score != null">score = #{score},</if> |
| | | <if test="orgid != null">orgid = #{orgid},</if> |
| | | <if test="delFlag != null and delFlag != ''">del_flag = #{delFlag},</if> |
| | | <if test="updateBy != null">update_by = #{updateBy},</if> |
| | | <if test="updateTime != null">update_time = #{updateTime},</if> |
| | | <if test="createBy != null">create_by = #{createBy},</if> |
| | | <if test="createTime != null">create_time = #{createTime},</if> |
| | | <if test="isupload != null">isupload = #{isupload},</if> |
| | | <if test="uploadTime != null">upload_time = #{uploadTime},</if> |
| | | <if test="isabnormal != null">isabnormal = #{isabnormal},</if> |
| | | <if test="isrobot != null">isrobot = #{isrobot},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <delete id="deleteSvyFinishoptionById" parameterType="Long"> |
| | | delete from svy_finishoption where id = #{id} |
| | | </delete> |
| | | |
| | | <delete id="deleteSvyFinishoptionByIds" parameterType="String"> |
| | | delete from svy_finishoption where id in |
| | | <foreach item="id" collection="array" open="(" separator="," close=")"> |
| | | #{id} |
| | | </foreach> |
| | | </delete> |
| | | </mapper> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?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.smartor.mapper.SvyFinishtopicMapper"> |
| | | |
| | | <resultMap type="SvyFinishtopic" id="SvyFinishtopicResult"> |
| | | <result property="id" column="id" /> |
| | | <result property="psqid" column="psqid" /> |
| | | <result property="resultid" column="resultid" /> |
| | | <result property="topicid" column="topicid" /> |
| | | <result property="score" column="score" /> |
| | | <result property="orgid" column="orgid" /> |
| | | <result property="delFlag" column="del_flag" /> |
| | | <result property="updateBy" column="update_by" /> |
| | | <result property="updateTime" column="update_time" /> |
| | | <result property="createBy" column="create_by" /> |
| | | <result property="createTime" column="create_time" /> |
| | | <result property="isupload" column="isupload" /> |
| | | <result property="uploadTime" column="upload_time" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectSvyFinishtopicVo"> |
| | | select id, psqid, resultid, topicid, score, orgid, del_flag, update_by, update_time, create_by, create_time, isupload, upload_time from svy_finishtopic |
| | | </sql> |
| | | |
| | | <select id="selectSvyFinishtopicList" parameterType="SvyFinishtopic" resultMap="SvyFinishtopicResult"> |
| | | <include refid="selectSvyFinishtopicVo"/> |
| | | <where> |
| | | <if test="topicid != null "> and topicid = #{topicid}</if> |
| | | <if test="score != null "> and score = #{score}</if> |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | <if test="isupload != null "> and isupload = #{isupload}</if> |
| | | <if test="uploadTime != null "> and upload_time = #{uploadTime}</if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectSvyFinishtopicById" parameterType="Long" resultMap="SvyFinishtopicResult"> |
| | | <include refid="selectSvyFinishtopicVo"/> |
| | | where id = #{id} |
| | | </select> |
| | | |
| | | <insert id="insertSvyFinishtopic" parameterType="SvyFinishtopic" useGeneratedKeys="true" keyProperty="id"> |
| | | insert into svy_finishtopic |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="psqid != null">psqid,</if> |
| | | <if test="resultid != null">resultid,</if> |
| | | <if test="topicid != null">topicid,</if> |
| | | <if test="score != null">score,</if> |
| | | <if test="orgid != null">orgid,</if> |
| | | <if test="delFlag != null and delFlag != ''">del_flag,</if> |
| | | <if test="updateBy != null">update_by,</if> |
| | | <if test="updateTime != null">update_time,</if> |
| | | <if test="createBy != null">create_by,</if> |
| | | <if test="createTime != null">create_time,</if> |
| | | <if test="isupload != null">isupload,</if> |
| | | <if test="uploadTime != null">upload_time,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="psqid != null">#{psqid},</if> |
| | | <if test="resultid != null">#{resultid},</if> |
| | | <if test="topicid != null">#{topicid},</if> |
| | | <if test="score != null">#{score},</if> |
| | | <if test="orgid != null">#{orgid},</if> |
| | | <if test="delFlag != null and delFlag != ''">#{delFlag},</if> |
| | | <if test="updateBy != null">#{updateBy},</if> |
| | | <if test="updateTime != null">#{updateTime},</if> |
| | | <if test="createBy != null">#{createBy},</if> |
| | | <if test="createTime != null">#{createTime},</if> |
| | | <if test="isupload != null">#{isupload},</if> |
| | | <if test="uploadTime != null">#{uploadTime},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateSvyFinishtopic" parameterType="SvyFinishtopic"> |
| | | update svy_finishtopic |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="psqid != null">psqid = #{psqid},</if> |
| | | <if test="resultid != null">resultid = #{resultid},</if> |
| | | <if test="topicid != null">topicid = #{topicid},</if> |
| | | <if test="score != null">score = #{score},</if> |
| | | <if test="orgid != null">orgid = #{orgid},</if> |
| | | <if test="delFlag != null and delFlag != ''">del_flag = #{delFlag},</if> |
| | | <if test="updateBy != null">update_by = #{updateBy},</if> |
| | | <if test="updateTime != null">update_time = #{updateTime},</if> |
| | | <if test="createBy != null">create_by = #{createBy},</if> |
| | | <if test="createTime != null">create_time = #{createTime},</if> |
| | | <if test="isupload != null">isupload = #{isupload},</if> |
| | | <if test="uploadTime != null">upload_time = #{uploadTime},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <delete id="deleteSvyFinishtopicById" parameterType="Long"> |
| | | delete from svy_finishtopic where id = #{id} |
| | | </delete> |
| | | |
| | | <delete id="deleteSvyFinishtopicByIds" parameterType="String"> |
| | | delete from svy_finishtopic where id in |
| | | <foreach item="id" collection="array" open="(" separator="," close=")"> |
| | | #{id} |
| | | </foreach> |
| | | </delete> |
| | | </mapper> |
| | |
| | | <include refid="selectSvyLibTopicVo"/> |
| | | <where> |
| | | <if test="oldid != null "> and oldid = #{oldid}</if> |
| | | <if test="svyid != null "> and svyid = #{svyid}</if> |
| | | <if test="topictype != null "> and topictype = #{topictype}</if> |
| | | <if test="topiccode != null and topiccode != ''"> and topiccode = #{topiccode}</if> |
| | | <if test="topic != null and topic != ''"> and topic = #{topic}</if> |
| | | <if test="sort != null "> and sort = #{sort}</if> |
| | | <if test="ismandatory != null "> and ismandatory = #{ismandatory}</if> |
| | | <if test="ishide != null "> and ishide = #{ishide}</if> |
| | | <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if> |
| | | <if test="isupload != null "> and isupload = #{isupload}</if> |
| | | <if test="uploadTime != null "> and upload_time = #{uploadTime}</if> |
| | | </where> |
| | | </select> |
| | | |