Merge branch 'Lvtianfang' of http://39.101.188.84:8000/suzhou-jichuang-lanhai/tcZz-java
# Conflicts: # ruoyi-admin/src/main/java/com/ruoyi/tcZz/domain/TcYqxxltj.java # ruoyi-admin/src/main/java/com/ruoyi/tcZz/service/ITcCyService.javaduhanyu
commit
2806228565
@ -0,0 +1,104 @@
|
|||||||
|
package com.ruoyi.tcZz.controller;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import javax.servlet.http.HttpServletResponse;
|
||||||
|
import org.springframework.security.access.prepost.PreAuthorize;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PutMapping;
|
||||||
|
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PathVariable;
|
||||||
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
import com.ruoyi.common.annotation.Log;
|
||||||
|
import com.ruoyi.common.core.controller.BaseController;
|
||||||
|
import com.ruoyi.common.core.domain.AjaxResult;
|
||||||
|
import com.ruoyi.common.enums.BusinessType;
|
||||||
|
import com.ruoyi.tcZz.domain.TcGzdt;
|
||||||
|
import com.ruoyi.tcZz.service.ITcGzdtService;
|
||||||
|
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||||
|
import com.ruoyi.common.core.page.TableDataInfo;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 工作动态Controller
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2023-10-13
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/tcZz/netManage/gzdt")
|
||||||
|
public class TcGzdtController extends BaseController
|
||||||
|
{
|
||||||
|
@Autowired
|
||||||
|
private ITcGzdtService tcGzdtService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询工作动态列表
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('tcZz/netManage:gzdt:list')")
|
||||||
|
@GetMapping("/list")
|
||||||
|
public TableDataInfo list(TcGzdt tcGzdt)
|
||||||
|
{
|
||||||
|
startPage();
|
||||||
|
List<TcGzdt> list = tcGzdtService.selectTcGzdtList(tcGzdt);
|
||||||
|
return getDataTable(list);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 导出工作动态列表
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('tcZz/netManage:gzdt:export')")
|
||||||
|
@Log(title = "工作动态", businessType = BusinessType.EXPORT)
|
||||||
|
@PostMapping("/export")
|
||||||
|
public void export(HttpServletResponse response, TcGzdt tcGzdt)
|
||||||
|
{
|
||||||
|
List<TcGzdt> list = tcGzdtService.selectTcGzdtList(tcGzdt);
|
||||||
|
ExcelUtil<TcGzdt> util = new ExcelUtil<TcGzdt>(TcGzdt.class);
|
||||||
|
util.exportExcel(response, list, "工作动态数据");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取工作动态详细信息
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('tcZz/netManage:gzdt:query')")
|
||||||
|
@GetMapping(value = "/{id}")
|
||||||
|
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||||
|
{
|
||||||
|
return success(tcGzdtService.selectTcGzdtById(id));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增工作动态
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('tcZz/netManage:gzdt:add')")
|
||||||
|
@Log(title = "工作动态", businessType = BusinessType.INSERT)
|
||||||
|
@PostMapping
|
||||||
|
public AjaxResult add(@RequestBody TcGzdt tcGzdt)
|
||||||
|
{
|
||||||
|
return toAjax(tcGzdtService.insertTcGzdt(tcGzdt));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改工作动态
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('tcZz/netManage:gzdt:edit')")
|
||||||
|
@Log(title = "工作动态", businessType = BusinessType.UPDATE)
|
||||||
|
@PutMapping
|
||||||
|
public AjaxResult edit(@RequestBody TcGzdt tcGzdt)
|
||||||
|
{
|
||||||
|
return toAjax(tcGzdtService.updateTcGzdt(tcGzdt));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除工作动态
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('tcZz/netManage:gzdt:remove')")
|
||||||
|
@Log(title = "工作动态", businessType = BusinessType.DELETE)
|
||||||
|
@DeleteMapping("/{ids}")
|
||||||
|
public AjaxResult remove(@PathVariable Long[] ids)
|
||||||
|
{
|
||||||
|
return toAjax(tcGzdtService.deleteTcGzdtByIds(ids));
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,104 @@
|
|||||||
|
package com.ruoyi.tcZz.controller;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import javax.servlet.http.HttpServletResponse;
|
||||||
|
import org.springframework.security.access.prepost.PreAuthorize;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PutMapping;
|
||||||
|
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||||
|
import org.springframework.web.bind.annotation.PathVariable;
|
||||||
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
import com.ruoyi.common.annotation.Log;
|
||||||
|
import com.ruoyi.common.core.controller.BaseController;
|
||||||
|
import com.ruoyi.common.core.domain.AjaxResult;
|
||||||
|
import com.ruoyi.common.enums.BusinessType;
|
||||||
|
import com.ruoyi.tcZz.domain.TcYtlc;
|
||||||
|
import com.ruoyi.tcZz.service.ITcYtlcService;
|
||||||
|
import com.ruoyi.common.utils.poi.ExcelUtil;
|
||||||
|
import com.ruoyi.common.core.page.TableDataInfo;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 约谈流程Controller
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2023-10-13
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/tcZz/netManage/ytlc")
|
||||||
|
public class TcYtlcController extends BaseController
|
||||||
|
{
|
||||||
|
@Autowired
|
||||||
|
private ITcYtlcService tcYtlcService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询约谈流程列表
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('tcZz/netManage:ytlc:list')")
|
||||||
|
@GetMapping("/list")
|
||||||
|
public TableDataInfo list(TcYtlc tcYtlc)
|
||||||
|
{
|
||||||
|
startPage();
|
||||||
|
List<TcYtlc> list = tcYtlcService.selectTcYtlcList(tcYtlc);
|
||||||
|
return getDataTable(list);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 导出约谈流程列表
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('tcZz/netManage:ytlc:export')")
|
||||||
|
@Log(title = "约谈流程", businessType = BusinessType.EXPORT)
|
||||||
|
@PostMapping("/export")
|
||||||
|
public void export(HttpServletResponse response, TcYtlc tcYtlc)
|
||||||
|
{
|
||||||
|
List<TcYtlc> list = tcYtlcService.selectTcYtlcList(tcYtlc);
|
||||||
|
ExcelUtil<TcYtlc> util = new ExcelUtil<TcYtlc>(TcYtlc.class);
|
||||||
|
util.exportExcel(response, list, "约谈流程数据");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取约谈流程详细信息
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('tcZz/netManage:ytlc:query')")
|
||||||
|
@GetMapping(value = "/{id}")
|
||||||
|
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||||
|
{
|
||||||
|
return success(tcYtlcService.selectTcYtlcById(id));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增约谈流程
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('tcZz/netManage:ytlc:add')")
|
||||||
|
@Log(title = "约谈流程", businessType = BusinessType.INSERT)
|
||||||
|
@PostMapping
|
||||||
|
public AjaxResult add(@RequestBody TcYtlc tcYtlc)
|
||||||
|
{
|
||||||
|
return toAjax(tcYtlcService.insertTcYtlc(tcYtlc));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改约谈流程
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('tcZz/netManage:ytlc:edit')")
|
||||||
|
@Log(title = "约谈流程", businessType = BusinessType.UPDATE)
|
||||||
|
@PutMapping
|
||||||
|
public AjaxResult edit(@RequestBody TcYtlc tcYtlc)
|
||||||
|
{
|
||||||
|
return toAjax(tcYtlcService.updateTcYtlc(tcYtlc));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除约谈流程
|
||||||
|
*/
|
||||||
|
@PreAuthorize("@ss.hasPermi('tcZz/netManage:ytlc:remove')")
|
||||||
|
@Log(title = "约谈流程", businessType = BusinessType.DELETE)
|
||||||
|
@DeleteMapping("/{ids}")
|
||||||
|
public AjaxResult remove(@PathVariable Long[] ids)
|
||||||
|
{
|
||||||
|
return toAjax(tcYtlcService.deleteTcYtlcByIds(ids));
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,51 @@
|
|||||||
|
package com.ruoyi.tcZz.domain;
|
||||||
|
|
||||||
|
import io.swagger.annotations.ApiModel;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Data;
|
||||||
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||||
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||||
|
import com.ruoyi.common.annotation.Excel;
|
||||||
|
import com.ruoyi.common.core.domain.BaseEntity;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 工作动态对象 tc_gzdt
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2023-10-13
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@ApiModel("工作动态对象")
|
||||||
|
public class TcGzdt extends BaseEntity
|
||||||
|
{
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/** $column.columnComment */
|
||||||
|
@ApiModelProperty(value = "id")
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
/** 区域 */
|
||||||
|
@Excel(name = "区域")
|
||||||
|
private String areaId;
|
||||||
|
|
||||||
|
/** 启用/禁用 */
|
||||||
|
@Excel(name = "区域id",readConverterExp = "1=太仓市,2=城厢镇,3=沙溪镇,4=浏河镇,5=浮桥镇,6=璜泾镇,7=双凤镇,8=娄东街道,9=陆渡街道",combo = "1=太仓市,2=城厢镇,3=沙溪镇,4=浏河镇,5=浮桥镇,6=璜泾镇,7=双凤镇,8=娄东街道,9=陆渡街道")
|
||||||
|
@ApiModelProperty(value = "区域id,1=太仓市,2=城厢镇,3=沙溪镇,4=浏河镇,5=浮桥镇,6=璜泾镇,7=双凤镇,8=娄东街道,9=陆渡街道")
|
||||||
|
private Long isStatus;
|
||||||
|
|
||||||
|
/** 标题 */
|
||||||
|
@Excel(name = "标题")
|
||||||
|
private String title;
|
||||||
|
|
||||||
|
/** 类型 */
|
||||||
|
@Excel(name = "类型")
|
||||||
|
private String type;
|
||||||
|
|
||||||
|
/** 文件名称 */
|
||||||
|
@Excel(name = "文件名称")
|
||||||
|
private String fileName;
|
||||||
|
|
||||||
|
/** 文件路径(完整路径) */
|
||||||
|
@Excel(name = "文件路径(完整路径)")
|
||||||
|
private String fileUrl;
|
||||||
|
}
|
@ -0,0 +1,38 @@
|
|||||||
|
package com.ruoyi.tcZz.domain;
|
||||||
|
|
||||||
|
import io.swagger.annotations.ApiModel;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Data;
|
||||||
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||||
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||||
|
import com.ruoyi.common.annotation.Excel;
|
||||||
|
import com.ruoyi.common.core.domain.BaseEntity;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 约谈流程对象 tc_ytlc
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2023-10-13
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@ApiModel("约谈流程对象")
|
||||||
|
public class TcYtlc extends BaseEntity
|
||||||
|
{
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/** $column.columnComment */
|
||||||
|
@ApiModelProperty(value = "id")
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
/** 名称 */
|
||||||
|
@Excel(name = "名称")
|
||||||
|
private String name;
|
||||||
|
|
||||||
|
/** 文件名称 */
|
||||||
|
@Excel(name = "文件名称")
|
||||||
|
private String fileName;
|
||||||
|
|
||||||
|
/** 文件路径(完整路径) */
|
||||||
|
@Excel(name = "文件路径(完整路径)")
|
||||||
|
private String fileUrl;
|
||||||
|
}
|
@ -0,0 +1,61 @@
|
|||||||
|
package com.ruoyi.tcZz.mapper;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import com.ruoyi.tcZz.domain.TcGzdt;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 工作动态Mapper接口
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2023-10-13
|
||||||
|
*/
|
||||||
|
public interface TcGzdtMapper
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* 查询工作动态
|
||||||
|
*
|
||||||
|
* @param id 工作动态主键
|
||||||
|
* @return 工作动态
|
||||||
|
*/
|
||||||
|
public TcGzdt selectTcGzdtById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询工作动态列表
|
||||||
|
*
|
||||||
|
* @param tcGzdt 工作动态
|
||||||
|
* @return 工作动态集合
|
||||||
|
*/
|
||||||
|
public List<TcGzdt> selectTcGzdtList(TcGzdt tcGzdt);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增工作动态
|
||||||
|
*
|
||||||
|
* @param tcGzdt 工作动态
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int insertTcGzdt(TcGzdt tcGzdt);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改工作动态
|
||||||
|
*
|
||||||
|
* @param tcGzdt 工作动态
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int updateTcGzdt(TcGzdt tcGzdt);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除工作动态
|
||||||
|
*
|
||||||
|
* @param id 工作动态主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteTcGzdtById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除工作动态
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的数据主键集合
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteTcGzdtByIds(Long[] ids);
|
||||||
|
}
|
@ -0,0 +1,61 @@
|
|||||||
|
package com.ruoyi.tcZz.mapper;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import com.ruoyi.tcZz.domain.TcYtlc;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 约谈流程Mapper接口
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2023-10-13
|
||||||
|
*/
|
||||||
|
public interface TcYtlcMapper
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* 查询约谈流程
|
||||||
|
*
|
||||||
|
* @param id 约谈流程主键
|
||||||
|
* @return 约谈流程
|
||||||
|
*/
|
||||||
|
public TcYtlc selectTcYtlcById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询约谈流程列表
|
||||||
|
*
|
||||||
|
* @param tcYtlc 约谈流程
|
||||||
|
* @return 约谈流程集合
|
||||||
|
*/
|
||||||
|
public List<TcYtlc> selectTcYtlcList(TcYtlc tcYtlc);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增约谈流程
|
||||||
|
*
|
||||||
|
* @param tcYtlc 约谈流程
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int insertTcYtlc(TcYtlc tcYtlc);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改约谈流程
|
||||||
|
*
|
||||||
|
* @param tcYtlc 约谈流程
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int updateTcYtlc(TcYtlc tcYtlc);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除约谈流程
|
||||||
|
*
|
||||||
|
* @param id 约谈流程主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteTcYtlcById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除约谈流程
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的数据主键集合
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteTcYtlcByIds(Long[] ids);
|
||||||
|
}
|
@ -0,0 +1,61 @@
|
|||||||
|
package com.ruoyi.tcZz.service;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import com.ruoyi.tcZz.domain.TcGzdt;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 工作动态Service接口
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2023-10-13
|
||||||
|
*/
|
||||||
|
public interface ITcGzdtService
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* 查询工作动态
|
||||||
|
*
|
||||||
|
* @param id 工作动态主键
|
||||||
|
* @return 工作动态
|
||||||
|
*/
|
||||||
|
public TcGzdt selectTcGzdtById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询工作动态列表
|
||||||
|
*
|
||||||
|
* @param tcGzdt 工作动态
|
||||||
|
* @return 工作动态集合
|
||||||
|
*/
|
||||||
|
public List<TcGzdt> selectTcGzdtList(TcGzdt tcGzdt);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增工作动态
|
||||||
|
*
|
||||||
|
* @param tcGzdt 工作动态
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int insertTcGzdt(TcGzdt tcGzdt);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改工作动态
|
||||||
|
*
|
||||||
|
* @param tcGzdt 工作动态
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int updateTcGzdt(TcGzdt tcGzdt);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除工作动态
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的工作动态主键集合
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteTcGzdtByIds(Long[] ids);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除工作动态信息
|
||||||
|
*
|
||||||
|
* @param id 工作动态主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteTcGzdtById(Long id);
|
||||||
|
}
|
@ -0,0 +1,61 @@
|
|||||||
|
package com.ruoyi.tcZz.service;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import com.ruoyi.tcZz.domain.TcYtlc;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 约谈流程Service接口
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2023-10-13
|
||||||
|
*/
|
||||||
|
public interface ITcYtlcService
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* 查询约谈流程
|
||||||
|
*
|
||||||
|
* @param id 约谈流程主键
|
||||||
|
* @return 约谈流程
|
||||||
|
*/
|
||||||
|
public TcYtlc selectTcYtlcById(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询约谈流程列表
|
||||||
|
*
|
||||||
|
* @param tcYtlc 约谈流程
|
||||||
|
* @return 约谈流程集合
|
||||||
|
*/
|
||||||
|
public List<TcYtlc> selectTcYtlcList(TcYtlc tcYtlc);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增约谈流程
|
||||||
|
*
|
||||||
|
* @param tcYtlc 约谈流程
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int insertTcYtlc(TcYtlc tcYtlc);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改约谈流程
|
||||||
|
*
|
||||||
|
* @param tcYtlc 约谈流程
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int updateTcYtlc(TcYtlc tcYtlc);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除约谈流程
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的约谈流程主键集合
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteTcYtlcByIds(Long[] ids);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除约谈流程信息
|
||||||
|
*
|
||||||
|
* @param id 约谈流程主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
public int deleteTcYtlcById(Long id);
|
||||||
|
}
|
@ -0,0 +1,96 @@
|
|||||||
|
package com.ruoyi.tcZz.service.impl;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import com.ruoyi.common.utils.DateUtils;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import com.ruoyi.tcZz.mapper.TcGzdtMapper;
|
||||||
|
import com.ruoyi.tcZz.domain.TcGzdt;
|
||||||
|
import com.ruoyi.tcZz.service.ITcGzdtService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 工作动态Service业务层处理
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2023-10-13
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class TcGzdtServiceImpl implements ITcGzdtService
|
||||||
|
{
|
||||||
|
@Autowired
|
||||||
|
private TcGzdtMapper tcGzdtMapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询工作动态
|
||||||
|
*
|
||||||
|
* @param id 工作动态主键
|
||||||
|
* @return 工作动态
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public TcGzdt selectTcGzdtById(Long id)
|
||||||
|
{
|
||||||
|
return tcGzdtMapper.selectTcGzdtById(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询工作动态列表
|
||||||
|
*
|
||||||
|
* @param tcGzdt 工作动态
|
||||||
|
* @return 工作动态
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public List<TcGzdt> selectTcGzdtList(TcGzdt tcGzdt)
|
||||||
|
{
|
||||||
|
return tcGzdtMapper.selectTcGzdtList(tcGzdt);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增工作动态
|
||||||
|
*
|
||||||
|
* @param tcGzdt 工作动态
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int insertTcGzdt(TcGzdt tcGzdt)
|
||||||
|
{
|
||||||
|
tcGzdt.setCreateTime(DateUtils.getNowDate());
|
||||||
|
return tcGzdtMapper.insertTcGzdt(tcGzdt);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改工作动态
|
||||||
|
*
|
||||||
|
* @param tcGzdt 工作动态
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int updateTcGzdt(TcGzdt tcGzdt)
|
||||||
|
{
|
||||||
|
tcGzdt.setUpdateTime(DateUtils.getNowDate());
|
||||||
|
return tcGzdtMapper.updateTcGzdt(tcGzdt);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除工作动态
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的工作动态主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteTcGzdtByIds(Long[] ids)
|
||||||
|
{
|
||||||
|
return tcGzdtMapper.deleteTcGzdtByIds(ids);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除工作动态信息
|
||||||
|
*
|
||||||
|
* @param id 工作动态主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteTcGzdtById(Long id)
|
||||||
|
{
|
||||||
|
return tcGzdtMapper.deleteTcGzdtById(id);
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,96 @@
|
|||||||
|
package com.ruoyi.tcZz.service.impl;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import com.ruoyi.common.utils.DateUtils;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import com.ruoyi.tcZz.mapper.TcYtlcMapper;
|
||||||
|
import com.ruoyi.tcZz.domain.TcYtlc;
|
||||||
|
import com.ruoyi.tcZz.service.ITcYtlcService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 约谈流程Service业务层处理
|
||||||
|
*
|
||||||
|
* @author ruoyi
|
||||||
|
* @date 2023-10-13
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class TcYtlcServiceImpl implements ITcYtlcService
|
||||||
|
{
|
||||||
|
@Autowired
|
||||||
|
private TcYtlcMapper tcYtlcMapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询约谈流程
|
||||||
|
*
|
||||||
|
* @param id 约谈流程主键
|
||||||
|
* @return 约谈流程
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public TcYtlc selectTcYtlcById(Long id)
|
||||||
|
{
|
||||||
|
return tcYtlcMapper.selectTcYtlcById(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询约谈流程列表
|
||||||
|
*
|
||||||
|
* @param tcYtlc 约谈流程
|
||||||
|
* @return 约谈流程
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public List<TcYtlc> selectTcYtlcList(TcYtlc tcYtlc)
|
||||||
|
{
|
||||||
|
return tcYtlcMapper.selectTcYtlcList(tcYtlc);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增约谈流程
|
||||||
|
*
|
||||||
|
* @param tcYtlc 约谈流程
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int insertTcYtlc(TcYtlc tcYtlc)
|
||||||
|
{
|
||||||
|
tcYtlc.setCreateTime(DateUtils.getNowDate());
|
||||||
|
return tcYtlcMapper.insertTcYtlc(tcYtlc);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改约谈流程
|
||||||
|
*
|
||||||
|
* @param tcYtlc 约谈流程
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int updateTcYtlc(TcYtlc tcYtlc)
|
||||||
|
{
|
||||||
|
tcYtlc.setUpdateTime(DateUtils.getNowDate());
|
||||||
|
return tcYtlcMapper.updateTcYtlc(tcYtlc);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批量删除约谈流程
|
||||||
|
*
|
||||||
|
* @param ids 需要删除的约谈流程主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteTcYtlcByIds(Long[] ids)
|
||||||
|
{
|
||||||
|
return tcYtlcMapper.deleteTcYtlcByIds(ids);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除约谈流程信息
|
||||||
|
*
|
||||||
|
* @param id 约谈流程主键
|
||||||
|
* @return 结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteTcYtlcById(Long id)
|
||||||
|
{
|
||||||
|
return tcYtlcMapper.deleteTcYtlcById(id);
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,107 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
|
<!DOCTYPE mapper
|
||||||
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="com.ruoyi.tcZz.mapper.TcGzdtMapper">
|
||||||
|
|
||||||
|
<resultMap type="TcGzdt" id="TcGzdtResult">
|
||||||
|
<result property="id" column="id" />
|
||||||
|
<result property="areaId" column="area_id" />
|
||||||
|
<result property="isStatus" column="isStatus" />
|
||||||
|
<result property="title" column="title" />
|
||||||
|
<result property="type" column="type" />
|
||||||
|
<result property="fileName" column="file_name" />
|
||||||
|
<result property="fileUrl" column="file_url" />
|
||||||
|
<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="selectTcGzdtVo">
|
||||||
|
select id, area_id, isStatus, title, type, file_name, file_url, create_by, create_time, update_by, update_time, remark from tc_gzdt
|
||||||
|
</sql>
|
||||||
|
|
||||||
|
<select id="selectTcGzdtList" parameterType="TcGzdt" resultMap="TcGzdtResult">
|
||||||
|
<include refid="selectTcGzdtVo"/>
|
||||||
|
<where>
|
||||||
|
<if test="id != null "> and id = #{id}</if>
|
||||||
|
<if test="areaId != null and areaId != ''"> and area_id = #{areaId}</if>
|
||||||
|
<if test="isStatus != null "> and isStatus = #{isStatus}</if>
|
||||||
|
<if test="title != null and title != ''"> and title = #{title}</if>
|
||||||
|
<if test="type != null and type != ''"> and type = #{type}</if>
|
||||||
|
<if test="fileName != null and fileName != ''"> and file_name like concat('%', #{fileName}, '%')</if>
|
||||||
|
<if test="fileUrl != null and fileUrl != ''"> and file_url = #{fileUrl}</if>
|
||||||
|
<if test="createBy != null and createBy != ''"> and create_by = #{createBy}</if>
|
||||||
|
<if test="params.beginCreateTime != null and params.beginCreateTime != '' and params.endCreateTime != null and params.endCreateTime != ''"> and create_time between #{params.beginCreateTime} and #{params.endCreateTime}</if>
|
||||||
|
<if test="updateBy != null and updateBy != ''"> and update_by = #{updateBy}</if>
|
||||||
|
<if test="params.beginUpdateTime != null and params.beginUpdateTime != '' and params.endUpdateTime != null and params.endUpdateTime != ''"> and update_time between #{params.beginUpdateTime} and #{params.endUpdateTime}</if>
|
||||||
|
<if test="remark != null and remark != ''"> and remark = #{remark}</if>
|
||||||
|
</where>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="selectTcGzdtById" parameterType="Long" resultMap="TcGzdtResult">
|
||||||
|
<include refid="selectTcGzdtVo"/>
|
||||||
|
where id = #{id}
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<insert id="insertTcGzdt" parameterType="TcGzdt" useGeneratedKeys="true" keyProperty="id">
|
||||||
|
insert into tc_gzdt
|
||||||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="areaId != null">area_id,</if>
|
||||||
|
<if test="isStatus != null">isStatus,</if>
|
||||||
|
<if test="title != null">title,</if>
|
||||||
|
<if test="type != null">type,</if>
|
||||||
|
<if test="fileName != null">file_name,</if>
|
||||||
|
<if test="fileUrl != null">file_url,</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="areaId != null">#{areaId},</if>
|
||||||
|
<if test="isStatus != null">#{isStatus},</if>
|
||||||
|
<if test="title != null">#{title},</if>
|
||||||
|
<if test="type != null">#{type},</if>
|
||||||
|
<if test="fileName != null">#{fileName},</if>
|
||||||
|
<if test="fileUrl != null">#{fileUrl},</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="updateTcGzdt" parameterType="TcGzdt">
|
||||||
|
update tc_gzdt
|
||||||
|
<trim prefix="SET" suffixOverrides=",">
|
||||||
|
<if test="areaId != null">area_id = #{areaId},</if>
|
||||||
|
<if test="isStatus != null">isStatus = #{isStatus},</if>
|
||||||
|
<if test="title != null">title = #{title},</if>
|
||||||
|
<if test="type != null">type = #{type},</if>
|
||||||
|
<if test="fileName != null">file_name = #{fileName},</if>
|
||||||
|
<if test="fileUrl != null">file_url = #{fileUrl},</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="deleteTcGzdtById" parameterType="Long">
|
||||||
|
delete from tc_gzdt where id = #{id}
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
<delete id="deleteTcGzdtByIds" parameterType="String">
|
||||||
|
delete from tc_gzdt where id in
|
||||||
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||||
|
#{id}
|
||||||
|
</foreach>
|
||||||
|
</delete>
|
||||||
|
</mapper>
|
@ -0,0 +1,92 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
|
<!DOCTYPE mapper
|
||||||
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="com.ruoyi.tcZz.mapper.TcYtlcMapper">
|
||||||
|
|
||||||
|
<resultMap type="TcYtlc" id="TcYtlcResult">
|
||||||
|
<result property="id" column="id" />
|
||||||
|
<result property="name" column="name" />
|
||||||
|
<result property="fileName" column="file_name" />
|
||||||
|
<result property="fileUrl" column="file_url" />
|
||||||
|
<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="selectTcYtlcVo">
|
||||||
|
select id, name, file_name, file_url, create_by, create_time, update_by, update_time, remark from tc_ytlc
|
||||||
|
</sql>
|
||||||
|
|
||||||
|
<select id="selectTcYtlcList" parameterType="TcYtlc" resultMap="TcYtlcResult">
|
||||||
|
<include refid="selectTcYtlcVo"/>
|
||||||
|
<where>
|
||||||
|
<if test="id != null "> and id = #{id}</if>
|
||||||
|
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
|
||||||
|
<if test="fileName != null and fileName != ''"> and file_name like concat('%', #{fileName}, '%')</if>
|
||||||
|
<if test="fileUrl != null and fileUrl != ''"> and file_url = #{fileUrl}</if>
|
||||||
|
<if test="createBy != null and createBy != ''"> and create_by = #{createBy}</if>
|
||||||
|
<if test="params.beginCreateTime != null and params.beginCreateTime != '' and params.endCreateTime != null and params.endCreateTime != ''"> and create_time between #{params.beginCreateTime} and #{params.endCreateTime}</if>
|
||||||
|
<if test="updateBy != null and updateBy != ''"> and update_by = #{updateBy}</if>
|
||||||
|
<if test="params.beginUpdateTime != null and params.beginUpdateTime != '' and params.endUpdateTime != null and params.endUpdateTime != ''"> and update_time between #{params.beginUpdateTime} and #{params.endUpdateTime}</if>
|
||||||
|
<if test="remark != null and remark != ''"> and remark = #{remark}</if>
|
||||||
|
</where>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="selectTcYtlcById" parameterType="Long" resultMap="TcYtlcResult">
|
||||||
|
<include refid="selectTcYtlcVo"/>
|
||||||
|
where id = #{id}
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<insert id="insertTcYtlc" parameterType="TcYtlc" useGeneratedKeys="true" keyProperty="id">
|
||||||
|
insert into tc_ytlc
|
||||||
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
|
<if test="name != null">name,</if>
|
||||||
|
<if test="fileName != null">file_name,</if>
|
||||||
|
<if test="fileUrl != null">file_url,</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="name != null">#{name},</if>
|
||||||
|
<if test="fileName != null">#{fileName},</if>
|
||||||
|
<if test="fileUrl != null">#{fileUrl},</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="updateTcYtlc" parameterType="TcYtlc">
|
||||||
|
update tc_ytlc
|
||||||
|
<trim prefix="SET" suffixOverrides=",">
|
||||||
|
<if test="name != null">name = #{name},</if>
|
||||||
|
<if test="fileName != null">file_name = #{fileName},</if>
|
||||||
|
<if test="fileUrl != null">file_url = #{fileUrl},</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="deleteTcYtlcById" parameterType="Long">
|
||||||
|
delete from tc_ytlc where id = #{id}
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
<delete id="deleteTcYtlcByIds" parameterType="String">
|
||||||
|
delete from tc_ytlc where id in
|
||||||
|
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||||
|
#{id}
|
||||||
|
</foreach>
|
||||||
|
</delete>
|
||||||
|
</mapper>
|
Loading…
Reference in new issue