修改 总装

master
wangh 4 years ago
parent feb59c4f98
commit 4f63570747

@ -1,6 +1,7 @@
package com.ruoyi.web.controller.broad;
import com.alibaba.fastjson.JSONArray;
import com.ruoyi.system.service.IBaseUserManyiduService;
import com.ruoyi.system.service.IBroadDataService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
@ -19,87 +20,24 @@ public class MouthController {
@Autowired
private IBroadDataService service;
@Autowired
private IBaseUserManyiduService baseUserManyiduService;
@PostMapping("/selectProductInStore")
@ApiOperation("产量统计")
@PostMapping("/selectProductInStoreGroupMonth")
@ApiOperation("产量统计")
@ResponseBody
public String zhou_selectProductInStore() {
public String yue_selectProductInStore() {
// IMOS_PR_PRODUCT_BARCODE
return JSONArray.toJSONString( service.zhou_selectProductInStore());
return JSONArray.toJSONString( service.yue_selectProductInStore());
}
@PostMapping("/selectOrderRateInfo")
@ApiOperation("周订单执行情况")
@ResponseBody
public String zhou_selectOrderRateInfo() {
return JSONArray.toJSONString(service.zhou_selectOrderRateInfo());
@PostMapping("/selectUserSatisfaction")
@ApiOperation("用户满意度")
public String yue_selectUserSatisfaction() {
// IMOS_PR_PRODUCT_BARCODE
return JSONArray.toJSONString( baseUserManyiduService.yue_selectUserSatisfaction());
}
@PostMapping("/selectOrderRateInfoTatle")
@ApiOperation("周订单执行情况标题")
@ResponseBody
public String zhou_selectOrderRateTatle() {
return JSONArray.toJSONString(service.zhou_selectOrderRateTatle());
}
@PostMapping("/zhou_selectQaInfo")
@ApiOperation("周异常情况")
@ResponseBody
public String zhou_selectQaInfo() {
return JSONArray.toJSONString(service.zhou_selectQaInfo());
}
@PostMapping("/zhou_selectQaItemInfo")
@ApiOperation("周异常情况曲线")
@ResponseBody
public String zhou_selectQaItemInfo() {
return JSONArray.toJSONString(service.zhou_selectQaItemInfo());
}
/* @PostMapping("/zhou_selectQaItemInfo1")
@ApiOperation("test")
@ResponseBody
public void zhou_selectQaItemInfo1() {
try {
DriverManager.registerDriver (new oracle.jdbc.OracleDriver());
Connection conn = DriverManager.getConnection("jdbc:oracle:thin:@10.100.70.5:1521:aucma", "haiwei", "123456");
CallableStatement stmt = conn.prepareCall(
"{ call IMOS.IMOS_Pro_6_3_QualityAnalysis2(?,?,?,?,?,?,?,?) }");
stmt.setNString(1,"2022");
stmt.setNString(2,"6");
stmt.setNString(3,"");
stmt.setNString(4,"1005");
stmt.setNString(5,"");
stmt.setNString(6,"");
stmt.setNString(7,"");
stmt.registerOutParameter(8, OracleTypes.CURSOR);
stmt.execute();
ResultSet rs = (ResultSet) stmt.getObject(6);
while (rs.next()) {
System.out.println(rs.getString("PRICE"));
}
rs.close();
rs = null;
stmt.close();
stmt = null;
conn.close();
conn = null;
}
catch (SQLException e) {
System.out.println(e.getLocalizedMessage());
}
}*/

@ -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));
}
}

@ -86,12 +86,12 @@ public class BaseProductQtyController extends BaseController {
if (tag > 0) {
return error("本天 '" + baseProductQty.getDay() + "' 已经存在");
}
List<BaseProductQty> list = baseProductQtyService.selectBaseProductQtyList(null);
int id = 1;
if (list != null || !list.isEmpty()) {
id = list.size();
}
baseProductQty.setId(Long.valueOf(id));
// List<BaseProductQty> list = baseProductQtyService.selectBaseProductQtyList(null);
// int id = 1;
// if (list != null || !list.isEmpty()) {
// id = list.size();
// }
// baseProductQty.setId(Long.valueOf(id));
baseProductQty.setCreateBy(ShiroUtils.getLoginName());
return toAjax(baseProductQtyService.insertBaseProductQty(baseProductQty));
}

@ -100,12 +100,12 @@ public class BaseTeamController extends BaseController
String filePath = Global.getUploadPath();
try {
String pathName = FileUploadUtils.upload(filePath, file);
List<BaseTeam> list = baseTeamService.selectBaseTeamList(null);
int id=1;
if (list!=null||!list.isEmpty()){
id=list.size()+1;
}
baseTeam.setId(Long.valueOf(id));
// List<BaseTeam> list = baseTeamService.selectBaseTeamList(null);
// int id=1;
// if (list!=null||!list.isEmpty()){
// id= Math.toIntExact(list.get(list.size()).getId())+1;
// }
// baseTeam.setId(Long.valueOf(id));
baseTeam.setPath(pathName);
return toAjax(baseTeamService.insertBaseTeam(baseTeam));
} catch (IOException e) {

@ -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();
}

@ -106,4 +106,6 @@ public interface BroadDataMapper {
List<MTKBeen> zhou_selectQaItemInfo();
List<BoxOutput> zhou_selectOrderRateTatle();
List<BoxOutput> yue_selectProductInStore();
}

@ -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();
}

@ -87,4 +87,6 @@ public interface IBroadDataService {
List<MTKBeen> zhou_selectQaItemInfo();
List<BoxOutput> zhou_selectOrderRateTatle();
List<BoxOutput> yue_selectProductInStore();
}

@ -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();
}
}

@ -208,4 +208,12 @@ public class BroadDataServiceImpl implements IBroadDataService
public List<BoxOutput> zhou_selectOrderRateTatle() {
return mapper.zhou_selectOrderRateTatle();
}
///////////////////////////////////////////////////////////////////////////
// yue
///////////////////////////////////////////////////////////////////////////
@Override
public List<BoxOutput> yue_selectProductInStore() {
return mapper.yue_selectProductInStore();
}
}

@ -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>

@ -31,7 +31,7 @@ FROM (select PLAN_NUMBER
and delete_flag = '0'
-- and to_char(plan_date, 'yyyy-MM-dd') = to_char(sysdate, 'yyyy-MM-dd')
and
CREATION_DATE &gt;
to_date(START_TIME, 'yyyy-MM-dd hh24:mi:ss') &gt;
case
when to_char(sysdate, 'hh24') &gt; 7 and to_char(sysdate, 'hh24') &lt; 20 then to_date(
to_char(SYSDATE, 'yyyy-MM-dd') || '07:30:00',
@ -40,7 +40,7 @@ FROM (select PLAN_NUMBER
'yyyy-MM-dd hh24:mi:ss')
else to_date(to_char(SYSDATE - 1, 'yyyy-MM-dd') || '19:30:00', 'yyyy-MM-dd hh24:mi:ss')
end
and CREATION_DATE &lt;
and to_date(START_TIME, 'yyyy-MM-dd hh24:mi:ss') &lt;
case
when to_char(sysdate, 'hh24') &gt; 7 and to_char(sysdate, 'hh24') &lt; 20 then to_date(
to_char(SYSDATE, 'yyyy-MM-dd') || '19:30:00',
@ -99,7 +99,7 @@ FROM (select PLAN_NUMBER
SUM(ACTUAL_QTY) as qty
from IMOS_PR_PLAN
where
CREATION_DATE &gt;
to_date(START_TIME, 'yyyy-MM-dd hh24:mi:ss') &gt;
case
when to_char(sysdate, 'hh24') &gt; 7 and to_char(sysdate, 'hh24') &lt; 20 then to_date(
to_char(SYSDATE, 'yyyy-MM-dd') || '07:30:00',
@ -108,7 +108,7 @@ FROM (select PLAN_NUMBER
'yyyy-MM-dd hh24:mi:ss')
else to_date(to_char(SYSDATE - 1, 'yyyy-MM-dd') || '19:30:00', 'yyyy-MM-dd hh24:mi:ss')
end
and CREATION_DATE &lt;
and to_date(START_TIME, 'yyyy-MM-dd hh24:mi:ss') &lt;
case
when to_char(sysdate, 'hh24') &gt; 7 and to_char(sysdate, 'hh24') &lt; 20 then to_date(
to_char(SYSDATE, 'yyyy-MM-dd') || '19:30:00',
@ -705,7 +705,7 @@ where 600 &lt; ROUND(TO_NUMBER(t1.day - t2.day) * 24 * 60 * 60) - t3.RHYTHM
nvl(sum(actual_qty), 0) as qty
from IMOS.IMOS_PR_PLAN xhq
left join (select * from (select * from haiwei.BASE_DAY_WBTIME order by CREATE_TIME desc) where ROWNUM = 1) wb on 1 = 1
where xhq.CREATION_DATE between case when sysdate &lt;= wb.W_END then W_START else W_END end
where to_date(xhq.START_TIME, 'yyyy-MM-dd hh24:mi:ss') between case when sysdate &lt;= wb.W_END then W_START else W_END end
and case when sysdate &lt;= wb.W_END then W_END else B_END end
and plan_date is not null
and process_code = 1002
@ -719,7 +719,7 @@ where 600 &lt; ROUND(TO_NUMBER(t1.day - t2.day) * 24 * 60 * 60) - t3.RHYTHM
where plan_date is not null
and process_code = 1002
and delete_flag = '0'
and ipp.CREATION_DATE between case when sysdate &lt; = wb.W_END then W_START else W_END end
and to_date(ipp.START_TIME, 'yyyy-MM-dd hh24:mi:ss') between case when sysdate &lt; = wb.W_END then W_START else W_END end
and case when sysdate &lt; = wb.W_END then W_END else B_END end
-- select nvl(sum(actual_qty), 0)
-- from IMOS.IMOS_PR_PLAN
@ -1181,4 +1181,11 @@ where DETIAL_TYPE_CODE = '1004'
</select>
<select id="yue_selectProductInStore" resultType="com.ruoyi.system.domain.BoxOutput">
select to_number(to_char(PRODUCTION_DATE, 'MM')) as name, count(1) as qty
from IMOS.IMOS_PR_PRODUCT_BARCODE
where PRODUCTION_DATE > TRUNC(sysdate, 'YYYY')
group by to_char(PRODUCTION_DATE, 'MM')
order by name
</select>
</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>&nbsp;搜索</a>
<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</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>&nbsp;搜索</a>
<a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</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…
Cancel
Save