新增项目增删改查
This commit is contained in:
parent
fc83f61f5c
commit
6d83722649
|
@ -2,19 +2,18 @@ package com.fc.v2.controller.admin.goview;
|
|||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import com.fc.v2.common.conf.oss.OssTemplate;
|
||||
import com.fc.v2.common.domain.AjaxResult;
|
||||
import com.fc.v2.controller.AdminController;
|
||||
import com.fc.v2.mapper.custom.TsysUserDao;
|
||||
|
@ -22,18 +21,19 @@ import com.fc.v2.model.auto.TsysUser;
|
|||
import com.fc.v2.satoken.SaTokenUtil;
|
||||
import com.fc.v2.util.ServletUtils;
|
||||
import com.fc.v2.util.StringUtils;
|
||||
|
||||
import cn.dev33.satoken.secure.SaSecureUtil;
|
||||
import cn.dev33.satoken.stp.StpUtil;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
|
||||
@RestController
|
||||
@RequestMapping("/goview")
|
||||
@RequestMapping("/api/goview")
|
||||
public class GoViewController {
|
||||
|
||||
private static Logger logger = LoggerFactory.getLogger(AdminController.class);
|
||||
@Autowired
|
||||
private TsysUserDao tsysUserDao;
|
||||
@Autowired
|
||||
private OssTemplate template;
|
||||
/**
|
||||
* 手机登录
|
||||
* @param user
|
||||
|
@ -47,7 +47,7 @@ public class GoViewController {
|
|||
@ApiOperation(value = "手机登录", notes = "手机登录")
|
||||
@PostMapping("/login")
|
||||
@ResponseBody
|
||||
public AjaxResult APIlogin(TsysUser user,boolean rememberMe,HttpServletRequest request) {
|
||||
public AjaxResult APIlogin(@RequestBody TsysUser user,boolean rememberMe,HttpServletRequest request) {
|
||||
|
||||
Boolean yz = true;
|
||||
// if (V2Config.getRollVerification()) {// 滚动验证
|
||||
|
@ -76,7 +76,10 @@ public class GoViewController {
|
|||
StpUtil.login(queryUser.getId(), rememberMe);
|
||||
SaTokenUtil.setUser(queryUser);
|
||||
StpUtil.getTokenSession().set("ip", ServletUtils.getIP(request));
|
||||
return AjaxResult.success().put("data", StpUtil.getTokenInfo());
|
||||
Map<String, Object> map=new HashMap<String, Object>();
|
||||
map.put("token",StpUtil.getTokenInfo());
|
||||
map.put("userinfo", queryUser);
|
||||
return AjaxResult.success().put("data",map);
|
||||
} else {
|
||||
if (StringUtils.isNotNull(SaTokenUtil.getUser())) {
|
||||
// 跳转到 get请求的登陆方法
|
||||
|
@ -100,12 +103,22 @@ public class GoViewController {
|
|||
@GetMapping("/logout")
|
||||
@ResponseBody
|
||||
public AjaxResult LoginOut(HttpServletRequest request, HttpServletResponse response) {
|
||||
// 在这里执行退出系统前需要清空的数据
|
||||
|
||||
// 在这里执行退出系统前需要清空的数据
|
||||
// 注销
|
||||
StpUtil.logout();
|
||||
return AjaxResult.success().put("msg", "退出成功");
|
||||
}
|
||||
|
||||
@ApiOperation(value = "获取oss信息", notes = "获取oss信息")
|
||||
@GetMapping("/getOssInfo")
|
||||
@ResponseBody
|
||||
public AjaxResult OssInfo() {
|
||||
Map<String, String> ossinfo=new HashMap<String, String>();
|
||||
ossinfo.put("bucketURL",template.getOssProperties().getEndpoint()+"/"+template.getOssProperties().getBucketName());
|
||||
ossinfo.put("BucketName",template.getOssProperties().getBucketName());
|
||||
return AjaxResult.successData(200, ossinfo).put("msg", "返回成功");
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -0,0 +1,121 @@
|
|||
package com.fc.v2.controller.admin.goview;
|
||||
|
||||
import com.fc.v2.common.base.BaseController;
|
||||
import com.fc.v2.common.domain.AjaxResult;
|
||||
import com.fc.v2.common.domain.ResultTable;
|
||||
import com.fc.v2.model.auto.GoviewProject;
|
||||
import com.fc.v2.model.custom.Tablepar;
|
||||
import com.fc.v2.service.GoviewProjectService;
|
||||
import com.github.pagehelper.PageInfo;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import cn.dev33.satoken.annotation.SaCheckPermission;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
/**
|
||||
* 项目表Controller
|
||||
* @ClassName: GoviewProjectController
|
||||
* @author fuce
|
||||
* @date 2022-05-18 21:43:25
|
||||
*/
|
||||
@Api(value = "前端项目表")
|
||||
@Controller
|
||||
@RequestMapping("/api/GoviewProject")
|
||||
public class GoviewProjectAPi extends BaseController{
|
||||
|
||||
|
||||
@Autowired
|
||||
private GoviewProjectService goviewProjectService;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* list集合
|
||||
* @param tablepar
|
||||
* @param searchText
|
||||
* @return
|
||||
*/
|
||||
//@Log(title = "项目表", action = "111")
|
||||
@ApiOperation(value = "分页跳转", notes = "分页跳转")
|
||||
@GetMapping("/list")
|
||||
@SaCheckPermission("gen:goviewProject:list")
|
||||
@ResponseBody
|
||||
public ResultTable list(Tablepar tablepar,GoviewProject goviewProject){
|
||||
PageInfo<GoviewProject> page=goviewProjectService.list(tablepar,goviewProject) ;
|
||||
return pageTable(page.getList(),page.getTotal());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 新增保存
|
||||
* @param
|
||||
* @return
|
||||
*/
|
||||
//@Log(title = "项目表新增", action = "111")
|
||||
@ApiOperation(value = "新增", notes = "新增")
|
||||
@PostMapping("/add")
|
||||
@SaCheckPermission("gen:goviewProject:add")
|
||||
@ResponseBody
|
||||
public AjaxResult add(@RequestBody GoviewProject goviewProject){
|
||||
int b=goviewProjectService.insertSelective(goviewProject);
|
||||
if(b>0){
|
||||
return AjaxResult.successData(200, goviewProjectService.selectByPrimaryKey(goviewProject.getId())).put("msg", "创建成功");
|
||||
}else{
|
||||
return error();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 项目表删除
|
||||
* @param ids
|
||||
* @return
|
||||
*/
|
||||
//@Log(title = "项目表删除", action = "111")
|
||||
@ApiOperation(value = "删除", notes = "删除")
|
||||
@DeleteMapping("/remove")
|
||||
@SaCheckPermission("gen:goviewProject:remove")
|
||||
@ResponseBody
|
||||
public AjaxResult remove(String ids){
|
||||
int b=goviewProjectService.deleteByPrimaryKey(ids);
|
||||
if(b>0){
|
||||
return success();
|
||||
}else{
|
||||
return error();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 修改保存
|
||||
*/
|
||||
//@Log(title = "项目表修改", action = "111")
|
||||
@ApiOperation(value = "修改保存", notes = "修改保存")
|
||||
@SaCheckPermission("gen:goviewProject:edit")
|
||||
@PostMapping("/edit")
|
||||
@ResponseBody
|
||||
public AjaxResult editSave(@RequestBody GoviewProject goviewProject)
|
||||
{
|
||||
return toAjax(goviewProjectService.updateByPrimaryKeySelective(goviewProject));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 修改状态
|
||||
* @param record
|
||||
* @return
|
||||
*/
|
||||
@PutMapping("/updateVisible")
|
||||
@ResponseBody
|
||||
public AjaxResult updateVisible(@RequestBody GoviewProject goviewProject){
|
||||
int i=goviewProjectService.updateVisible(goviewProject);
|
||||
return toAjax(i);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
|
@ -0,0 +1,163 @@
|
|||
package com.fc.v2.controller.gen;
|
||||
|
||||
import com.fc.v2.common.base.BaseController;
|
||||
import com.fc.v2.common.domain.AjaxResult;
|
||||
import com.fc.v2.common.domain.ResultTable;
|
||||
import com.fc.v2.model.custom.Tablepar;
|
||||
import com.fc.v2.model.auto.GoviewProject;
|
||||
import com.fc.v2.service.GoviewProjectService;
|
||||
import com.github.pagehelper.PageInfo;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import cn.dev33.satoken.annotation.SaCheckPermission;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.ui.ModelMap;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import com.fc.v2.common.conf.oss.OssConfig;
|
||||
|
||||
/**
|
||||
* 项目表Controller
|
||||
* @ClassName: GoviewProjectController
|
||||
* @author fuce
|
||||
* @date 2022-05-18 21:43:25
|
||||
*/
|
||||
@Api(value = "项目表")
|
||||
@Controller
|
||||
@RequestMapping("/GoviewProjectController")
|
||||
public class GoviewProjectController extends BaseController{
|
||||
|
||||
private String prefix = "gen/goviewProject";
|
||||
|
||||
@Autowired
|
||||
private GoviewProjectService goviewProjectService;
|
||||
|
||||
|
||||
/**
|
||||
* 项目表页面展示
|
||||
* @param model
|
||||
* @return String
|
||||
* @author fuce
|
||||
*/
|
||||
@ApiOperation(value = "分页跳转", notes = "分页跳转")
|
||||
@GetMapping("/view")
|
||||
@SaCheckPermission("gen:goviewProject:view")
|
||||
@OssConfig
|
||||
public String view(ModelMap model)
|
||||
{
|
||||
return prefix + "/list";
|
||||
}
|
||||
|
||||
/**
|
||||
* list集合
|
||||
* @param tablepar
|
||||
* @param searchText
|
||||
* @return
|
||||
*/
|
||||
//@Log(title = "项目表", action = "111")
|
||||
@ApiOperation(value = "分页跳转", notes = "分页跳转")
|
||||
@GetMapping("/list")
|
||||
@SaCheckPermission("gen:goviewProject:list")
|
||||
@ResponseBody
|
||||
public ResultTable list(Tablepar tablepar,GoviewProject goviewProject){
|
||||
PageInfo<GoviewProject> page=goviewProjectService.list(tablepar,goviewProject) ;
|
||||
return pageTable(page.getList(),page.getTotal());
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增跳转
|
||||
*/
|
||||
@ApiOperation(value = "新增跳转", notes = "新增跳转")
|
||||
@GetMapping("/add")
|
||||
@OssConfig
|
||||
public String add(ModelMap modelMap)
|
||||
{
|
||||
return prefix + "/add";
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增保存
|
||||
* @param
|
||||
* @return
|
||||
*/
|
||||
//@Log(title = "项目表新增", action = "111")
|
||||
@ApiOperation(value = "新增", notes = "新增")
|
||||
@PostMapping("/add")
|
||||
@SaCheckPermission("gen:goviewProject:add")
|
||||
@ResponseBody
|
||||
public AjaxResult add(GoviewProject goviewProject){
|
||||
int b=goviewProjectService.insertSelective(goviewProject);
|
||||
if(b>0){
|
||||
return success();
|
||||
}else{
|
||||
return error();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 项目表删除
|
||||
* @param ids
|
||||
* @return
|
||||
*/
|
||||
//@Log(title = "项目表删除", action = "111")
|
||||
@ApiOperation(value = "删除", notes = "删除")
|
||||
@DeleteMapping("/remove")
|
||||
@SaCheckPermission("gen:goviewProject:remove")
|
||||
@ResponseBody
|
||||
public AjaxResult remove(String ids){
|
||||
int b=goviewProjectService.deleteByPrimaryKey(ids);
|
||||
if(b>0){
|
||||
return success();
|
||||
}else{
|
||||
return error();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 修改跳转
|
||||
* @param id
|
||||
* @param mmap
|
||||
* @return
|
||||
*/
|
||||
@ApiOperation(value = "修改跳转", notes = "修改跳转")
|
||||
@GetMapping("/edit/{id}")
|
||||
@OssConfig
|
||||
public String edit(@PathVariable("id") String id, ModelMap map)
|
||||
{
|
||||
map.put("GoviewProject", goviewProjectService.selectByPrimaryKey(id));
|
||||
|
||||
return prefix + "/edit";
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改保存
|
||||
*/
|
||||
//@Log(title = "项目表修改", action = "111")
|
||||
@ApiOperation(value = "修改保存", notes = "修改保存")
|
||||
@SaCheckPermission("gen:goviewProject:edit")
|
||||
@PostMapping("/edit")
|
||||
@ResponseBody
|
||||
public AjaxResult editSave(GoviewProject goviewProject)
|
||||
{
|
||||
return toAjax(goviewProjectService.updateByPrimaryKeySelective(goviewProject));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 修改状态
|
||||
* @param record
|
||||
* @return
|
||||
*/
|
||||
@PutMapping("/updateVisible")
|
||||
@ResponseBody
|
||||
public AjaxResult updateVisible(@RequestBody GoviewProject goviewProject){
|
||||
int i=goviewProjectService.updateVisible(goviewProject);
|
||||
return toAjax(i);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
|
@ -0,0 +1,38 @@
|
|||
package com.fc.v2.mapper.auto;
|
||||
|
||||
import com.fc.v2.model.auto.GoviewProject;
|
||||
import com.fc.v2.model.auto.GoviewProjectExample;
|
||||
import java.util.List;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
/**
|
||||
* 项目表 GoviewProjectMapper
|
||||
* @author fuce_自动生成
|
||||
* @email ${email}
|
||||
* @date 2022-05-18 21:43:25
|
||||
*/
|
||||
public interface GoviewProjectMapper {
|
||||
|
||||
long countByExample(GoviewProjectExample example);
|
||||
|
||||
int deleteByExample(GoviewProjectExample example);
|
||||
|
||||
int deleteByPrimaryKey(String id);
|
||||
|
||||
int insert(GoviewProject record);
|
||||
|
||||
int insertSelective(GoviewProject record);
|
||||
|
||||
List<GoviewProject> selectByExample(GoviewProjectExample example);
|
||||
|
||||
GoviewProject selectByPrimaryKey(String id);
|
||||
|
||||
int updateByExampleSelective(@Param("record") GoviewProject record, @Param("example") GoviewProjectExample example);
|
||||
|
||||
int updateByExample(@Param("record") GoviewProject record, @Param("example") GoviewProjectExample example);
|
||||
|
||||
int updateByPrimaryKeySelective(GoviewProject record);
|
||||
|
||||
int updateByPrimaryKey(GoviewProject record);
|
||||
|
||||
}
|
|
@ -0,0 +1,136 @@
|
|||
package com.fc.v2.model.auto;
|
||||
|
||||
import java.io.Serializable;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import cn.hutool.core.date.DateUtil;
|
||||
import java.util.Date;
|
||||
|
||||
public class GoviewProject implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
|
||||
@ApiModelProperty(value = "主键")
|
||||
private String id;
|
||||
|
||||
@ApiModelProperty(value = "项目名称")
|
||||
private String projectName;
|
||||
|
||||
@ApiModelProperty(value = "项目状态[-1未发布,1发布]")
|
||||
private Integer state;
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
|
||||
@ApiModelProperty(value = "创建时间")
|
||||
private Date createTime;
|
||||
|
||||
@ApiModelProperty(value = "创建人id")
|
||||
private String createUserId;
|
||||
|
||||
@ApiModelProperty(value = "删除状态[1删除,-1未删除]")
|
||||
private Integer isDelete;
|
||||
|
||||
@ApiModelProperty(value = "首页图片")
|
||||
private String indexImage;
|
||||
|
||||
@ApiModelProperty(value = "项目介绍")
|
||||
private String remarks;
|
||||
|
||||
@JsonProperty("id")
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
@JsonProperty("projectName")
|
||||
public String getProjectName() {
|
||||
return projectName;
|
||||
}
|
||||
|
||||
public void setProjectName(String projectName) {
|
||||
this.projectName = projectName;
|
||||
}
|
||||
@JsonProperty("state")
|
||||
public Integer getState() {
|
||||
return state;
|
||||
}
|
||||
|
||||
public void setState(Integer state) {
|
||||
this.state = state;
|
||||
}
|
||||
@JsonProperty("createTime")
|
||||
public Date getCreateTime() {
|
||||
return createTime;
|
||||
}
|
||||
|
||||
public void setCreateTime(Date createTime) {
|
||||
this.createTime = createTime;
|
||||
}
|
||||
@JsonProperty("createUserId")
|
||||
public String getCreateUserId() {
|
||||
return createUserId;
|
||||
}
|
||||
|
||||
public void setCreateUserId(String createUserId) {
|
||||
this.createUserId = createUserId;
|
||||
}
|
||||
@JsonProperty("isDelete")
|
||||
public Integer getIsDelete() {
|
||||
return isDelete;
|
||||
}
|
||||
|
||||
public void setIsDelete(Integer isDelete) {
|
||||
this.isDelete = isDelete;
|
||||
}
|
||||
@JsonProperty("indexImage")
|
||||
public String getIndexImage() {
|
||||
return indexImage;
|
||||
}
|
||||
|
||||
public void setIndexImage(String indexImage) {
|
||||
this.indexImage = indexImage;
|
||||
}
|
||||
@JsonProperty("remarks")
|
||||
public String getRemarks() {
|
||||
return remarks;
|
||||
}
|
||||
|
||||
public void setRemarks(String remarks) {
|
||||
this.remarks = remarks;
|
||||
}
|
||||
|
||||
|
||||
public GoviewProject(String id,String projectName,Integer state,Date createTime,String createUserId,Integer isDelete,String indexImage,String remarks) {
|
||||
|
||||
this.id = id;
|
||||
|
||||
this.projectName = projectName;
|
||||
|
||||
this.state = state;
|
||||
|
||||
this.createTime = createTime;
|
||||
|
||||
this.createUserId = createUserId;
|
||||
|
||||
this.isDelete = isDelete;
|
||||
|
||||
this.indexImage = indexImage;
|
||||
|
||||
this.remarks = remarks;
|
||||
|
||||
}
|
||||
|
||||
public GoviewProject() {
|
||||
super();
|
||||
}
|
||||
|
||||
public String dateToStringConvert(Date date) {
|
||||
if(date!=null) {
|
||||
return DateUtil.format(date, "yyyy-MM-dd HH:mm:ss");
|
||||
}
|
||||
return "";
|
||||
}
|
||||
|
||||
|
||||
}
|
|
@ -0,0 +1,862 @@
|
|||
package com.fc.v2.model.auto;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
|
||||
/**
|
||||
* 项目表 GoviewProjectExample
|
||||
* @author fuce_自动生成
|
||||
* @date 2022-05-18 21:43:25
|
||||
*/
|
||||
public class GoviewProjectExample {
|
||||
|
||||
protected String orderByClause;
|
||||
|
||||
protected boolean distinct;
|
||||
|
||||
protected List<Criteria> oredCriteria;
|
||||
|
||||
public GoviewProjectExample() {
|
||||
oredCriteria = new ArrayList<Criteria>();
|
||||
}
|
||||
|
||||
public void setOrderByClause(String orderByClause) {
|
||||
this.orderByClause = orderByClause;
|
||||
}
|
||||
|
||||
public String getOrderByClause() {
|
||||
return orderByClause;
|
||||
}
|
||||
|
||||
public void setDistinct(boolean distinct) {
|
||||
this.distinct = distinct;
|
||||
}
|
||||
|
||||
public boolean isDistinct() {
|
||||
return distinct;
|
||||
}
|
||||
|
||||
public List<Criteria> getOredCriteria() {
|
||||
return oredCriteria;
|
||||
}
|
||||
|
||||
public void or(Criteria criteria) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
|
||||
public Criteria or() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
oredCriteria.add(criteria);
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public Criteria createCriteria() {
|
||||
Criteria criteria = createCriteriaInternal();
|
||||
if (oredCriteria.size() == 0) {
|
||||
oredCriteria.add(criteria);
|
||||
}
|
||||
return criteria;
|
||||
}
|
||||
|
||||
protected Criteria createCriteriaInternal() {
|
||||
Criteria criteria = new Criteria();
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public void clear() {
|
||||
oredCriteria.clear();
|
||||
orderByClause = null;
|
||||
distinct = false;
|
||||
}
|
||||
|
||||
protected abstract static class GeneratedCriteria {
|
||||
protected List<Criterion> criteria;
|
||||
|
||||
protected GeneratedCriteria() {
|
||||
super();
|
||||
criteria = new ArrayList<Criterion>();
|
||||
}
|
||||
|
||||
public boolean isValid() {
|
||||
return criteria.size() > 0;
|
||||
}
|
||||
|
||||
public List<Criterion> getAllCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public List<Criterion> getCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition) {
|
||||
if (condition == null) {
|
||||
throw new RuntimeException("Value for condition cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value, String property) {
|
||||
if (value == null) {
|
||||
throw new RuntimeException("Value for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value1, Object value2, String property) {
|
||||
if (value1 == null || value2 == null) {
|
||||
throw new RuntimeException("Between values for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value1, value2));
|
||||
}
|
||||
|
||||
|
||||
public Criteria andIdIsNull() {
|
||||
addCriterion("id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIsNotNull() {
|
||||
addCriterion("id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdEqualTo(String value) {
|
||||
addCriterion("id =", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotEqualTo(String value) {
|
||||
addCriterion("id <>", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThan(String value) {
|
||||
addCriterion("id >", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("id >=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThan(String value) {
|
||||
addCriterion("id <", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLessThanOrEqualTo(String value) {
|
||||
addCriterion("id <=", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdLike(String value) {
|
||||
addCriterion("id like", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotLike(String value) {
|
||||
addCriterion("id not like", value, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIn(List<String> values) {
|
||||
addCriterion("id in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotIn(List<String> values) {
|
||||
addCriterion("id not in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdBetween(String value1, String value2) {
|
||||
addCriterion("id between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotBetween(String value1, String value2) {
|
||||
addCriterion("id not between", value1, value2, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
|
||||
public Criteria andProjectNameIsNull() {
|
||||
addCriterion("project_name is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andProjectNameIsNotNull() {
|
||||
addCriterion("project_name is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andProjectNameEqualTo(String value) {
|
||||
addCriterion("project_name =", value, "projectName");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andProjectNameNotEqualTo(String value) {
|
||||
addCriterion("project_name <>", value, "projectName");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andProjectNameGreaterThan(String value) {
|
||||
addCriterion("project_name >", value, "projectName");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andProjectNameGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("project_name >=", value, "projectName");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andProjectNameLessThan(String value) {
|
||||
addCriterion("project_name <", value, "projectName");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andProjectNameLessThanOrEqualTo(String value) {
|
||||
addCriterion("project_name <=", value, "projectName");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andProjectNameLike(String value) {
|
||||
addCriterion("project_name like", value, "projectName");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andProjectNameNotLike(String value) {
|
||||
addCriterion("project_name not like", value, "projectName");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andProjectNameIn(List<String> values) {
|
||||
addCriterion("project_name in", values, "projectName");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andProjectNameNotIn(List<String> values) {
|
||||
addCriterion("project_name not in", values, "projectName");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andProjectNameBetween(String value1, String value2) {
|
||||
addCriterion("project_name between", value1, value2, "projectName");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andProjectNameNotBetween(String value1, String value2) {
|
||||
addCriterion("project_name not between", value1, value2, "projectName");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
|
||||
public Criteria andStateIsNull() {
|
||||
addCriterion("state is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStateIsNotNull() {
|
||||
addCriterion("state is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStateEqualTo(Integer value) {
|
||||
addCriterion("state =", value, "state");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStateNotEqualTo(Integer value) {
|
||||
addCriterion("state <>", value, "state");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStateGreaterThan(Integer value) {
|
||||
addCriterion("state >", value, "state");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStateGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("state >=", value, "state");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStateLessThan(Integer value) {
|
||||
addCriterion("state <", value, "state");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStateLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("state <=", value, "state");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStateLike(Integer value) {
|
||||
addCriterion("state like", value, "state");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStateNotLike(Integer value) {
|
||||
addCriterion("state not like", value, "state");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStateIn(List<Integer> values) {
|
||||
addCriterion("state in", values, "state");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStateNotIn(List<Integer> values) {
|
||||
addCriterion("state not in", values, "state");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStateBetween(Integer value1, Integer value2) {
|
||||
addCriterion("state between", value1, value2, "state");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andStateNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("state not between", value1, value2, "state");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
|
||||
public Criteria andCreateTimeIsNull() {
|
||||
addCriterion("create_time is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeIsNotNull() {
|
||||
addCriterion("create_time is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeEqualTo(Date value) {
|
||||
addCriterion("create_time =", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeNotEqualTo(Date value) {
|
||||
addCriterion("create_time <>", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeGreaterThan(Date value) {
|
||||
addCriterion("create_time >", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
|
||||
addCriterion("create_time >=", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeLessThan(Date value) {
|
||||
addCriterion("create_time <", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
|
||||
addCriterion("create_time <=", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeLike(Date value) {
|
||||
addCriterion("create_time like", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeNotLike(Date value) {
|
||||
addCriterion("create_time not like", value, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeIn(List<Date> values) {
|
||||
addCriterion("create_time in", values, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeNotIn(List<Date> values) {
|
||||
addCriterion("create_time not in", values, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeBetween(Date value1, Date value2) {
|
||||
addCriterion("create_time between", value1, value2, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
|
||||
addCriterion("create_time not between", value1, value2, "createTime");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
|
||||
public Criteria andCreateUserIdIsNull() {
|
||||
addCriterion("create_user_id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateUserIdIsNotNull() {
|
||||
addCriterion("create_user_id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateUserIdEqualTo(String value) {
|
||||
addCriterion("create_user_id =", value, "createUserId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateUserIdNotEqualTo(String value) {
|
||||
addCriterion("create_user_id <>", value, "createUserId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateUserIdGreaterThan(String value) {
|
||||
addCriterion("create_user_id >", value, "createUserId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateUserIdGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("create_user_id >=", value, "createUserId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateUserIdLessThan(String value) {
|
||||
addCriterion("create_user_id <", value, "createUserId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateUserIdLessThanOrEqualTo(String value) {
|
||||
addCriterion("create_user_id <=", value, "createUserId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateUserIdLike(String value) {
|
||||
addCriterion("create_user_id like", value, "createUserId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateUserIdNotLike(String value) {
|
||||
addCriterion("create_user_id not like", value, "createUserId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateUserIdIn(List<String> values) {
|
||||
addCriterion("create_user_id in", values, "createUserId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateUserIdNotIn(List<String> values) {
|
||||
addCriterion("create_user_id not in", values, "createUserId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateUserIdBetween(String value1, String value2) {
|
||||
addCriterion("create_user_id between", value1, value2, "createUserId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andCreateUserIdNotBetween(String value1, String value2) {
|
||||
addCriterion("create_user_id not between", value1, value2, "createUserId");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
|
||||
public Criteria andIsDeleteIsNull() {
|
||||
addCriterion("is_delete is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsDeleteIsNotNull() {
|
||||
addCriterion("is_delete is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsDeleteEqualTo(Integer value) {
|
||||
addCriterion("is_delete =", value, "isDelete");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsDeleteNotEqualTo(Integer value) {
|
||||
addCriterion("is_delete <>", value, "isDelete");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsDeleteGreaterThan(Integer value) {
|
||||
addCriterion("is_delete >", value, "isDelete");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsDeleteGreaterThanOrEqualTo(Integer value) {
|
||||
addCriterion("is_delete >=", value, "isDelete");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsDeleteLessThan(Integer value) {
|
||||
addCriterion("is_delete <", value, "isDelete");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsDeleteLessThanOrEqualTo(Integer value) {
|
||||
addCriterion("is_delete <=", value, "isDelete");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsDeleteLike(Integer value) {
|
||||
addCriterion("is_delete like", value, "isDelete");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsDeleteNotLike(Integer value) {
|
||||
addCriterion("is_delete not like", value, "isDelete");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsDeleteIn(List<Integer> values) {
|
||||
addCriterion("is_delete in", values, "isDelete");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsDeleteNotIn(List<Integer> values) {
|
||||
addCriterion("is_delete not in", values, "isDelete");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsDeleteBetween(Integer value1, Integer value2) {
|
||||
addCriterion("is_delete between", value1, value2, "isDelete");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIsDeleteNotBetween(Integer value1, Integer value2) {
|
||||
addCriterion("is_delete not between", value1, value2, "isDelete");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
|
||||
public Criteria andIndexImageIsNull() {
|
||||
addCriterion("index_image is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIndexImageIsNotNull() {
|
||||
addCriterion("index_image is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIndexImageEqualTo(String value) {
|
||||
addCriterion("index_image =", value, "indexImage");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIndexImageNotEqualTo(String value) {
|
||||
addCriterion("index_image <>", value, "indexImage");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIndexImageGreaterThan(String value) {
|
||||
addCriterion("index_image >", value, "indexImage");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIndexImageGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("index_image >=", value, "indexImage");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIndexImageLessThan(String value) {
|
||||
addCriterion("index_image <", value, "indexImage");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIndexImageLessThanOrEqualTo(String value) {
|
||||
addCriterion("index_image <=", value, "indexImage");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIndexImageLike(String value) {
|
||||
addCriterion("index_image like", value, "indexImage");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIndexImageNotLike(String value) {
|
||||
addCriterion("index_image not like", value, "indexImage");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIndexImageIn(List<String> values) {
|
||||
addCriterion("index_image in", values, "indexImage");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIndexImageNotIn(List<String> values) {
|
||||
addCriterion("index_image not in", values, "indexImage");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIndexImageBetween(String value1, String value2) {
|
||||
addCriterion("index_image between", value1, value2, "indexImage");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIndexImageNotBetween(String value1, String value2) {
|
||||
addCriterion("index_image not between", value1, value2, "indexImage");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
|
||||
public Criteria andRemarksIsNull() {
|
||||
addCriterion("remarks is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRemarksIsNotNull() {
|
||||
addCriterion("remarks is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRemarksEqualTo(String value) {
|
||||
addCriterion("remarks =", value, "remarks");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRemarksNotEqualTo(String value) {
|
||||
addCriterion("remarks <>", value, "remarks");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRemarksGreaterThan(String value) {
|
||||
addCriterion("remarks >", value, "remarks");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRemarksGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("remarks >=", value, "remarks");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRemarksLessThan(String value) {
|
||||
addCriterion("remarks <", value, "remarks");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRemarksLessThanOrEqualTo(String value) {
|
||||
addCriterion("remarks <=", value, "remarks");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRemarksLike(String value) {
|
||||
addCriterion("remarks like", value, "remarks");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRemarksNotLike(String value) {
|
||||
addCriterion("remarks not like", value, "remarks");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRemarksIn(List<String> values) {
|
||||
addCriterion("remarks in", values, "remarks");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRemarksNotIn(List<String> values) {
|
||||
addCriterion("remarks not in", values, "remarks");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRemarksBetween(String value1, String value2) {
|
||||
addCriterion("remarks between", value1, value2, "remarks");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andRemarksNotBetween(String value1, String value2) {
|
||||
addCriterion("remarks not between", value1, value2, "remarks");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
|
||||
public Criteria andLikeQuery(GoviewProject record) {
|
||||
List<String> list= new ArrayList<String>();
|
||||
List<String> list2= new ArrayList<String>();
|
||||
StringBuffer buffer=new StringBuffer();
|
||||
if(record.getId()!=null&&StrUtil.isNotEmpty(record.getId().toString())) {
|
||||
list.add("ifnull(id,'')");
|
||||
}
|
||||
if(record.getProjectName()!=null&&StrUtil.isNotEmpty(record.getProjectName().toString())) {
|
||||
list.add("ifnull(project_name,'')");
|
||||
}
|
||||
if(record.getState()!=null&&StrUtil.isNotEmpty(record.getState().toString())) {
|
||||
list.add("ifnull(state,'')");
|
||||
}
|
||||
if(record.getCreateTime()!=null&&StrUtil.isNotEmpty(record.getCreateTime().toString())) {
|
||||
list.add("ifnull(create_time,'')");
|
||||
}
|
||||
if(record.getCreateUserId()!=null&&StrUtil.isNotEmpty(record.getCreateUserId().toString())) {
|
||||
list.add("ifnull(create_user_id,'')");
|
||||
}
|
||||
if(record.getIsDelete()!=null&&StrUtil.isNotEmpty(record.getIsDelete().toString())) {
|
||||
list.add("ifnull(is_delete,'')");
|
||||
}
|
||||
if(record.getIndexImage()!=null&&StrUtil.isNotEmpty(record.getIndexImage().toString())) {
|
||||
list.add("ifnull(index_image,'')");
|
||||
}
|
||||
if(record.getRemarks()!=null&&StrUtil.isNotEmpty(record.getRemarks().toString())) {
|
||||
list.add("ifnull(remarks,'')");
|
||||
}
|
||||
if(record.getId()!=null&&StrUtil.isNotEmpty(record.getId().toString())) {
|
||||
list2.add("'%"+record.getId()+"%'");
|
||||
}
|
||||
if(record.getProjectName()!=null&&StrUtil.isNotEmpty(record.getProjectName().toString())) {
|
||||
list2.add("'%"+record.getProjectName()+"%'");
|
||||
}
|
||||
if(record.getState()!=null&&StrUtil.isNotEmpty(record.getState().toString())) {
|
||||
list2.add("'%"+record.getState()+"%'");
|
||||
}
|
||||
if(record.getCreateTime()!=null&&StrUtil.isNotEmpty(record.getCreateTime().toString())) {
|
||||
list2.add("'%"+record.getCreateTime()+"%'");
|
||||
}
|
||||
if(record.getCreateUserId()!=null&&StrUtil.isNotEmpty(record.getCreateUserId().toString())) {
|
||||
list2.add("'%"+record.getCreateUserId()+"%'");
|
||||
}
|
||||
if(record.getIsDelete()!=null&&StrUtil.isNotEmpty(record.getIsDelete().toString())) {
|
||||
list2.add("'%"+record.getIsDelete()+"%'");
|
||||
}
|
||||
if(record.getIndexImage()!=null&&StrUtil.isNotEmpty(record.getIndexImage().toString())) {
|
||||
list2.add("'%"+record.getIndexImage()+"%'");
|
||||
}
|
||||
if(record.getRemarks()!=null&&StrUtil.isNotEmpty(record.getRemarks().toString())) {
|
||||
list2.add("'%"+record.getRemarks()+"%'");
|
||||
}
|
||||
buffer.append(" CONCAT(");
|
||||
buffer.append(StrUtil.join(",",list));
|
||||
buffer.append(")");
|
||||
buffer.append(" like CONCAT(");
|
||||
buffer.append(StrUtil.join(",",list2));
|
||||
buffer.append(")");
|
||||
if(!" CONCAT() like CONCAT()".equals(buffer.toString())) {
|
||||
addCriterion(buffer.toString());
|
||||
}
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andLikeQuery2(String searchText) {
|
||||
List<String> list= new ArrayList<String>();
|
||||
StringBuffer buffer=new StringBuffer();
|
||||
list.add("ifnull(id,'')");
|
||||
list.add("ifnull(project_name,'')");
|
||||
list.add("ifnull(state,'')");
|
||||
list.add("ifnull(create_time,'')");
|
||||
list.add("ifnull(create_user_id,'')");
|
||||
list.add("ifnull(is_delete,'')");
|
||||
list.add("ifnull(index_image,'')");
|
||||
list.add("ifnull(remarks,'')");
|
||||
buffer.append(" CONCAT(");
|
||||
buffer.append(StrUtil.join(",",list));
|
||||
buffer.append(")");
|
||||
buffer.append("like '%");
|
||||
buffer.append(searchText);
|
||||
buffer.append("%'");
|
||||
addCriterion(buffer.toString());
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public static class Criteria extends GeneratedCriteria {
|
||||
protected Criteria() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
|
||||
public static class Criterion {
|
||||
private String condition;
|
||||
|
||||
private Object value;
|
||||
|
||||
private Object secondValue;
|
||||
|
||||
private boolean noValue;
|
||||
|
||||
private boolean singleValue;
|
||||
|
||||
private boolean betweenValue;
|
||||
|
||||
private boolean listValue;
|
||||
|
||||
private String typeHandler;
|
||||
|
||||
public String getCondition() {
|
||||
return condition;
|
||||
}
|
||||
|
||||
public Object getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public Object getSecondValue() {
|
||||
return secondValue;
|
||||
}
|
||||
|
||||
public boolean isNoValue() {
|
||||
return noValue;
|
||||
}
|
||||
|
||||
public boolean isSingleValue() {
|
||||
return singleValue;
|
||||
}
|
||||
|
||||
public boolean isBetweenValue() {
|
||||
return betweenValue;
|
||||
}
|
||||
|
||||
public boolean isListValue() {
|
||||
return listValue;
|
||||
}
|
||||
|
||||
public String getTypeHandler() {
|
||||
return typeHandler;
|
||||
}
|
||||
|
||||
protected Criterion(String condition) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.typeHandler = null;
|
||||
this.noValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.typeHandler = typeHandler;
|
||||
if (value instanceof List<?>) {
|
||||
this.listValue = true;
|
||||
} else {
|
||||
this.singleValue = true;
|
||||
}
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value) {
|
||||
this(condition, value, null);
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
|
||||
super();
|
||||
this.condition = condition;
|
||||
this.value = value;
|
||||
this.secondValue = secondValue;
|
||||
this.typeHandler = typeHandler;
|
||||
this.betweenValue = true;
|
||||
}
|
||||
|
||||
protected Criterion(String condition, Object value, Object secondValue) {
|
||||
this(condition, value, secondValue, null);
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,144 @@
|
|||
package com.fc.v2.service;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Date;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import com.github.pagehelper.PageHelper;
|
||||
import com.github.pagehelper.PageInfo;
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import com.fc.v2.common.base.BaseService;
|
||||
import com.fc.v2.common.support.ConvertUtil;
|
||||
import com.fc.v2.mapper.auto.GoviewProjectMapper;
|
||||
import com.fc.v2.model.auto.GoviewProject;
|
||||
import com.fc.v2.model.auto.GoviewProjectExample;
|
||||
import com.fc.v2.model.custom.Tablepar;
|
||||
import com.fc.v2.satoken.SaTokenUtil;
|
||||
import com.fc.v2.util.SnowflakeIdWorker;
|
||||
|
||||
/**
|
||||
* 项目表 GoviewProjectService
|
||||
* @Title: GoviewProjectService.java
|
||||
* @Package com.fc.v2.service
|
||||
* @author fuce_自动生成
|
||||
* @email ${email}
|
||||
* @date 2022-05-18 21:43:25
|
||||
**/
|
||||
@Service
|
||||
public class GoviewProjectService implements BaseService<GoviewProject, GoviewProjectExample>{
|
||||
@Autowired
|
||||
private GoviewProjectMapper goviewProjectMapper;
|
||||
|
||||
|
||||
/**
|
||||
* 分页查询
|
||||
* @param pageNum
|
||||
* @param pageSize
|
||||
* @return
|
||||
*/
|
||||
public PageInfo<GoviewProject> list(Tablepar tablepar,GoviewProject goviewProject){
|
||||
GoviewProjectExample testExample=new GoviewProjectExample();
|
||||
//搜索
|
||||
if(StrUtil.isNotEmpty(tablepar.getSearchText())) {//小窗体
|
||||
testExample.createCriteria().andLikeQuery2(tablepar.getSearchText());
|
||||
}else {//大搜索
|
||||
testExample.createCriteria().andLikeQuery(goviewProject);
|
||||
}
|
||||
//表格排序
|
||||
//if(StrUtil.isNotEmpty(tablepar.getOrderByColumn())) {
|
||||
// testExample.setOrderByClause(StringUtils.toUnderScoreCase(tablepar.getOrderByColumn()) +" "+tablepar.getIsAsc());
|
||||
//}else{
|
||||
// testExample.setOrderByClause("id ASC");
|
||||
//}
|
||||
PageHelper.startPage(tablepar.getPage(), tablepar.getLimit());
|
||||
List<GoviewProject> list= goviewProjectMapper.selectByExample(testExample);
|
||||
PageInfo<GoviewProject> pageInfo = new PageInfo<GoviewProject>(list);
|
||||
return pageInfo;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int deleteByPrimaryKey(String ids) {
|
||||
|
||||
List<String> lista=ConvertUtil.toListStrArray(ids);
|
||||
GoviewProjectExample example=new GoviewProjectExample();
|
||||
example.createCriteria().andIdIn(lista);
|
||||
GoviewProject goviewProject=new GoviewProject();
|
||||
goviewProject.setIsDelete(1);
|
||||
return goviewProjectMapper.updateByExampleSelective(goviewProject, example);
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public GoviewProject selectByPrimaryKey(String id) {
|
||||
|
||||
return goviewProjectMapper.selectByPrimaryKey(id);
|
||||
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public int updateByPrimaryKeySelective(GoviewProject record) {
|
||||
return goviewProjectMapper.updateByPrimaryKeySelective(record);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 添加
|
||||
*/
|
||||
@Override
|
||||
public int insertSelective(GoviewProject record) {
|
||||
|
||||
//添加雪花主键id
|
||||
record.setId(SnowflakeIdWorker.getUUID());
|
||||
record.setCreateTime(new Date());
|
||||
record.setCreateUserId(SaTokenUtil.getUserId());
|
||||
return goviewProjectMapper.insertSelective(record);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public int updateByExampleSelective(GoviewProject record, GoviewProjectExample example) {
|
||||
|
||||
return goviewProjectMapper.updateByExampleSelective(record, example);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public int updateByExample(GoviewProject record, GoviewProjectExample example) {
|
||||
|
||||
return goviewProjectMapper.updateByExample(record, example);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<GoviewProject> selectByExample(GoviewProjectExample example) {
|
||||
|
||||
return goviewProjectMapper.selectByExample(example);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public long countByExample(GoviewProjectExample example) {
|
||||
|
||||
return goviewProjectMapper.countByExample(example);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public int deleteByExample(GoviewProjectExample example) {
|
||||
|
||||
return goviewProjectMapper.deleteByExample(example);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改权限状态展示或者不展示
|
||||
* @param goviewProject
|
||||
* @return
|
||||
*/
|
||||
public int updateVisible(GoviewProject goviewProject) {
|
||||
return goviewProjectMapper.updateByPrimaryKeySelective(goviewProject);
|
||||
}
|
||||
|
||||
|
||||
}
|
|
@ -22,7 +22,7 @@ fuce:
|
|||
#xss不拦截url
|
||||
xss-not-filter-url: [/api/v1/token/api_token,/api/v1/yibaotong/save]
|
||||
#satoken不拦截url
|
||||
sa-token-not-filter-url: [/goview/*]
|
||||
sa-token-not-filter-url: [/api/goview/*,/api/GoviewProject/*]
|
||||
#tomcat config
|
||||
server :
|
||||
port : 8080
|
||||
|
@ -109,6 +109,6 @@ oss:
|
|||
info: true
|
||||
path-style-access: false #使用云OSS 需要关闭
|
||||
endpoint: http://127.0.0.1:9000 #对应上图 ③ 处配置
|
||||
access-key: minioadmin # 上文创建的AK
|
||||
secret-key: minioadmin # 上文创建的SK
|
||||
access-key: minioadmin1 # 上文创建的AK
|
||||
secret-key: minioadmin1 # 上文创建的SK
|
||||
bucket-name: v2-cloud # 上文创建的桶名称
|
|
@ -0,0 +1,342 @@
|
|||
<?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.fc.v2.mapper.auto.GoviewProjectMapper">
|
||||
<resultMap id="BaseResultMap" type="com.fc.v2.model.auto.GoviewProject">
|
||||
<result column="id" jdbcType="VARCHAR" property="id" />
|
||||
<result column="project_name" jdbcType="VARCHAR" property="projectName" />
|
||||
<result column="state" jdbcType="INTEGER" property="state" />
|
||||
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
||||
<result column="create_user_id" jdbcType="VARCHAR" property="createUserId" />
|
||||
<result column="is_delete" jdbcType="INTEGER" property="isDelete" />
|
||||
<result column="index_image" jdbcType="VARCHAR" property="indexImage" />
|
||||
<result column="remarks" jdbcType="VARCHAR" property="remarks" />
|
||||
</resultMap>
|
||||
<sql id="Example_Where_Clause">
|
||||
<where>
|
||||
<foreach collection="oredCriteria" item="criteria" separator="or">
|
||||
<if test="criteria.valid">
|
||||
<trim prefix="(" prefixOverrides="and" suffix=")">
|
||||
<foreach collection="criteria.criteria" item="criterion">
|
||||
<choose>
|
||||
<when test="criterion.noValue">
|
||||
and ${criterion.condition}
|
||||
</when>
|
||||
<when test="criterion.singleValue">
|
||||
and ${criterion.condition} #{criterion.value}
|
||||
</when>
|
||||
<when test="criterion.betweenValue">
|
||||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
||||
</when>
|
||||
<when test="criterion.listValue">
|
||||
and ${criterion.condition}
|
||||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
||||
#{listItem}
|
||||
</foreach>
|
||||
</when>
|
||||
</choose>
|
||||
</foreach>
|
||||
</trim>
|
||||
</if>
|
||||
</foreach>
|
||||
</where>
|
||||
</sql>
|
||||
<sql id="Update_By_Example_Where_Clause">
|
||||
<where>
|
||||
<foreach collection="example.oredCriteria" item="criteria" separator="or">
|
||||
<if test="criteria.valid">
|
||||
<trim prefix="(" prefixOverrides="and" suffix=")">
|
||||
<foreach collection="criteria.criteria" item="criterion">
|
||||
<choose>
|
||||
<when test="criterion.noValue">
|
||||
and ${criterion.condition}
|
||||
</when>
|
||||
<when test="criterion.singleValue">
|
||||
and ${criterion.condition} #{criterion.value}
|
||||
</when>
|
||||
<when test="criterion.betweenValue">
|
||||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
||||
</when>
|
||||
<when test="criterion.listValue">
|
||||
and ${criterion.condition}
|
||||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
||||
#{listItem}
|
||||
</foreach>
|
||||
</when>
|
||||
</choose>
|
||||
</foreach>
|
||||
</trim>
|
||||
</if>
|
||||
</foreach>
|
||||
</where>
|
||||
</sql>
|
||||
<sql id="Base_Column_List">
|
||||
|
||||
id,
|
||||
project_name,
|
||||
state,
|
||||
create_time,
|
||||
create_user_id,
|
||||
is_delete,
|
||||
index_image,
|
||||
remarks
|
||||
|
||||
</sql>
|
||||
|
||||
<select id="selectByExample" parameterType="com.fc.v2.model.auto.GoviewProjectExample" resultMap="BaseResultMap">
|
||||
select
|
||||
<if test="distinct">
|
||||
distinct
|
||||
</if>
|
||||
<include refid="Base_Column_List" />
|
||||
from t_goview_project
|
||||
<if test="_parameter != null">
|
||||
<include refid="Example_Where_Clause" />
|
||||
where is_delete=-1
|
||||
</if>
|
||||
<if test="orderByClause != null">
|
||||
order by ${orderByClause}
|
||||
</if>
|
||||
|
||||
|
||||
</select>
|
||||
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from t_goview_project
|
||||
where is_delete=-1 and id = #{id,jdbcType=VARCHAR}
|
||||
</select>
|
||||
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
||||
delete from t_goview_project
|
||||
where id = #{id,jdbcType=VARCHAR}
|
||||
</delete>
|
||||
<delete id="deleteByExample" parameterType="com.fc.v2.model.auto.GoviewProjectExample">
|
||||
delete from t_goview_project
|
||||
<if test="_parameter != null">
|
||||
<include refid="Example_Where_Clause" />
|
||||
</if>
|
||||
</delete>
|
||||
|
||||
<insert id="insert" parameterType="com.fc.v2.model.auto.GoviewProject">
|
||||
insert into t_goview_project (
|
||||
id,
|
||||
project_name,
|
||||
state,
|
||||
create_time,
|
||||
create_user_id,
|
||||
is_delete,
|
||||
index_image,
|
||||
remarks
|
||||
)
|
||||
values (
|
||||
#{id,jdbcType=VARCHAR},
|
||||
#{projectName,jdbcType=VARCHAR},
|
||||
#{state,jdbcType=INTEGER},
|
||||
#{createTime,jdbcType=TIMESTAMP},
|
||||
#{createUserId,jdbcType=VARCHAR},
|
||||
#{isDelete,jdbcType=INTEGER},
|
||||
#{indexImage,jdbcType=VARCHAR},
|
||||
#{remarks,jdbcType=VARCHAR}
|
||||
)
|
||||
</insert>
|
||||
|
||||
<insert id="insertSelective" parameterType="com.fc.v2.model.auto.GoviewProject">
|
||||
insert into t_goview_project
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
|
||||
<if test="id != null">
|
||||
id,
|
||||
</if>
|
||||
|
||||
<if test="projectName != null">
|
||||
project_name,
|
||||
</if>
|
||||
|
||||
<if test="state != null">
|
||||
state,
|
||||
</if>
|
||||
|
||||
<if test="createTime != null">
|
||||
create_time,
|
||||
</if>
|
||||
|
||||
<if test="createUserId != null">
|
||||
create_user_id,
|
||||
</if>
|
||||
|
||||
<if test="isDelete != null">
|
||||
is_delete,
|
||||
</if>
|
||||
|
||||
<if test="indexImage != null">
|
||||
index_image,
|
||||
</if>
|
||||
|
||||
<if test="remarks != null">
|
||||
remarks,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
#{id,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="projectName != null">
|
||||
#{projectName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="state != null">
|
||||
#{state,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="createTime != null">
|
||||
#{createTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="createUserId != null">
|
||||
#{createUserId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="isDelete != null">
|
||||
#{isDelete,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="indexImage != null">
|
||||
#{indexImage,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="remarks != null">
|
||||
#{remarks,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<select id="countByExample" parameterType="com.fc.v2.model.auto.GoviewProjectExample" resultType="java.lang.Long">
|
||||
select count(*) from t_goview_project
|
||||
<if test="_parameter != null">
|
||||
<include refid="Example_Where_Clause" />
|
||||
</if>
|
||||
where is_delete=-1
|
||||
</select>
|
||||
|
||||
<update id="updateByExampleSelective" parameterType="map">
|
||||
update t_goview_project
|
||||
<set>
|
||||
<if test="record.id != null">
|
||||
id = #{record.id,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.projectName != null">
|
||||
project_name = #{record.projectName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.state != null">
|
||||
state = #{record.state,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="record.createTime != null">
|
||||
create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="record.createUserId != null">
|
||||
create_user_id = #{record.createUserId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.isDelete != null">
|
||||
is_delete = #{record.isDelete,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="record.indexImage != null">
|
||||
index_image = #{record.indexImage,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.remarks != null">
|
||||
remarks = #{record.remarks,jdbcType=VARCHAR},
|
||||
</if>
|
||||
|
||||
</set>
|
||||
<if test="_parameter != null">
|
||||
<include refid="Update_By_Example_Where_Clause" />
|
||||
</if>
|
||||
</update>
|
||||
|
||||
|
||||
<update id="updateByExample" parameterType="map">
|
||||
update t_goview_project
|
||||
set
|
||||
|
||||
id = #{record.id,jdbcType=VARCHAR},
|
||||
|
||||
project_name = #{record.projectName,jdbcType=VARCHAR},
|
||||
|
||||
state = #{record.state,jdbcType=INTEGER},
|
||||
|
||||
create_time = #{record.createTime,jdbcType=TIMESTAMP},
|
||||
|
||||
create_user_id = #{record.createUserId,jdbcType=VARCHAR},
|
||||
|
||||
is_delete = #{record.isDelete,jdbcType=INTEGER},
|
||||
|
||||
index_image = #{record.indexImage,jdbcType=VARCHAR},
|
||||
|
||||
remarks = #{record.remarks,jdbcType=VARCHAR}
|
||||
|
||||
<if test="_parameter != null">
|
||||
<include refid="Update_By_Example_Where_Clause" />
|
||||
</if>
|
||||
</update>
|
||||
|
||||
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.fc.v2.model.auto.GoviewProject">
|
||||
update t_goview_project
|
||||
<set>
|
||||
|
||||
<if test="projectName != null">
|
||||
project_name = #{projectName,jdbcType=VARCHAR},
|
||||
</if>
|
||||
|
||||
<if test="state != null">
|
||||
state = #{state,jdbcType=INTEGER},
|
||||
</if>
|
||||
|
||||
<if test="createTime != null">
|
||||
create_time = #{createTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
|
||||
<if test="createUserId != null">
|
||||
create_user_id = #{createUserId,jdbcType=VARCHAR},
|
||||
</if>
|
||||
|
||||
<if test="isDelete != null">
|
||||
is_delete = #{isDelete,jdbcType=INTEGER},
|
||||
</if>
|
||||
|
||||
<if test="indexImage != null">
|
||||
index_image = #{indexImage,jdbcType=VARCHAR},
|
||||
</if>
|
||||
|
||||
<if test="remarks != null">
|
||||
remarks = #{remarks,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</set>
|
||||
|
||||
where
|
||||
|
||||
id = #{id,jdbcType=VARCHAR}
|
||||
|
||||
</update>
|
||||
|
||||
|
||||
|
||||
<update id="updateByPrimaryKey" parameterType="com.fc.v2.model.auto.GoviewProject">
|
||||
update t_goview_project
|
||||
set
|
||||
|
||||
project_name = #{projectName,jdbcType=VARCHAR},
|
||||
|
||||
state = #{state,jdbcType=INTEGER},
|
||||
|
||||
create_time = #{createTime,jdbcType=TIMESTAMP},
|
||||
|
||||
create_user_id = #{createUserId,jdbcType=VARCHAR},
|
||||
|
||||
is_delete = #{isDelete,jdbcType=INTEGER},
|
||||
|
||||
index_image = #{indexImage,jdbcType=VARCHAR},
|
||||
|
||||
remarks = #{remarks,jdbcType=VARCHAR}
|
||||
|
||||
where
|
||||
|
||||
id = #{id,jdbcType=VARCHAR}
|
||||
|
||||
</update>
|
||||
|
||||
|
||||
</mapper>
|
|
@ -0,0 +1,6 @@
|
|||
INSERT INTO `t_sys_permission` VALUES ('686900309066387456', '项目表管理', '项目表展示', '/GoviewProjectController/view','0', '0', 'gen:goviewProject:view', 1, 'layui-icon layui-icon-face-smile', NULL,0)
|
||||
,('686900309066387457', '项目表集合', '项目表集合', '/GoviewProjectController/list','0', '686900309066387456', 'gen:goviewProject:list', 2, '', NULL,0)
|
||||
,('686900309066387458', '项目表添加', '项目表添加', '/GoviewProjectController/add','0', '686900309066387456', 'gen:goviewProject:add', 2, 'layui-icon layui-icon-add-1', NULL,0)
|
||||
,('686900309066387459', '项目表删除', '项目表删除', '/GoviewProjectController/remove','0', '686900309066387456', 'gen:goviewProject:remove', 2, 'layui-icon layui-icon-delete', NULL,0)
|
||||
,('686900309070581760', '项目表修改', '项目表修改', '/GoviewProjectController/edit','0', '686900309066387456', 'gen:goviewProject:edit', 2, 'layui-icon layui-icon-edit', NULL,0);
|
||||
|
|
@ -0,0 +1,134 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en" xmlns:th="http://www.thymeleaf.org">
|
||||
<head>
|
||||
<th:block th:include="include :: header('项目表新增')"/>
|
||||
</head>
|
||||
<body>
|
||||
<form class="layui-form">
|
||||
<div class="mainBox">
|
||||
<div class="main-container">
|
||||
<div class="main-container">
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">项目名称</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="text" name="projectName" autocomplete="off" placeholder="项目名称" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item layui-hide">
|
||||
<label class="layui-form-label">首页图片</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="text" name="indexImage" id="indexImage" autocomplete="off" placeholder="首页图片" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">首页图片</label>
|
||||
<div class="layui-input-block">
|
||||
<div class="layui-upload-drag" id="indexImage_ImgUpload">
|
||||
<i class="layui-icon"></i>
|
||||
<p>点击上传,或将文件拖拽到此处</p>
|
||||
<div class="layui-hide" id="indexImage_ImgUpload_View">
|
||||
<hr>
|
||||
<img src="" alt="上传成功后渲染" style="max-width: 196px">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">项目介绍</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="text" name="remarks" autocomplete="off" placeholder="项目介绍" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="bottom">
|
||||
<div class="button-container">
|
||||
<button type="submit" class="layui-btn layui-btn-normal layui-btn-sm" lay-submit="" lay-filter="goviewProject-save">
|
||||
<i class="layui-icon layui-icon-ok"></i>
|
||||
提交
|
||||
</button>
|
||||
<button type="reset" class="layui-btn layui-btn-primary layui-btn-sm">
|
||||
<i class="layui-icon layui-icon-refresh"></i>
|
||||
重置
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<th:block th:include="include :: footer"/>
|
||||
<script>
|
||||
layui.use(['form','laydate','upload','jquery'], function () {
|
||||
let form = layui.form;
|
||||
let $ = layui.jquery;
|
||||
let MODULE_PATH = rootPath+"/GoviewProjectController";
|
||||
|
||||
let FILE_PATH = rootPath+"/oss";
|
||||
let upload = layui.upload;
|
||||
let BucketName='[[${BucketName}]]';
|
||||
var laydate = layui.laydate;
|
||||
//同时绑定多个
|
||||
lay('.datetime-input').each(function(){
|
||||
laydate.render({
|
||||
elem: this
|
||||
,trigger: 'click'
|
||||
,type: 'datetime'
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
//拖拽上传 文档:https://www.layui.com/doc/modules/upload.html
|
||||
upload.render({
|
||||
elem: '#indexImage_ImgUpload'
|
||||
,url: FILE_PATH+"/object/"+BucketName //改成您自己的上传接口
|
||||
,field: 'object' //设定文件域的字段名
|
||||
,done: function(result){
|
||||
console.log(result);
|
||||
if (result.code==200) {
|
||||
layer.msg('上传成功');
|
||||
layui.$('#indexImage_ImgUpload_View').removeClass('layui-hide').find('img').attr('src', result.data.objectContent.httpRequest.uri);
|
||||
if(result.data.key!=null){
|
||||
$("#indexImage").val(result.data.key);
|
||||
}
|
||||
} else {
|
||||
layer.msg(result.msg, {icon: 2, time: 1000});
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
|
||||
//保存
|
||||
form.on('submit(goviewProject-save)', function (data) {
|
||||
let loader = layer.load();
|
||||
$.ajax({
|
||||
url: MODULE_PATH+'/add',
|
||||
data: data.field,
|
||||
dataType: 'json',
|
||||
contentType: 'application/x-www-form-urlencoded',
|
||||
type: 'post',
|
||||
success: function (result) {
|
||||
if (result.code==200) {
|
||||
layer.msg(result.msg, {icon: 1, time: 1000}, function () {
|
||||
parent.layer.close(parent.layer.getFrameIndex(window.name));//关闭当前页
|
||||
parent.layui.table.reload("goviewProject-table");
|
||||
layer.close(loader);
|
||||
});
|
||||
} else {
|
||||
layer.msg(result.msg, {icon: 2, time: 1000});
|
||||
layer.close(loader);
|
||||
}
|
||||
}
|
||||
})
|
||||
return false;
|
||||
});
|
||||
})
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,183 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en" xmlns:th="http://www.thymeleaf.org">
|
||||
<head>
|
||||
<th:block th:include="include :: header('项目表修改')"/>
|
||||
</head>
|
||||
<body>
|
||||
<form class="layui-form" action="" th:object="${GoviewProject}">
|
||||
<div class="mainBox">
|
||||
<div class="main-container">
|
||||
<div class="main-container">
|
||||
|
||||
<div class="layui-form-item layui-hide">
|
||||
<label class="layui-form-label">主键</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="text" th:value="*{id}" name="id" lay-verify="title"
|
||||
autocomplete="off" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">项目名称</label>
|
||||
<div class="layui-input-block">
|
||||
<input th:value="*{projectName}" type="text" name="projectName" autocomplete="off" placeholder="项目名称" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">项目状态[-1未发布,1发布]</label>
|
||||
<div class="layui-input-block">
|
||||
<select name="state" th:field="*{state}">
|
||||
<option value="-1">否</option>
|
||||
<option value="1">是</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">创建时间</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="text" th:value="${GoviewProject.dateToStringConvert(GoviewProject.createTime)}" name="createTime" autocomplete="off" placeholder="创建时间" class="layui-input datetime-input">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">创建人id</label>
|
||||
<div class="layui-input-block">
|
||||
<input th:value="*{createUserId}" type="text" name="createUserId" autocomplete="off" placeholder="创建人id" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">删除状态[1删除,-1未删除]</label>
|
||||
<div class="layui-input-block">
|
||||
<select name="isDelete" th:field="*{isDelete}">
|
||||
<option value="-1">否</option>
|
||||
<option value="1">是</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="layui-form-item layui-hide">
|
||||
<label class="layui-form-label">首页图片</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="text" name="indexImage" id="indexImage" autocomplete="off" placeholder="首页图片" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">首页图片</label>
|
||||
<div class="layui-input-block">
|
||||
<div class="layui-upload-drag" id="indexImage_ImgUpload">
|
||||
<i class="layui-icon"></i>
|
||||
<p>点击上传,或将文件拖拽到此处</p>
|
||||
<div class="layui-hide" id="indexImage_ImgUpload_View">
|
||||
<hr>
|
||||
<img src="" alt="上传成功后渲染" style="max-width: 196px">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">项目介绍</label>
|
||||
<div class="layui-input-block">
|
||||
<input th:value="*{remarks}" type="text" name="remarks" autocomplete="off" placeholder="项目介绍" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="bottom">
|
||||
<div class="button-container">
|
||||
<button type="submit" class="layui-btn layui-btn-normal layui-btn-sm" lay-submit=""
|
||||
lay-filter="goviewProject-update">
|
||||
<i class="layui-icon layui-icon-ok"></i>
|
||||
提交
|
||||
</button>
|
||||
<button type="reset" class="layui-btn layui-btn-primary layui-btn-sm">
|
||||
<i class="layui-icon layui-icon-refresh"></i>
|
||||
重置
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<th:block th:include="include :: footer"/>
|
||||
<script>
|
||||
layui.use(['form','laydate','upload','jquery'], function () {
|
||||
let form = layui.form;
|
||||
let $ = layui.jquery;
|
||||
let MODULE_PATH = rootPath+"/GoviewProjectController";
|
||||
let FILE_PATH = rootPath+"/oss";
|
||||
let upload = layui.upload;
|
||||
let BucketName='[[${BucketName}]]';
|
||||
var laydate = layui.laydate;
|
||||
//同时绑定多个
|
||||
lay('.datetime-input').each(function(){
|
||||
laydate.render({
|
||||
elem: this
|
||||
,trigger: 'click'
|
||||
,type: 'datetime'
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
//拖拽上传 文档:https://www.layui.com/doc/modules/upload.html
|
||||
upload.render({
|
||||
elem: '#indexImage_ImgUpload'
|
||||
,url: FILE_PATH+"/object/"+BucketName //改成您自己的上传接口
|
||||
,field: 'object' //设定文件域的字段名
|
||||
,done: function(result){
|
||||
console.log(result);
|
||||
if (result.code==200) {
|
||||
layer.msg('上传成功');
|
||||
layui.$('#indexImage_ImgUpload_View').removeClass('layui-hide').find('img').attr('src', result.data.objectContent.httpRequest.uri);
|
||||
if(result.data.key!=null){
|
||||
$("#indexImage").val(result.data.key);
|
||||
}
|
||||
} else {
|
||||
layer.msg(result.msg, {icon: 2, time: 1000});
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
form.on('submit(goviewProject-update)', function (data) {
|
||||
let loader = layer.load();
|
||||
$.ajax({
|
||||
url: MODULE_PATH+'/edit',
|
||||
data: data.field,
|
||||
dataType: 'json',
|
||||
contentType: 'application/x-www-form-urlencoded',
|
||||
type: 'post',
|
||||
success: function (result) {
|
||||
if (result.code==200) {
|
||||
layer.msg(result.msg, {icon: 1, time: 1000}, function () {
|
||||
parent.layer.close(parent.layer.getFrameIndex(window.name));//关闭当前页
|
||||
parent.layui.table.reload("goviewProject-table");
|
||||
layer.close(loader);
|
||||
});
|
||||
} else {
|
||||
layer.msg(result.msg, {icon: 2, time: 1000});
|
||||
layer.close(loader);
|
||||
}
|
||||
}
|
||||
})
|
||||
return false;
|
||||
});
|
||||
})
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,290 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en" xmlns:th="http://www.thymeleaf.org">
|
||||
<head>
|
||||
<th:block th:include="include :: header('项目表列表')"/>
|
||||
</head>
|
||||
<body class="pear-container">
|
||||
<div class="layui-card">
|
||||
<div class="layui-card-body">
|
||||
<form class="layui-form" action="">
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">名称</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" name="searchText" placeholder="" class="layui-input">
|
||||
</div>
|
||||
<button class="pear-btn pear-btn-md pear-btn-primary" lay-submit lay-filter="goviewProject-query">
|
||||
<i class="layui-icon layui-icon-search"></i>
|
||||
查询
|
||||
</button>
|
||||
<button type="reset" class="pear-btn pear-btn-md">
|
||||
<i class="layui-icon layui-icon-refresh"></i>
|
||||
重置
|
||||
</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-card">
|
||||
<div class="layui-card-body">
|
||||
<table id="goviewProject-table" lay-filter="goviewProject-table"></table>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
<script type="text/html" id="goviewProject-toolbar">
|
||||
<button sa:hasPermission="gen:goviewProject:add" class="pear-btn pear-btn-primary pear-btn-md" lay-event="add">
|
||||
<i class="layui-icon layui-icon-add-1"></i>
|
||||
新增
|
||||
</button>
|
||||
<button sa:hasPermission="gen:goviewProject:remove" class="pear-btn pear-btn-danger pear-btn-md" lay-event="batchRemove">
|
||||
<i class="layui-icon layui-icon-delete"></i>
|
||||
删除
|
||||
</button>
|
||||
</script>
|
||||
|
||||
<script type="text/html" id="goviewProject-bar">
|
||||
<button sa:hasPermission="gen:goviewProject:edit" class="pear-btn pear-btn-primary pear-btn-sm" lay-event="edit" title="修改"><i class="layui-icon layui-icon-edit"></i>
|
||||
</button>
|
||||
|
||||
<button sa:hasPermission="gen:goviewProject:remove" class="pear-btn pear-btn-danger pear-btn-sm" lay-event="remove" title="删除"><i class="layui-icon layui-icon-delete"></i>
|
||||
</button>
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
<script type="text/html" id="state-type">
|
||||
|
||||
|
||||
{{#if (d.state == -1) { }}
|
||||
<span class="layui-badge layui-bg-default-blue">未发布</span>
|
||||
|
||||
{{#if (d.state == 1) { }}
|
||||
<span class="layui-badge layui-bg-default-blue">已发布</span>
|
||||
{{# } }}
|
||||
</script>
|
||||
|
||||
<script type="text/html" id="isDelete-type">
|
||||
|
||||
|
||||
{{#if (d.isDelete == 1) { }}
|
||||
<span class="layui-badge layui-bg-default-blue">已删除</span>
|
||||
|
||||
{{#if (d.isDelete == -1) { }}
|
||||
<span class="layui-badge layui-bg-default-blue">未删除</span>
|
||||
{{# } }}
|
||||
</script>
|
||||
|
||||
<script type="text/html" id="indexImage-img">
|
||||
{{#if (d.indexImage != null && d.indexImage != '') { }}
|
||||
<a onclick='view("{{d.indexImage}}")'>
|
||||
{{d.indexImage}}
|
||||
<i class="layui-icon layui-icon-template" lay-filter="indexImage-view"></i>
|
||||
</a>
|
||||
{{# } else { }}
|
||||
-
|
||||
{{# } }}
|
||||
</script>
|
||||
|
||||
|
||||
<script type="text/javascript" th:inline="javascript">
|
||||
var state_list = [[${@dict.getType('is_publish')}]];
|
||||
|
||||
var isDelete_list = [[${@dict.getType('is_delete')}]];
|
||||
|
||||
|
||||
window.selectDictLabel=function(datas, value) {
|
||||
var actions = [];
|
||||
$.each(datas, function(index, dict) {
|
||||
if (dict.dictValue == ('' + value)) {
|
||||
var listClass = ("default"== dict.listClass) ? "" : "badge badge-" + dict.listClass;
|
||||
actions.push(sprintf("<span class='%s'>%s</span>", listClass, dict.dictLabel));
|
||||
return false;
|
||||
}
|
||||
});
|
||||
return actions.join('');
|
||||
}
|
||||
window.sprintf=function (str) {
|
||||
var args = arguments, flag = true, i = 1;
|
||||
str = str.replace(/%s/g, function () {
|
||||
var arg = args[i++];
|
||||
if (typeof arg === 'undefined') {
|
||||
flag = false;
|
||||
return '';
|
||||
}
|
||||
return arg;
|
||||
});
|
||||
return flag ? str : '';
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
<th:block th:include="include :: footer"/>
|
||||
<script>
|
||||
layui.use(['table', 'form', 'jquery'], function () {
|
||||
let table = layui.table;
|
||||
let form = layui.form;
|
||||
let $ = layui.jquery;
|
||||
let BUCKETURL_PATH='[[${bucketURL}]]';
|
||||
|
||||
let MODULE_PATH = rootPath+"/GoviewProjectController/";
|
||||
let cols = [
|
||||
[
|
||||
{type: 'checkbox'},
|
||||
|
||||
{title: '主键', field: 'id', align: 'center'},
|
||||
|
||||
{title: '项目名称', field: 'projectName', align: 'center'},
|
||||
|
||||
{title: '项目状态', field: 'state', align: 'center',templet:function(d){
|
||||
return selectDictLabel(state_list, d.state);
|
||||
}},
|
||||
|
||||
{title: '创建时间', field: 'createTime', align: 'center'},
|
||||
|
||||
{title: '创建人id', field: 'createUserId', align: 'center'},
|
||||
|
||||
{title: '首页图片', field: 'indexImage', align: 'center',templet: '#indexImage-img'},
|
||||
|
||||
{title: '项目介绍', field: 'remarks', align: 'center'},
|
||||
|
||||
{title: '操作', toolbar: '#goviewProject-bar', align: 'center'}
|
||||
]
|
||||
]
|
||||
|
||||
//table表单列表
|
||||
table.render({
|
||||
elem: '#goviewProject-table',
|
||||
url: MODULE_PATH + 'list',
|
||||
page: true,
|
||||
method: 'get',
|
||||
cols: cols,
|
||||
skin: 'line',
|
||||
toolbar: '#goviewProject-toolbar',
|
||||
defaultToolbar: [{
|
||||
layEvent: 'refresh',
|
||||
icon: 'layui-icon-refresh',
|
||||
}, 'filter', 'print', 'exports']
|
||||
});
|
||||
|
||||
//table图标事件绑定
|
||||
table.on('tool(goviewProject-table)', function (obj) {
|
||||
if (obj.event === 'remove') {
|
||||
window.remove(obj);
|
||||
} else if (obj.event === 'edit') {
|
||||
window.edit(obj);
|
||||
}
|
||||
});
|
||||
|
||||
//table工具栏绑定
|
||||
table.on('toolbar(goviewProject-table)', function (obj) {
|
||||
if (obj.event === 'add') {
|
||||
window.add();
|
||||
} else if (obj.event === 'refresh') {
|
||||
window.refresh();
|
||||
} else if (obj.event === 'batchRemove') {
|
||||
window.batchRemove(obj);
|
||||
}
|
||||
});
|
||||
|
||||
//查询按钮绑定
|
||||
form.on('submit(goviewProject-query)', function (data) {
|
||||
table.reload('goviewProject-table', {page: {curr: 1}, where: data.field})
|
||||
return false;
|
||||
});
|
||||
|
||||
|
||||
//添加
|
||||
window.add = function () {
|
||||
layer.open({
|
||||
type: 2,
|
||||
title: '新增',
|
||||
shade: 0.1,
|
||||
area: ['500px', '500px'],
|
||||
content: MODULE_PATH + 'add'
|
||||
});
|
||||
}
|
||||
//修改
|
||||
window.edit = function (obj) {
|
||||
layer.open({
|
||||
type: 2,
|
||||
title: '修改',
|
||||
shade: 0.1,
|
||||
area: ['500px', '500px'],
|
||||
content: MODULE_PATH + 'edit/' + obj.data['id']
|
||||
});
|
||||
}
|
||||
//删除
|
||||
window.remove = function (obj) {
|
||||
layer.confirm('确定要删除该数据', {icon: 3, title: '提示'}, function (index) {
|
||||
layer.close(index);
|
||||
let loading = layer.load();
|
||||
$.ajax({
|
||||
url: MODULE_PATH + "remove?ids=" + obj.data['id'],
|
||||
dataType: 'json',
|
||||
type: 'delete',
|
||||
success: function (result) {
|
||||
layer.close(loading);
|
||||
if (result.code==200) {
|
||||
layer.msg(result.msg, {icon: 1, time: 1000}, function () {
|
||||
obj.del();
|
||||
});
|
||||
} else {
|
||||
layer.msg(result.msg, {icon: 2, time: 1000});
|
||||
}
|
||||
}
|
||||
})
|
||||
});
|
||||
}
|
||||
|
||||
//批量删除
|
||||
window.batchRemove = function (obj) {
|
||||
let data = table.checkStatus(obj.config.id).data;
|
||||
if (data.length === 0) {
|
||||
layer.msg("未选中数据", {icon: 3, time: 1000});
|
||||
return false;
|
||||
}
|
||||
let ids = "";
|
||||
for (let i = 0; i < data.length; i++) {
|
||||
ids += data[i].id + ",";
|
||||
}
|
||||
ids = ids.substr(0, ids.length - 1);
|
||||
layer.confirm('确定要删除这些数据', {icon: 3, title: '提示'}, function (index) {
|
||||
layer.close(index);
|
||||
let loading = layer.load();
|
||||
$.ajax({
|
||||
url: MODULE_PATH + "remove?ids=" + ids,
|
||||
dataType: 'json',
|
||||
type: 'delete',
|
||||
success: function (result) {
|
||||
layer.close(loading);
|
||||
if (result.code==200) {
|
||||
layer.msg(result.msg, {icon: 1, time: 1000}, function () {
|
||||
table.reload('goviewProject-table');
|
||||
});
|
||||
} else {
|
||||
layer.msg(result.msg, {icon: 2, time: 1000});
|
||||
}
|
||||
}
|
||||
})
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
//查看
|
||||
window.view = function (obj) {
|
||||
layer.open({
|
||||
type: 1,
|
||||
title: '查看',
|
||||
shade: 0.1,
|
||||
area: ['500px', '500px'],
|
||||
content: "<img style=\"width:500px\" src=\""+BUCKETURL_PATH+"/"+obj+"\">"
|
||||
});
|
||||
}
|
||||
//刷新按钮
|
||||
window.refresh = function () {
|
||||
table.reload('goviewProject-table');
|
||||
}
|
||||
})
|
||||
</script>
|
||||
</html>
|
Loading…
Reference in New Issue