Merge branch 'zhangqinlin'
This commit is contained in:
+206
@@ -0,0 +1,206 @@
|
||||
package com.jero.payCaseCommittee.controller;
|
||||
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.time.LocalTime;
|
||||
import java.util.*;
|
||||
import java.util.stream.Collectors;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import javax.validation.Valid;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.jero.common.api.vo.Result;
|
||||
import com.jero.common.aspect.annotation.AutoLog;
|
||||
import com.jero.common.system.base.controller.JeroController;
|
||||
import com.jero.common.system.query.QueryGenerator;
|
||||
import com.jero.common.system.vo.LoginUser;
|
||||
import com.jero.payCaseCommittee.entity.DTO.PayCaseCommitteeDTO;
|
||||
import com.jero.payCaseCommittee.entity.DTO.PayCaseCommitteeUpdateDTO;
|
||||
import com.jero.payCaseCommittee.entity.PayCaseCommittee;
|
||||
import com.jero.payCaseCommittee.service.IPayCaseCommitteeService;
|
||||
import com.jero.payCaseCommitteeSubitem.entity.PayCaseCommitteeSubitem;
|
||||
import com.jero.payCaseCommitteeSubitem.service.IPayCaseCommitteeSubitemService;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import net.sf.saxon.functions.DynamicContextAccessor;
|
||||
import org.apache.shiro.SecurityUtils;
|
||||
import org.springframework.beans.BeanUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.util.ObjectUtils;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
|
||||
/**
|
||||
* @Description: 分标委表
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2021-08-27
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Api(tags="分标委表")
|
||||
@RestController
|
||||
@RequestMapping("/payCaseCommittee/payCaseCommittee")
|
||||
@Slf4j
|
||||
public class PayCaseCommitteeController extends JeroController<PayCaseCommittee, IPayCaseCommitteeService> {
|
||||
@Autowired
|
||||
private IPayCaseCommitteeService payCaseCommitteeService;
|
||||
@Autowired
|
||||
private IPayCaseCommitteeSubitemService payCaseCommitteeSubitemService;
|
||||
|
||||
/**
|
||||
* 分页列表查询
|
||||
*
|
||||
* @param payCaseCommittee
|
||||
* @param pageNo
|
||||
* @param pageSize
|
||||
* @param req
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "分标委表-分页列表查询")
|
||||
@ApiOperation(value="分标委表-分页列表查询", notes="分标委表-分页列表查询")
|
||||
@GetMapping(value = "/list")
|
||||
public Result<?> queryPageList(PayCaseCommittee payCaseCommittee,
|
||||
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
|
||||
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
|
||||
HttpServletRequest req) {
|
||||
QueryWrapper<PayCaseCommittee> queryWrapper = QueryGenerator.initQueryWrapper(payCaseCommittee, req.getParameterMap());
|
||||
Page<PayCaseCommittee> page = new Page<PayCaseCommittee>(pageNo, pageSize);
|
||||
IPage<PayCaseCommittee> pageList = payCaseCommitteeService.page(page, queryWrapper);
|
||||
return Result.OK(pageList);
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加
|
||||
*
|
||||
* @param payCaseCommitteeDTO
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "分标委表-添加")
|
||||
@ApiOperation(value="分标委表-添加", notes="分标委表-添加")
|
||||
@PostMapping(value = "/add")
|
||||
public Result<?> add( @Valid @RequestBody PayCaseCommitteeDTO payCaseCommitteeDTO) {
|
||||
LambdaQueryWrapper<PayCaseCommittee> queryWrapper = new LambdaQueryWrapper<>();
|
||||
queryWrapper.eq(PayCaseCommittee::getName,payCaseCommitteeDTO.getName());
|
||||
PayCaseCommittee one = payCaseCommitteeService.getOne(queryWrapper);
|
||||
if (ObjectUtils.isEmpty(one)) {
|
||||
PayCaseCommittee payCaseCommittee = new PayCaseCommittee();
|
||||
BeanUtils.copyProperties(payCaseCommitteeDTO, payCaseCommittee);
|
||||
payCaseCommitteeService.save(payCaseCommittee);
|
||||
return Result.OK("添加成功!");
|
||||
}else {
|
||||
return Result.error("分标委表名已存在");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 编辑
|
||||
*
|
||||
* @param payCaseCommitteeUpdateDTO
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "分标委表-编辑")
|
||||
@ApiOperation(value="分标委表-编辑", notes="分标委表-编辑")
|
||||
@PostMapping(value = "/edit")
|
||||
public Result<?> edit( @Valid @RequestBody PayCaseCommitteeUpdateDTO payCaseCommitteeUpdateDTO) {
|
||||
LambdaQueryWrapper<PayCaseCommittee> queryWrapper = new LambdaQueryWrapper<>();
|
||||
queryWrapper.eq(PayCaseCommittee::getName,payCaseCommitteeUpdateDTO.getName());
|
||||
PayCaseCommittee one = payCaseCommitteeService.getOne(queryWrapper);
|
||||
if (ObjectUtils.isEmpty(one)) {
|
||||
PayCaseCommittee payCaseCommittee = new PayCaseCommittee();
|
||||
BeanUtils.copyProperties(payCaseCommitteeUpdateDTO,payCaseCommittee);
|
||||
payCaseCommitteeService.updateById(payCaseCommittee);
|
||||
return Result.OK("编辑成功!");
|
||||
}else {
|
||||
return Result.error("分标委表名已存在");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id删除
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "分标委表-通过id删除")
|
||||
@ApiOperation(value="分标委表-通过id删除", notes="分标委表-通过id删除")
|
||||
@GetMapping(value = "/delete")
|
||||
public Result<?> delete(@RequestParam(name="id",required=true) String id) {
|
||||
LambdaQueryWrapper<PayCaseCommitteeSubitem> queryWrapper = new LambdaQueryWrapper<>();
|
||||
queryWrapper.eq(PayCaseCommitteeSubitem::getCommitteeId,id);
|
||||
boolean b = payCaseCommitteeService.removeById(id);
|
||||
if (b){
|
||||
List<PayCaseCommitteeSubitem> list = payCaseCommitteeSubitemService.list(queryWrapper);
|
||||
List<String> collect = list.stream().map(payCaseCommitteeSubitem -> payCaseCommitteeSubitem.getId()).collect(Collectors.toList());
|
||||
payCaseCommitteeSubitemService.removeByIds(collect);
|
||||
}else {
|
||||
return Result.error("删除失败,参数错误");
|
||||
}
|
||||
return Result.OK("删除成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出excel
|
||||
*
|
||||
* @param request
|
||||
* @param payCaseCommittee
|
||||
*/
|
||||
@AutoLog(value = "分标委表-导出")
|
||||
@ApiOperation(value="分标委表-导出", notes="分标委表-导出")
|
||||
@RequestMapping(value = "/exportXls")
|
||||
public ModelAndView exportXls(HttpServletRequest request, PayCaseCommittee payCaseCommittee) {
|
||||
return super.exportXls(request, payCaseCommittee, PayCaseCommittee.class, "分标委表");
|
||||
}
|
||||
// /**
|
||||
// * 批量删除
|
||||
// *
|
||||
// * @param ids
|
||||
// * @return
|
||||
// */
|
||||
// @AutoLog(value = "分标委表-批量删除")
|
||||
// @ApiOperation(value="分标委表-批量删除", notes="分标委表-批量删除")
|
||||
// @GetMapping(value = "/deleteBatch")
|
||||
// public Result<?> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
|
||||
// this.payCaseCommitteeService.removeByIds(Arrays.asList(ids.split(",")));
|
||||
// return Result.OK("批量删除成功!");
|
||||
// }
|
||||
|
||||
// /**
|
||||
// * 通过id查询
|
||||
// *
|
||||
// * @param id
|
||||
// * @return
|
||||
// */
|
||||
// @AutoLog(value = "分标委表-通过id查询")
|
||||
// @ApiOperation(value="分标委表-通过id查询", notes="分标委表-通过id查询")
|
||||
// @GetMapping(value = "/queryById")
|
||||
// public Result<?> queryById(@RequestParam(name="id",required=true) String id) {
|
||||
// PayCaseCommittee payCaseCommittee = payCaseCommitteeService.getById(id);
|
||||
// if(payCaseCommittee==null) {
|
||||
// return Result.error("未找到对应数据");
|
||||
// }
|
||||
// return Result.OK(payCaseCommittee);
|
||||
// }
|
||||
|
||||
|
||||
//
|
||||
// /**
|
||||
// * 通过excel导入数据
|
||||
// *
|
||||
// * @param request
|
||||
// * @param response
|
||||
// * @return
|
||||
// */
|
||||
// @AutoLog(value = "分标委表-通过id删除")
|
||||
// @ApiOperation(value="分标委表-通过id删除", notes="分标委表-通过id删除")
|
||||
// @RequestMapping(value = "/importExcel", method = RequestMethod.POST)
|
||||
// public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
|
||||
// return super.importExcel(request, response, PayCaseCommittee.class);
|
||||
// }
|
||||
|
||||
}
|
||||
+25
@@ -0,0 +1,25 @@
|
||||
package com.jero.payCaseCommittee.entity.DTO;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import javax.validation.constraints.NotBlank;
|
||||
import javax.validation.constraints.Size;
|
||||
@Data
|
||||
@ApiModel(value="PayCaseCommitteeUpdateDTO对象", description="分标委更新对象")
|
||||
public class PayCaseCommitteeUpdateDTO {
|
||||
|
||||
@NotBlank(message = "主键不能为空")
|
||||
@ApiModelProperty(value = "主键")
|
||||
private java.lang.String id;
|
||||
|
||||
@NotBlank(message = "分标委名称不能为空")
|
||||
@Size(max = 20,message = "分标委名称长度不能超过20")
|
||||
@ApiModelProperty(value = "分标委名称")
|
||||
private java.lang.String name;
|
||||
|
||||
@Size(max = 100,message = "备注长度不得超过100")
|
||||
@ApiModelProperty(value = "备注")
|
||||
private java.lang.String remarks;
|
||||
}
|
||||
+58
@@ -0,0 +1,58 @@
|
||||
package com.jero.payCaseCommittee.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Data;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import org.jeecgframework.poi.excel.annotation.Excel;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
/**
|
||||
* @Description: pay_case_committee
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2021-08-27
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Data
|
||||
@TableName("pay_case_committee")
|
||||
@Accessors(chain = true)
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@ApiModel(value="pay_case_committee对象", description="pay_case_committee")
|
||||
public class PayCaseCommittee implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**主键*/
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
@ApiModelProperty(value = "主键")
|
||||
private java.lang.String id;
|
||||
/**分标委名称*/
|
||||
@Excel(name = "分标委名称", width = 15)
|
||||
@ApiModelProperty(value = "分标委名称")
|
||||
private java.lang.String name;
|
||||
/**备注*/
|
||||
@Excel(name = "备注", width = 15)
|
||||
@ApiModelProperty(value = "备注")
|
||||
private java.lang.String remarks;
|
||||
/**创建人*/
|
||||
@ApiModelProperty(value = "创建人")
|
||||
private java.lang.String createBy;
|
||||
/**创建时间*/
|
||||
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
|
||||
@DateTimeFormat(pattern="yyyy-MM-dd")
|
||||
@ApiModelProperty(value = "创建时间")
|
||||
private java.util.Date createTime;
|
||||
/**更新人*/
|
||||
@ApiModelProperty(value = "更新人")
|
||||
private java.lang.String updateBy;
|
||||
/**更新时间*/
|
||||
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
|
||||
@DateTimeFormat(pattern="yyyy-MM-dd")
|
||||
@ApiModelProperty(value = "更新时间")
|
||||
private java.util.Date updateTime;
|
||||
}
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
package com.jero.payCaseCommittee.mapper;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.jero.payCaseCommittee.entity.PayCaseCommittee;
|
||||
|
||||
/**
|
||||
* @Description: pay_case_committee
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2021-08-27
|
||||
* @Version: V1.0
|
||||
*/
|
||||
public interface PayCaseCommitteeMapper extends BaseMapper<PayCaseCommittee> {
|
||||
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
<?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="org.jeecg.modules.demo.payCaseCommittee.mapper.PayCaseCommitteeMapper">
|
||||
|
||||
</mapper>
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
package com.jero.payCaseCommittee.service;
|
||||
|
||||
import com.jero.payCaseCommittee.entity.PayCaseCommittee;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
/**
|
||||
* @Description: pay_case_committee
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2021-08-27
|
||||
* @Version: V1.0
|
||||
*/
|
||||
public interface IPayCaseCommitteeService extends IService<PayCaseCommittee> {
|
||||
|
||||
|
||||
}
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
package com.jero.payCaseCommittee.service.impl;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.jero.payCaseCommittee.entity.PayCaseCommittee;
|
||||
import com.jero.payCaseCommittee.mapper.PayCaseCommitteeMapper;
|
||||
import com.jero.payCaseCommittee.service.IPayCaseCommitteeService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
|
||||
/**
|
||||
* @Description: pay_case_committee
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2021-08-27
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Service
|
||||
public class PayCaseCommitteeServiceImpl extends ServiceImpl<PayCaseCommitteeMapper, PayCaseCommittee> implements IPayCaseCommitteeService {
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
+157
@@ -0,0 +1,157 @@
|
||||
package com.jero.payCaseCommitteeSubitem.controller;
|
||||
|
||||
import java.util.Arrays;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.jero.common.api.vo.Result;
|
||||
import com.jero.common.aspect.annotation.AutoLog;
|
||||
import com.jero.common.system.base.controller.JeroController;
|
||||
import com.jero.common.system.query.QueryGenerator;
|
||||
import com.jero.payCaseCommitteeSubitem.entity.DTO.PayCaseCommitteeSubitemDTO;
|
||||
import com.jero.payCaseCommitteeSubitem.entity.PayCaseCommitteeSubitem;
|
||||
import com.jero.payCaseCommitteeSubitem.service.IPayCaseCommitteeSubitemService;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.BeanUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
|
||||
|
||||
/**
|
||||
* @Description: 分标委成员表
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2021-08-27
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Api(tags="分标委成员表")
|
||||
@RestController
|
||||
@RequestMapping("/payCaseCommitteeSubitem/payCaseCommitteeSubitem")
|
||||
@Slf4j
|
||||
public class PayCaseCommitteeSubitemController extends JeroController<PayCaseCommitteeSubitem, IPayCaseCommitteeSubitemService> {
|
||||
@Autowired
|
||||
private IPayCaseCommitteeSubitemService payCaseCommitteeSubitemService;
|
||||
|
||||
/**
|
||||
* 分页列表查询
|
||||
* @param payCaseCommitteeSubitem
|
||||
* @param pageNo
|
||||
* @param pageSize
|
||||
* @param req
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "分标委成员表-分页列表查询")
|
||||
@ApiOperation(value="分标委成员表-分页列表查询", notes="分标委成员表-分页列表查询")
|
||||
@GetMapping(value = "/list")
|
||||
public Result<?> queryPageList(PayCaseCommitteeSubitem payCaseCommitteeSubitem,
|
||||
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
|
||||
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
|
||||
HttpServletRequest req) {
|
||||
QueryWrapper<PayCaseCommitteeSubitem> queryWrapper = QueryGenerator.initQueryWrapper(payCaseCommitteeSubitem, req.getParameterMap());
|
||||
Page<PayCaseCommitteeSubitem> page = new Page<PayCaseCommitteeSubitem>(pageNo, pageSize);
|
||||
IPage<PayCaseCommitteeSubitem> pageList = payCaseCommitteeSubitemService.page(page, queryWrapper);
|
||||
return Result.OK(pageList);
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加
|
||||
* @param payCaseCommitteeSubitemDTO
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "分标委成员表-添加")
|
||||
@ApiOperation(value="分标委成员表-添加", notes="分标委成员表-添加")
|
||||
@PostMapping(value = "/add")
|
||||
public Result<?> add(@RequestBody PayCaseCommitteeSubitemDTO payCaseCommitteeSubitemDTO) {
|
||||
PayCaseCommitteeSubitem payCaseCommitteeSubitem = new PayCaseCommitteeSubitem();
|
||||
BeanUtils.copyProperties(payCaseCommitteeSubitemDTO,payCaseCommitteeSubitem);
|
||||
payCaseCommitteeSubitemService.save(payCaseCommitteeSubitem);
|
||||
return Result.OK("添加成功!");
|
||||
}
|
||||
/**
|
||||
* 通过id删除
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "分标委成员表-通过id删除")
|
||||
@ApiOperation(value="分标委成员表-通过id删除", notes="分标委成员表-通过id删除")
|
||||
@GetMapping(value = "/delete")
|
||||
public Result<?> delete(@RequestParam(name="id",required=true) String id) {
|
||||
payCaseCommitteeSubitemService.removeById(id);
|
||||
return Result.OK("删除成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*
|
||||
* @param ids
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "分标委成员表-批量删除")
|
||||
@ApiOperation(value="分标委成员表-批量删除", notes="分标委成员表-批量删除")
|
||||
@GetMapping(value = "/deleteBatch")
|
||||
public Result<?> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
|
||||
this.payCaseCommitteeSubitemService.removeByIds(Arrays.asList(ids.split(",")));
|
||||
return Result.OK("批量删除成功!");
|
||||
}
|
||||
|
||||
// /**
|
||||
// * 编辑
|
||||
// * @param payCaseCommitteeSubitemUpdateDTO
|
||||
// * @return
|
||||
// */
|
||||
// @AutoLog(value = "分标委成员表-编辑")
|
||||
// @ApiOperation(value="分标委成员表-编辑", notes="分标委成员表-编辑")
|
||||
// @PostMapping(value = "/edit")
|
||||
// public Result<?> edit(@RequestBody PayCaseCommitteeSubitemUpdateDTO payCaseCommitteeSubitemUpdateDTO) {
|
||||
// PayCaseCommitteeSubitem payCaseCommitteeSubitem = new PayCaseCommitteeSubitem();
|
||||
// BeanUtils.copyProperties(payCaseCommitteeSubitemUpdateDTO,payCaseCommitteeSubitem);
|
||||
// payCaseCommitteeSubitemService.updateById(payCaseCommitteeSubitem);
|
||||
// return Result.OK("编辑成功!");
|
||||
// }
|
||||
|
||||
|
||||
//
|
||||
// /**
|
||||
// * 通过id查询
|
||||
// *
|
||||
// * @param id
|
||||
// * @return
|
||||
// */
|
||||
// @AutoLog(value = "分标委成员表-通过id查询")
|
||||
// @ApiOperation(value="分标委成员表-通过id查询", notes="分标委成员表-通过id查询")
|
||||
// @GetMapping(value = "/queryById")
|
||||
// public Result<?> queryById(@RequestParam(name="id",required=true) String id) {
|
||||
// PayCaseCommitteeSubitem payCaseCommitteeSubitem = payCaseCommitteeSubitemService.getById(id);
|
||||
// if(payCaseCommitteeSubitem==null) {
|
||||
// return Result.error("未找到对应数据");
|
||||
// }
|
||||
// return Result.OK(payCaseCommitteeSubitem);
|
||||
// }
|
||||
|
||||
// /**
|
||||
// * 导出excel
|
||||
// * @param request
|
||||
// * @param payCaseCommitteeSubitem
|
||||
// */
|
||||
// @RequestMapping(value = "/exportXls")
|
||||
// public ModelAndView exportXls(HttpServletRequest request, PayCaseCommitteeSubitem payCaseCommitteeSubitem) {
|
||||
// return super.exportXls(request, payCaseCommitteeSubitem, PayCaseCommitteeSubitem.class, "分标委成员表");
|
||||
// }
|
||||
//
|
||||
// /**
|
||||
// * 通过excel导入数据
|
||||
// *
|
||||
// * @param request
|
||||
// * @param response
|
||||
// * @return
|
||||
// */
|
||||
// @RequestMapping(value = "/importExcel", method = RequestMethod.POST)
|
||||
// public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
|
||||
// return super.importExcel(request, response, PayCaseCommitteeSubitem.class);
|
||||
// }
|
||||
//
|
||||
}
|
||||
+37
@@ -0,0 +1,37 @@
|
||||
package com.jero.payCaseCommitteeSubitem.entity.DTO;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import org.jeecgframework.poi.excel.annotation.Excel;
|
||||
|
||||
import javax.validation.constraints.NotBlank;
|
||||
|
||||
@Data
|
||||
@ApiModel(value="PayCaseCommitteeSubitemDTO对象", description="分标委成员请求对象")
|
||||
public class PayCaseCommitteeSubitemDTO {
|
||||
|
||||
@NotBlank(message = "分标委id不能为空")
|
||||
@ApiModelProperty(value = "分标委id")
|
||||
private java.lang.String committeeId;
|
||||
|
||||
@NotBlank(message = "企业id不能为空")
|
||||
@ApiModelProperty(value = "企业id")
|
||||
private java.lang.String companyId;
|
||||
|
||||
@NotBlank(message = "企业名称不能为空")
|
||||
@ApiModelProperty(value = "企业名称")
|
||||
private java.lang.String companyName;
|
||||
|
||||
@NotBlank(message = "联系人id不能为空")
|
||||
@ApiModelProperty(value = "联系人id")
|
||||
private java.lang.String contactsId;
|
||||
|
||||
@NotBlank(message = "联系人名称不能为空")
|
||||
@ApiModelProperty(value = "联系人名称")
|
||||
private java.lang.String contactsName;
|
||||
|
||||
|
||||
}
|
||||
+71
@@ -0,0 +1,71 @@
|
||||
package com.jero.payCaseCommitteeSubitem.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Data;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import org.jeecgframework.poi.excel.annotation.Excel;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
/**
|
||||
* @Description: pay_case_committee_subitem
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2021-08-27
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Data
|
||||
@TableName("pay_case_committee_subitem")
|
||||
@Accessors(chain = true)
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@ApiModel(value="pay_case_committee_subitem对象", description="pay_case_committee_subitem")
|
||||
public class PayCaseCommitteeSubitem implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**主键*/
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
@ApiModelProperty(value = "主键")
|
||||
private java.lang.String id;
|
||||
/**分标委id*/
|
||||
@Excel(name = "分标委id", width = 15)
|
||||
@ApiModelProperty(value = "分标委id")
|
||||
private java.lang.String committeeId;
|
||||
/**企业id*/
|
||||
@Excel(name = "企业id", width = 15)
|
||||
@ApiModelProperty(value = "企业id")
|
||||
private java.lang.String companyId;
|
||||
/**企业名称*/
|
||||
@Excel(name = "企业名称", width = 15)
|
||||
@ApiModelProperty(value = "企业名称")
|
||||
private java.lang.String companyName;
|
||||
/**联系人id*/
|
||||
@Excel(name = "联系人id", width = 15)
|
||||
@ApiModelProperty(value = "联系人id")
|
||||
private java.lang.String contactsId;
|
||||
/**联系人名称*/
|
||||
@Excel(name = "联系人名称", width = 15)
|
||||
@ApiModelProperty(value = "联系人名称")
|
||||
private java.lang.String contactsName;
|
||||
/**创建人*/
|
||||
@ApiModelProperty(value = "创建人")
|
||||
private java.lang.String createBy;
|
||||
/**创建时间*/
|
||||
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
|
||||
@DateTimeFormat(pattern="yyyy-MM-dd")
|
||||
@ApiModelProperty(value = "创建时间")
|
||||
private java.util.Date createTime;
|
||||
/**更新人*/
|
||||
@ApiModelProperty(value = "更新人")
|
||||
private java.lang.String updateBy;
|
||||
/**更新时间*/
|
||||
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
|
||||
@DateTimeFormat(pattern="yyyy-MM-dd")
|
||||
@ApiModelProperty(value = "更新时间")
|
||||
private java.util.Date updateTime;
|
||||
}
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
package com.jero.payCaseCommitteeSubitem.mapper;
|
||||
|
||||
|
||||
import com.jero.payCaseCommitteeSubitem.entity.PayCaseCommitteeSubitem;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* @Description: pay_case_committee_subitem
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2021-08-27
|
||||
* @Version: V1.0
|
||||
*/
|
||||
public interface PayCaseCommitteeSubitemMapper extends BaseMapper<PayCaseCommitteeSubitem> {
|
||||
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
<?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="org.jeecg.modules.demo.payCaseCommitteeSubitem.mapper.PayCaseCommitteeSubitemMapper">
|
||||
|
||||
</mapper>
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
package com.jero.payCaseCommitteeSubitem.service;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.jero.payCaseCommitteeSubitem.entity.DTO.PayCaseCommitteeSubitemDTO;
|
||||
import com.jero.payCaseCommitteeSubitem.entity.PayCaseCommitteeSubitem;
|
||||
|
||||
/**
|
||||
* @Description: pay_case_committee_subitem
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2021-08-27
|
||||
* @Version: V1.0
|
||||
*/
|
||||
public interface IPayCaseCommitteeSubitemService extends IService<PayCaseCommitteeSubitem> {
|
||||
|
||||
|
||||
}
|
||||
+22
@@ -0,0 +1,22 @@
|
||||
package com.jero.payCaseCommitteeSubitem.service.impl;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.jero.payCaseCommitteeSubitem.entity.DTO.PayCaseCommitteeSubitemDTO;
|
||||
import com.jero.payCaseCommitteeSubitem.entity.PayCaseCommitteeSubitem;
|
||||
import com.jero.payCaseCommitteeSubitem.mapper.PayCaseCommitteeSubitemMapper;
|
||||
import com.jero.payCaseCommitteeSubitem.service.IPayCaseCommitteeSubitemService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
|
||||
/**
|
||||
* @Description: pay_case_committee_subitem
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2021-08-27
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Service
|
||||
public class PayCaseCommitteeSubitemServiceImpl extends ServiceImpl<PayCaseCommitteeSubitemMapper, PayCaseCommitteeSubitem> implements IPayCaseCommitteeSubitemService {
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user