¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.web.controller.smartor; |
| | | |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.core.controller.BaseController; |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | | import com.ruoyi.common.core.page.TableDataInfo; |
| | | import com.ruoyi.common.enums.BusinessType; |
| | | import com.ruoyi.common.utils.poi.ExcelUtil; |
| | | import com.smartor.domain.SvyLibScriptTag; |
| | | import com.smartor.service.ISvyLibScriptTagService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * é®é¢è¯æ¯æ ç¾åºController |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-07-24 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/smartor/svyLibScriptTag") |
| | | public class SvyLibScriptTagController extends BaseController |
| | | { |
| | | @Autowired |
| | | private ISvyLibScriptTagService svyLibScriptTagService; |
| | | |
| | | /** |
| | | * æ¥è¯¢é®é¢è¯æ¯æ ç¾åºå表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:tag:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(SvyLibScriptTag svyLibScriptTag) |
| | | { |
| | | startPage(); |
| | | List<SvyLibScriptTag> list = svyLibScriptTagService.selectSvyLibScriptTagList(svyLibScriptTag); |
| | | return getDataTable(list); |
| | | } |
| | | |
| | | /** |
| | | * 导åºé®é¢è¯æ¯æ ç¾åºå表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:tag:export')") |
| | | @Log(title = "é®é¢è¯æ¯æ ç¾åº", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, SvyLibScriptTag svyLibScriptTag) |
| | | { |
| | | List<SvyLibScriptTag> list = svyLibScriptTagService.selectSvyLibScriptTagList(svyLibScriptTag); |
| | | ExcelUtil<SvyLibScriptTag> util = new ExcelUtil<SvyLibScriptTag>(SvyLibScriptTag.class); |
| | | util.exportExcel(response, list, "é®é¢è¯æ¯æ ç¾åºæ°æ®"); |
| | | } |
| | | |
| | | /** |
| | | * è·åé®é¢è¯æ¯æ ç¾åºè¯¦ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:tag:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) |
| | | { |
| | | return success(svyLibScriptTagService.selectSvyLibScriptTagById(id)); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢é®é¢è¯æ¯æ ç¾åº |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:tag:add')") |
| | | @Log(title = "é®é¢è¯æ¯æ ç¾åº", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody SvyLibScriptTag svyLibScriptTag) |
| | | { |
| | | return toAjax(svyLibScriptTagService.insertSvyLibScriptTag(svyLibScriptTag)); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹é®é¢è¯æ¯æ ç¾åº |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:tag:edit')") |
| | | @Log(title = "é®é¢è¯æ¯æ ç¾åº", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody SvyLibScriptTag svyLibScriptTag) |
| | | { |
| | | return toAjax(svyLibScriptTagService.updateSvyLibScriptTag(svyLibScriptTag)); |
| | | } |
| | | |
| | | /** |
| | | * å é¤é®é¢è¯æ¯æ ç¾åº |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:tag:remove')") |
| | | @Log(title = "é®é¢è¯æ¯æ ç¾åº", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) |
| | | { |
| | | return toAjax(svyLibScriptTagService.deleteSvyLibScriptTagByIds(ids)); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.web.controller.smartor; |
| | | |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.core.controller.BaseController; |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | | import com.ruoyi.common.core.page.TableDataInfo; |
| | | import com.ruoyi.common.enums.BusinessType; |
| | | import com.ruoyi.common.utils.poi.ExcelUtil; |
| | | import com.smartor.domain.SvyLibTemplateTag; |
| | | import com.smartor.service.ISvyLibTemplateTagService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * æ¨¡æ¿æ ç¾Controller |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-07-24 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/smartor/svyLibTemplateTag") |
| | | public class SvyLibTemplateTagController extends BaseController |
| | | { |
| | | @Autowired |
| | | private ISvyLibTemplateTagService svyLibTemplateTagService; |
| | | |
| | | /** |
| | | * æ¥è¯¢æ¨¡æ¿æ ç¾å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:tag:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(SvyLibTemplateTag svyLibTemplateTag) |
| | | { |
| | | startPage(); |
| | | List<SvyLibTemplateTag> list = svyLibTemplateTagService.selectSvyLibTemplateTagList(svyLibTemplateTag); |
| | | return getDataTable(list); |
| | | } |
| | | |
| | | /** |
| | | * å¯¼åºæ¨¡æ¿æ ç¾å表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:tag:export')") |
| | | @Log(title = "æ¨¡æ¿æ ç¾", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, SvyLibTemplateTag svyLibTemplateTag) |
| | | { |
| | | List<SvyLibTemplateTag> list = svyLibTemplateTagService.selectSvyLibTemplateTagList(svyLibTemplateTag); |
| | | ExcelUtil<SvyLibTemplateTag> util = new ExcelUtil<SvyLibTemplateTag>(SvyLibTemplateTag.class); |
| | | util.exportExcel(response, list, "æ¨¡æ¿æ ç¾æ°æ®"); |
| | | } |
| | | |
| | | /** |
| | | * è·åæ¨¡æ¿æ ç¾è¯¦ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:tag:query')") |
| | | @GetMapping(value = "/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) |
| | | { |
| | | return success(svyLibTemplateTagService.selectSvyLibTemplateTagById(id)); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢æ¨¡æ¿æ ç¾ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:tag:add')") |
| | | @Log(title = "æ¨¡æ¿æ ç¾", businessType = BusinessType.INSERT) |
| | | @PostMapping |
| | | public AjaxResult add(@RequestBody SvyLibTemplateTag svyLibTemplateTag) |
| | | { |
| | | return toAjax(svyLibTemplateTagService.insertSvyLibTemplateTag(svyLibTemplateTag)); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹æ¨¡æ¿æ ç¾ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:tag:edit')") |
| | | @Log(title = "æ¨¡æ¿æ ç¾", businessType = BusinessType.UPDATE) |
| | | @PutMapping |
| | | public AjaxResult edit(@RequestBody SvyLibTemplateTag svyLibTemplateTag) |
| | | { |
| | | return toAjax(svyLibTemplateTagService.updateSvyLibTemplateTag(svyLibTemplateTag)); |
| | | } |
| | | |
| | | /** |
| | | * å 餿¨¡æ¿æ ç¾ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:tag:remove')") |
| | | @Log(title = "æ¨¡æ¿æ ç¾", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) |
| | | { |
| | | return toAjax(svyLibTemplateTagService.deleteSvyLibTemplateTagByIds(ids)); |
| | | } |
| | | } |
| | |
| | | # 令çå¯é¥ |
| | | secret: abcdefghijklmnopqrstuvwxyz |
| | | # ä»¤çæææï¼é»è®¤30åéï¼ |
| | | expireTime: 30 |
| | | expireTime: 120 |
| | | |
| | | # MyBatisé
ç½® |
| | | mybatis: |
| | |
| | | @ApiModelProperty("ä¸ä¼ æ è®°") |
| | | private Long isupload; |
| | | |
| | | /** |
| | | * ä¸ä¼ æ è®° |
| | | */ |
| | | |
| | | @ApiModelProperty("æ ç¾") |
| | | private String tag = ""; |
| | | private List<SvyLibScriptTag> svyLibScriptTagList; |
| | | |
| | | /** |
| | | * ä¸ä¼ æ¶é´ |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.domain; |
| | | |
| | | import java.util.Date; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | 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_lib_script_tag |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-07-24 |
| | | */ |
| | | @Data |
| | | @ApiModel(value = "SvyLibScriptTag", description = "é®é¢è¯æ¯æ ç¾åºå¯¹è±¡") |
| | | public class SvyLibScriptTag extends BaseEntity { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * èªå¢ID |
| | | */ |
| | | @ApiModelProperty(value = "èªå¢ID") |
| | | private Long id; |
| | | |
| | | /** |
| | | * æ ç¾åç±»ID |
| | | */ |
| | | @ApiModelProperty(value = "æ ç¾åç±»ID") |
| | | private Long tagcategoryid; |
| | | |
| | | /** |
| | | * ivr_liba_script çä¸»é® |
| | | */ |
| | | @ApiModelProperty(value = "ivr_liba_script ç主é®") |
| | | private Long scriptid; |
| | | |
| | | /** |
| | | * æ ç¾ID |
| | | */ |
| | | @ApiModelProperty(value = "æ ç¾ID") |
| | | private Long tagid; |
| | | |
| | | /** |
| | | * æ ç¾å |
| | | */ |
| | | @ApiModelProperty(value = "æ ç¾å") |
| | | private String tagname; |
| | | |
| | | /** |
| | | * æºæID |
| | | */ |
| | | @ApiModelProperty(value = "æºæID") |
| | | private String orgid; |
| | | |
| | | /** |
| | | * å 餿 å¿ï¼0ï¼æªå é¤ 1ï¼å·²å é¤ï¼ |
| | | */ |
| | | @ApiModelProperty(value = "å 餿 å¿ï¼0ï¼æªå é¤ 1ï¼å·²å é¤ï¼") |
| | | private String delFlag; |
| | | |
| | | /** |
| | | * ä¸ä¼ æ å¿ï¼0ï¼æªä¸ä¼ 1ï¼å·²ä¸ä¼ ï¼ |
| | | */ |
| | | @ApiModelProperty(value = "ä¸ä¼ æ å¿") |
| | | private Long isupload; |
| | | |
| | | /** |
| | | * ä¸ä¼ æ¶é´ |
| | | */ |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @ApiModelProperty(value = "ä¸ä¼ æ¶é´") |
| | | private Date uploadTime; |
| | | |
| | | /** |
| | | * ç¶ID |
| | | */ |
| | | @ApiModelProperty(value = "ç¶ID") |
| | | private Long pid; |
| | | |
| | | /** |
| | | * GUID |
| | | */ |
| | | @ApiModelProperty(value = "GUID") |
| | | private String guid; |
| | | |
| | | /** |
| | | * æ¯å¦å卿ä½ï¼1 æ°å¢ 2ä¿®æ¹ 3å é¤ |
| | | */ |
| | | @ApiModelProperty(value = "æ¯å¦å卿ä½ï¼1 æ°å¢ 2ä¿®æ¹ 3å é¤") |
| | | private Integer isoperation; |
| | | |
| | | } |
| | |
| | | */ |
| | | @ApiModelProperty(value = "æ¯å¦å卿ä½ï¼1 æ°å¢ 2ä¿®æ¹ 3å é¤") |
| | | private Integer isoperation; |
| | | |
| | | /** |
| | | * ç§å®¤åç§° |
| | | */ |
| | |
| | | */ |
| | | @Excel(name = "æ ç¾ä¿¡æ¯") |
| | | @ApiModelProperty("æ ç¾ä¿¡æ¯") |
| | | private String labelInfo = ""; |
| | | private List<SvyLibTemplateTag> svyLibTemplateTagList; |
| | | |
| | | /** |
| | | * é¢åº |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.domain; |
| | | |
| | | import java.util.Date; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | 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_lib_template_tag |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-07-24 |
| | | */ |
| | | @Data |
| | | @ApiModel(value = "SvyLibTemplateTag", description = "æ¨¡æ¿æ ç¾å¯¹è±¡") |
| | | public class SvyLibTemplateTag extends BaseEntity { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * èªå¢ID |
| | | */ |
| | | @ApiModelProperty(value = "主é®") |
| | | private Long id; |
| | | |
| | | /** |
| | | * æ ç¾åç±»ID |
| | | */ |
| | | @ApiModelProperty(value = "æ ç¾åç±»ID") |
| | | private Long tagcategoryid; |
| | | |
| | | /** |
| | | * 模æ¿ID |
| | | */ |
| | | @ApiModelProperty(value = "模æ¿ID") |
| | | private Long templateid; |
| | | |
| | | /** |
| | | * æ ç¾ID |
| | | */ |
| | | @ApiModelProperty(value = "æ ç¾ID") |
| | | private Long tagid; |
| | | |
| | | /** |
| | | * æ ç¾å |
| | | */ |
| | | @ApiModelProperty(value = "æ ç¾å") |
| | | private String tagname; |
| | | |
| | | /** |
| | | * æºæID |
| | | */ |
| | | @ApiModelProperty(value = "æºæID") |
| | | private String orgid; |
| | | |
| | | /** |
| | | * å 餿 å¿ï¼0ï¼æªå é¤ 1ï¼å·²å é¤ï¼ |
| | | */ |
| | | @ApiModelProperty(value = "å 餿 å¿ï¼0ï¼æªå é¤ 1ï¼å·²å é¤ï¼") |
| | | private String delFlag; |
| | | |
| | | /** |
| | | * ä¸ä¼ æ å¿ï¼0ï¼æªä¸ä¼ 1ï¼å·²ä¸ä¼ ï¼ |
| | | */ |
| | | @ApiModelProperty(value = "ä¸ä¼ æ å¿") |
| | | private Long isupload; |
| | | |
| | | /** |
| | | * ä¸ä¼ æ¶é´ |
| | | */ |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @ApiModelProperty(value = "ä¸ä¼ æ¶é´") |
| | | private Date uploadTime; |
| | | |
| | | /** |
| | | * ç¶ID |
| | | */ |
| | | @ApiModelProperty(value = "ç¶ID") |
| | | private Long pid; |
| | | |
| | | /** |
| | | * GUID |
| | | */ |
| | | @ApiModelProperty(value = "GUID") |
| | | private String guid; |
| | | |
| | | } |
| | |
| | | private Integer nextQuestion; |
| | | |
| | | /** |
| | | * ä¸ä¸é¢ |
| | | */ |
| | | @ApiModelProperty(value = "é项ç¼å·") |
| | | private Long optionNo; |
| | | |
| | | /** |
| | | * é项å¾çè·¯å¾ |
| | | */ |
| | | @ApiModelProperty(value = "é项å¾çè·¯å¾") |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.mapper; |
| | | |
| | | import com.smartor.domain.SvyLibScriptTag; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * é®é¢è¯æ¯æ ç¾åºMapperæ¥å£ |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-07-24 |
| | | */ |
| | | @Mapper |
| | | public interface SvyLibScriptTagMapper |
| | | { |
| | | /** |
| | | * æ¥è¯¢é®é¢è¯æ¯æ ç¾åº |
| | | * |
| | | * @param id é®é¢è¯æ¯æ ç¾åºä¸»é® |
| | | * @return é®é¢è¯æ¯æ ç¾åº |
| | | */ |
| | | public SvyLibScriptTag selectSvyLibScriptTagById(Long id); |
| | | |
| | | /** |
| | | * æ¥è¯¢é®é¢è¯æ¯æ ç¾åºå表 |
| | | * |
| | | * @param svyLibScriptTag é®é¢è¯æ¯æ ç¾åº |
| | | * @return é®é¢è¯æ¯æ ç¾åºéå |
| | | */ |
| | | public List<SvyLibScriptTag> selectSvyLibScriptTagList(SvyLibScriptTag svyLibScriptTag); |
| | | |
| | | /** |
| | | * æ°å¢é®é¢è¯æ¯æ ç¾åº |
| | | * |
| | | * @param svyLibScriptTag é®é¢è¯æ¯æ ç¾åº |
| | | * @return ç»æ |
| | | */ |
| | | public int insertSvyLibScriptTag(SvyLibScriptTag svyLibScriptTag); |
| | | |
| | | /** |
| | | * ä¿®æ¹é®é¢è¯æ¯æ ç¾åº |
| | | * |
| | | * @param svyLibScriptTag é®é¢è¯æ¯æ ç¾åº |
| | | * @return ç»æ |
| | | */ |
| | | public int updateSvyLibScriptTag(SvyLibScriptTag svyLibScriptTag); |
| | | |
| | | /** |
| | | * å é¤é®é¢è¯æ¯æ ç¾åº |
| | | * |
| | | * @param id é®é¢è¯æ¯æ ç¾åºä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteSvyLibScriptTagById(Long id); |
| | | |
| | | /** |
| | | * æ¹éå é¤é®é¢è¯æ¯æ ç¾åº |
| | | * |
| | | * @param ids éè¦å é¤çæ°æ®ä¸»é®éå |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteSvyLibScriptTagByIds(Long[] ids); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.mapper; |
| | | |
| | | import com.smartor.domain.SvyLibTemplateTag; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * æ¨¡æ¿æ ç¾Mapperæ¥å£ |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-07-24 |
| | | */ |
| | | @Mapper |
| | | public interface SvyLibTemplateTagMapper |
| | | { |
| | | /** |
| | | * æ¥è¯¢æ¨¡æ¿æ ç¾ |
| | | * |
| | | * @param id æ¨¡æ¿æ ç¾ä¸»é® |
| | | * @return æ¨¡æ¿æ ç¾ |
| | | */ |
| | | public SvyLibTemplateTag selectSvyLibTemplateTagById(Long id); |
| | | |
| | | /** |
| | | * æ¥è¯¢æ¨¡æ¿æ ç¾å表 |
| | | * |
| | | * @param svyLibTemplateTag æ¨¡æ¿æ ç¾ |
| | | * @return æ¨¡æ¿æ ç¾éå |
| | | */ |
| | | public List<SvyLibTemplateTag> selectSvyLibTemplateTagList(SvyLibTemplateTag svyLibTemplateTag); |
| | | |
| | | /** |
| | | * æ°å¢æ¨¡æ¿æ ç¾ |
| | | * |
| | | * @param svyLibTemplateTag æ¨¡æ¿æ ç¾ |
| | | * @return ç»æ |
| | | */ |
| | | public int insertSvyLibTemplateTag(SvyLibTemplateTag svyLibTemplateTag); |
| | | |
| | | /** |
| | | * ä¿®æ¹æ¨¡æ¿æ ç¾ |
| | | * |
| | | * @param svyLibTemplateTag æ¨¡æ¿æ ç¾ |
| | | * @return ç»æ |
| | | */ |
| | | public int updateSvyLibTemplateTag(SvyLibTemplateTag svyLibTemplateTag); |
| | | |
| | | /** |
| | | * å 餿¨¡æ¿æ ç¾ |
| | | * |
| | | * @param id æ¨¡æ¿æ ç¾ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteSvyLibTemplateTagById(Long id); |
| | | |
| | | /** |
| | | * æ¹éå 餿¨¡æ¿æ ç¾ |
| | | * |
| | | * @param ids éè¦å é¤çæ°æ®ä¸»é®éå |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteSvyLibTemplateTagByIds(Long[] ids); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.service; |
| | | |
| | | import com.smartor.domain.SvyLibScriptTag; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * é®é¢è¯æ¯æ ç¾åºServiceæ¥å£ |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-07-24 |
| | | */ |
| | | public interface ISvyLibScriptTagService { |
| | | /** |
| | | * æ¥è¯¢é®é¢è¯æ¯æ ç¾åº |
| | | * |
| | | * @param id é®é¢è¯æ¯æ ç¾åºä¸»é® |
| | | * @return é®é¢è¯æ¯æ ç¾åº |
| | | */ |
| | | public SvyLibScriptTag selectSvyLibScriptTagById(Long id); |
| | | |
| | | /** |
| | | * æ¥è¯¢é®é¢è¯æ¯æ ç¾åºå表 |
| | | * |
| | | * @param svyLibScriptTag é®é¢è¯æ¯æ ç¾åº |
| | | * @return é®é¢è¯æ¯æ ç¾åºéå |
| | | */ |
| | | public List<SvyLibScriptTag> selectSvyLibScriptTagList(SvyLibScriptTag svyLibScriptTag); |
| | | |
| | | /** |
| | | * æ°å¢é®é¢è¯æ¯æ ç¾åº |
| | | * |
| | | * @param svyLibScriptTag é®é¢è¯æ¯æ ç¾åº |
| | | * @return ç»æ |
| | | */ |
| | | public int insertSvyLibScriptTag(SvyLibScriptTag svyLibScriptTag); |
| | | |
| | | /** |
| | | * ä¿®æ¹é®é¢è¯æ¯æ ç¾åº |
| | | * |
| | | * @param svyLibScriptTag é®é¢è¯æ¯æ ç¾åº |
| | | * @return ç»æ |
| | | */ |
| | | public int updateSvyLibScriptTag(SvyLibScriptTag svyLibScriptTag); |
| | | |
| | | /** |
| | | * æ¹éå é¤é®é¢è¯æ¯æ ç¾åº |
| | | * |
| | | * @param ids éè¦å é¤çé®é¢è¯æ¯æ ç¾åºä¸»é®éå |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteSvyLibScriptTagByIds(Long[] ids); |
| | | |
| | | /** |
| | | * å é¤é®é¢è¯æ¯æ ç¾åºä¿¡æ¯ |
| | | * |
| | | * @param id é®é¢è¯æ¯æ ç¾åºä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteSvyLibScriptTagById(Long id); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.service; |
| | | |
| | | import com.smartor.domain.SvyLibTemplateTag; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * æ¨¡æ¿æ ç¾Serviceæ¥å£ |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-07-24 |
| | | */ |
| | | public interface ISvyLibTemplateTagService |
| | | { |
| | | /** |
| | | * æ¥è¯¢æ¨¡æ¿æ ç¾ |
| | | * |
| | | * @param id æ¨¡æ¿æ ç¾ä¸»é® |
| | | * @return æ¨¡æ¿æ ç¾ |
| | | */ |
| | | public SvyLibTemplateTag selectSvyLibTemplateTagById(Long id); |
| | | |
| | | /** |
| | | * æ¥è¯¢æ¨¡æ¿æ ç¾å表 |
| | | * |
| | | * @param svyLibTemplateTag æ¨¡æ¿æ ç¾ |
| | | * @return æ¨¡æ¿æ ç¾éå |
| | | */ |
| | | public List<SvyLibTemplateTag> selectSvyLibTemplateTagList(SvyLibTemplateTag svyLibTemplateTag); |
| | | |
| | | /** |
| | | * æ°å¢æ¨¡æ¿æ ç¾ |
| | | * |
| | | * @param svyLibTemplateTag æ¨¡æ¿æ ç¾ |
| | | * @return ç»æ |
| | | */ |
| | | public int insertSvyLibTemplateTag(SvyLibTemplateTag svyLibTemplateTag); |
| | | |
| | | /** |
| | | * ä¿®æ¹æ¨¡æ¿æ ç¾ |
| | | * |
| | | * @param svyLibTemplateTag æ¨¡æ¿æ ç¾ |
| | | * @return ç»æ |
| | | */ |
| | | public int updateSvyLibTemplateTag(SvyLibTemplateTag svyLibTemplateTag); |
| | | |
| | | /** |
| | | * æ¹éå 餿¨¡æ¿æ ç¾ |
| | | * |
| | | * @param ids éè¦å é¤çæ¨¡æ¿æ ç¾ä¸»é®éå |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteSvyLibTemplateTagByIds(Long[] ids); |
| | | |
| | | /** |
| | | * å 餿¨¡æ¿æ ç¾ä¿¡æ¯ |
| | | * |
| | | * @param id æ¨¡æ¿æ ç¾ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteSvyLibTemplateTagById(Long id); |
| | | } |
| | |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | import com.smartor.domain.SvyLibScript; |
| | | import com.smartor.domain.SvyLibScriptOption; |
| | | import com.smartor.domain.SvyLibScriptTag; |
| | | import com.smartor.mapper.SvyLibScriptMapper; |
| | | import com.smartor.mapper.SvyLibScriptOptionMapper; |
| | | import com.smartor.mapper.SvyLibScriptTagMapper; |
| | | import com.smartor.service.ISvyLibScriptService; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.collections4.CollectionUtils; |
| | |
| | | @Autowired |
| | | private SvyLibScriptOptionMapper svyLibScriptOptionMapper; |
| | | |
| | | @Autowired |
| | | private SvyLibScriptTagMapper svyLibScriptTagMapper; |
| | | |
| | | /** |
| | | * æ¥è¯¢é®å·é¢ç® |
| | | * |
| | |
| | | public List<SvyLibScript> selectSvyLibScriptList(SvyLibScript svyLibTopic) { |
| | | List<SvyLibScript> svyLibScripts = svyLibTopicMapper.selectSvyLibScriptList(svyLibTopic); |
| | | //è·åé¢ç®é项 |
| | | |
| | | for (int j = 0; j < svyLibScripts.size(); j++) { |
| | | log.info("é®é¢id为ï¼{}", svyLibScripts.get(j).getId()); |
| | | if (StringUtils.isNotEmpty(svyLibScripts.get(j).getIcd10Name())) |
| | |
| | | //å°æ¥è¯¢åºçéé¡¹ç®æ¾å°é¢ç®ä¸ |
| | | svyLibScripts.get(j).setSvyLibScriptOptions(svyLibTopicoptions); |
| | | } |
| | | //è·åtag |
| | | SvyLibScriptTag svyLibScriptTag = new SvyLibScriptTag(); |
| | | svyLibScriptTag.setScriptid(svyLibScripts.get(j).getId()); |
| | | List<SvyLibScriptTag> svyLibScriptTags = svyLibScriptTagMapper.selectSvyLibScriptTagList(svyLibScriptTag); |
| | | svyLibScripts.get(j).setSvyLibScriptTagList(svyLibScriptTags); |
| | | } |
| | | return svyLibScripts; |
| | | } |
| | |
| | | } |
| | | } |
| | | } |
| | | //æ ç¾å¤ç |
| | | if (CollectionUtils.isNotEmpty(svyLibTopic.getSvyLibScriptTagList())) { |
| | | for (SvyLibScriptTag svyLibScriptTag : svyLibTopic.getSvyLibScriptTagList()) { |
| | | if (svyLibScriptTag.getIsoperation() != null && svyLibScriptTag.getIsoperation() == 1) { |
| | | //æ°å¢ |
| | | svyLibScriptTag.setScriptid(svyLibTopic.getId()); |
| | | svyLibScriptTag.setCreateTime(new Date()); |
| | | svyLibScriptTagMapper.insertSvyLibScriptTag(svyLibScriptTag); |
| | | } else if (svyLibScriptTag.getIsoperation() != null && svyLibScriptTag.getIsoperation() == 2) { |
| | | //ä¿®æ¹ |
| | | svyLibScriptTag.setScriptid(svyLibTopic.getId()); |
| | | svyLibScriptTag.setUpdateTime(new Date()); |
| | | svyLibScriptTagMapper.updateSvyLibScriptTag(svyLibScriptTag); |
| | | } else if (svyLibScriptTag.getIsoperation() != null && svyLibScriptTag.getIsoperation() == 3) { |
| | | //å é¤ |
| | | svyLibScriptTagMapper.deleteSvyLibScriptTagById(svyLibScriptTag.getId()); |
| | | } |
| | | } |
| | | } |
| | | return i; |
| | | } |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.service.impl; |
| | | |
| | | import com.ruoyi.common.utils.DateUtils; |
| | | import com.smartor.domain.SvyLibScriptTag; |
| | | import com.smartor.mapper.SvyLibScriptTagMapper; |
| | | import com.smartor.service.ISvyLibScriptTagService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * é®é¢è¯æ¯æ ç¾åºServiceä¸å¡å±å¤ç |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-07-24 |
| | | */ |
| | | @Service |
| | | public class SvyLibScriptTagServiceImpl implements ISvyLibScriptTagService |
| | | { |
| | | @Autowired |
| | | private SvyLibScriptTagMapper svyLibScriptTagMapper; |
| | | |
| | | /** |
| | | * æ¥è¯¢é®é¢è¯æ¯æ ç¾åº |
| | | * |
| | | * @param id é®é¢è¯æ¯æ ç¾åºä¸»é® |
| | | * @return é®é¢è¯æ¯æ ç¾åº |
| | | */ |
| | | @Override |
| | | public SvyLibScriptTag selectSvyLibScriptTagById(Long id) |
| | | { |
| | | return svyLibScriptTagMapper.selectSvyLibScriptTagById(id); |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢é®é¢è¯æ¯æ ç¾åºå表 |
| | | * |
| | | * @param svyLibScriptTag é®é¢è¯æ¯æ ç¾åº |
| | | * @return é®é¢è¯æ¯æ ç¾åº |
| | | */ |
| | | @Override |
| | | public List<SvyLibScriptTag> selectSvyLibScriptTagList(SvyLibScriptTag svyLibScriptTag) |
| | | { |
| | | return svyLibScriptTagMapper.selectSvyLibScriptTagList(svyLibScriptTag); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢é®é¢è¯æ¯æ ç¾åº |
| | | * |
| | | * @param svyLibScriptTag é®é¢è¯æ¯æ ç¾åº |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int insertSvyLibScriptTag(SvyLibScriptTag svyLibScriptTag) |
| | | { |
| | | svyLibScriptTag.setCreateTime(DateUtils.getNowDate()); |
| | | return svyLibScriptTagMapper.insertSvyLibScriptTag(svyLibScriptTag); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹é®é¢è¯æ¯æ ç¾åº |
| | | * |
| | | * @param svyLibScriptTag é®é¢è¯æ¯æ ç¾åº |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int updateSvyLibScriptTag(SvyLibScriptTag svyLibScriptTag) |
| | | { |
| | | svyLibScriptTag.setUpdateTime(DateUtils.getNowDate()); |
| | | return svyLibScriptTagMapper.updateSvyLibScriptTag(svyLibScriptTag); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éå é¤é®é¢è¯æ¯æ ç¾åº |
| | | * |
| | | * @param ids éè¦å é¤çé®é¢è¯æ¯æ ç¾åºä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteSvyLibScriptTagByIds(Long[] ids) |
| | | { |
| | | return svyLibScriptTagMapper.deleteSvyLibScriptTagByIds(ids); |
| | | } |
| | | |
| | | /** |
| | | * å é¤é®é¢è¯æ¯æ ç¾åºä¿¡æ¯ |
| | | * |
| | | * @param id é®é¢è¯æ¯æ ç¾åºä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteSvyLibScriptTagById(Long id) |
| | | { |
| | | return svyLibScriptTagMapper.deleteSvyLibScriptTagById(id); |
| | | } |
| | | } |
| | |
| | | private SvyLibTemplateTargetoptionMapper svyLibTemplateTargetoptionMapper; |
| | | @Autowired |
| | | private TempDetpRelevanceMapper tempDetpRelevanceMapper; |
| | | @Autowired |
| | | private SvyLibTemplateTagMapper svyLibTemplateTagMapper; |
| | | |
| | | /** |
| | | * æ¥è¯¢é®å· |
| | |
| | | tempDetpRelevance.setTempid(svyLibTemplates.get(i).getSvyid()); |
| | | List<TempDetpRelevance> tempDetpRelevances = tempDetpRelevanceMapper.selectTempDetpRelevanceList(tempDetpRelevance); |
| | | svyLibTemplates.get(i).setTempDetpRelevances(CollectionUtils.isNotEmpty(tempDetpRelevances) ? tempDetpRelevances : new ArrayList<>()); |
| | | |
| | | //è·åæ ç¾ |
| | | SvyLibTemplateTag svyLibTemplateTag = new SvyLibTemplateTag(); |
| | | svyLibTemplateTag.setTemplateid(svyLibTemplates.get(i).getSvyid()); |
| | | List<SvyLibTemplateTag> svyLibTemplateTags = svyLibTemplateTagMapper.selectSvyLibTemplateTagList(svyLibTemplateTag); |
| | | svyLibTemplates.get(i).setSvyLibTemplateTagList(svyLibTemplateTags); |
| | | } |
| | | |
| | | //å
å°ç¸åçidçicdname,æ´çå°ä¸å |
| | |
| | | } |
| | | |
| | | } |
| | | |
| | | //æ ç¾å¤ç |
| | | if (CollectionUtils.isNotEmpty(svyLibTemplate.getSvyLibTemplateTagList())) { |
| | | for (SvyLibTemplateTag svyLibTemplateTag : svyLibTemplate.getSvyLibTemplateTagList()) { |
| | | if (svyLibTemplateTag.getId() == null) { |
| | | //æ°å¢ |
| | | svyLibTemplateTag.setTemplateid(svyLibTemplate.getSvyid()); |
| | | svyLibTemplateTagMapper.insertSvyLibTemplateTag(svyLibTemplateTag); |
| | | } else { |
| | | svyLibTemplateTag.setTemplateid(svyLibTemplate.getSvyid()); |
| | | svyLibTemplateTagMapper.updateSvyLibTemplateTag(svyLibTemplateTag); |
| | | } |
| | | } |
| | | |
| | | } |
| | | return i; |
| | | } |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.service.impl; |
| | | |
| | | import com.ruoyi.common.utils.DateUtils; |
| | | import com.smartor.domain.SvyLibTemplateTag; |
| | | import com.smartor.mapper.SvyLibTemplateTagMapper; |
| | | import com.smartor.service.ISvyLibTemplateTagService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * æ¨¡æ¿æ ç¾Serviceä¸å¡å±å¤ç |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-07-24 |
| | | */ |
| | | @Service |
| | | public class SvyLibTemplateTagServiceImpl implements ISvyLibTemplateTagService |
| | | { |
| | | @Autowired |
| | | private SvyLibTemplateTagMapper svyLibTemplateTagMapper; |
| | | |
| | | /** |
| | | * æ¥è¯¢æ¨¡æ¿æ ç¾ |
| | | * |
| | | * @param id æ¨¡æ¿æ ç¾ä¸»é® |
| | | * @return æ¨¡æ¿æ ç¾ |
| | | */ |
| | | @Override |
| | | public SvyLibTemplateTag selectSvyLibTemplateTagById(Long id) |
| | | { |
| | | return svyLibTemplateTagMapper.selectSvyLibTemplateTagById(id); |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢æ¨¡æ¿æ ç¾å表 |
| | | * |
| | | * @param svyLibTemplateTag æ¨¡æ¿æ ç¾ |
| | | * @return æ¨¡æ¿æ ç¾ |
| | | */ |
| | | @Override |
| | | public List<SvyLibTemplateTag> selectSvyLibTemplateTagList(SvyLibTemplateTag svyLibTemplateTag) |
| | | { |
| | | return svyLibTemplateTagMapper.selectSvyLibTemplateTagList(svyLibTemplateTag); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢æ¨¡æ¿æ ç¾ |
| | | * |
| | | * @param svyLibTemplateTag æ¨¡æ¿æ ç¾ |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int insertSvyLibTemplateTag(SvyLibTemplateTag svyLibTemplateTag) |
| | | { |
| | | svyLibTemplateTag.setCreateTime(DateUtils.getNowDate()); |
| | | return svyLibTemplateTagMapper.insertSvyLibTemplateTag(svyLibTemplateTag); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹æ¨¡æ¿æ ç¾ |
| | | * |
| | | * @param svyLibTemplateTag æ¨¡æ¿æ ç¾ |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int updateSvyLibTemplateTag(SvyLibTemplateTag svyLibTemplateTag) |
| | | { |
| | | svyLibTemplateTag.setUpdateTime(DateUtils.getNowDate()); |
| | | return svyLibTemplateTagMapper.updateSvyLibTemplateTag(svyLibTemplateTag); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éå 餿¨¡æ¿æ ç¾ |
| | | * |
| | | * @param ids éè¦å é¤çæ¨¡æ¿æ ç¾ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteSvyLibTemplateTagByIds(Long[] ids) |
| | | { |
| | | return svyLibTemplateTagMapper.deleteSvyLibTemplateTagByIds(ids); |
| | | } |
| | | |
| | | /** |
| | | * å 餿¨¡æ¿æ ç¾ä¿¡æ¯ |
| | | * |
| | | * @param id æ¨¡æ¿æ ç¾ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteSvyLibTemplateTagById(Long id) |
| | | { |
| | | return svyLibTemplateTagMapper.deleteSvyLibTemplateTagById(id); |
| | | } |
| | | } |
| | |
| | | <select id="baseTagCategoryByName" parameterType="java.lang.String" |
| | | resultType="com.smartor.domain.BaseTagcategory"> |
| | | select a.tagcategoryid, |
| | | a.orgid, |
| | | a.update_by, |
| | | a.update_time, |
| | | a.pym, |
| | | a.wbm, |
| | | a.del_flag, |
| | | a.create_by, |
| | | a.create_time, |
| | | a.isupload, |
| | | a.upload_time, |
| | | a.categoryname, |
| | | count(b.tagid) as tagNum |
| | | from base_tagcategory a left join base_tag b |
| | |
| | | '%') |
| | | </if> |
| | | </where> |
| | | GROUP BY a.categoryname |
| | | GROUP BY a.tagcategoryid,a.categoryname |
| | | </select> |
| | | </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.SvyLibScriptTagMapper"> |
| | | |
| | | <resultMap type="com.smartor.domain.SvyLibScriptTag" id="SvyLibScriptTagResult"> |
| | | <result property="id" column="id"/> |
| | | <result property="tagcategoryid" column="tagcategoryid"/> |
| | | <result property="scriptid" column="scriptid"/> |
| | | <result property="tagid" column="tagid"/> |
| | | <result property="tagname" column="tagname"/> |
| | | <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="pid" column="pid"/> |
| | | <result property="guid" column="guid"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectSvyLibScriptTagVo"> |
| | | select id, |
| | | tagcategoryid, |
| | | scriptid, |
| | | tagid, |
| | | tagname, |
| | | orgid, |
| | | del_flag, |
| | | update_by, |
| | | update_time, |
| | | create_by, |
| | | create_time, |
| | | isupload, |
| | | upload_time, |
| | | pid, |
| | | guid |
| | | from svy_lib_script_tag |
| | | </sql> |
| | | |
| | | <select id="selectSvyLibScriptTagList" parameterType="com.smartor.domain.SvyLibScriptTag" |
| | | resultMap="SvyLibScriptTagResult"> |
| | | <include refid="selectSvyLibScriptTagVo"/> |
| | | <where> |
| | | <if test="tagcategoryid != null ">and tagcategoryid = #{tagcategoryid}</if> |
| | | <if test="scriptid != null ">and scriptid = #{scriptid}</if> |
| | | <if test="tagid != null ">and tagid = #{tagid}</if> |
| | | <if test="tagname != null and tagname != ''">and tagname like concat('%', #{tagname}, '%')</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> |
| | | <if test="pid != null ">and pid = #{pid}</if> |
| | | <if test="guid != null and guid != ''">and guid = #{guid}</if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectSvyLibScriptTagById" parameterType="Long" resultMap="SvyLibScriptTagResult"> |
| | | <include refid="selectSvyLibScriptTagVo"/> |
| | | where id = #{id} |
| | | </select> |
| | | |
| | | <insert id="insertSvyLibScriptTag" parameterType="com.smartor.domain.SvyLibScriptTag"> |
| | | insert into svy_lib_script_tag |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">id,</if> |
| | | <if test="tagcategoryid != null">tagcategoryid,</if> |
| | | <if test="scriptid != null">scriptid,</if> |
| | | <if test="tagid != null">tagid,</if> |
| | | <if test="tagname != null">tagname,</if> |
| | | <if test="orgid != null">orgid,</if> |
| | | <if test="delFlag != null">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="pid != null">pid,</if> |
| | | <if test="guid != null">guid,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">#{id},</if> |
| | | <if test="tagcategoryid != null">#{tagcategoryid},</if> |
| | | <if test="scriptid != null">#{scriptid},</if> |
| | | <if test="tagid != null">#{tagid},</if> |
| | | <if test="tagname != null">#{tagname},</if> |
| | | <if test="orgid != null">#{orgid},</if> |
| | | <if test="delFlag != null">#{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="pid != null">#{pid},</if> |
| | | <if test="guid != null">#{guid},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateSvyLibScriptTag" parameterType="com.smartor.domain.SvyLibScriptTag"> |
| | | update svy_lib_script_tag |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="tagcategoryid != null">tagcategoryid = #{tagcategoryid},</if> |
| | | <if test="scriptid != null">scriptid = #{scriptid},</if> |
| | | <if test="tagid != null">tagid = #{tagid},</if> |
| | | <if test="tagname != null">tagname = #{tagname},</if> |
| | | <if test="orgid != null">orgid = #{orgid},</if> |
| | | <if test="delFlag != null">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="pid != null">pid = #{pid},</if> |
| | | <if test="guid != null">guid = #{guid},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <delete id="deleteSvyLibScriptTagById" parameterType="Long"> |
| | | delete |
| | | from svy_lib_script_tag |
| | | where id = #{id} |
| | | </delete> |
| | | |
| | | <delete id="deleteSvyLibScriptTagByIds" parameterType="String"> |
| | | delete from svy_lib_script_tag where id in |
| | | <foreach item="id" collection="array" open="(" separator="," close=")"> |
| | | #{id} |
| | | </foreach> |
| | | </delete> |
| | | </mapper> |
| | |
| | | <result property="isupload" column="isupload"/> |
| | | <result property="uploadTime" column="upload_time"/> |
| | | <result property="deptNames" column="dept_names"/> |
| | | <result property="labelInfo" column="label_info"/> |
| | | <result property="campus" column="campus"/> |
| | | <result property="suitway" column="suitway"/> |
| | | <result property="otherdata" column="otherdata"/> |
| | |
| | | isupload, |
| | | upload_time, |
| | | dept_names, |
| | | label_info, |
| | | campus, |
| | | suitway, |
| | | script_score, |
| | |
| | | a.upload_time, |
| | | a.dept_names, |
| | | a.value_type, |
| | | a.label_info, |
| | | a.reply, |
| | | a.campus, |
| | | a.suitway, |
| | |
| | | <if test="isupload != null">isupload,</if> |
| | | <if test="uploadTime != null">upload_time,</if> |
| | | <if test="deptNames != null">dept_names,</if> |
| | | <if test="labelInfo != null">label_info,</if> |
| | | <if test="campus != null">campus,</if> |
| | | <if test="suitway != null">suitway,</if> |
| | | <if test="otherdata != null">otherdata,</if> |
| | |
| | | <if test="isupload != null">#{isupload},</if> |
| | | <if test="uploadTime != null">#{uploadTime},</if> |
| | | <if test="deptNames != null">#{deptNames},</if> |
| | | <if test="labelInfo != null">#{labelInfo},</if> |
| | | <if test="campus != null">#{campus},</if> |
| | | <if test="suitway != null">#{suitway},</if> |
| | | <if test="otherdata != null">#{otherdata},</if> |
| | |
| | | <if test="isupload != null">isupload = #{isupload},</if> |
| | | <if test="uploadTime != null">upload_time = #{uploadTime},</if> |
| | | <if test="deptNames != null">dept_names=#{deptNames},</if> |
| | | <if test="labelInfo != null">label_info=#{labelInfo},</if> |
| | | <if test="campus != null">campus=#{campus},</if> |
| | | <if test="suitway != null">suitway=#{suitway},</if> |
| | | <if test="otherdata != null">otherdata=#{otherdata},</if> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?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.SvyLibTemplateTagMapper"> |
| | | |
| | | <resultMap type="com.smartor.domain.SvyLibTemplateTag" id="SvyLibTemplateTagResult"> |
| | | <result property="id" column="id"/> |
| | | <result property="tagcategoryid" column="tagcategoryid"/> |
| | | <result property="templateid" column="templateid"/> |
| | | <result property="tagid" column="tagid"/> |
| | | <result property="tagname" column="tagname"/> |
| | | <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="pid" column="pid"/> |
| | | <result property="guid" column="guid"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectSvyLibTemplateTagVo"> |
| | | select id, |
| | | tagcategoryid, |
| | | templateid, |
| | | tagid, |
| | | tagname, |
| | | orgid, |
| | | del_flag, |
| | | update_by, |
| | | update_time, |
| | | create_by, |
| | | create_time, |
| | | isupload, |
| | | upload_time, |
| | | pid, |
| | | guid |
| | | from svy_lib_template_tag |
| | | </sql> |
| | | |
| | | <select id="selectSvyLibTemplateTagList" parameterType="com.smartor.domain.SvyLibTemplateTag" |
| | | resultMap="SvyLibTemplateTagResult"> |
| | | <include refid="selectSvyLibTemplateTagVo"/> |
| | | <where> |
| | | <if test="tagcategoryid != null ">and tagcategoryid = #{tagcategoryid}</if> |
| | | <if test="templateid != null ">and templateid = #{templateid}</if> |
| | | <if test="tagid != null ">and tagid = #{tagid}</if> |
| | | <if test="tagname != null and tagname != ''">and tagname like concat('%', #{tagname}, '%')</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> |
| | | <if test="pid != null ">and pid = #{pid}</if> |
| | | <if test="guid != null and guid != ''">and guid = #{guid}</if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectSvyLibTemplateTagById" parameterType="Long" resultMap="SvyLibTemplateTagResult"> |
| | | <include refid="selectSvyLibTemplateTagVo"/> |
| | | where id = #{id} |
| | | </select> |
| | | |
| | | <insert id="insertSvyLibTemplateTag" parameterType="com.smartor.domain.SvyLibTemplateTag" useGeneratedKeys="true" |
| | | keyProperty="id"> |
| | | insert into svy_lib_template_tag |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="tagcategoryid != null">tagcategoryid,</if> |
| | | <if test="templateid != null">templateid,</if> |
| | | <if test="tagid != null">tagid,</if> |
| | | <if test="tagname != null">tagname,</if> |
| | | <if test="orgid != null">orgid,</if> |
| | | <if test="delFlag != null">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="pid != null">pid,</if> |
| | | <if test="guid != null">guid,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="tagcategoryid != null">#{tagcategoryid},</if> |
| | | <if test="templateid != null">#{templateid},</if> |
| | | <if test="tagid != null">#{tagid},</if> |
| | | <if test="tagname != null">#{tagname},</if> |
| | | <if test="orgid != null">#{orgid},</if> |
| | | <if test="delFlag != null">#{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="pid != null">#{pid},</if> |
| | | <if test="guid != null">#{guid},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateSvyLibTemplateTag" parameterType="com.smartor.domain.SvyLibTemplateTag"> |
| | | update svy_lib_template_tag |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="tagcategoryid != null">tagcategoryid = #{tagcategoryid},</if> |
| | | <if test="templateid != null">templateid = #{templateid},</if> |
| | | <if test="tagid != null">tagid = #{tagid},</if> |
| | | <if test="tagname != null">tagname = #{tagname},</if> |
| | | <if test="orgid != null">orgid = #{orgid},</if> |
| | | <if test="delFlag != null">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="pid != null">pid = #{pid},</if> |
| | | <if test="guid != null">guid = #{guid},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <delete id="deleteSvyLibTemplateTagById" parameterType="Long"> |
| | | delete |
| | | from svy_lib_template_tag |
| | | where id = #{id} |
| | | </delete> |
| | | |
| | | <delete id="deleteSvyLibTemplateTagByIds" parameterType="String"> |
| | | delete from svy_lib_template_tag where id in |
| | | <foreach item="id" collection="array" open="(" separator="," close=")"> |
| | | #{id} |
| | | </foreach> |
| | | </delete> |
| | | </mapper> |