修改 总装
parent
feb59c4f98
commit
4f63570747
@ -0,0 +1,127 @@
|
|||||||
|
package com.ruoyi.system.controller;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Controller;
|
||||||
|
import org.springframework.ui.ModelMap;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PathVariable;
|
||||||
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.ResponseBody;
|
||||||
|
import com.ruoyi.common.annotation.Log;
|
||||||
|
import com.ruoyi.common.enums.BusinessType;
|
||||||
|
import com.ruoyi.system.domain.BasePictureLocation;
|
||||||
|
import com.ruoyi.system.service.IBasePictureLocationService;
|
||||||
|
import com.ruoyi.common.core.controller.BaseController;
|
||||||
|
import com.ruoyi.common.core.domain.AjaxResult;
|
||||||
|
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||||
|
import com.ruoyi.common.core.page.TableDataInfo;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 亮点产品维护Controller
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2022-07-27
|
||||||
|
*/
|
||||||
|
@Controller
|
||||||
|
@RequestMapping("/system/base_picture_location")
|
||||||
|
public class BasePictureLocationController extends BaseController
|
||||||
|
{
|
||||||
|
private String prefix = "system/base_picture_location";
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private IBasePictureLocationService basePictureLocationService;
|
||||||
|
|
||||||
|
@RequiresPermissions("system:base_picture_location:view")
|
||||||
|
@GetMapping()
|
||||||
|
public String base_picture_location()
|
||||||
|
{
|
||||||
|
return prefix + "/base_picture_location";
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询亮点产品维护列表
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("system:base_picture_location:list")
|
||||||
|
@PostMapping("/list")
|
||||||
|
@ResponseBody
|
||||||
|
public TableDataInfo list(BasePictureLocation basePictureLocation)
|
||||||
|
{
|
||||||
|
startPage();
|
||||||
|
List<BasePictureLocation> list = basePictureLocationService.selectBasePictureLocationList(basePictureLocation);
|
||||||
|
return getDataTable(list);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 导出亮点产品维护列表
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("system:base_picture_location:export")
|
||||||
|
@Log(title = "亮点产品维护", businessType = BusinessType.EXPORT)
|
||||||
|
@PostMapping("/export")
|
||||||
|
@ResponseBody
|
||||||
|
public AjaxResult export(BasePictureLocation basePictureLocation)
|
||||||
|
{
|
||||||
|
List<BasePictureLocation> list = basePictureLocationService.selectBasePictureLocationList(basePictureLocation);
|
||||||
|
ExcelUtil<BasePictureLocation> util = new ExcelUtil<BasePictureLocation>(BasePictureLocation.class);
|
||||||
|
return util.exportExcel(list, "亮点产品维护数据");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增亮点产品维护
|
||||||
|
*/
|
||||||
|
@GetMapping("/add")
|
||||||
|
public String add()
|
||||||
|
{
|
||||||
|
return prefix + "/add";
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增保存亮点产品维护
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("system:base_picture_location:add")
|
||||||
|
@Log(title = "亮点产品维护", businessType = BusinessType.INSERT)
|
||||||
|
@PostMapping("/add")
|
||||||
|
@ResponseBody
|
||||||
|
public AjaxResult addSave(BasePictureLocation basePictureLocation)
|
||||||
|
{
|
||||||
|
return toAjax(basePictureLocationService.insertBasePictureLocation(basePictureLocation));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改亮点产品维护
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("system:base_picture_location:edit")
|
||||||
|
@GetMapping("/edit/{id}")
|
||||||
|
public String edit(@PathVariable("id") Long id, ModelMap mmap)
|
||||||
|
{
|
||||||
|
BasePictureLocation basePictureLocation = basePictureLocationService.selectBasePictureLocationById(id);
|
||||||
|
mmap.put("basePictureLocation", basePictureLocation);
|
||||||
|
return prefix + "/edit";
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改保存亮点产品维护
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("system:base_picture_location:edit")
|
||||||
|
@Log(title = "亮点产品维护", businessType = BusinessType.UPDATE)
|
||||||
|
@PostMapping("/edit")
|
||||||
|
@ResponseBody
|
||||||
|
public AjaxResult editSave(BasePictureLocation basePictureLocation)
|
||||||
|
{
|
||||||
|
return toAjax(basePictureLocationService.updateBasePictureLocation(basePictureLocation));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除亮点产品维护
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("system:base_picture_location:remove")
|
||||||
|
@Log(title = "亮点产品维护", businessType = BusinessType.DELETE)
|
||||||
|
@PostMapping( "/remove")
|
||||||
|
@ResponseBody
|
||||||
|
public AjaxResult remove(String ids)
|
||||||
|
{
|
||||||
|
return toAjax(basePictureLocationService.deleteBasePictureLocationByIds(ids));
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,125 @@
|
|||||||
|
package com.ruoyi.system.controller;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
import com.ruoyi.common.utils.uuid.UUID;
|
||||||
|
import com.ruoyi.system.domain.BaseTeam;
|
||||||
|
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Controller;
|
||||||
|
import org.springframework.ui.ModelMap;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PathVariable;
|
||||||
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.ResponseBody;
|
||||||
|
import com.ruoyi.common.annotation.Log;
|
||||||
|
import com.ruoyi.common.enums.BusinessType;
|
||||||
|
import com.ruoyi.system.domain.BaseUserManyidu;
|
||||||
|
import com.ruoyi.system.service.IBaseUserManyiduService;
|
||||||
|
import com.ruoyi.common.core.controller.BaseController;
|
||||||
|
import com.ruoyi.common.core.domain.AjaxResult;
|
||||||
|
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||||
|
import com.ruoyi.common.core.page.TableDataInfo;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 用户满意度Controller
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2022-07-27
|
||||||
|
*/
|
||||||
|
@Controller
|
||||||
|
@RequestMapping("/system/base_manyidu")
|
||||||
|
public class BaseUserManyiduController extends BaseController {
|
||||||
|
private String prefix = "system/base_manyidu";
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private IBaseUserManyiduService baseUserManyiduService;
|
||||||
|
|
||||||
|
@RequiresPermissions("system:base_manyidu:view")
|
||||||
|
@GetMapping()
|
||||||
|
public String base_manyidu() {
|
||||||
|
return prefix + "/base_manyidu";
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询用户满意度列表
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("system:base_manyidu:list")
|
||||||
|
@PostMapping("/list")
|
||||||
|
@ResponseBody
|
||||||
|
public TableDataInfo list(BaseUserManyidu baseUserManyidu) {
|
||||||
|
startPage();
|
||||||
|
List<BaseUserManyidu> list = baseUserManyiduService.selectBaseUserManyiduList(baseUserManyidu);
|
||||||
|
return getDataTable(list);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 导出用户满意度列表
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("system:base_manyidu:export")
|
||||||
|
@Log(title = "用户满意度", businessType = BusinessType.EXPORT)
|
||||||
|
@PostMapping("/export")
|
||||||
|
@ResponseBody
|
||||||
|
public AjaxResult export(BaseUserManyidu baseUserManyidu) {
|
||||||
|
List<BaseUserManyidu> list = baseUserManyiduService.selectBaseUserManyiduList(baseUserManyidu);
|
||||||
|
ExcelUtil<BaseUserManyidu> util = new ExcelUtil<BaseUserManyidu>(BaseUserManyidu.class);
|
||||||
|
return util.exportExcel(list, "用户满意度数据");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增用户满意度
|
||||||
|
*/
|
||||||
|
@GetMapping("/add")
|
||||||
|
public String add() {
|
||||||
|
return prefix + "/add";
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增保存用户满意度
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("system:base_manyidu:add")
|
||||||
|
@Log(title = "用户满意度", businessType = BusinessType.INSERT)
|
||||||
|
@PostMapping("/add")
|
||||||
|
@ResponseBody
|
||||||
|
public AjaxResult addSave(BaseUserManyidu baseUserManyidu) {
|
||||||
|
List<BaseUserManyidu> list = baseUserManyiduService.selectBaseUserManyiduList(baseUserManyidu);
|
||||||
|
if (list != null && list.size() > 0) {
|
||||||
|
return error(baseUserManyidu.getYearName() + "年数据已经存在");
|
||||||
|
}
|
||||||
|
return toAjax(baseUserManyiduService.insertBaseUserManyidu(baseUserManyidu));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改用户满意度
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("system:base_manyidu:edit")
|
||||||
|
@GetMapping("/edit/{id}")
|
||||||
|
public String edit(@PathVariable("id") Long id, ModelMap mmap) {
|
||||||
|
BaseUserManyidu baseUserManyidu = baseUserManyiduService.selectBaseUserManyiduById(id);
|
||||||
|
mmap.put("baseUserManyidu", baseUserManyidu);
|
||||||
|
return prefix + "/edit";
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改保存用户满意度
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("system:base_manyidu:edit")
|
||||||
|
@Log(title = "用户满意度", businessType = BusinessType.UPDATE)
|
||||||
|
@PostMapping("/edit")
|
||||||
|
@ResponseBody
|
||||||
|
public AjaxResult editSave(BaseUserManyidu baseUserManyidu) {
|
||||||
|
return toAjax(baseUserManyiduService.updateBaseUserManyidu(baseUserManyidu));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除用户满意度
|
||||||
|
*/
|
||||||
|
@RequiresPermissions("system:base_manyidu:remove")
|
||||||
|
@Log(title = "用户满意度", businessType = BusinessType.DELETE)
|
||||||
|
@PostMapping("/remove")
|
||||||
|
@ResponseBody
|
||||||
|
public AjaxResult remove(String ids) {
|
||||||
|
return toAjax(baseUserManyiduService.deleteBaseUserManyiduByIds(ids));
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,65 @@
|
|||||||
|
package com.ruoyi.system.domain;
|
||||||
|
|
||||||
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||||
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||||
|
import com.ruoyi.common.annotation.Excel;
|
||||||
|
import com.ruoyi.common.core.domain.BaseEntity;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 亮点产品维护对象 base_picture_location
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2022-07-27
|
||||||
|
*/
|
||||||
|
public class BasePictureLocation extends BaseEntity
|
||||||
|
{
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/** 主键 */
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
/** 图片路径 */
|
||||||
|
@Excel(name = "图片路径")
|
||||||
|
private String picturePath;
|
||||||
|
|
||||||
|
/** 显示位置 */
|
||||||
|
@Excel(name = "显示位置")
|
||||||
|
private Long pictureLocation;
|
||||||
|
|
||||||
|
public void setId(Long id)
|
||||||
|
{
|
||||||
|
this.id = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getId()
|
||||||
|
{
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
public void setPicturePath(String picturePath)
|
||||||
|
{
|
||||||
|
this.picturePath = picturePath;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getPicturePath()
|
||||||
|
{
|
||||||
|
return picturePath;
|
||||||
|
}
|
||||||
|
public void setPictureLocation(Long pictureLocation)
|
||||||
|
{
|
||||||
|
this.pictureLocation = pictureLocation;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getPictureLocation()
|
||||||
|
{
|
||||||
|
return pictureLocation;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||||
|
.append("id", getId())
|
||||||
|
.append("picturePath", getPicturePath())
|
||||||
|
.append("pictureLocation", getPictureLocation())
|
||||||
|
.toString();
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,108 @@
|
|||||||
|
package com.ruoyi.system.domain;
|
||||||
|
|
||||||
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||||
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||||
|
import com.ruoyi.common.annotation.Excel;
|
||||||
|
import com.ruoyi.common.core.domain.BaseEntity;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 用户满意度对象 base_user_manyidu
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2022-07-27
|
||||||
|
*/
|
||||||
|
public class BaseUserManyidu extends BaseEntity
|
||||||
|
{
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/** 主键 */
|
||||||
|
private String id;
|
||||||
|
|
||||||
|
/** 年份 */
|
||||||
|
@Excel(name = "年份")
|
||||||
|
private Long yearName;
|
||||||
|
|
||||||
|
/** 产品体验 */
|
||||||
|
@Excel(name = "产品体验")
|
||||||
|
private double productRate;
|
||||||
|
|
||||||
|
/** 购物体验 */
|
||||||
|
@Excel(name = "购物体验")
|
||||||
|
private double shoppingRate;
|
||||||
|
|
||||||
|
/** 服务体验 */
|
||||||
|
@Excel(name = "服务体验")
|
||||||
|
private double serviceRate;
|
||||||
|
|
||||||
|
/** 订单履约率 */
|
||||||
|
@Excel(name = "订单履约率")
|
||||||
|
private double orderRate;
|
||||||
|
|
||||||
|
public void setId(String id)
|
||||||
|
{
|
||||||
|
this.id = id;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getId()
|
||||||
|
{
|
||||||
|
return id;
|
||||||
|
}
|
||||||
|
public void setYearName(Long yearName)
|
||||||
|
{
|
||||||
|
this.yearName = yearName;
|
||||||
|
}
|
||||||
|
|
||||||
|
public Long getYearName()
|
||||||
|
{
|
||||||
|
return yearName;
|
||||||
|
}
|
||||||
|
public void setProductRate(Long productRate)
|
||||||
|
{
|
||||||
|
this.productRate = productRate;
|
||||||
|
}
|
||||||
|
|
||||||
|
public double getProductRate() {
|
||||||
|
return productRate;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setProductRate(double productRate) {
|
||||||
|
this.productRate = productRate;
|
||||||
|
}
|
||||||
|
|
||||||
|
public double getShoppingRate() {
|
||||||
|
return shoppingRate;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setShoppingRate(double shoppingRate) {
|
||||||
|
this.shoppingRate = shoppingRate;
|
||||||
|
}
|
||||||
|
|
||||||
|
public double getServiceRate() {
|
||||||
|
return serviceRate;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setServiceRate(double serviceRate) {
|
||||||
|
this.serviceRate = serviceRate;
|
||||||
|
}
|
||||||
|
|
||||||
|
public double getOrderRate() {
|
||||||
|
return orderRate;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setOrderRate(double orderRate) {
|
||||||
|
this.orderRate = orderRate;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||||
|
.append("id", getId())
|
||||||
|
.append("yearName", getYearName())
|
||||||
|
.append("productRate", getProductRate())
|
||||||
|
.append("shoppingRate", getShoppingRate())
|
||||||
|
.append("serviceRate", getServiceRate())
|
||||||
|
.append("orderRate", getOrderRate())
|
||||||
|
.append("createTime", getCreateTime())
|
||||||
|
.toString();
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,61 @@
|
|||||||
|
package com.ruoyi.system.mapper;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import com.ruoyi.system.domain.BasePictureLocation;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 亮点产品维护Mapper接口
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2022-07-27
|
||||||
|
*/
|
||||||
|
public interface BasePictureLocationMapper
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* 查询亮点产品维护
|
||||||
|
*
|
||||||
|
* @param id 亮点产品维护主键
|
||||||
|
* @return 亮点产品维护
|
||||||
|
*/
|
||||||
|
public BasePictureLocation selectBasePictureLocationById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询亮点产品维护列表
|
||||||
|
*
|
||||||
|
* @param basePictureLocation 亮点产品维护
|
||||||
|
* @return 亮点产品维护集合
|
||||||
|
*/
|
||||||
|
public List<BasePictureLocation> selectBasePictureLocationList(BasePictureLocation basePictureLocation);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增亮点产品维护
|
||||||
|
*
|
||||||
|
* @param basePictureLocation 亮点产品维护
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int insertBasePictureLocation(BasePictureLocation basePictureLocation);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改亮点产品维护
|
||||||
|
*
|
||||||
|
* @param basePictureLocation 亮点产品维护
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int updateBasePictureLocation(BasePictureLocation basePictureLocation);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除亮点产品维护
|
||||||
|
*
|
||||||
|
* @param id 亮点产品维护主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteBasePictureLocationById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除亮点产品维护
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的数据主键集合
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteBasePictureLocationByIds(String[] ids);
|
||||||
|
}
|
||||||
@ -0,0 +1,63 @@
|
|||||||
|
package com.ruoyi.system.mapper;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import com.ruoyi.system.domain.BaseUserManyidu;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 用户满意度Mapper接口
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2022-07-27
|
||||||
|
*/
|
||||||
|
public interface BaseUserManyiduMapper
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* 查询用户满意度
|
||||||
|
*
|
||||||
|
* @param id 用户满意度主键
|
||||||
|
* @return 用户满意度
|
||||||
|
*/
|
||||||
|
public BaseUserManyidu selectBaseUserManyiduById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询用户满意度列表
|
||||||
|
*
|
||||||
|
* @param baseUserManyidu 用户满意度
|
||||||
|
* @return 用户满意度集合
|
||||||
|
*/
|
||||||
|
public List<BaseUserManyidu> selectBaseUserManyiduList(BaseUserManyidu baseUserManyidu);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增用户满意度
|
||||||
|
*
|
||||||
|
* @param baseUserManyidu 用户满意度
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int insertBaseUserManyidu(BaseUserManyidu baseUserManyidu);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改用户满意度
|
||||||
|
*
|
||||||
|
* @param baseUserManyidu 用户满意度
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int updateBaseUserManyidu(BaseUserManyidu baseUserManyidu);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除用户满意度
|
||||||
|
*
|
||||||
|
* @param id 用户满意度主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteBaseUserManyiduById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除用户满意度
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的数据主键集合
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteBaseUserManyiduByIds(String[] ids);
|
||||||
|
|
||||||
|
List<BaseUserManyidu> yue_selectUserSatisfaction();
|
||||||
|
}
|
||||||
@ -0,0 +1,61 @@
|
|||||||
|
package com.ruoyi.system.service;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import com.ruoyi.system.domain.BasePictureLocation;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 亮点产品维护Service接口
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2022-07-27
|
||||||
|
*/
|
||||||
|
public interface IBasePictureLocationService
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* 查询亮点产品维护
|
||||||
|
*
|
||||||
|
* @param id 亮点产品维护主键
|
||||||
|
* @return 亮点产品维护
|
||||||
|
*/
|
||||||
|
public BasePictureLocation selectBasePictureLocationById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询亮点产品维护列表
|
||||||
|
*
|
||||||
|
* @param basePictureLocation 亮点产品维护
|
||||||
|
* @return 亮点产品维护集合
|
||||||
|
*/
|
||||||
|
public List<BasePictureLocation> selectBasePictureLocationList(BasePictureLocation basePictureLocation);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增亮点产品维护
|
||||||
|
*
|
||||||
|
* @param basePictureLocation 亮点产品维护
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int insertBasePictureLocation(BasePictureLocation basePictureLocation);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改亮点产品维护
|
||||||
|
*
|
||||||
|
* @param basePictureLocation 亮点产品维护
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int updateBasePictureLocation(BasePictureLocation basePictureLocation);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除亮点产品维护
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的亮点产品维护主键集合
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteBasePictureLocationByIds(String ids);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除亮点产品维护信息
|
||||||
|
*
|
||||||
|
* @param id 亮点产品维护主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteBasePictureLocationById(Long id);
|
||||||
|
}
|
||||||
@ -0,0 +1,63 @@
|
|||||||
|
package com.ruoyi.system.service;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import com.ruoyi.system.domain.BaseUserManyidu;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 用户满意度Service接口
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2022-07-27
|
||||||
|
*/
|
||||||
|
public interface IBaseUserManyiduService
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* 查询用户满意度
|
||||||
|
*
|
||||||
|
* @param id 用户满意度主键
|
||||||
|
* @return 用户满意度
|
||||||
|
*/
|
||||||
|
public BaseUserManyidu selectBaseUserManyiduById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询用户满意度列表
|
||||||
|
*
|
||||||
|
* @param baseUserManyidu 用户满意度
|
||||||
|
* @return 用户满意度集合
|
||||||
|
*/
|
||||||
|
public List<BaseUserManyidu> selectBaseUserManyiduList(BaseUserManyidu baseUserManyidu);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增用户满意度
|
||||||
|
*
|
||||||
|
* @param baseUserManyidu 用户满意度
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int insertBaseUserManyidu(BaseUserManyidu baseUserManyidu);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改用户满意度
|
||||||
|
*
|
||||||
|
* @param baseUserManyidu 用户满意度
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int updateBaseUserManyidu(BaseUserManyidu baseUserManyidu);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除用户满意度
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的用户满意度主键集合
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteBaseUserManyiduByIds(String ids);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除用户满意度信息
|
||||||
|
*
|
||||||
|
* @param id 用户满意度主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteBaseUserManyiduById(Long id);
|
||||||
|
|
||||||
|
public List<BaseUserManyidu> yue_selectUserSatisfaction();
|
||||||
|
}
|
||||||
@ -0,0 +1,94 @@
|
|||||||
|
package com.ruoyi.system.service.impl;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import com.ruoyi.system.mapper.BasePictureLocationMapper;
|
||||||
|
import com.ruoyi.system.domain.BasePictureLocation;
|
||||||
|
import com.ruoyi.system.service.IBasePictureLocationService;
|
||||||
|
import com.ruoyi.common.core.text.Convert;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 亮点产品维护Service业务层处理
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2022-07-27
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class BasePictureLocationServiceImpl implements IBasePictureLocationService
|
||||||
|
{
|
||||||
|
@Autowired
|
||||||
|
private BasePictureLocationMapper basePictureLocationMapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询亮点产品维护
|
||||||
|
*
|
||||||
|
* @param id 亮点产品维护主键
|
||||||
|
* @return 亮点产品维护
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public BasePictureLocation selectBasePictureLocationById(Long id)
|
||||||
|
{
|
||||||
|
return basePictureLocationMapper.selectBasePictureLocationById(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询亮点产品维护列表
|
||||||
|
*
|
||||||
|
* @param basePictureLocation 亮点产品维护
|
||||||
|
* @return 亮点产品维护
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public List<BasePictureLocation> selectBasePictureLocationList(BasePictureLocation basePictureLocation)
|
||||||
|
{
|
||||||
|
return basePictureLocationMapper.selectBasePictureLocationList(basePictureLocation);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增亮点产品维护
|
||||||
|
*
|
||||||
|
* @param basePictureLocation 亮点产品维护
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int insertBasePictureLocation(BasePictureLocation basePictureLocation)
|
||||||
|
{
|
||||||
|
return basePictureLocationMapper.insertBasePictureLocation(basePictureLocation);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改亮点产品维护
|
||||||
|
*
|
||||||
|
* @param basePictureLocation 亮点产品维护
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int updateBasePictureLocation(BasePictureLocation basePictureLocation)
|
||||||
|
{
|
||||||
|
return basePictureLocationMapper.updateBasePictureLocation(basePictureLocation);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除亮点产品维护
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的亮点产品维护主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteBasePictureLocationByIds(String ids)
|
||||||
|
{
|
||||||
|
return basePictureLocationMapper.deleteBasePictureLocationByIds(Convert.toStrArray(ids));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除亮点产品维护信息
|
||||||
|
*
|
||||||
|
* @param id 亮点产品维护主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteBasePictureLocationById(Long id)
|
||||||
|
{
|
||||||
|
return basePictureLocationMapper.deleteBasePictureLocationById(id);
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,101 @@
|
|||||||
|
package com.ruoyi.system.service.impl;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import com.ruoyi.common.utils.DateUtils;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import com.ruoyi.system.mapper.BaseUserManyiduMapper;
|
||||||
|
import com.ruoyi.system.domain.BaseUserManyidu;
|
||||||
|
import com.ruoyi.system.service.IBaseUserManyiduService;
|
||||||
|
import com.ruoyi.common.core.text.Convert;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 用户满意度Service业务层处理
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2022-07-27
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class BaseUserManyiduServiceImpl implements IBaseUserManyiduService
|
||||||
|
{
|
||||||
|
@Autowired
|
||||||
|
private BaseUserManyiduMapper baseUserManyiduMapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询用户满意度
|
||||||
|
*
|
||||||
|
* @param id 用户满意度主键
|
||||||
|
* @return 用户满意度
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public BaseUserManyidu selectBaseUserManyiduById(Long id)
|
||||||
|
{
|
||||||
|
return baseUserManyiduMapper.selectBaseUserManyiduById(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询用户满意度列表
|
||||||
|
*
|
||||||
|
* @param baseUserManyidu 用户满意度
|
||||||
|
* @return 用户满意度
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public List<BaseUserManyidu> selectBaseUserManyiduList(BaseUserManyidu baseUserManyidu)
|
||||||
|
{
|
||||||
|
return baseUserManyiduMapper.selectBaseUserManyiduList(baseUserManyidu);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增用户满意度
|
||||||
|
*
|
||||||
|
* @param baseUserManyidu 用户满意度
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int insertBaseUserManyidu(BaseUserManyidu baseUserManyidu)
|
||||||
|
{
|
||||||
|
baseUserManyidu.setCreateTime(DateUtils.getNowDate());
|
||||||
|
return baseUserManyiduMapper.insertBaseUserManyidu(baseUserManyidu);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改用户满意度
|
||||||
|
*
|
||||||
|
* @param baseUserManyidu 用户满意度
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int updateBaseUserManyidu(BaseUserManyidu baseUserManyidu)
|
||||||
|
{
|
||||||
|
return baseUserManyiduMapper.updateBaseUserManyidu(baseUserManyidu);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除用户满意度
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的用户满意度主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteBaseUserManyiduByIds(String ids)
|
||||||
|
{
|
||||||
|
return baseUserManyiduMapper.deleteBaseUserManyiduByIds(Convert.toStrArray(ids));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除用户满意度信息
|
||||||
|
*
|
||||||
|
* @param id 用户满意度主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteBaseUserManyiduById(Long id)
|
||||||
|
{
|
||||||
|
return baseUserManyiduMapper.deleteBaseUserManyiduById(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<BaseUserManyidu> yue_selectUserSatisfaction() {
|
||||||
|
return baseUserManyiduMapper.yue_selectUserSatisfaction();
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,27 @@
|
|||||||
|
-- 菜单 SQL
|
||||||
|
insert into sys_menu (menu_id, menu_name, parent_id, order_num, url, menu_type, visible, perms, icon, create_by, create_time, update_by, update_time, remark)
|
||||||
|
values(2080, '用户满意度', '5', '1', '/system/base_manyidu', 'C', '0', 'system:base_manyidu:view', '#', 'admin', sysdate, '', null, '用户满意度菜单');
|
||||||
|
|
||||||
|
-- 按钮 SQL
|
||||||
|
insert into sys_menu (menu_id, menu_name, parent_id, order_num, url, menu_type, visible, perms, icon, create_by, create_time, update_by, update_time, remark)
|
||||||
|
values(seq_sys_menu.nextval, '用户满意度查询', 2080, '1', '#', 'F', '0', 'system:base_manyidu:list', '#', 'admin', sysdate, '', null, '');
|
||||||
|
|
||||||
|
insert into sys_menu (menu_id, menu_name, parent_id, order_num, url, menu_type, visible, perms, icon, create_by, create_time, update_by, update_time, remark)
|
||||||
|
values(seq_sys_menu.nextval, '用户满意度新增', 2080, '2', '#', 'F', '0', 'system:base_manyidu:add', '#', 'admin', sysdate, '', null, '');
|
||||||
|
|
||||||
|
insert into sys_menu (menu_id, menu_name, parent_id, order_num, url, menu_type, visible, perms, icon, create_by, create_time, update_by, update_time, remark)
|
||||||
|
values(seq_sys_menu.nextval, '用户满意度修改', 2080, '3', '#', 'F', '0', 'system:base_manyidu:edit', '#', 'admin', sysdate, '', null, '');
|
||||||
|
|
||||||
|
insert into sys_menu (menu_id, menu_name, parent_id, order_num, url, menu_type, visible, perms, icon, create_by, create_time, update_by, update_time, remark)
|
||||||
|
values(seq_sys_menu.nextval, '用户满意度删除', 2080, '4', '#', 'F', '0', 'system:base_manyidu:remove', '#', 'admin', sysdate, '', null, '');
|
||||||
|
|
||||||
|
insert into sys_menu (menu_id, menu_name, parent_id, order_num, url, menu_type, visible, perms, icon, create_by, create_time, update_by, update_time, remark)
|
||||||
|
values(seq_sys_menu.nextval, '用户满意度导出', 2080, '5', '#', 'F', '0', 'system:base_manyidu:export', '#', 'admin', sysdate, '', null, '');
|
||||||
|
|
||||||
|
-- base_user_manyidu主键序列
|
||||||
|
create sequence seq_base_user_manyidu
|
||||||
|
increment by 1
|
||||||
|
start with 10
|
||||||
|
nomaxvalue
|
||||||
|
nominvalue
|
||||||
|
cache 20;
|
||||||
@ -0,0 +1,27 @@
|
|||||||
|
-- 菜单 SQL
|
||||||
|
insert into sys_menu (menu_id, menu_name, parent_id, order_num, url, menu_type, visible, perms, icon, create_by, create_time, update_by, update_time, remark)
|
||||||
|
values(2085, '亮点产品维护', '5', '1', '/system/base_picture_location', 'C', '0', 'system:base_picture_location:view', '#', 'admin', sysdate, '', null, '亮点产品维护菜单');
|
||||||
|
|
||||||
|
-- 按钮 SQL
|
||||||
|
insert into sys_menu (menu_id, menu_name, parent_id, order_num, url, menu_type, visible, perms, icon, create_by, create_time, update_by, update_time, remark)
|
||||||
|
values(seq_sys_menu.nextval, '亮点产品维护查询', 2085, '1', '#', 'F', '0', 'system:base_picture_location:list', '#', 'admin', sysdate, '', null, '');
|
||||||
|
|
||||||
|
insert into sys_menu (menu_id, menu_name, parent_id, order_num, url, menu_type, visible, perms, icon, create_by, create_time, update_by, update_time, remark)
|
||||||
|
values(seq_sys_menu.nextval, '亮点产品维护新增', 2085, '2', '#', 'F', '0', 'system:base_picture_location:add', '#', 'admin', sysdate, '', null, '');
|
||||||
|
|
||||||
|
insert into sys_menu (menu_id, menu_name, parent_id, order_num, url, menu_type, visible, perms, icon, create_by, create_time, update_by, update_time, remark)
|
||||||
|
values(seq_sys_menu.nextval, '亮点产品维护修改', 2085, '3', '#', 'F', '0', 'system:base_picture_location:edit', '#', 'admin', sysdate, '', null, '');
|
||||||
|
|
||||||
|
insert into sys_menu (menu_id, menu_name, parent_id, order_num, url, menu_type, visible, perms, icon, create_by, create_time, update_by, update_time, remark)
|
||||||
|
values(seq_sys_menu.nextval, '亮点产品维护删除', 2085, '4', '#', 'F', '0', 'system:base_picture_location:remove', '#', 'admin', sysdate, '', null, '');
|
||||||
|
|
||||||
|
insert into sys_menu (menu_id, menu_name, parent_id, order_num, url, menu_type, visible, perms, icon, create_by, create_time, update_by, update_time, remark)
|
||||||
|
values(seq_sys_menu.nextval, '亮点产品维护导出', 2085, '5', '#', 'F', '0', 'system:base_picture_location:export', '#', 'admin', sysdate, '', null, '');
|
||||||
|
|
||||||
|
-- base_picture_location主键序列
|
||||||
|
create sequence seq_base_picture_location
|
||||||
|
increment by 1
|
||||||
|
start with 10
|
||||||
|
nomaxvalue
|
||||||
|
nominvalue
|
||||||
|
cache 20;
|
||||||
@ -0,0 +1,64 @@
|
|||||||
|
<?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.ruoyi.system.mapper.BasePictureLocationMapper">
|
||||||
|
|
||||||
|
<resultMap type="BasePictureLocation" id="BasePictureLocationResult">
|
||||||
|
<result property="id" column="id" />
|
||||||
|
<result property="picturePath" column="picture_path" />
|
||||||
|
<result property="pictureLocation" column="picture_location" />
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
<sql id="selectBasePictureLocationVo">
|
||||||
|
select id, picture_path, picture_location from base_picture_location
|
||||||
|
</sql>
|
||||||
|
|
||||||
|
<select id="selectBasePictureLocationList" parameterType="BasePictureLocation" resultMap="BasePictureLocationResult">
|
||||||
|
<include refid="selectBasePictureLocationVo"/>
|
||||||
|
<where>
|
||||||
|
</where>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="selectBasePictureLocationById" parameterType="Long" resultMap="BasePictureLocationResult">
|
||||||
|
<include refid="selectBasePictureLocationVo"/>
|
||||||
|
where id = #{id}
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<insert id="insertBasePictureLocation" parameterType="BasePictureLocation">
|
||||||
|
<selectKey keyProperty="id" resultType="long" order="BEFORE">
|
||||||
|
SELECT seq_base_picture_location.NEXTVAL as id FROM DUAL
|
||||||
|
</selectKey>
|
||||||
|
insert into base_picture_location
|
||||||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="id != null">id,</if>
|
||||||
|
<if test="picturePath != null">picture_path,</if>
|
||||||
|
<if test="pictureLocation != null">picture_location,</if>
|
||||||
|
</trim>
|
||||||
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="id != null">#{id},</if>
|
||||||
|
<if test="picturePath != null">#{picturePath},</if>
|
||||||
|
<if test="pictureLocation != null">#{pictureLocation},</if>
|
||||||
|
</trim>
|
||||||
|
</insert>
|
||||||
|
|
||||||
|
<update id="updateBasePictureLocation" parameterType="BasePictureLocation">
|
||||||
|
update base_picture_location
|
||||||
|
<trim prefix="SET" suffixOverrides=",">
|
||||||
|
<if test="picturePath != null">picture_path = #{picturePath},</if>
|
||||||
|
<if test="pictureLocation != null">picture_location = #{pictureLocation},</if>
|
||||||
|
</trim>
|
||||||
|
where id = #{id}
|
||||||
|
</update>
|
||||||
|
|
||||||
|
<delete id="deleteBasePictureLocationById" parameterType="Long">
|
||||||
|
delete from base_picture_location where id = #{id}
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
<delete id="deleteBasePictureLocationByIds" parameterType="String">
|
||||||
|
delete from base_picture_location where id in
|
||||||
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||||
|
#{id}
|
||||||
|
</foreach>
|
||||||
|
</delete>
|
||||||
|
</mapper>
|
||||||
@ -0,0 +1,86 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
|
<!DOCTYPE mapper
|
||||||
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="com.ruoyi.system.mapper.BaseUserManyiduMapper">
|
||||||
|
|
||||||
|
<resultMap type="BaseUserManyidu" id="BaseUserManyiduResult">
|
||||||
|
<result property="id" column="id" />
|
||||||
|
<result property="yearName" column="year_name" />
|
||||||
|
<result property="productRate" column="product_rate" />
|
||||||
|
<result property="shoppingRate" column="shopping_rate" />
|
||||||
|
<result property="serviceRate" column="service_rate" />
|
||||||
|
<result property="orderRate" column="order_rate" />
|
||||||
|
<result property="createTime" column="create_time" />
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
<sql id="selectBaseUserManyiduVo">
|
||||||
|
select id, year_name, product_rate, shopping_rate, service_rate, order_rate, create_time from base_user_manyidu
|
||||||
|
</sql>
|
||||||
|
|
||||||
|
<select id="yue_selectUserSatisfaction" resultMap="BaseUserManyiduResult">
|
||||||
|
<include refid="selectBaseUserManyiduVo"/>
|
||||||
|
where YEAR_NAME=to_number(to_char(sysdate, 'yyyy')) or YEAR_NAME=to_number(to_char(sysdate, 'yyyy'))-1
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="selectBaseUserManyiduList" parameterType="BaseUserManyidu" resultMap="BaseUserManyiduResult">
|
||||||
|
<include refid="selectBaseUserManyiduVo"/>
|
||||||
|
<where>
|
||||||
|
<if test="yearName != null "> and year_name = #{yearName}</if>
|
||||||
|
</where>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="selectBaseUserManyiduById" parameterType="Long" resultMap="BaseUserManyiduResult">
|
||||||
|
<include refid="selectBaseUserManyiduVo"/>
|
||||||
|
where id = #{id}
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<insert id="insertBaseUserManyidu" parameterType="BaseUserManyidu">
|
||||||
|
<selectKey keyProperty="id" resultType="String" order="BEFORE">
|
||||||
|
SELECT seq_base_user_manyidu.NEXTVAL as id FROM DUAL
|
||||||
|
</selectKey>
|
||||||
|
insert into base_user_manyidu
|
||||||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="id != null">id,</if>
|
||||||
|
<if test="yearName != null">year_name,</if>
|
||||||
|
<if test="productRate != null">product_rate,</if>
|
||||||
|
<if test="shoppingRate != null">shopping_rate,</if>
|
||||||
|
<if test="serviceRate != null">service_rate,</if>
|
||||||
|
<if test="orderRate != null">order_rate,</if>
|
||||||
|
<if test="createTime != null">create_time,</if>
|
||||||
|
</trim>
|
||||||
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="id != null">#{id},</if>
|
||||||
|
<if test="yearName != null">#{yearName},</if>
|
||||||
|
<if test="productRate != null">#{productRate},</if>
|
||||||
|
<if test="shoppingRate != null">#{shoppingRate},</if>
|
||||||
|
<if test="serviceRate != null">#{serviceRate},</if>
|
||||||
|
<if test="orderRate != null">#{orderRate},</if>
|
||||||
|
<if test="createTime != null">#{createTime},</if>
|
||||||
|
</trim>
|
||||||
|
</insert>
|
||||||
|
|
||||||
|
<update id="updateBaseUserManyidu" parameterType="BaseUserManyidu">
|
||||||
|
update base_user_manyidu
|
||||||
|
<trim prefix="SET" suffixOverrides=",">
|
||||||
|
<if test="yearName != null">year_name = #{yearName},</if>
|
||||||
|
<if test="productRate != null">product_rate = #{productRate},</if>
|
||||||
|
<if test="shoppingRate != null">shopping_rate = #{shoppingRate},</if>
|
||||||
|
<if test="serviceRate != null">service_rate = #{serviceRate},</if>
|
||||||
|
<if test="orderRate != null">order_rate = #{orderRate},</if>
|
||||||
|
<if test="createTime != null">create_time = #{createTime},</if>
|
||||||
|
</trim>
|
||||||
|
where id = #{id}
|
||||||
|
</update>
|
||||||
|
|
||||||
|
<delete id="deleteBaseUserManyiduById" parameterType="Long">
|
||||||
|
delete from base_user_manyidu where id = #{id}
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
<delete id="deleteBaseUserManyiduByIds" parameterType="String">
|
||||||
|
delete from base_user_manyidu where id in
|
||||||
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||||
|
#{id}
|
||||||
|
</foreach>
|
||||||
|
</delete>
|
||||||
|
</mapper>
|
||||||
@ -0,0 +1,55 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
|
||||||
|
<head>
|
||||||
|
<th:block th:include="include :: header('新增用户满意度')" />
|
||||||
|
</head>
|
||||||
|
<body class="white-bg">
|
||||||
|
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
|
||||||
|
<form class="form-horizontal m" id="form-base_manyidu-add">
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-sm-3 control-label">年份:</label>
|
||||||
|
<div class="col-sm-8">
|
||||||
|
<input name="yearName" class="form-control" type="text">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-sm-3 control-label">产品体验:</label>
|
||||||
|
<div class="col-sm-8">
|
||||||
|
<input name="productRate" class="form-control" type="text">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-sm-3 control-label">购物体验:</label>
|
||||||
|
<div class="col-sm-8">
|
||||||
|
<input name="shoppingRate" class="form-control" type="text">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-sm-3 control-label">服务体验:</label>
|
||||||
|
<div class="col-sm-8">
|
||||||
|
<input name="serviceRate" class="form-control" type="text">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-sm-3 control-label">订单履约率:</label>
|
||||||
|
<div class="col-sm-8">
|
||||||
|
<input name="orderRate" class="form-control" type="text">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
<th:block th:include="include :: footer" />
|
||||||
|
<script th:inline="javascript">
|
||||||
|
var prefix = ctx + "system/base_manyidu"
|
||||||
|
$("#form-base_manyidu-add").validate({
|
||||||
|
focusCleanup: true
|
||||||
|
});
|
||||||
|
|
||||||
|
function submitHandler() {
|
||||||
|
if ($.validate.form()) {
|
||||||
|
$.operate.save(prefix + "/add", $('#form-base_manyidu-add').serialize());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@ -0,0 +1,102 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
|
||||||
|
<head>
|
||||||
|
<th:block th:include="include :: header('用户满意度列表')" />
|
||||||
|
</head>
|
||||||
|
<body class="gray-bg">
|
||||||
|
<div class="container-div">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-sm-12 search-collapse">
|
||||||
|
<form id="formId">
|
||||||
|
<div class="select-list">
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
<label>年份:</label>
|
||||||
|
<input type="text" name="yearName"/>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i> 搜索</a>
|
||||||
|
<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i> 重置</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="btn-group-sm" id="toolbar" role="group">
|
||||||
|
<a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="system:base_manyidu:add">
|
||||||
|
<i class="fa fa-plus"></i> 添加
|
||||||
|
</a>
|
||||||
|
<a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="system:base_manyidu:edit">
|
||||||
|
<i class="fa fa-edit"></i> 修改
|
||||||
|
</a>
|
||||||
|
<a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="system:base_manyidu:remove">
|
||||||
|
<i class="fa fa-remove"></i> 删除
|
||||||
|
</a>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div class="col-sm-12 select-table table-striped">
|
||||||
|
<table id="bootstrap-table"></table>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<th:block th:include="include :: footer" />
|
||||||
|
<script th:inline="javascript">
|
||||||
|
var editFlag = [[${@permission.hasPermi('system:base_manyidu:edit')}]];
|
||||||
|
var removeFlag = [[${@permission.hasPermi('system:base_manyidu:remove')}]];
|
||||||
|
var prefix = ctx + "system/base_manyidu";
|
||||||
|
|
||||||
|
$(function() {
|
||||||
|
var options = {
|
||||||
|
url: prefix + "/list",
|
||||||
|
createUrl: prefix + "/add",
|
||||||
|
updateUrl: prefix + "/edit/{id}",
|
||||||
|
removeUrl: prefix + "/remove",
|
||||||
|
exportUrl: prefix + "/export",
|
||||||
|
modalName: "用户满意度",
|
||||||
|
sortName: 'yearName',
|
||||||
|
sortOrder: 'desc',
|
||||||
|
columns: [{
|
||||||
|
checkbox: true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: 'id',
|
||||||
|
title: '主键',
|
||||||
|
visible: false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: 'yearName',
|
||||||
|
title: '年份'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: 'productRate',
|
||||||
|
title: '产品体验'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: 'shoppingRate',
|
||||||
|
title: '购物体验'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: 'serviceRate',
|
||||||
|
title: '服务体验'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: 'orderRate',
|
||||||
|
title: '订单履约率'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: '操作',
|
||||||
|
align: 'center',
|
||||||
|
formatter: function(value, row, index) {
|
||||||
|
var actions = [];
|
||||||
|
actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.id + '\')"><i class="fa fa-edit"></i>编辑</a> ');
|
||||||
|
actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.id + '\')"><i class="fa fa-remove"></i>删除</a>');
|
||||||
|
return actions.join('');
|
||||||
|
}
|
||||||
|
}]
|
||||||
|
};
|
||||||
|
$.table.init(options);
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@ -0,0 +1,50 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
|
||||||
|
<head>
|
||||||
|
<th:block th:include="include :: header('修改用户满意度')" />
|
||||||
|
</head>
|
||||||
|
<body class="white-bg">
|
||||||
|
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
|
||||||
|
<form class="form-horizontal m" id="form-base_manyidu-edit" th:object="${baseUserManyidu}">
|
||||||
|
<input name="id" th:field="*{id}" type="hidden">
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-sm-3 control-label">产品体验:</label>
|
||||||
|
<div class="col-sm-8">
|
||||||
|
<input name="productRate" th:field="*{productRate}" class="form-control" type="text">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-sm-3 control-label">购物体验:</label>
|
||||||
|
<div class="col-sm-8">
|
||||||
|
<input name="shoppingRate" th:field="*{shoppingRate}" class="form-control" type="text">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-sm-3 control-label">服务体验:</label>
|
||||||
|
<div class="col-sm-8">
|
||||||
|
<input name="serviceRate" th:field="*{serviceRate}" class="form-control" type="text">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-sm-3 control-label">订单履约率:</label>
|
||||||
|
<div class="col-sm-8">
|
||||||
|
<input name="orderRate" th:field="*{orderRate}" class="form-control" type="text">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
<th:block th:include="include :: footer" />
|
||||||
|
<script th:inline="javascript">
|
||||||
|
var prefix = ctx + "system/base_manyidu";
|
||||||
|
$("#form-base_manyidu-edit").validate({
|
||||||
|
focusCleanup: true
|
||||||
|
});
|
||||||
|
|
||||||
|
function submitHandler() {
|
||||||
|
if ($.validate.form()) {
|
||||||
|
$.operate.save(prefix + "/edit", $('#form-base_manyidu-edit').serialize());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@ -0,0 +1,39 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
|
||||||
|
<head>
|
||||||
|
<th:block th:include="include :: header('新增亮点产品维护')" />
|
||||||
|
</head>
|
||||||
|
<body class="white-bg">
|
||||||
|
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
|
||||||
|
<form class="form-horizontal m" id="form-base_picture_location-add">
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-sm-3 control-label">图片路径:</label>
|
||||||
|
<div class="col-sm-8">
|
||||||
|
<input name="picturePath" class="form-control" type="text">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-sm-3 control-label">显示位置:</label>
|
||||||
|
<div class="col-sm-8">
|
||||||
|
<select name="pictureLocation" class="form-control m-b" th:with="type=${@dict.getType('picture_location')}">
|
||||||
|
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
<th:block th:include="include :: footer" />
|
||||||
|
<script th:inline="javascript">
|
||||||
|
var prefix = ctx + "system/base_picture_location"
|
||||||
|
$("#form-base_picture_location-add").validate({
|
||||||
|
focusCleanup: true
|
||||||
|
});
|
||||||
|
|
||||||
|
function submitHandler() {
|
||||||
|
if ($.validate.form()) {
|
||||||
|
$.operate.save(prefix + "/add", $('#form-base_picture_location-add').serialize());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@ -0,0 +1,90 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
|
||||||
|
<head>
|
||||||
|
<th:block th:include="include :: header('亮点产品维护列表')" />
|
||||||
|
</head>
|
||||||
|
<body class="gray-bg">
|
||||||
|
<div class="container-div">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-sm-12 search-collapse">
|
||||||
|
<form id="formId">
|
||||||
|
<div class="select-list">
|
||||||
|
<ul>
|
||||||
|
<li>
|
||||||
|
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i> 搜索</a>
|
||||||
|
<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i> 重置</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="btn-group-sm" id="toolbar" role="group">
|
||||||
|
<a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="system:base_picture_location:add">
|
||||||
|
<i class="fa fa-plus"></i> 添加
|
||||||
|
</a>
|
||||||
|
<a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="system:base_picture_location:edit">
|
||||||
|
<i class="fa fa-edit"></i> 修改
|
||||||
|
</a>
|
||||||
|
<a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="system:base_picture_location:remove">
|
||||||
|
<i class="fa fa-remove"></i> 删除
|
||||||
|
</a>
|
||||||
|
<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="system:base_picture_location:export">
|
||||||
|
<i class="fa fa-download"></i> 导出
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
<div class="col-sm-12 select-table table-striped">
|
||||||
|
<table id="bootstrap-table"></table>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<th:block th:include="include :: footer" />
|
||||||
|
<script th:inline="javascript">
|
||||||
|
var editFlag = [[${@permission.hasPermi('system:base_picture_location:edit')}]];
|
||||||
|
var removeFlag = [[${@permission.hasPermi('system:base_picture_location:remove')}]];
|
||||||
|
var pictureLocationDatas = [[${@dict.getType('picture_location')}]];
|
||||||
|
var prefix = ctx + "system/base_picture_location";
|
||||||
|
|
||||||
|
$(function() {
|
||||||
|
var options = {
|
||||||
|
url: prefix + "/list",
|
||||||
|
createUrl: prefix + "/add",
|
||||||
|
updateUrl: prefix + "/edit/{id}",
|
||||||
|
removeUrl: prefix + "/remove",
|
||||||
|
exportUrl: prefix + "/export",
|
||||||
|
modalName: "亮点产品维护",
|
||||||
|
columns: [{
|
||||||
|
checkbox: true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: 'id',
|
||||||
|
title: '主键',
|
||||||
|
visible: false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: 'picturePath',
|
||||||
|
title: '图片路径'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
field: 'pictureLocation',
|
||||||
|
title: '显示位置',
|
||||||
|
formatter: function(value, row, index) {
|
||||||
|
return $.table.selectDictLabel(pictureLocationDatas, value);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: '操作',
|
||||||
|
align: 'center',
|
||||||
|
formatter: function(value, row, index) {
|
||||||
|
var actions = [];
|
||||||
|
actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.id + '\')"><i class="fa fa-edit"></i>编辑</a> ');
|
||||||
|
actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.id + '\')"><i class="fa fa-remove"></i>删除</a>');
|
||||||
|
return actions.join('');
|
||||||
|
}
|
||||||
|
}]
|
||||||
|
};
|
||||||
|
$.table.init(options);
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@ -0,0 +1,40 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
|
||||||
|
<head>
|
||||||
|
<th:block th:include="include :: header('修改亮点产品维护')" />
|
||||||
|
</head>
|
||||||
|
<body class="white-bg">
|
||||||
|
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
|
||||||
|
<form class="form-horizontal m" id="form-base_picture_location-edit" th:object="${basePictureLocation}">
|
||||||
|
<input name="id" th:field="*{id}" type="hidden">
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-sm-3 control-label">图片路径:</label>
|
||||||
|
<div class="col-sm-8">
|
||||||
|
<input name="picturePath" th:field="*{picturePath}" class="form-control" type="text">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="col-sm-3 control-label">显示位置:</label>
|
||||||
|
<div class="col-sm-8">
|
||||||
|
<select name="pictureLocation" class="form-control m-b" th:with="type=${@dict.getType('picture_location')}">
|
||||||
|
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{pictureLocation}"></option>
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
<th:block th:include="include :: footer" />
|
||||||
|
<script th:inline="javascript">
|
||||||
|
var prefix = ctx + "system/base_picture_location";
|
||||||
|
$("#form-base_picture_location-edit").validate({
|
||||||
|
focusCleanup: true
|
||||||
|
});
|
||||||
|
|
||||||
|
function submitHandler() {
|
||||||
|
if ($.validate.form()) {
|
||||||
|
$.operate.save(prefix + "/edit", $('#form-base_picture_location-edit').serialize());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
Loading…
Reference in New Issue