提交代码

This commit is contained in:
liuwu 2023-08-24 09:43:00 +08:00
parent 1d3a182d9b
commit 2cd4748ab7
33 changed files with 3895 additions and 5 deletions

View File

@ -0,0 +1,128 @@
package com.cyx.web.base.controller;
import java.util.List;
import com.cyx.common.annotation.Log;
import com.cyx.common.core.controller.BaseController;
import com.cyx.common.core.domain.AjaxResult;
import com.cyx.common.core.page.TableDataInfo;
import com.cyx.common.enums.BusinessType;
import com.cyx.common.utils.poi.ExcelUtil;
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.cyx.web.base.domain.TAmentBranch;
import com.cyx.web.base.service.ITAmentBranchService;
/**
* 支部Controller
*
* @author ruoyi
* @date 2023-08-23
*/
@Controller
@RequestMapping("/base/branch")
public class TAmentBranchController extends BaseController
{
private String prefix = "base/branch";
@Autowired
private ITAmentBranchService tAmentBranchService;
@RequiresPermissions("base:branch:view")
@GetMapping()
public String branch()
{
return prefix + "/branch";
}
/**
* 查询支部列表
*/
@RequiresPermissions("base:branch:list")
@PostMapping("/list")
@ResponseBody
public TableDataInfo list(TAmentBranch tAmentBranch)
{
startPage();
List<TAmentBranch> list = tAmentBranchService.selectTAmentBranchList(tAmentBranch);
return getDataTable(list);
}
/**
* 导出支部列表
*/
@RequiresPermissions("base:branch:export")
@Log(title = "支部", businessType = BusinessType.EXPORT)
@PostMapping("/export")
@ResponseBody
public AjaxResult export(TAmentBranch tAmentBranch)
{
List<TAmentBranch> list = tAmentBranchService.selectTAmentBranchList(tAmentBranch);
ExcelUtil<TAmentBranch> util = new ExcelUtil<TAmentBranch>(TAmentBranch.class);
return util.exportExcel(list, "支部数据");
}
/**
* 新增支部
*/
@GetMapping("/add")
public String add()
{
return prefix + "/add";
}
/**
* 新增保存支部
*/
@RequiresPermissions("base:branch:add")
@Log(title = "支部", businessType = BusinessType.INSERT)
@PostMapping("/add")
@ResponseBody
public AjaxResult addSave(TAmentBranch tAmentBranch)
{
return toAjax(tAmentBranchService.insertTAmentBranch(tAmentBranch));
}
/**
* 修改支部
*/
@RequiresPermissions("base:branch:edit")
@GetMapping("/edit/{branchId}")
public String edit(@PathVariable("branchId") Long branchId, ModelMap mmap)
{
TAmentBranch tAmentBranch = tAmentBranchService.selectTAmentBranchByBranchId(branchId);
mmap.put("tAmentBranch", tAmentBranch);
return prefix + "/edit";
}
/**
* 修改保存支部
*/
@RequiresPermissions("base:branch:edit")
@Log(title = "支部", businessType = BusinessType.UPDATE)
@PostMapping("/edit")
@ResponseBody
public AjaxResult editSave(TAmentBranch tAmentBranch)
{
return toAjax(tAmentBranchService.updateTAmentBranch(tAmentBranch));
}
/**
* 删除支部
*/
@RequiresPermissions("base:branch:remove")
@Log(title = "支部", businessType = BusinessType.DELETE)
@PostMapping( "/remove")
@ResponseBody
public AjaxResult remove(String ids)
{
return toAjax(tAmentBranchService.deleteTAmentBranchByBranchIds(ids));
}
}

View File

@ -0,0 +1,165 @@
package com.cyx.web.base.controller;
import java.util.List;
import com.cyx.common.annotation.Log;
import com.cyx.common.core.controller.BaseController;
import com.cyx.common.core.domain.AjaxResult;
import com.cyx.common.core.page.TableDataInfo;
import com.cyx.common.enums.BusinessType;
import com.cyx.common.utils.poi.ExcelUtil;
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.cyx.web.base.domain.TAmentPartyAffairs;
import com.cyx.web.base.service.ITAmentPartyAffairsService;
/**
* 党务Controller
*
* @author ruoyi
* @date 2023-08-23
*/
@Controller
@RequestMapping("/base/affairs")
public class TAmentPartyAffairsController extends BaseController
{
private String prefix = "base/affairs";
@Autowired
private ITAmentPartyAffairsService tAmentPartyAffairsService;
/**
* 党建及意识形态
* @return
*/
@RequiresPermissions("base:affairs:view")
@GetMapping()
public String affairs()
{
return prefix + "/affairs";
}
/**
* 党风廉政建设
* @return
*/
@RequiresPermissions("base:affairs:view")
@GetMapping("partystyle")
public String partystyle()
{
return prefix + "/partystyle";
}
/**
* 日常考核指标
* @return
*/
@RequiresPermissions("base:affairs:view")
@GetMapping("day")
public String day()
{
return prefix + "/day";
}
/**
* 年度考核指标
* @return
*/
@RequiresPermissions("base:affairs:view")
@GetMapping("year")
public String year()
{
return prefix + "/year";
}
/**
* 查询党务列表
*/
@RequiresPermissions("base:affairs:list")
@PostMapping("/list")
@ResponseBody
public TableDataInfo list(TAmentPartyAffairs tAmentPartyAffairs)
{
startPage();
List<TAmentPartyAffairs> list = tAmentPartyAffairsService.selectTAmentPartyAffairsList(tAmentPartyAffairs);
return getDataTable(list);
}
/**
* 导出党务列表
*/
@RequiresPermissions("base:affairs:export")
@Log(title = "党务", businessType = BusinessType.EXPORT)
@PostMapping("/export")
@ResponseBody
public AjaxResult export(TAmentPartyAffairs tAmentPartyAffairs)
{
List<TAmentPartyAffairs> list = tAmentPartyAffairsService.selectTAmentPartyAffairsList(tAmentPartyAffairs);
ExcelUtil<TAmentPartyAffairs> util = new ExcelUtil<TAmentPartyAffairs>(TAmentPartyAffairs.class);
return util.exportExcel(list, "党务数据");
}
/**
* 新增党务
*/
@GetMapping("/add")
public String add()
{
return prefix + "/add";
}
/**
* 新增保存党务
*/
@RequiresPermissions("base:affairs:add")
@Log(title = "党务", businessType = BusinessType.INSERT)
@PostMapping("/add")
@ResponseBody
public AjaxResult addSave(TAmentPartyAffairs tAmentPartyAffairs)
{
return toAjax(tAmentPartyAffairsService.insertTAmentPartyAffairs(tAmentPartyAffairs));
}
/**
* 修改党务
*/
@RequiresPermissions("base:affairs:edit")
@GetMapping("/edit/{id}")
public String edit(@PathVariable("id") Long id, ModelMap mmap)
{
TAmentPartyAffairs tAmentPartyAffairs = tAmentPartyAffairsService.selectTAmentPartyAffairsById(id);
mmap.put("tAmentPartyAffairs", tAmentPartyAffairs);
return prefix + "/edit";
}
/**
* 修改保存党务
*/
@RequiresPermissions("base:affairs:edit")
@Log(title = "党务", businessType = BusinessType.UPDATE)
@PostMapping("/edit")
@ResponseBody
public AjaxResult editSave(TAmentPartyAffairs tAmentPartyAffairs)
{
return toAjax(tAmentPartyAffairsService.updateTAmentPartyAffairs(tAmentPartyAffairs));
}
/**
* 删除党务
*/
@RequiresPermissions("base:affairs:remove")
@Log(title = "党务", businessType = BusinessType.DELETE)
@PostMapping( "/remove")
@ResponseBody
public AjaxResult remove(String ids)
{
return toAjax(tAmentPartyAffairsService.deleteTAmentPartyAffairsByIds(ids));
}
}

View File

@ -0,0 +1,128 @@
package com.cyx.web.base.controller;
import java.util.List;
import com.cyx.common.annotation.Log;
import com.cyx.common.core.controller.BaseController;
import com.cyx.common.core.domain.AjaxResult;
import com.cyx.common.core.page.TableDataInfo;
import com.cyx.common.enums.BusinessType;
import com.cyx.common.utils.poi.ExcelUtil;
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.cyx.web.base.domain.TAmentPersonnel;
import com.cyx.web.base.service.ITAmentPersonnelService;
/**
* 人员Controller
*
* @author ruoyi
* @date 2023-08-23
*/
@Controller
@RequestMapping("/base/personnel")
public class TAmentPersonnelController extends BaseController
{
private String prefix = "base/personnel";
@Autowired
private ITAmentPersonnelService tAmentPersonnelService;
@RequiresPermissions("base:personnel:view")
@GetMapping()
public String personnel()
{
return prefix + "/personnel";
}
/**
* 查询人员列表
*/
@RequiresPermissions("base:personnel:list")
@PostMapping("/list")
@ResponseBody
public TableDataInfo list(TAmentPersonnel tAmentPersonnel)
{
startPage();
List<TAmentPersonnel> list = tAmentPersonnelService.selectTAmentPersonnelList(tAmentPersonnel);
return getDataTable(list);
}
/**
* 导出人员列表
*/
@RequiresPermissions("base:personnel:export")
@Log(title = "人员", businessType = BusinessType.EXPORT)
@PostMapping("/export")
@ResponseBody
public AjaxResult export(TAmentPersonnel tAmentPersonnel)
{
List<TAmentPersonnel> list = tAmentPersonnelService.selectTAmentPersonnelList(tAmentPersonnel);
ExcelUtil<TAmentPersonnel> util = new ExcelUtil<TAmentPersonnel>(TAmentPersonnel.class);
return util.exportExcel(list, "人员数据");
}
/**
* 新增人员
*/
@GetMapping("/add")
public String add()
{
return prefix + "/add";
}
/**
* 新增保存人员
*/
@RequiresPermissions("base:personnel:add")
@Log(title = "人员", businessType = BusinessType.INSERT)
@PostMapping("/add")
@ResponseBody
public AjaxResult addSave(TAmentPersonnel tAmentPersonnel)
{
return toAjax(tAmentPersonnelService.insertTAmentPersonnel(tAmentPersonnel));
}
/**
* 修改人员
*/
@RequiresPermissions("base:personnel:edit")
@GetMapping("/edit/{id}")
public String edit(@PathVariable("id") Long id, ModelMap mmap)
{
TAmentPersonnel tAmentPersonnel = tAmentPersonnelService.selectTAmentPersonnelById(id);
mmap.put("tAmentPersonnel", tAmentPersonnel);
return prefix + "/edit";
}
/**
* 修改保存人员
*/
@RequiresPermissions("base:personnel:edit")
@Log(title = "人员", businessType = BusinessType.UPDATE)
@PostMapping("/edit")
@ResponseBody
public AjaxResult editSave(TAmentPersonnel tAmentPersonnel)
{
return toAjax(tAmentPersonnelService.updateTAmentPersonnel(tAmentPersonnel));
}
/**
* 删除人员
*/
@RequiresPermissions("base:personnel:remove")
@Log(title = "人员", businessType = BusinessType.DELETE)
@PostMapping( "/remove")
@ResponseBody
public AjaxResult remove(String ids)
{
return toAjax(tAmentPersonnelService.deleteTAmentPersonnelByIds(ids));
}
}

View File

@ -0,0 +1,166 @@
package com.cyx.web.base.domain;
import com.cyx.common.annotation.Excel;
import com.cyx.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
/**
* 支部对象 t_ament_branch
*
* @author ruoyi
* @date 2023-08-23
*/
public class TAmentBranch extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 支部id */
private Long branchId;
/** 父支部id */
@Excel(name = "父支部id")
private Long parentId;
/** 祖级列表 */
@Excel(name = "祖级列表")
private String ancestors;
/** 支部名称 */
@Excel(name = "支部名称")
private String branchName;
/** 显示顺序 */
@Excel(name = "显示顺序")
private Long orderNum;
/** 负责人 */
@Excel(name = "负责人")
private String leader;
/** 联系电话 */
@Excel(name = "联系电话")
private String phone;
/** 邮箱 */
@Excel(name = "邮箱")
private String email;
/** 支部状态0正常 1停用 */
@Excel(name = "支部状态", readConverterExp = "0=正常,1=停用")
private String status;
/** 删除标志0代表存在 1代表删除 */
private String delFlag;
public void setBranchId(Long branchId)
{
this.branchId = branchId;
}
public Long getBranchId()
{
return branchId;
}
public void setParentId(Long parentId)
{
this.parentId = parentId;
}
public Long getParentId()
{
return parentId;
}
public void setAncestors(String ancestors)
{
this.ancestors = ancestors;
}
public String getAncestors()
{
return ancestors;
}
public void setBranchName(String branchName)
{
this.branchName = branchName;
}
public String getBranchName()
{
return branchName;
}
public void setOrderNum(Long orderNum)
{
this.orderNum = orderNum;
}
public Long getOrderNum()
{
return orderNum;
}
public void setLeader(String leader)
{
this.leader = leader;
}
public String getLeader()
{
return leader;
}
public void setPhone(String phone)
{
this.phone = phone;
}
public String getPhone()
{
return phone;
}
public void setEmail(String email)
{
this.email = email;
}
public String getEmail()
{
return email;
}
public void setStatus(String status)
{
this.status = status;
}
public String getStatus()
{
return status;
}
public void setDelFlag(String delFlag)
{
this.delFlag = delFlag;
}
public String getDelFlag()
{
return delFlag;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("branchId", getBranchId())
.append("parentId", getParentId())
.append("ancestors", getAncestors())
.append("branchName", getBranchName())
.append("orderNum", getOrderNum())
.append("leader", getLeader())
.append("phone", getPhone())
.append("email", getEmail())
.append("status", getStatus())
.append("delFlag", getDelFlag())
.append("createBy", getCreateBy())
.append("createTime", getCreateTime())
.append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime())
.toString();
}
}

View File

@ -0,0 +1,228 @@
package com.cyx.web.base.domain;
import java.util.Date;
import com.cyx.common.annotation.Excel;
import com.cyx.common.core.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
/**
* 党务对象 t_ament_party_affairs
*
* @author ruoyi
* @date 2023-08-23
*/
public class TAmentPartyAffairs extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 自增ID */
private Long id;
/** 作用于附件主键ID和type同时出现 */
@Excel(name = "作用于附件", readConverterExp = "主=键ID和type同时出现")
private String type;
/** 单位名称 */
@Excel(name = "单位名称")
private String unit;
/** 目标项及分值 */
@Excel(name = "目标项及分值")
private String target;
/** 目标要求 */
@Excel(name = "目标要求")
private String demand;
/** 评分细则 */
@Excel(name = "评分细则")
private String detailed;
/** 达标分 */
@Excel(name = "达标分")
private String score;
/** 考核方式 */
@Excel(name = "考核方式")
private String method;
/** 负责人 */
@Excel(name = "负责人")
private String head;
/** 审核人 */
@Excel(name = "审核人")
private String reviewed;
/** 完成截止时间 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "完成截止时间", width = 30, dateFormat = "yyyy-MM-dd")
private Date finishDate;
/** 操作人员ID */
@Excel(name = "操作人员ID")
private Long perId;
/** 部门ID */
@Excel(name = "部门ID")
private Long deptId;
/** 支部ID */
@Excel(name = "支部ID")
private Long branchId;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setType(String type)
{
this.type = type;
}
public String getType()
{
return type;
}
public void setUnit(String unit)
{
this.unit = unit;
}
public String getUnit()
{
return unit;
}
public void setTarget(String target)
{
this.target = target;
}
public String getTarget()
{
return target;
}
public void setDemand(String demand)
{
this.demand = demand;
}
public String getDemand()
{
return demand;
}
public void setDetailed(String detailed)
{
this.detailed = detailed;
}
public String getDetailed()
{
return detailed;
}
public void setScore(String score)
{
this.score = score;
}
public String getScore()
{
return score;
}
public void setMethod(String method)
{
this.method = method;
}
public String getMethod()
{
return method;
}
public void setHead(String head)
{
this.head = head;
}
public String getHead()
{
return head;
}
public void setReviewed(String reviewed)
{
this.reviewed = reviewed;
}
public String getReviewed()
{
return reviewed;
}
public void setFinishDate(Date finishDate)
{
this.finishDate = finishDate;
}
public Date getFinishDate()
{
return finishDate;
}
public void setPerId(Long perId)
{
this.perId = perId;
}
public Long getPerId()
{
return perId;
}
public void setDeptId(Long deptId)
{
this.deptId = deptId;
}
public Long getDeptId()
{
return deptId;
}
public void setBranchId(Long branchId)
{
this.branchId = branchId;
}
public Long getBranchId()
{
return branchId;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("type", getType())
.append("unit", getUnit())
.append("target", getTarget())
.append("demand", getDemand())
.append("detailed", getDetailed())
.append("score", getScore())
.append("method", getMethod())
.append("head", getHead())
.append("reviewed", getReviewed())
.append("finishDate", getFinishDate())
.append("perId", getPerId())
.append("deptId", getDeptId())
.append("branchId", getBranchId())
.append("createBy", getCreateBy())
.append("createTime", getCreateTime())
.append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime())
.append("remark", getRemark())
.toString();
}
}

View File

@ -0,0 +1,270 @@
package com.cyx.web.base.domain;
import java.util.Date;
import com.cyx.common.annotation.Excel;
import com.cyx.common.core.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
/**
* 人员对象 t_ament_personnel
*
* @author ruoyi
* @date 2023-08-23
*/
public class TAmentPersonnel extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** */
private Long id;
/** 单位名称 */
@Excel(name = "单位名称")
private String unit;
/** 人员姓名 */
@Excel(name = "人员姓名")
private String name;
/** 人员性别 */
@Excel(name = "人员性别")
private String sex;
/** 民族 */
@Excel(name = "民族")
private String nation;
/** 部门ID */
@Excel(name = "部门ID")
private Long deptId;
/** 手机号码 */
@Excel(name = "手机号码")
private String mphone;
/** 邮箱 */
@Excel(name = "邮箱")
private String email;
/** 籍贯 */
@Excel(name = "籍贯")
private String nativePlace;
/** 岗位 */
@Excel(name = "岗位")
private String post;
/** 职务 */
@Excel(name = "职务")
private String duties;
/** 职称 */
@Excel(name = "职称")
private String title;
/** 参加工作时间 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "参加工作时间", width = 30, dateFormat = "yyyy-MM-dd")
private Date workDate;
/** 支部ID */
@Excel(name = "支部ID")
private Long branchId;
/** 入党时间 */
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "入党时间", width = 30, dateFormat = "yyyy-MM-dd")
private Date partyDate;
/** 党内职务 */
@Excel(name = "党内职务")
private String partyDuties;
/** 删除标志0代表存在 1代表删除 */
private String delFlag;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public void setUnit(String unit)
{
this.unit = unit;
}
public String getUnit()
{
return unit;
}
public void setName(String name)
{
this.name = name;
}
public String getName()
{
return name;
}
public void setSex(String sex)
{
this.sex = sex;
}
public String getSex()
{
return sex;
}
public void setNation(String nation)
{
this.nation = nation;
}
public String getNation()
{
return nation;
}
public void setDeptId(Long deptId)
{
this.deptId = deptId;
}
public Long getDeptId()
{
return deptId;
}
public void setMphone(String mphone)
{
this.mphone = mphone;
}
public String getMphone()
{
return mphone;
}
public void setEmail(String email)
{
this.email = email;
}
public String getEmail()
{
return email;
}
public void setNativePlace(String nativePlace)
{
this.nativePlace = nativePlace;
}
public String getNativePlace()
{
return nativePlace;
}
public void setPost(String post)
{
this.post = post;
}
public String getPost()
{
return post;
}
public void setDuties(String duties)
{
this.duties = duties;
}
public String getDuties()
{
return duties;
}
public void setTitle(String title)
{
this.title = title;
}
public String getTitle()
{
return title;
}
public void setWorkDate(Date workDate)
{
this.workDate = workDate;
}
public Date getWorkDate()
{
return workDate;
}
public void setBranchId(Long branchId)
{
this.branchId = branchId;
}
public Long getBranchId()
{
return branchId;
}
public void setPartyDate(Date partyDate)
{
this.partyDate = partyDate;
}
public Date getPartyDate()
{
return partyDate;
}
public void setPartyDuties(String partyDuties)
{
this.partyDuties = partyDuties;
}
public String getPartyDuties()
{
return partyDuties;
}
public void setDelFlag(String delFlag)
{
this.delFlag = delFlag;
}
public String getDelFlag()
{
return delFlag;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("unit", getUnit())
.append("name", getName())
.append("sex", getSex())
.append("nation", getNation())
.append("deptId", getDeptId())
.append("mphone", getMphone())
.append("email", getEmail())
.append("nativePlace", getNativePlace())
.append("post", getPost())
.append("duties", getDuties())
.append("title", getTitle())
.append("workDate", getWorkDate())
.append("branchId", getBranchId())
.append("partyDate", getPartyDate())
.append("partyDuties", getPartyDuties())
.append("remark", getRemark())
.append("delFlag", getDelFlag())
.append("createBy", getCreateBy())
.append("createTime", getCreateTime())
.append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime())
.toString();
}
}

View File

@ -0,0 +1,61 @@
package com.cyx.web.base.mapper;
import java.util.List;
import com.cyx.web.base.domain.TAmentBranch;
/**
* 支部Mapper接口
*
* @author ruoyi
* @date 2023-08-23
*/
public interface TAmentBranchMapper
{
/**
* 查询支部
*
* @param branchId 支部主键
* @return 支部
*/
public TAmentBranch selectTAmentBranchByBranchId(Long branchId);
/**
* 查询支部列表
*
* @param tAmentBranch 支部
* @return 支部集合
*/
public List<TAmentBranch> selectTAmentBranchList(TAmentBranch tAmentBranch);
/**
* 新增支部
*
* @param tAmentBranch 支部
* @return 结果
*/
public int insertTAmentBranch(TAmentBranch tAmentBranch);
/**
* 修改支部
*
* @param tAmentBranch 支部
* @return 结果
*/
public int updateTAmentBranch(TAmentBranch tAmentBranch);
/**
* 删除支部
*
* @param branchId 支部主键
* @return 结果
*/
public int deleteTAmentBranchByBranchId(Long branchId);
/**
* 批量删除支部
*
* @param branchIds 需要删除的数据主键集合
* @return 结果
*/
public int deleteTAmentBranchByBranchIds(String[] branchIds);
}

View File

@ -0,0 +1,61 @@
package com.cyx.web.base.mapper;
import java.util.List;
import com.cyx.web.base.domain.TAmentPartyAffairs;
/**
* 党务Mapper接口
*
* @author ruoyi
* @date 2023-08-23
*/
public interface TAmentPartyAffairsMapper
{
/**
* 查询党务
*
* @param id 党务主键
* @return 党务
*/
public TAmentPartyAffairs selectTAmentPartyAffairsById(Long id);
/**
* 查询党务列表
*
* @param tAmentPartyAffairs 党务
* @return 党务集合
*/
public List<TAmentPartyAffairs> selectTAmentPartyAffairsList(TAmentPartyAffairs tAmentPartyAffairs);
/**
* 新增党务
*
* @param tAmentPartyAffairs 党务
* @return 结果
*/
public int insertTAmentPartyAffairs(TAmentPartyAffairs tAmentPartyAffairs);
/**
* 修改党务
*
* @param tAmentPartyAffairs 党务
* @return 结果
*/
public int updateTAmentPartyAffairs(TAmentPartyAffairs tAmentPartyAffairs);
/**
* 删除党务
*
* @param id 党务主键
* @return 结果
*/
public int deleteTAmentPartyAffairsById(Long id);
/**
* 批量删除党务
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int deleteTAmentPartyAffairsByIds(String[] ids);
}

View File

@ -0,0 +1,61 @@
package com.cyx.web.base.mapper;
import java.util.List;
import com.cyx.web.base.domain.TAmentPersonnel;
/**
* 人员Mapper接口
*
* @author ruoyi
* @date 2023-08-23
*/
public interface TAmentPersonnelMapper
{
/**
* 查询人员
*
* @param id 人员主键
* @return 人员
*/
public TAmentPersonnel selectTAmentPersonnelById(Long id);
/**
* 查询人员列表
*
* @param tAmentPersonnel 人员
* @return 人员集合
*/
public List<TAmentPersonnel> selectTAmentPersonnelList(TAmentPersonnel tAmentPersonnel);
/**
* 新增人员
*
* @param tAmentPersonnel 人员
* @return 结果
*/
public int insertTAmentPersonnel(TAmentPersonnel tAmentPersonnel);
/**
* 修改人员
*
* @param tAmentPersonnel 人员
* @return 结果
*/
public int updateTAmentPersonnel(TAmentPersonnel tAmentPersonnel);
/**
* 删除人员
*
* @param id 人员主键
* @return 结果
*/
public int deleteTAmentPersonnelById(Long id);
/**
* 批量删除人员
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int deleteTAmentPersonnelByIds(String[] ids);
}

View File

@ -0,0 +1,61 @@
package com.cyx.web.base.service;
import java.util.List;
import com.cyx.web.base.domain.TAmentBranch;
/**
* 支部Service接口
*
* @author ruoyi
* @date 2023-08-23
*/
public interface ITAmentBranchService
{
/**
* 查询支部
*
* @param branchId 支部主键
* @return 支部
*/
public TAmentBranch selectTAmentBranchByBranchId(Long branchId);
/**
* 查询支部列表
*
* @param tAmentBranch 支部
* @return 支部集合
*/
public List<TAmentBranch> selectTAmentBranchList(TAmentBranch tAmentBranch);
/**
* 新增支部
*
* @param tAmentBranch 支部
* @return 结果
*/
public int insertTAmentBranch(TAmentBranch tAmentBranch);
/**
* 修改支部
*
* @param tAmentBranch 支部
* @return 结果
*/
public int updateTAmentBranch(TAmentBranch tAmentBranch);
/**
* 批量删除支部
*
* @param branchIds 需要删除的支部主键集合
* @return 结果
*/
public int deleteTAmentBranchByBranchIds(String branchIds);
/**
* 删除支部信息
*
* @param branchId 支部主键
* @return 结果
*/
public int deleteTAmentBranchByBranchId(Long branchId);
}

View File

@ -0,0 +1,61 @@
package com.cyx.web.base.service;
import java.util.List;
import com.cyx.web.base.domain.TAmentPartyAffairs;
/**
* 党务Service接口
*
* @author ruoyi
* @date 2023-08-23
*/
public interface ITAmentPartyAffairsService
{
/**
* 查询党务
*
* @param id 党务主键
* @return 党务
*/
public TAmentPartyAffairs selectTAmentPartyAffairsById(Long id);
/**
* 查询党务列表
*
* @param tAmentPartyAffairs 党务
* @return 党务集合
*/
public List<TAmentPartyAffairs> selectTAmentPartyAffairsList(TAmentPartyAffairs tAmentPartyAffairs);
/**
* 新增党务
*
* @param tAmentPartyAffairs 党务
* @return 结果
*/
public int insertTAmentPartyAffairs(TAmentPartyAffairs tAmentPartyAffairs);
/**
* 修改党务
*
* @param tAmentPartyAffairs 党务
* @return 结果
*/
public int updateTAmentPartyAffairs(TAmentPartyAffairs tAmentPartyAffairs);
/**
* 批量删除党务
*
* @param ids 需要删除的党务主键集合
* @return 结果
*/
public int deleteTAmentPartyAffairsByIds(String ids);
/**
* 删除党务信息
*
* @param id 党务主键
* @return 结果
*/
public int deleteTAmentPartyAffairsById(Long id);
}

View File

@ -0,0 +1,61 @@
package com.cyx.web.base.service;
import java.util.List;
import com.cyx.web.base.domain.TAmentPersonnel;
/**
* 人员Service接口
*
* @author ruoyi
* @date 2023-08-23
*/
public interface ITAmentPersonnelService
{
/**
* 查询人员
*
* @param id 人员主键
* @return 人员
*/
public TAmentPersonnel selectTAmentPersonnelById(Long id);
/**
* 查询人员列表
*
* @param tAmentPersonnel 人员
* @return 人员集合
*/
public List<TAmentPersonnel> selectTAmentPersonnelList(TAmentPersonnel tAmentPersonnel);
/**
* 新增人员
*
* @param tAmentPersonnel 人员
* @return 结果
*/
public int insertTAmentPersonnel(TAmentPersonnel tAmentPersonnel);
/**
* 修改人员
*
* @param tAmentPersonnel 人员
* @return 结果
*/
public int updateTAmentPersonnel(TAmentPersonnel tAmentPersonnel);
/**
* 批量删除人员
*
* @param ids 需要删除的人员主键集合
* @return 结果
*/
public int deleteTAmentPersonnelByIds(String ids);
/**
* 删除人员信息
*
* @param id 人员主键
* @return 结果
*/
public int deleteTAmentPersonnelById(Long id);
}

View File

@ -0,0 +1,98 @@
package com.cyx.web.base.service.impl;
import java.util.List;
import com.cyx.common.core.text.Convert;
import com.cyx.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.cyx.web.base.mapper.TAmentBranchMapper;
import com.cyx.web.base.domain.TAmentBranch;
import com.cyx.web.base.service.ITAmentBranchService;
/**
* 支部Service业务层处理
*
* @author ruoyi
* @date 2023-08-23
*/
@Service
public class TAmentBranchServiceImpl implements ITAmentBranchService
{
@Autowired
private TAmentBranchMapper tAmentBranchMapper;
/**
* 查询支部
*
* @param branchId 支部主键
* @return 支部
*/
@Override
public TAmentBranch selectTAmentBranchByBranchId(Long branchId)
{
return tAmentBranchMapper.selectTAmentBranchByBranchId(branchId);
}
/**
* 查询支部列表
*
* @param tAmentBranch 支部
* @return 支部
*/
@Override
public List<TAmentBranch> selectTAmentBranchList(TAmentBranch tAmentBranch)
{
return tAmentBranchMapper.selectTAmentBranchList(tAmentBranch);
}
/**
* 新增支部
*
* @param tAmentBranch 支部
* @return 结果
*/
@Override
public int insertTAmentBranch(TAmentBranch tAmentBranch)
{
tAmentBranch.setCreateTime(DateUtils.getNowDate());
return tAmentBranchMapper.insertTAmentBranch(tAmentBranch);
}
/**
* 修改支部
*
* @param tAmentBranch 支部
* @return 结果
*/
@Override
public int updateTAmentBranch(TAmentBranch tAmentBranch)
{
tAmentBranch.setUpdateTime(DateUtils.getNowDate());
return tAmentBranchMapper.updateTAmentBranch(tAmentBranch);
}
/**
* 批量删除支部
*
* @param branchIds 需要删除的支部主键
* @return 结果
*/
@Override
public int deleteTAmentBranchByBranchIds(String branchIds)
{
return tAmentBranchMapper.deleteTAmentBranchByBranchIds(Convert.toStrArray(branchIds));
}
/**
* 删除支部信息
*
* @param branchId 支部主键
* @return 结果
*/
@Override
public int deleteTAmentBranchByBranchId(Long branchId)
{
return tAmentBranchMapper.deleteTAmentBranchByBranchId(branchId);
}
}

View File

@ -0,0 +1,98 @@
package com.cyx.web.base.service.impl;
import java.util.List;
import com.cyx.common.core.text.Convert;
import com.cyx.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.cyx.web.base.mapper.TAmentPartyAffairsMapper;
import com.cyx.web.base.domain.TAmentPartyAffairs;
import com.cyx.web.base.service.ITAmentPartyAffairsService;
/**
* 党务Service业务层处理
*
* @author ruoyi
* @date 2023-08-23
*/
@Service
public class TAmentPartyAffairsServiceImpl implements ITAmentPartyAffairsService
{
@Autowired
private TAmentPartyAffairsMapper tAmentPartyAffairsMapper;
/**
* 查询党务
*
* @param id 党务主键
* @return 党务
*/
@Override
public TAmentPartyAffairs selectTAmentPartyAffairsById(Long id)
{
return tAmentPartyAffairsMapper.selectTAmentPartyAffairsById(id);
}
/**
* 查询党务列表
*
* @param tAmentPartyAffairs 党务
* @return 党务
*/
@Override
public List<TAmentPartyAffairs> selectTAmentPartyAffairsList(TAmentPartyAffairs tAmentPartyAffairs)
{
return tAmentPartyAffairsMapper.selectTAmentPartyAffairsList(tAmentPartyAffairs);
}
/**
* 新增党务
*
* @param tAmentPartyAffairs 党务
* @return 结果
*/
@Override
public int insertTAmentPartyAffairs(TAmentPartyAffairs tAmentPartyAffairs)
{
tAmentPartyAffairs.setCreateTime(DateUtils.getNowDate());
return tAmentPartyAffairsMapper.insertTAmentPartyAffairs(tAmentPartyAffairs);
}
/**
* 修改党务
*
* @param tAmentPartyAffairs 党务
* @return 结果
*/
@Override
public int updateTAmentPartyAffairs(TAmentPartyAffairs tAmentPartyAffairs)
{
tAmentPartyAffairs.setUpdateTime(DateUtils.getNowDate());
return tAmentPartyAffairsMapper.updateTAmentPartyAffairs(tAmentPartyAffairs);
}
/**
* 批量删除党务
*
* @param ids 需要删除的党务主键
* @return 结果
*/
@Override
public int deleteTAmentPartyAffairsByIds(String ids)
{
return tAmentPartyAffairsMapper.deleteTAmentPartyAffairsByIds(Convert.toStrArray(ids));
}
/**
* 删除党务信息
*
* @param id 党务主键
* @return 结果
*/
@Override
public int deleteTAmentPartyAffairsById(Long id)
{
return tAmentPartyAffairsMapper.deleteTAmentPartyAffairsById(id);
}
}

View File

@ -0,0 +1,98 @@
package com.cyx.web.base.service.impl;
import java.util.List;
import com.cyx.common.core.text.Convert;
import com.cyx.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.cyx.web.base.mapper.TAmentPersonnelMapper;
import com.cyx.web.base.domain.TAmentPersonnel;
import com.cyx.web.base.service.ITAmentPersonnelService;
/**
* 人员Service业务层处理
*
* @author ruoyi
* @date 2023-08-23
*/
@Service
public class TAmentPersonnelServiceImpl implements ITAmentPersonnelService
{
@Autowired
private TAmentPersonnelMapper tAmentPersonnelMapper;
/**
* 查询人员
*
* @param id 人员主键
* @return 人员
*/
@Override
public TAmentPersonnel selectTAmentPersonnelById(Long id)
{
return tAmentPersonnelMapper.selectTAmentPersonnelById(id);
}
/**
* 查询人员列表
*
* @param tAmentPersonnel 人员
* @return 人员
*/
@Override
public List<TAmentPersonnel> selectTAmentPersonnelList(TAmentPersonnel tAmentPersonnel)
{
return tAmentPersonnelMapper.selectTAmentPersonnelList(tAmentPersonnel);
}
/**
* 新增人员
*
* @param tAmentPersonnel 人员
* @return 结果
*/
@Override
public int insertTAmentPersonnel(TAmentPersonnel tAmentPersonnel)
{
tAmentPersonnel.setCreateTime(DateUtils.getNowDate());
return tAmentPersonnelMapper.insertTAmentPersonnel(tAmentPersonnel);
}
/**
* 修改人员
*
* @param tAmentPersonnel 人员
* @return 结果
*/
@Override
public int updateTAmentPersonnel(TAmentPersonnel tAmentPersonnel)
{
tAmentPersonnel.setUpdateTime(DateUtils.getNowDate());
return tAmentPersonnelMapper.updateTAmentPersonnel(tAmentPersonnel);
}
/**
* 批量删除人员
*
* @param ids 需要删除的人员主键
* @return 结果
*/
@Override
public int deleteTAmentPersonnelByIds(String ids)
{
return tAmentPersonnelMapper.deleteTAmentPersonnelByIds(Convert.toStrArray(ids));
}
/**
* 删除人员信息
*
* @param id 人员主键
* @return 结果
*/
@Override
public int deleteTAmentPersonnelById(Long id)
{
return tAmentPersonnelMapper.deleteTAmentPersonnelById(id);
}
}

View File

@ -7,7 +7,7 @@ ruoyi:
# 版权年份
copyrightYear: 2023
# 实例演示开关
demoEnabled: true
demoEnabled: false
# 文件路径 示例( Windows配置D:/ruoyi/uploadPathLinux配置 /home/ruoyi/uploadPath
profile: D:/ruoyi/uploadPath
# 获取ip地址开关

View File

@ -0,0 +1,114 @@
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
<th:block th:include="include :: header('新增党务')" />
<th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
<form class="form-horizontal m" id="form-affairs-add">
<div class="form-group">
<label class="col-sm-3 control-label">单位名称:</label>
<div class="col-sm-8">
<input name="unit" 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="target" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">目标要求:</label>
<div class="col-sm-8">
<textarea name="demand" class="form-control"></textarea>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">评分细则:</label>
<div class="col-sm-8">
<textarea name="detailed" class="form-control"></textarea>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">达标分:</label>
<div class="col-sm-8">
<textarea name="score" class="form-control"></textarea>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">考核方式:</label>
<div class="col-sm-8">
<input name="method" 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="head" 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="reviewed" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">完成截止时间:</label>
<div class="col-sm-8">
<div class="input-group date">
<input name="finishDate" class="form-control" placeholder="yyyy-MM-dd" type="text">
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
</div>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">操作人员ID</label>
<div class="col-sm-8">
<input name="perId" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">部门ID</label>
<div class="col-sm-8">
<input name="deptId" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">支部ID</label>
<div class="col-sm-8">
<input name="branchId" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">备注:</label>
<div class="col-sm-8">
<textarea name="remark" class="form-control"></textarea>
</div>
</div>
</form>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: datetimepicker-js" />
<script th:inline="javascript">
var prefix = ctx + "base/affairs"
$("#form-affairs-add").validate({
focusCleanup: true
});
function submitHandler() {
if ($.validate.form()) {
$.operate.save(prefix + "/add", $('#form-affairs-add').serialize());
}
}
$("input[name='finishDate']").datetimepicker({
format: "yyyy-mm-dd",
minView: "month",
autoclose: true
});
</script>
</body>
</html>

View File

@ -0,0 +1,193 @@
<!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="type" name="type" value="党建及意识形态"/>
</li>
<li>
<label>单位名称:</label>
<input type="text" name="unit"/>
</li>
<li>
<label>目标项及分值:</label>
<input type="text" name="target"/>
</li>
<li>
<label>考核方式:</label>
<input type="text" name="method"/>
</li>
<li>
<label>负责人:</label>
<input type="text" name="head"/>
</li>
<li>
<label>审核人:</label>
<input type="text" name="reviewed"/>
</li>
<li>
<label>完成截止时间:</label>
<input type="text" class="time-input" placeholder="请选择完成截止时间" name="finishDate"/>
</li>
<li>
<label>操作人员ID</label>
<input type="text" name="perId"/>
</li>
<li>
<label>部门ID</label>
<input type="text" name="deptId"/>
</li>
<li>
<label>支部ID</label>
<input type="text" name="branchId"/>
</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="base:affairs:add">
<i class="fa fa-plus"></i> 添加
</a>
<a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="base:affairs:edit">
<i class="fa fa-edit"></i> 修改
</a>
<a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="base:affairs:remove">
<i class="fa fa-remove"></i> 删除
</a>
<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="base:affairs: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('base:affairs:edit')}]];
var removeFlag = [[${@permission.hasPermi('base:affairs:remove')}]];
var prefix = ctx + "base/affairs";
$(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: '自增ID',
visible: false
},
// {
// field: 'type',
// title: '作用于附件'
// },
{
field: 'unit',
title: '单位名称'
},
{
field: 'type',
title: '类型'
},
{
field: 'target',
title: '目标项及分值'
},
{
field: 'demand',
title: '目标要求',
width:200,
align: 'center',
formatter: function(value, row, index) {
return $.table.tooltip(value);
}
},
{
field: 'detailed',
title: '评分细则',
width:200,
align: 'center',
formatter: function(value, row, index) {
return $.table.tooltip(value);
}
},
{
field: 'score',
title: '达标分'
},
{
field: 'method',
title: '考核方式',
width:200,
align: 'center',
formatter: function(value, row, index) {
return $.table.tooltip(value);
}
},
{
field: 'head',
title: '负责人'
},
{
field: 'reviewed',
title: '审核人'
},
{
field: 'finishDate',
title: '完成截止时间'
},
{
field: 'perId',
title: '操作人员ID'
},
{
field: 'deptId',
title: '部门ID'
},
{
field: 'branchId',
title: '支部ID'
},
{
field: 'remark',
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>

View File

@ -0,0 +1,193 @@
<!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="type" name="type" value="日常考核指标"/>
</li>
<li>
<label>单位名称:</label>
<input type="text" name="unit"/>
</li>
<li>
<label>目标项及分值:</label>
<input type="text" name="target"/>
</li>
<li>
<label>考核方式:</label>
<input type="text" name="method"/>
</li>
<li>
<label>负责人:</label>
<input type="text" name="head"/>
</li>
<li>
<label>审核人:</label>
<input type="text" name="reviewed"/>
</li>
<li>
<label>完成截止时间:</label>
<input type="text" class="time-input" placeholder="请选择完成截止时间" name="finishDate"/>
</li>
<li>
<label>操作人员ID</label>
<input type="text" name="perId"/>
</li>
<li>
<label>部门ID</label>
<input type="text" name="deptId"/>
</li>
<li>
<label>支部ID</label>
<input type="text" name="branchId"/>
</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="base:affairs:add">
<i class="fa fa-plus"></i> 添加
</a>
<a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="base:affairs:edit">
<i class="fa fa-edit"></i> 修改
</a>
<a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="base:affairs:remove">
<i class="fa fa-remove"></i> 删除
</a>
<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="base:affairs: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('base:affairs:edit')}]];
var removeFlag = [[${@permission.hasPermi('base:affairs:remove')}]];
var prefix = ctx + "base/affairs";
$(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: '自增ID',
visible: false
},
// {
// field: 'type',
// title: '作用于附件'
// },
{
field: 'unit',
title: '单位名称'
},
{
field: 'type',
title: '类型'
},
{
field: 'target',
title: '目标项及分值'
},
{
field: 'demand',
title: '目标要求',
width:200,
align: 'center',
formatter: function(value, row, index) {
return $.table.tooltip(value);
}
},
{
field: 'detailed',
title: '评分细则',
width:200,
align: 'center',
formatter: function(value, row, index) {
return $.table.tooltip(value);
}
},
{
field: 'score',
title: '达标分'
},
{
field: 'method',
title: '考核方式',
width:200,
align: 'center',
formatter: function(value, row, index) {
return $.table.tooltip(value);
}
},
{
field: 'head',
title: '负责人'
},
{
field: 'reviewed',
title: '审核人'
},
{
field: 'finishDate',
title: '完成截止时间'
},
{
field: 'perId',
title: '操作人员ID'
},
{
field: 'deptId',
title: '部门ID'
},
{
field: 'branchId',
title: '支部ID'
},
{
field: 'remark',
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>

View File

@ -0,0 +1,115 @@
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
<th:block th:include="include :: header('修改党务')" />
<th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
<form class="form-horizontal m" id="form-affairs-edit" th:object="${tAmentPartyAffairs}">
<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="unit" th:field="*{unit}" 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="target" th:field="*{target}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">目标要求:</label>
<div class="col-sm-8">
<textarea name="demand" class="form-control">[[*{demand}]]</textarea>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">评分细则:</label>
<div class="col-sm-8">
<textarea name="detailed" class="form-control">[[*{detailed}]]</textarea>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">达标分:</label>
<div class="col-sm-8">
<textarea name="score" class="form-control">[[*{score}]]</textarea>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">考核方式:</label>
<div class="col-sm-8">
<input name="method" th:field="*{method}" 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="head" th:field="*{head}" 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="reviewed" th:field="*{reviewed}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">完成截止时间:</label>
<div class="col-sm-8">
<div class="input-group date">
<input name="finishDate" th:value="${#dates.format(tAmentPartyAffairs.finishDate, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
</div>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">操作人员ID</label>
<div class="col-sm-8">
<input name="perId" th:field="*{perId}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">部门ID</label>
<div class="col-sm-8">
<input name="deptId" th:field="*{deptId}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">支部ID</label>
<div class="col-sm-8">
<input name="branchId" th:field="*{branchId}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">备注:</label>
<div class="col-sm-8">
<textarea name="remark" class="form-control">[[*{remark}]]</textarea>
</div>
</div>
</form>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: datetimepicker-js" />
<script th:inline="javascript">
var prefix = ctx + "base/affairs";
$("#form-affairs-edit").validate({
focusCleanup: true
});
function submitHandler() {
if ($.validate.form()) {
$.operate.save(prefix + "/edit", $('#form-affairs-edit').serialize());
}
}
$("input[name='finishDate']").datetimepicker({
format: "yyyy-mm-dd",
minView: "month",
autoclose: true
});
</script>
</body>
</html>

View File

@ -0,0 +1,193 @@
<!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="type" name="type" value="党风廉政建设"/>
</li>
<li>
<label>单位名称:</label>
<input type="text" name="unit"/>
</li>
<li>
<label>责任类别:</label>
<input type="text" name="target"/>
</li>
<li>
<label>考核方式:</label>
<input type="text" name="method"/>
</li>
<li>
<label>负责人:</label>
<input type="text" name="head"/>
</li>
<li>
<label>审核人:</label>
<input type="text" name="reviewed"/>
</li>
<li>
<label>完成截止时间:</label>
<input type="text" class="time-input" placeholder="请选择完成截止时间" name="finishDate"/>
</li>
<li>
<label>操作人员ID</label>
<input type="text" name="perId"/>
</li>
<li>
<label>部门ID</label>
<input type="text" name="deptId"/>
</li>
<li>
<label>支部ID</label>
<input type="text" name="branchId"/>
</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="base:affairs:add">
<i class="fa fa-plus"></i> 添加
</a>
<a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="base:affairs:edit">
<i class="fa fa-edit"></i> 修改
</a>
<a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="base:affairs:remove">
<i class="fa fa-remove"></i> 删除
</a>
<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="base:affairs: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('base:affairs:edit')}]];
var removeFlag = [[${@permission.hasPermi('base:affairs:remove')}]];
var prefix = ctx + "base/affairs";
$(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: '自增ID',
visible: false
},
// {
// field: 'type',
// title: '作用于附件'
// },
{
field: 'unit',
title: '单位名称'
},
{
field: 'type',
title: '类型'
},
{
field: 'target',
title: '责任类别'
},
{
field: 'demand',
title: '目标要求',
width:200,
align: 'center',
formatter: function(value, row, index) {
return $.table.tooltip(value);
}
},
{
field: 'detailed',
title: '指标明细',
width:200,
align: 'center',
formatter: function(value, row, index) {
return $.table.tooltip(value);
}
},
{
field: 'score',
title: '总分值'
},
{
field: 'method',
title: '考核要求',
width:200,
align: 'center',
formatter: function(value, row, index) {
return $.table.tooltip(value);
}
},
{
field: 'head',
title: '负责人'
},
{
field: 'reviewed',
title: '审核人'
},
{
field: 'finishDate',
title: '完成截止时间'
},
{
field: 'perId',
title: '操作人员ID'
},
{
field: 'deptId',
title: '部门ID'
},
{
field: 'branchId',
title: '支部ID'
},
{
field: 'remark',
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>

View File

@ -0,0 +1,193 @@
<!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="type" name="type" value="年度考核指标"/>
</li>
<li>
<label>单位名称:</label>
<input type="text" name="unit"/>
</li>
<li>
<label>目标项及分值:</label>
<input type="text" name="target"/>
</li>
<li>
<label>考核方式:</label>
<input type="text" name="method"/>
</li>
<li>
<label>负责人:</label>
<input type="text" name="head"/>
</li>
<li>
<label>审核人:</label>
<input type="text" name="reviewed"/>
</li>
<li>
<label>完成截止时间:</label>
<input type="text" class="time-input" placeholder="请选择完成截止时间" name="finishDate"/>
</li>
<li>
<label>操作人员ID</label>
<input type="text" name="perId"/>
</li>
<li>
<label>部门ID</label>
<input type="text" name="deptId"/>
</li>
<li>
<label>支部ID</label>
<input type="text" name="branchId"/>
</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="base:affairs:add">
<i class="fa fa-plus"></i> 添加
</a>
<a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="base:affairs:edit">
<i class="fa fa-edit"></i> 修改
</a>
<a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="base:affairs:remove">
<i class="fa fa-remove"></i> 删除
</a>
<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="base:affairs: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('base:affairs:edit')}]];
var removeFlag = [[${@permission.hasPermi('base:affairs:remove')}]];
var prefix = ctx + "base/affairs";
$(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: '自增ID',
visible: false
},
// {
// field: 'type',
// title: '作用于附件'
// },
{
field: 'unit',
title: '单位名称'
},
{
field: 'type',
title: '类型'
},
{
field: 'target',
title: '目标项及分值'
},
{
field: 'demand',
title: '目标要求',
width:200,
align: 'center',
formatter: function(value, row, index) {
return $.table.tooltip(value);
}
},
{
field: 'detailed',
title: '评分细则',
width:200,
align: 'center',
formatter: function(value, row, index) {
return $.table.tooltip(value);
}
},
{
field: 'score',
title: '达标分'
},
{
field: 'method',
title: '考核方式',
width:200,
align: 'center',
formatter: function(value, row, index) {
return $.table.tooltip(value);
}
},
{
field: 'head',
title: '负责人'
},
{
field: 'reviewed',
title: '审核人'
},
{
field: 'finishDate',
title: '完成截止时间'
},
{
field: 'perId',
title: '操作人员ID'
},
{
field: 'deptId',
title: '部门ID'
},
{
field: 'branchId',
title: '支部ID'
},
{
field: 'remark',
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>

View File

@ -0,0 +1,67 @@
<!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-branch-add">
<div class="form-group">
<label class="col-sm-3 control-label">父支部id</label>
<div class="col-sm-8">
<input name="parentId" 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="branchName" 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="orderNum" 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="leader" 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="phone" 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="email" 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="delFlag" class="form-control" type="text">
</div>
</div>
</form>
</div>
<th:block th:include="include :: footer" />
<script th:inline="javascript">
var prefix = ctx + "base/branch"
$("#form-branch-add").validate({
focusCleanup: true
});
function submitHandler() {
if ($.validate.form()) {
$.operate.save(prefix + "/add", $('#form-branch-add').serialize());
}
}
</script>
</body>
</html>

View File

@ -0,0 +1,138 @@
<!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>父支部id</label>
<input type="text" name="parentId"/>
</li>
<li>
<label>祖级列表:</label>
<input type="text" name="ancestors"/>
</li>
<li>
<label>支部名称:</label>
<input type="text" name="branchName"/>
</li>
<li>
<label>显示顺序:</label>
<input type="text" name="orderNum"/>
</li>
<li>
<label>负责人:</label>
<input type="text" name="leader"/>
</li>
<li>
<label>联系电话:</label>
<input type="text" name="phone"/>
</li>
<li>
<label>邮箱:</label>
<input type="text" name="email"/>
</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="base:branch:add">
<i class="fa fa-plus"></i> 添加
</a>
<a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="base:branch:edit">
<i class="fa fa-edit"></i> 修改
</a>
<a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="base:branch:remove">
<i class="fa fa-remove"></i> 删除
</a>
<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="base:branch: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('base:branch:edit')}]];
var removeFlag = [[${@permission.hasPermi('base:branch:remove')}]];
var prefix = ctx + "base/branch";
$(function() {
var options = {
url: prefix + "/list",
createUrl: prefix + "/add",
updateUrl: prefix + "/edit/{id}",
removeUrl: prefix + "/remove",
exportUrl: prefix + "/export",
modalName: "支部",
columns: [{
checkbox: true
},
{
field: 'branchId',
title: '支部id',
visible: false
},
{
field: 'parentId',
title: '父支部id'
},
{
field: 'ancestors',
title: '祖级列表'
},
{
field: 'branchName',
title: '支部名称'
},
{
field: 'orderNum',
title: '显示顺序'
},
{
field: 'leader',
title: '负责人'
},
{
field: 'phone',
title: '联系电话'
},
{
field: 'email',
title: '邮箱'
},
{
field: 'status',
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.branchId + '\')"><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.branchId + '\')"><i class="fa fa-remove"></i>删除</a>');
return actions.join('');
}
}]
};
$.table.init(options);
});
</script>
</body>
</html>

View File

@ -0,0 +1,62 @@
<!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-branch-edit" th:object="${tAmentBranch}">
<input name="branchId" th:field="*{branchId}" type="hidden">
<div class="form-group">
<label class="col-sm-3 control-label">父支部id</label>
<div class="col-sm-8">
<input name="parentId" th:field="*{parentId}" 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="branchName" th:field="*{branchName}" 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="orderNum" th:field="*{orderNum}" 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="leader" th:field="*{leader}" 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="phone" th:field="*{phone}" 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="email" th:field="*{email}" class="form-control" type="text">
</div>
</div>
</form>
</div>
<th:block th:include="include :: footer" />
<script th:inline="javascript">
var prefix = ctx + "base/branch";
$("#form-branch-edit").validate({
focusCleanup: true
});
function submitHandler() {
if ($.validate.form()) {
$.operate.save(prefix + "/edit", $('#form-branch-edit').serialize());
}
}
</script>
</body>
</html>

View File

@ -0,0 +1,141 @@
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
<th:block th:include="include :: header('新增人员')" />
<th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
<form class="form-horizontal m" id="form-personnel-add">
<div class="form-group">
<label class="col-sm-3 control-label">单位名称:</label>
<div class="col-sm-8">
<input name="unit" 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="name" 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="nation" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">部门ID</label>
<div class="col-sm-8">
<input name="deptId" 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="mphone" 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="email" 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="nativePlace" 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="post" 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="duties" 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="title" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">参加工作时间:</label>
<div class="col-sm-8">
<div class="input-group date">
<input name="workDate" class="form-control" placeholder="yyyy-MM-dd" type="text">
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
</div>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">支部ID</label>
<div class="col-sm-8">
<input name="branchId" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">入党时间:</label>
<div class="col-sm-8">
<div class="input-group date">
<input name="partyDate" class="form-control" placeholder="yyyy-MM-dd" type="text">
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
</div>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">党内职务:</label>
<div class="col-sm-8">
<input name="partyDuties" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">备注:</label>
<div class="col-sm-8">
<textarea name="remark" class="form-control"></textarea>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">删除标志:</label>
<div class="col-sm-8">
<input name="delFlag" class="form-control" type="text">
</div>
</div>
</form>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: datetimepicker-js" />
<script th:inline="javascript">
var prefix = ctx + "base/personnel"
$("#form-personnel-add").validate({
focusCleanup: true
});
function submitHandler() {
if ($.validate.form()) {
$.operate.save(prefix + "/add", $('#form-personnel-add').serialize());
}
}
$("input[name='workDate']").datetimepicker({
format: "yyyy-mm-dd",
minView: "month",
autoclose: true
});
$("input[name='partyDate']").datetimepicker({
format: "yyyy-mm-dd",
minView: "month",
autoclose: true
});
</script>
</body>
</html>

View File

@ -0,0 +1,136 @@
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
<th:block th:include="include :: header('修改人员')" />
<th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
<form class="form-horizontal m" id="form-personnel-edit" th:object="${tAmentPersonnel}">
<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="unit" th:field="*{unit}" 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="name" th:field="*{name}" 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="nation" th:field="*{nation}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">部门ID</label>
<div class="col-sm-8">
<input name="deptId" th:field="*{deptId}" 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="mphone" th:field="*{mphone}" 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="email" th:field="*{email}" 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="nativePlace" th:field="*{nativePlace}" 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="post" th:field="*{post}" 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="duties" th:field="*{duties}" 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="title" th:field="*{title}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">参加工作时间:</label>
<div class="col-sm-8">
<div class="input-group date">
<input name="workDate" th:value="${#dates.format(tAmentPersonnel.workDate, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
</div>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">支部ID</label>
<div class="col-sm-8">
<input name="branchId" th:field="*{branchId}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">入党时间:</label>
<div class="col-sm-8">
<div class="input-group date">
<input name="partyDate" th:value="${#dates.format(tAmentPersonnel.partyDate, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
</div>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">党内职务:</label>
<div class="col-sm-8">
<input name="partyDuties" th:field="*{partyDuties}" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">备注:</label>
<div class="col-sm-8">
<textarea name="remark" class="form-control">[[*{remark}]]</textarea>
</div>
</div>
</form>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: datetimepicker-js" />
<script th:inline="javascript">
var prefix = ctx + "base/personnel";
$("#form-personnel-edit").validate({
focusCleanup: true
});
function submitHandler() {
if ($.validate.form()) {
$.operate.save(prefix + "/edit", $('#form-personnel-edit').serialize());
}
}
$("input[name='workDate']").datetimepicker({
format: "yyyy-mm-dd",
minView: "month",
autoclose: true
});
$("input[name='partyDate']").datetimepicker({
format: "yyyy-mm-dd",
minView: "month",
autoclose: true
});
</script>
</body>
</html>

View File

@ -0,0 +1,198 @@
<!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="unit"/>
</li>
<li>
<label>人员姓名:</label>
<input type="text" name="name"/>
</li>
<li>
<label>民族:</label>
<input type="text" name="nation"/>
</li>
<li>
<label>部门ID</label>
<input type="text" name="deptId"/>
</li>
<li>
<label>手机号码:</label>
<input type="text" name="mphone"/>
</li>
<li>
<label>邮箱:</label>
<input type="text" name="email"/>
</li>
<li>
<label>籍贯:</label>
<input type="text" name="nativePlace"/>
</li>
<li>
<label>岗位:</label>
<input type="text" name="post"/>
</li>
<li>
<label>职务:</label>
<input type="text" name="duties"/>
</li>
<li>
<label>职称:</label>
<input type="text" name="title"/>
</li>
<li>
<label>参加工作时间:</label>
<input type="text" class="time-input" placeholder="请选择参加工作时间" name="workDate"/>
</li>
<li>
<label>支部ID</label>
<input type="text" name="branchId"/>
</li>
<li>
<label>入党时间:</label>
<input type="text" class="time-input" placeholder="请选择入党时间" name="partyDate"/>
</li>
<li>
<label>党内职务:</label>
<input type="text" name="partyDuties"/>
</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="base:personnel:add">
<i class="fa fa-plus"></i> 添加
</a>
<a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="base:personnel:edit">
<i class="fa fa-edit"></i> 修改
</a>
<a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="base:personnel:remove">
<i class="fa fa-remove"></i> 删除
</a>
<a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="base:personnel: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('base:personnel:edit')}]];
var removeFlag = [[${@permission.hasPermi('base:personnel:remove')}]];
var prefix = ctx + "base/personnel";
$(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: 'unit',
title: '单位名称'
},
{
field: 'name',
title: '人员姓名'
},
{
field: 'sex',
title: '人员性别'
},
{
field: 'nation',
title: '民族'
},
{
field: 'deptId',
title: '部门ID'
},
{
field: 'mphone',
title: '手机号码'
},
{
field: 'email',
title: '邮箱'
},
{
field: 'nativePlace',
title: '籍贯'
},
{
field: 'post',
title: '岗位'
},
{
field: 'duties',
title: '职务'
},
{
field: 'title',
title: '职称'
},
{
field: 'workDate',
title: '参加工作时间'
},
{
field: 'branchId',
title: '支部ID'
},
{
field: 'partyDate',
title: '入党时间'
},
{
field: 'partyDuties',
title: '党内职务'
},
{
field: 'remark',
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>

View File

@ -84,7 +84,7 @@
<ul class="nav">
<li>
<a class="menuItem" th:href="@{/system/main}">
<i class="fa fa-home"></i> <span class="nav-label">首页</span></a>
<i class="fa fa-home"></i> <span class="nav-label">驾驶舱</span></a>
</li>
</ul>
</div>
@ -288,7 +288,7 @@
</button>
<nav class="page-tabs menuTabs">
<div class="page-tabs-content">
<a href="javascript:;" class="active menuTab" th:data-id="@{/system/main}">首页</a>
<a href="javascript:;" class="active menuTab" th:data-id="@{/system/main}">驾驶舱</a>
</div>
</nav>
<button class="roll-nav roll-right tabRight">

View File

@ -51,7 +51,7 @@
</li>
<li>
<a class="menuItem" th:href="@{/system/main}"><i class="fa fa-home"></i> <span
class="nav-label">首页</span> </a>
class="nav-label">驾驶舱</span> </a>
</li>
<li th:each="menu : ${menus}">
<a th:class="@{${!#strings.isEmpty(menu.url) && menu.url != '#'} ? ${menu.target}}"
@ -261,7 +261,7 @@
</button>
<nav class="page-tabs menuTabs">
<div class="page-tabs-content">
<a class="active menuTab" href="javascript:;" th:data-id="@{/system/main}">首页</a>
<a class="active menuTab" href="javascript:;" th:data-id="@{/system/main}">驾驶舱</a>
</div>
</nav>
<button class="roll-nav roll-right tabRight">

View File

@ -0,0 +1,112 @@
<?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.cyx.web.base.mapper.TAmentBranchMapper">
<resultMap type="TAmentBranch" id="TAmentBranchResult">
<result property="branchId" column="branch_id" />
<result property="parentId" column="parent_id" />
<result property="ancestors" column="ancestors" />
<result property="branchName" column="branch_name" />
<result property="orderNum" column="order_num" />
<result property="leader" column="leader" />
<result property="phone" column="phone" />
<result property="email" column="email" />
<result property="status" column="status" />
<result property="delFlag" column="del_flag" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
</resultMap>
<sql id="selectTAmentBranchVo">
select branch_id, parent_id, ancestors, branch_name, order_num, leader, phone, email, status, del_flag, create_by, create_time, update_by, update_time from t_ament_branch
</sql>
<select id="selectTAmentBranchList" parameterType="TAmentBranch" resultMap="TAmentBranchResult">
<include refid="selectTAmentBranchVo"/>
<where>
<if test="parentId != null "> and parent_id = #{parentId}</if>
<if test="ancestors != null and ancestors != ''"> and ancestors = #{ancestors}</if>
<if test="branchName != null and branchName != ''"> and branch_name like concat('%', #{branchName}, '%')</if>
<if test="orderNum != null "> and order_num = #{orderNum}</if>
<if test="leader != null and leader != ''"> and leader = #{leader}</if>
<if test="phone != null and phone != ''"> and phone = #{phone}</if>
<if test="email != null and email != ''"> and email = #{email}</if>
<if test="status != null and status != ''"> and status = #{status}</if>
</where>
</select>
<select id="selectTAmentBranchByBranchId" parameterType="Long" resultMap="TAmentBranchResult">
<include refid="selectTAmentBranchVo"/>
where branch_id = #{branchId}
</select>
<insert id="insertTAmentBranch" parameterType="TAmentBranch" useGeneratedKeys="true" keyProperty="branchId">
insert into t_ament_branch
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="parentId != null">parent_id,</if>
<if test="ancestors != null">ancestors,</if>
<if test="branchName != null">branch_name,</if>
<if test="orderNum != null">order_num,</if>
<if test="leader != null">leader,</if>
<if test="phone != null">phone,</if>
<if test="email != null">email,</if>
<if test="status != null">status,</if>
<if test="delFlag != null">del_flag,</if>
<if test="createBy != null">create_by,</if>
<if test="createTime != null">create_time,</if>
<if test="updateBy != null">update_by,</if>
<if test="updateTime != null">update_time,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="parentId != null">#{parentId},</if>
<if test="ancestors != null">#{ancestors},</if>
<if test="branchName != null">#{branchName},</if>
<if test="orderNum != null">#{orderNum},</if>
<if test="leader != null">#{leader},</if>
<if test="phone != null">#{phone},</if>
<if test="email != null">#{email},</if>
<if test="status != null">#{status},</if>
<if test="delFlag != null">#{delFlag},</if>
<if test="createBy != null">#{createBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
</trim>
</insert>
<update id="updateTAmentBranch" parameterType="TAmentBranch">
update t_ament_branch
<trim prefix="SET" suffixOverrides=",">
<if test="parentId != null">parent_id = #{parentId},</if>
<if test="ancestors != null">ancestors = #{ancestors},</if>
<if test="branchName != null">branch_name = #{branchName},</if>
<if test="orderNum != null">order_num = #{orderNum},</if>
<if test="leader != null">leader = #{leader},</if>
<if test="phone != null">phone = #{phone},</if>
<if test="email != null">email = #{email},</if>
<if test="status != null">status = #{status},</if>
<if test="delFlag != null">del_flag = #{delFlag},</if>
<if test="createBy != null">create_by = #{createBy},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
</trim>
where branch_id = #{branchId}
</update>
<delete id="deleteTAmentBranchByBranchId" parameterType="Long">
delete from t_ament_branch where branch_id = #{branchId}
</delete>
<delete id="deleteTAmentBranchByBranchIds" parameterType="String">
delete from t_ament_branch where branch_id in
<foreach item="branchId" collection="array" open="(" separator="," close=")">
#{branchId}
</foreach>
</delete>
</mapper>

View File

@ -0,0 +1,137 @@
<?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.cyx.web.base.mapper.TAmentPartyAffairsMapper">
<resultMap type="TAmentPartyAffairs" id="TAmentPartyAffairsResult">
<result property="id" column="id" />
<result property="type" column="type" />
<result property="unit" column="unit" />
<result property="target" column="target" />
<result property="demand" column="demand" />
<result property="detailed" column="detailed" />
<result property="score" column="score" />
<result property="method" column="method" />
<result property="head" column="head" />
<result property="reviewed" column="reviewed" />
<result property="finishDate" column="finish_date" />
<result property="perId" column="per_id" />
<result property="deptId" column="dept_id" />
<result property="branchId" column="branch_id" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
<result property="remark" column="remark" />
</resultMap>
<sql id="selectTAmentPartyAffairsVo">
select id, type, unit, target, demand, detailed, score, method, head, reviewed, finish_date, per_id, dept_id, branch_id, create_by, create_time, update_by, update_time, remark from t_ament_party_affairs
</sql>
<select id="selectTAmentPartyAffairsList" parameterType="TAmentPartyAffairs" resultMap="TAmentPartyAffairsResult">
<include refid="selectTAmentPartyAffairsVo"/>
<where>
<if test="type != null and type != ''"> and type = #{type}</if>
<if test="unit != null and unit != ''"> and unit = #{unit}</if>
<if test="target != null and target != ''"> and target = #{target}</if>
<if test="demand != null and demand != ''"> and demand = #{demand}</if>
<if test="detailed != null and detailed != ''"> and detailed = #{detailed}</if>
<if test="score != null and score != ''"> and score = #{score}</if>
<if test="method != null and method != ''"> and method = #{method}</if>
<if test="head != null and head != ''"> and head = #{head}</if>
<if test="reviewed != null and reviewed != ''"> and reviewed = #{reviewed}</if>
<if test="finishDate != null "> and finish_date = #{finishDate}</if>
<if test="perId != null "> and per_id = #{perId}</if>
<if test="deptId != null "> and dept_id = #{deptId}</if>
<if test="branchId != null "> and branch_id = #{branchId}</if>
</where>
</select>
<select id="selectTAmentPartyAffairsById" parameterType="Long" resultMap="TAmentPartyAffairsResult">
<include refid="selectTAmentPartyAffairsVo"/>
where id = #{id}
</select>
<insert id="insertTAmentPartyAffairs" parameterType="TAmentPartyAffairs" useGeneratedKeys="true" keyProperty="id">
insert into t_ament_party_affairs
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="type != null and type != ''">type,</if>
<if test="unit != null">unit,</if>
<if test="target != null">target,</if>
<if test="demand != null">demand,</if>
<if test="detailed != null">detailed,</if>
<if test="score != null">score,</if>
<if test="method != null">method,</if>
<if test="head != null">head,</if>
<if test="reviewed != null">reviewed,</if>
<if test="finishDate != null">finish_date,</if>
<if test="perId != null">per_id,</if>
<if test="deptId != null">dept_id,</if>
<if test="branchId != null">branch_id,</if>
<if test="createBy != null">create_by,</if>
<if test="createTime != null">create_time,</if>
<if test="updateBy != null">update_by,</if>
<if test="updateTime != null">update_time,</if>
<if test="remark != null">remark,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="type != null and type != ''">#{type},</if>
<if test="unit != null">#{unit},</if>
<if test="target != null">#{target},</if>
<if test="demand != null">#{demand},</if>
<if test="detailed != null">#{detailed},</if>
<if test="score != null">#{score},</if>
<if test="method != null">#{method},</if>
<if test="head != null">#{head},</if>
<if test="reviewed != null">#{reviewed},</if>
<if test="finishDate != null">#{finishDate},</if>
<if test="perId != null">#{perId},</if>
<if test="deptId != null">#{deptId},</if>
<if test="branchId != null">#{branchId},</if>
<if test="createBy != null">#{createBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
<if test="remark != null">#{remark},</if>
</trim>
</insert>
<update id="updateTAmentPartyAffairs" parameterType="TAmentPartyAffairs">
update t_ament_party_affairs
<trim prefix="SET" suffixOverrides=",">
<if test="type != null and type != ''">type = #{type},</if>
<if test="unit != null">unit = #{unit},</if>
<if test="target != null">target = #{target},</if>
<if test="demand != null">demand = #{demand},</if>
<if test="detailed != null">detailed = #{detailed},</if>
<if test="score != null">score = #{score},</if>
<if test="method != null">method = #{method},</if>
<if test="head != null">head = #{head},</if>
<if test="reviewed != null">reviewed = #{reviewed},</if>
<if test="finishDate != null">finish_date = #{finishDate},</if>
<if test="perId != null">per_id = #{perId},</if>
<if test="deptId != null">dept_id = #{deptId},</if>
<if test="branchId != null">branch_id = #{branchId},</if>
<if test="createBy != null">create_by = #{createBy},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
<if test="remark != null">remark = #{remark},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteTAmentPartyAffairsById" parameterType="Long">
delete from t_ament_party_affairs where id = #{id}
</delete>
<delete id="deleteTAmentPartyAffairsByIds" parameterType="String">
delete from t_ament_party_affairs where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

View File

@ -0,0 +1,153 @@
<?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.cyx.web.base.mapper.TAmentPersonnelMapper">
<resultMap type="TAmentPersonnel" id="TAmentPersonnelResult">
<result property="id" column="id" />
<result property="unit" column="unit" />
<result property="name" column="name" />
<result property="sex" column="sex" />
<result property="nation" column="nation" />
<result property="deptId" column="dept_id" />
<result property="mphone" column="mphone" />
<result property="email" column="email" />
<result property="nativePlace" column="native_place" />
<result property="post" column="post" />
<result property="duties" column="duties" />
<result property="title" column="title" />
<result property="workDate" column="work_date" />
<result property="branchId" column="branch_id" />
<result property="partyDate" column="party_date" />
<result property="partyDuties" column="party_duties" />
<result property="remark" column="remark" />
<result property="delFlag" column="del_flag" />
<result property="createBy" column="create_by" />
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
</resultMap>
<sql id="selectTAmentPersonnelVo">
select id, unit, name, sex, nation, dept_id, mphone, email, native_place, post, duties, title, work_date, branch_id, party_date, party_duties, remark, del_flag, create_by, create_time, update_by, update_time from t_ament_personnel
</sql>
<select id="selectTAmentPersonnelList" parameterType="TAmentPersonnel" resultMap="TAmentPersonnelResult">
<include refid="selectTAmentPersonnelVo"/>
<where>
<if test="unit != null and unit != ''"> and unit = #{unit}</if>
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
<if test="sex != null and sex != ''"> and sex = #{sex}</if>
<if test="nation != null and nation != ''"> and nation = #{nation}</if>
<if test="deptId != null "> and dept_id = #{deptId}</if>
<if test="mphone != null and mphone != ''"> and mphone = #{mphone}</if>
<if test="email != null and email != ''"> and email = #{email}</if>
<if test="nativePlace != null and nativePlace != ''"> and native_place = #{nativePlace}</if>
<if test="post != null and post != ''"> and post = #{post}</if>
<if test="duties != null and duties != ''"> and duties = #{duties}</if>
<if test="title != null and title != ''"> and title = #{title}</if>
<if test="workDate != null "> and work_date = #{workDate}</if>
<if test="branchId != null "> and branch_id = #{branchId}</if>
<if test="partyDate != null "> and party_date = #{partyDate}</if>
<if test="partyDuties != null and partyDuties != ''"> and party_duties = #{partyDuties}</if>
</where>
</select>
<select id="selectTAmentPersonnelById" parameterType="Long" resultMap="TAmentPersonnelResult">
<include refid="selectTAmentPersonnelVo"/>
where id = #{id}
</select>
<insert id="insertTAmentPersonnel" parameterType="TAmentPersonnel">
insert into t_ament_personnel
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">id,</if>
<if test="unit != null">unit,</if>
<if test="name != null">name,</if>
<if test="sex != null">sex,</if>
<if test="nation != null">nation,</if>
<if test="deptId != null">dept_id,</if>
<if test="mphone != null">mphone,</if>
<if test="email != null">email,</if>
<if test="nativePlace != null">native_place,</if>
<if test="post != null">post,</if>
<if test="duties != null">duties,</if>
<if test="title != null">title,</if>
<if test="workDate != null">work_date,</if>
<if test="branchId != null">branch_id,</if>
<if test="partyDate != null">party_date,</if>
<if test="partyDuties != null">party_duties,</if>
<if test="remark != null">remark,</if>
<if test="delFlag != null">del_flag,</if>
<if test="createBy != null">create_by,</if>
<if test="createTime != null">create_time,</if>
<if test="updateBy != null">update_by,</if>
<if test="updateTime != null">update_time,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">#{id},</if>
<if test="unit != null">#{unit},</if>
<if test="name != null">#{name},</if>
<if test="sex != null">#{sex},</if>
<if test="nation != null">#{nation},</if>
<if test="deptId != null">#{deptId},</if>
<if test="mphone != null">#{mphone},</if>
<if test="email != null">#{email},</if>
<if test="nativePlace != null">#{nativePlace},</if>
<if test="post != null">#{post},</if>
<if test="duties != null">#{duties},</if>
<if test="title != null">#{title},</if>
<if test="workDate != null">#{workDate},</if>
<if test="branchId != null">#{branchId},</if>
<if test="partyDate != null">#{partyDate},</if>
<if test="partyDuties != null">#{partyDuties},</if>
<if test="remark != null">#{remark},</if>
<if test="delFlag != null">#{delFlag},</if>
<if test="createBy != null">#{createBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateBy != null">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
</trim>
</insert>
<update id="updateTAmentPersonnel" parameterType="TAmentPersonnel">
update t_ament_personnel
<trim prefix="SET" suffixOverrides=",">
<if test="unit != null">unit = #{unit},</if>
<if test="name != null">name = #{name},</if>
<if test="sex != null">sex = #{sex},</if>
<if test="nation != null">nation = #{nation},</if>
<if test="deptId != null">dept_id = #{deptId},</if>
<if test="mphone != null">mphone = #{mphone},</if>
<if test="email != null">email = #{email},</if>
<if test="nativePlace != null">native_place = #{nativePlace},</if>
<if test="post != null">post = #{post},</if>
<if test="duties != null">duties = #{duties},</if>
<if test="title != null">title = #{title},</if>
<if test="workDate != null">work_date = #{workDate},</if>
<if test="branchId != null">branch_id = #{branchId},</if>
<if test="partyDate != null">party_date = #{partyDate},</if>
<if test="partyDuties != null">party_duties = #{partyDuties},</if>
<if test="remark != null">remark = #{remark},</if>
<if test="delFlag != null">del_flag = #{delFlag},</if>
<if test="createBy != null">create_by = #{createBy},</if>
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteTAmentPersonnelById" parameterType="Long">
delete from t_ament_personnel where id = #{id}
</delete>
<delete id="deleteTAmentPersonnelByIds" parameterType="String">
delete from t_ament_personnel where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>