Merge branch 'hhw' of http://39.101.188.84:7000/suzhou-jichuang-lanhai/gysl into hhw
# Conflicts: # ruoyi-admin/pom.xml # ruoyi-admin/src/main/java/com/ruoyi/gysl/controller/MlController.java # ruoyi-admin/src/main/java/com/ruoyi/gysl/entity/Ml.java # ruoyi-admin/src/main/java/com/ruoyi/gysl/mapper/MlMapper.java # ruoyi-admin/src/main/java/com/ruoyi/gysl/service/MlService.java # ruoyi-admin/src/main/java/com/ruoyi/gysl/service/impl/MlServiceImpl.java # ruoyi-admin/src/main/resources/application-druid.yml # ruoyi-admin/src/main/resources/mapper/MlMapper.xmlhhw
commit
e419fa00a5
@ -0,0 +1,88 @@
|
|||||||
|
package com.ruoyi.gysl.controller;
|
||||||
|
|
||||||
|
|
||||||
|
import com.ruoyi.common.core.controller.BaseController;
|
||||||
|
import com.ruoyi.common.core.domain.AjaxResult;
|
||||||
|
import com.ruoyi.common.core.page.TableDataInfo;
|
||||||
|
import com.ruoyi.gysl.entity.Fmqd;
|
||||||
|
import com.ruoyi.gysl.service.FmqdService;
|
||||||
|
import io.swagger.annotations.Api;
|
||||||
|
import io.swagger.annotations.ApiOperation;
|
||||||
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
|
||||||
|
import javax.annotation.Resource;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 负面清单管理(FmqdController)表控制层
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
@Api(tags ="负面清单管理" )
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/gysl/Fmqd")
|
||||||
|
public class FmqdController extends BaseController {
|
||||||
|
|
||||||
|
@Resource
|
||||||
|
private FmqdService fmqdService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 分页查询负面清单数据
|
||||||
|
*
|
||||||
|
* @param fmqd 查询条件实体
|
||||||
|
* @return 分页数据
|
||||||
|
*/
|
||||||
|
@GetMapping("/list")
|
||||||
|
@ApiOperation("分页查询负面清单数据")
|
||||||
|
public TableDataInfo list(Fmqd fmqd) {
|
||||||
|
startPage(); // 开启分页
|
||||||
|
List<Fmqd> list = fmqdService.selectFmqdList(fmqd);
|
||||||
|
return getDataTable(list);
|
||||||
|
// 封装分页结果
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* 通过主键查询单条数据
|
||||||
|
*
|
||||||
|
* @param id 主键
|
||||||
|
* @return 单条数据
|
||||||
|
*/
|
||||||
|
@GetMapping("{id}")
|
||||||
|
@ApiOperation("通过主键查询负面清单数据")
|
||||||
|
public AjaxResult select(@PathVariable Integer id){
|
||||||
|
return success(fmqdService.selectFmqdId(id));
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* 新增数据
|
||||||
|
*@param fmqd 实体对象
|
||||||
|
* @return 新增结果
|
||||||
|
*/
|
||||||
|
@PostMapping("/add")
|
||||||
|
@ApiOperation("新增数据")
|
||||||
|
public AjaxResult add(@RequestBody Fmqd fmqd) {
|
||||||
|
return success(fmqdService.save(fmqd));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改数据
|
||||||
|
*
|
||||||
|
* @param fmqd 实体对象
|
||||||
|
* @return 修改结果
|
||||||
|
*/
|
||||||
|
@PostMapping("/edit")
|
||||||
|
@ApiOperation("修改数据")
|
||||||
|
public AjaxResult update(@RequestBody Fmqd fmqd) {
|
||||||
|
return success(fmqdService.updateById(fmqd));
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* 删除数据
|
||||||
|
*
|
||||||
|
* @param id 实体对象
|
||||||
|
* @return 删除结果
|
||||||
|
*/
|
||||||
|
@DeleteMapping("/delete/{id}")
|
||||||
|
@ApiOperation("删除数据")
|
||||||
|
public AjaxResult delete(@PathVariable Integer id) {
|
||||||
|
return success(fmqdService.deleteMapping(id));
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,129 @@
|
|||||||
|
package com.ruoyi.gysl.controller;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||||
|
import com.itextpdf.text.DocumentException;
|
||||||
|
import com.ruoyi.common.core.controller.BaseController;
|
||||||
|
import com.ruoyi.common.core.domain.AjaxResult;
|
||||||
|
import com.ruoyi.gysl.entity.Mmm;
|
||||||
|
import com.ruoyi.gysl.entity.request.MmmRequest;
|
||||||
|
import com.ruoyi.gysl.service.MmmService;
|
||||||
|
import io.swagger.annotations.Api;
|
||||||
|
import io.swagger.annotations.ApiOperation;
|
||||||
|
import org.springframework.http.HttpHeaders;
|
||||||
|
import org.springframework.http.HttpStatus;
|
||||||
|
import org.springframework.http.MediaType;
|
||||||
|
import org.springframework.http.ResponseEntity;
|
||||||
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
|
||||||
|
import javax.annotation.Resource;
|
||||||
|
import java.io.IOException;
|
||||||
|
import java.time.LocalDateTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 单片材料管理(MmmController)表控制层
|
||||||
|
*
|
||||||
|
* @author User
|
||||||
|
*/
|
||||||
|
@Api(tags = "单片材料管理")
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("gysl/mmm")
|
||||||
|
public class MmmController extends BaseController {
|
||||||
|
@Resource
|
||||||
|
private MmmService mmmService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 分页查询所有数据
|
||||||
|
*
|
||||||
|
* @param req 分页对象
|
||||||
|
* @return 查询结果
|
||||||
|
*/
|
||||||
|
@ApiOperation(value = "分页查询")
|
||||||
|
@GetMapping("/page")
|
||||||
|
public AjaxResult queryByPage(MmmRequest req) {
|
||||||
|
Page<Mmm> page = new Page<>();
|
||||||
|
page.setCurrent(req.getCurrent());
|
||||||
|
page.setSize(req.getSize());
|
||||||
|
return success(mmmService.page(page, req));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 通过主键查询单条数据
|
||||||
|
*
|
||||||
|
* @param id 主键
|
||||||
|
* @return 单条数据
|
||||||
|
*/
|
||||||
|
@GetMapping("{id}")
|
||||||
|
@ApiOperation(value = "通过主键查询单条数据", response = Mmm.class)
|
||||||
|
public AjaxResult selectOne(@PathVariable Integer id) {
|
||||||
|
return success(this.mmmService.getById(id));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 编辑数据
|
||||||
|
*
|
||||||
|
* @param mmm 实体对象
|
||||||
|
* @return 修改结果
|
||||||
|
*/
|
||||||
|
@PostMapping("/edit")
|
||||||
|
@ApiOperation("修改数据")
|
||||||
|
public AjaxResult update(@RequestBody Mmm mmm) {
|
||||||
|
//上传id 上传者 上传时间
|
||||||
|
mmm.setUpdateTime(LocalDateTime.now());
|
||||||
|
mmm.setUpdateBy(getUsername());
|
||||||
|
mmm.setUpdateId(getUserId());
|
||||||
|
return success(this.mmmService.updateById(mmm));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 添加
|
||||||
|
*/
|
||||||
|
@PostMapping("/add")
|
||||||
|
@ApiOperation("新增数据")
|
||||||
|
public AjaxResult insert(@RequestBody Mmm mmm) {
|
||||||
|
//创建id 创建者 创建时间
|
||||||
|
mmm.setCreateBy(getUsername());
|
||||||
|
mmm.setCreateId(getUserId());
|
||||||
|
mmm.setCreateTime(LocalDateTime.now());
|
||||||
|
return success(this.mmmService.save(mmm));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除数据
|
||||||
|
*
|
||||||
|
* @param id 主键
|
||||||
|
* @return 删除结果
|
||||||
|
*/
|
||||||
|
@ApiOperation("删除数据")
|
||||||
|
@DeleteMapping("/delete/{id}")
|
||||||
|
public AjaxResult deleteById(@PathVariable Integer id) {
|
||||||
|
return success(this.mmmService.removeById(id));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @param id 查找
|
||||||
|
* @return 导出的PDF
|
||||||
|
* @throws IOException
|
||||||
|
*/
|
||||||
|
@ApiOperation("PDF导出")
|
||||||
|
@GetMapping("/PDF/{id}")
|
||||||
|
public ResponseEntity<byte[]> exportPdf(@PathVariable Integer id) throws IOException, DocumentException {
|
||||||
|
Mmm item = mmmService.getById(id);
|
||||||
|
//路径
|
||||||
|
String path = "C:\\Users\\User\\Desktop\\pdf模板.pdf";
|
||||||
|
//PDF填充
|
||||||
|
byte[] pdfBytes = mmmService.fillPdfTemplate(path,item);
|
||||||
|
|
||||||
|
// 设置响应头
|
||||||
|
HttpHeaders headers = new HttpHeaders();
|
||||||
|
headers.setContentType(MediaType.APPLICATION_PDF);
|
||||||
|
headers.setContentDispositionFormData("attachment", item.getDocumentTitle() + ".pdf");
|
||||||
|
headers.setContentLength(pdfBytes.length);
|
||||||
|
|
||||||
|
return new ResponseEntity<>(pdfBytes, headers, HttpStatus.OK);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,82 @@
|
|||||||
|
package com.ruoyi.gysl.controller;
|
||||||
|
|
||||||
|
import com.ruoyi.common.core.controller.BaseController;
|
||||||
|
import com.ruoyi.common.core.domain.AjaxResult;
|
||||||
|
import com.ruoyi.common.core.page.TableDataInfo;
|
||||||
|
import com.ruoyi.gysl.entity.MonthInformation;
|
||||||
|
import com.ruoyi.gysl.service.MonthInformationService;
|
||||||
|
import io.swagger.annotations.Api;
|
||||||
|
import io.swagger.annotations.ApiOperation;
|
||||||
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
|
||||||
|
import javax.annotation.Resource;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
|
||||||
|
@Api(tags = "月度进展信息")
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("gysl/MonthInformation")
|
||||||
|
public class MonthInformationController extends BaseController {
|
||||||
|
/**
|
||||||
|
* 服务对象
|
||||||
|
*/
|
||||||
|
@Resource
|
||||||
|
private MonthInformationService monthInformationService;
|
||||||
|
/**
|
||||||
|
* 分页查询月度进展信息
|
||||||
|
*
|
||||||
|
* @param monthInformation 查询实体
|
||||||
|
* @return 所有数据
|
||||||
|
*/
|
||||||
|
@GetMapping("/list")
|
||||||
|
@ApiOperation("分页查询月度进展信息")
|
||||||
|
public TableDataInfo list(MonthInformation monthInformation){
|
||||||
|
startPage();
|
||||||
|
List<MonthInformation> list = monthInformationService.selectMonthInformation(monthInformation);
|
||||||
|
return getDataTable(list);
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* 通过主键查询单条数据
|
||||||
|
*
|
||||||
|
* @param id 主键
|
||||||
|
* @return 单条数据
|
||||||
|
*/
|
||||||
|
@GetMapping("{id}")
|
||||||
|
@ApiOperation("通过主键查询月度进展信息")
|
||||||
|
public AjaxResult select(@PathVariable Integer id){
|
||||||
|
return success(monthInformationService.selectMonthInformationId(id));
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* 新增数据
|
||||||
|
*
|
||||||
|
* @param monthInformation 查询条件实体
|
||||||
|
* @return 新增结果
|
||||||
|
*/
|
||||||
|
@PostMapping("/add")
|
||||||
|
@ApiOperation("新增数据")
|
||||||
|
public AjaxResult add(@RequestBody MonthInformation monthInformation){
|
||||||
|
return success(monthInformationService.saveMonthInformation(monthInformation));
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* 修改数据
|
||||||
|
*
|
||||||
|
* @param monthInformation 实体对象
|
||||||
|
* @return 修改结果
|
||||||
|
*/
|
||||||
|
@PostMapping("edit")
|
||||||
|
@ApiOperation("修改")
|
||||||
|
public AjaxResult edit(@RequestBody MonthInformation monthInformation){
|
||||||
|
return success(monthInformationService.updateById(monthInformation));
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* 删除数据
|
||||||
|
*
|
||||||
|
* @param id 主键
|
||||||
|
* @return 删除结果
|
||||||
|
*/
|
||||||
|
@DeleteMapping("/delete/{id}")
|
||||||
|
@ApiOperation("删除数据")
|
||||||
|
public AjaxResult delete(@PathVariable Integer id){
|
||||||
|
return success(monthInformationService.deleteMonthInformation(id));
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,84 @@
|
|||||||
|
package com.ruoyi.gysl.entity;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.IdType;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableId;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import com.ruoyi.common.annotation.Excel;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Data;
|
||||||
|
import org.springframework.format.annotation.DateTimeFormat;
|
||||||
|
|
||||||
|
import javax.validation.constraints.NotBlank;
|
||||||
|
import javax.validation.constraints.Size;
|
||||||
|
import java.time.LocalDateTime;
|
||||||
|
|
||||||
|
@TableName("monolithic_material_management")
|
||||||
|
@Data
|
||||||
|
public class Mmm {
|
||||||
|
// 主键id 自增
|
||||||
|
@ApiModelProperty("主键id")
|
||||||
|
@TableId(value = "id", type = IdType.AUTO)
|
||||||
|
private Integer id;
|
||||||
|
|
||||||
|
@NotBlank(message = "文件标题不能为空")
|
||||||
|
@Size(max= 50,message="文件标题长度不能超过50")
|
||||||
|
@ApiModelProperty("文件标题")
|
||||||
|
private String documentTitle;
|
||||||
|
|
||||||
|
@NotBlank(message = "发布单位不能为空")
|
||||||
|
@Size(max= 50,message="发布单位长度不能超过50")
|
||||||
|
@ApiModelProperty("发布单位")
|
||||||
|
private String publishUnit;
|
||||||
|
|
||||||
|
@NotBlank(message = "发布人不能为空")
|
||||||
|
@Size(max= 50,message = "发布人长度不得超过50个字")
|
||||||
|
@ApiModelProperty("发布人")
|
||||||
|
private String publisher;
|
||||||
|
|
||||||
|
@NotBlank(message = "发布时间不能为空")
|
||||||
|
@ApiModelProperty("发布时间")
|
||||||
|
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||||
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
|
private LocalDateTime publishTime;
|
||||||
|
|
||||||
|
@Size(max = 10000 ,message = "发布内容最大支持10000字")
|
||||||
|
@ApiModelProperty("发布内容")
|
||||||
|
private String publishingContent;
|
||||||
|
|
||||||
|
//创建者id
|
||||||
|
@Excel(name = "create_id")
|
||||||
|
@ApiModelProperty("创建者id")
|
||||||
|
private Long createId;
|
||||||
|
|
||||||
|
//创建时间
|
||||||
|
@Excel(name = "create_time",dateFormat = "yyyy-MM-dd HH:mm:ss")
|
||||||
|
@ApiModelProperty("创建时间")
|
||||||
|
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||||
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
|
private LocalDateTime createTime;
|
||||||
|
|
||||||
|
//创建者
|
||||||
|
@Excel(name = "create_by")
|
||||||
|
@ApiModelProperty("创建者")
|
||||||
|
private String createBy;
|
||||||
|
|
||||||
|
//更新者id
|
||||||
|
@Excel(name = "update_id")
|
||||||
|
@ApiModelProperty("更新者id")
|
||||||
|
private Long updateId;
|
||||||
|
|
||||||
|
//更新者
|
||||||
|
@Excel(name = "update_by")
|
||||||
|
@ApiModelProperty("更新者")
|
||||||
|
private String updateBy;
|
||||||
|
|
||||||
|
//更新时间
|
||||||
|
@Excel(name = "update_time",dateFormat = "yyyy-MM-dd HH:mm:ss")
|
||||||
|
@ApiModelProperty("更新时间")
|
||||||
|
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||||
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
|
private LocalDateTime updateTime;
|
||||||
|
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,87 @@
|
|||||||
|
package com.ruoyi.gysl.entity;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import io.swagger.annotations.ApiModel;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Data;
|
||||||
|
import org.springframework.format.annotation.DateTimeFormat;
|
||||||
|
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.time.LocalDateTime;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 月度进展信息(MonthInformation)实体类
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@ApiModel(value = "MonthInformation", description = "月度进展信息")
|
||||||
|
public class MonthInformation {
|
||||||
|
|
||||||
|
//主键id
|
||||||
|
@ApiModelProperty("主键id")
|
||||||
|
private Integer id;
|
||||||
|
|
||||||
|
//项目id
|
||||||
|
@ApiModelProperty("项目id")
|
||||||
|
private Integer xmId;
|
||||||
|
|
||||||
|
//进度月份
|
||||||
|
@ApiModelProperty("进度月份")
|
||||||
|
private String month;
|
||||||
|
|
||||||
|
//状态
|
||||||
|
@ApiModelProperty("状态")
|
||||||
|
private Integer status;
|
||||||
|
|
||||||
|
//当月完成投资
|
||||||
|
@ApiModelProperty("当月完成投资")
|
||||||
|
private BigDecimal dywctz;
|
||||||
|
|
||||||
|
//累计完成投资
|
||||||
|
@ApiModelProperty("累计完成投资")
|
||||||
|
private BigDecimal ljwctz;
|
||||||
|
|
||||||
|
//截至目前累计建成面积
|
||||||
|
@ApiModelProperty("截至目前累计建成面积")
|
||||||
|
private BigDecimal jzmqljjcmj;
|
||||||
|
|
||||||
|
//贷款额度
|
||||||
|
@ApiModelProperty("贷款额度")
|
||||||
|
private BigDecimal dked;
|
||||||
|
|
||||||
|
//从选区创建新的临时文件
|
||||||
|
@ApiModelProperty("项目进展详情")
|
||||||
|
private BigDecimal xmjzqk;
|
||||||
|
|
||||||
|
//创建者id
|
||||||
|
@ApiModelProperty("创建者id")
|
||||||
|
private Integer createId;
|
||||||
|
|
||||||
|
//创建时间
|
||||||
|
@ApiModelProperty("创建时间")
|
||||||
|
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||||
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
|
private LocalDateTime createTime;
|
||||||
|
|
||||||
|
//创建者
|
||||||
|
@ApiModelProperty("创建者")
|
||||||
|
private String createBy;
|
||||||
|
|
||||||
|
//更新者id
|
||||||
|
@ApiModelProperty("更新者id")
|
||||||
|
private Long updateId;
|
||||||
|
|
||||||
|
//更新者
|
||||||
|
@ApiModelProperty("更新者")
|
||||||
|
private String updateBy;
|
||||||
|
|
||||||
|
//更新时间
|
||||||
|
@ApiModelProperty("更新时间")
|
||||||
|
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||||
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
|
private LocalDateTime updateTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -0,0 +1,54 @@
|
|||||||
|
package com.ruoyi.gysl.entity.request;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Data;
|
||||||
|
import org.springframework.format.annotation.DateTimeFormat;
|
||||||
|
|
||||||
|
import java.time.LocalDateTime;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
|
||||||
|
public class MmmRequest {
|
||||||
|
// 主键id 自增
|
||||||
|
@ApiModelProperty("id")
|
||||||
|
private Integer id;
|
||||||
|
|
||||||
|
@ApiModelProperty("文件标题")
|
||||||
|
private String documentTitle;
|
||||||
|
|
||||||
|
@ApiModelProperty("发布单位")
|
||||||
|
private String publishUnit;
|
||||||
|
|
||||||
|
@ApiModelProperty("发布人")
|
||||||
|
private String publisher;
|
||||||
|
|
||||||
|
@ApiModelProperty("发布时间")
|
||||||
|
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||||
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
|
private LocalDateTime publishTime;
|
||||||
|
|
||||||
|
@ApiModelProperty("发布内容")
|
||||||
|
private String publishingContent;
|
||||||
|
|
||||||
|
@ApiModelProperty("创建者id")
|
||||||
|
private Integer createId;
|
||||||
|
|
||||||
|
@ApiModelProperty("发布开始时间")
|
||||||
|
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||||
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
|
private LocalDateTime publishStarTime;
|
||||||
|
|
||||||
|
@ApiModelProperty("发布结束时间")
|
||||||
|
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||||
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||||
|
private LocalDateTime publishEndTime;
|
||||||
|
|
||||||
|
@ApiModelProperty("页码")
|
||||||
|
private Long current=1L;
|
||||||
|
|
||||||
|
@ApiModelProperty("页数")
|
||||||
|
private Long size=10L;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,47 @@
|
|||||||
|
package com.ruoyi.gysl.mapper;
|
||||||
|
|
||||||
|
import com.ruoyi.gysl.entity.Fmqd;
|
||||||
|
import io.lettuce.core.dynamic.annotation.Param;
|
||||||
|
import org.mapstruct.Mapper;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
/**
|
||||||
|
* 负面清单管理(Fmqd)表数据库访问层
|
||||||
|
*/
|
||||||
|
@Mapper
|
||||||
|
public interface FmqdServiceMapper {
|
||||||
|
/**
|
||||||
|
* 分页查询负面清单数据
|
||||||
|
*
|
||||||
|
* @param fmqd 查询条件实体
|
||||||
|
* @return 分页数据
|
||||||
|
*/
|
||||||
|
List<Fmqd> selectFmqdList(Fmqd fmqd);
|
||||||
|
/**
|
||||||
|
* 通过主键查询单条数据
|
||||||
|
*
|
||||||
|
* @param id 主键
|
||||||
|
* @return 单条数据
|
||||||
|
*/
|
||||||
|
Fmqd selectFmqdById(Integer id);
|
||||||
|
/**
|
||||||
|
* 新增数据
|
||||||
|
*@param fmqd 实体对象
|
||||||
|
* @return 新增结果
|
||||||
|
*/
|
||||||
|
int saveFmqd(Fmqd fmqd);
|
||||||
|
/**
|
||||||
|
* 修改数据
|
||||||
|
*
|
||||||
|
* @param fmqd 实体对象
|
||||||
|
* @return 修改结果
|
||||||
|
*/
|
||||||
|
int updateFmqd(Fmqd fmqd);
|
||||||
|
/**
|
||||||
|
* 删除数据
|
||||||
|
*
|
||||||
|
* @param id 实体对象
|
||||||
|
* @return 删除结果
|
||||||
|
*/
|
||||||
|
int deleteFmqd(Integer id);
|
||||||
|
}
|
@ -0,0 +1,20 @@
|
|||||||
|
package com.ruoyi.gysl.mapper;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||||
|
import com.ruoyi.gysl.entity.Mmm;
|
||||||
|
import com.ruoyi.gysl.entity.request.MmmRequest;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
import org.apache.ibatis.annotations.Param;
|
||||||
|
|
||||||
|
@Mapper
|
||||||
|
public interface MmmMapper extends BaseMapper<Mmm> {
|
||||||
|
Page<Mmm> page(Page<Mmm> page, @Param("req") MmmRequest mmm);
|
||||||
|
/**
|
||||||
|
* 分页查询所有数据
|
||||||
|
*
|
||||||
|
* @param page 分页对象
|
||||||
|
* @param as 查询实体
|
||||||
|
* @return 所有数据
|
||||||
|
*/
|
||||||
|
}
|
@ -0,0 +1,47 @@
|
|||||||
|
package com.ruoyi.gysl.mapper;
|
||||||
|
|
||||||
|
import com.ruoyi.gysl.entity.MonthInformation;
|
||||||
|
import org.mapstruct.Mapper;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 月度进展信息(MonthInformtion)表数据库访问层
|
||||||
|
*/
|
||||||
|
@Mapper
|
||||||
|
public interface MonthInformationMapper {
|
||||||
|
/**
|
||||||
|
* 查询分页信息
|
||||||
|
*
|
||||||
|
* @param monthInformation 查询条件实体
|
||||||
|
* @return 目录数据列表
|
||||||
|
*/
|
||||||
|
List<MonthInformation> selectMonthInformationList(MonthInformation monthInformation);
|
||||||
|
/**
|
||||||
|
* 查询月度进展信息单条信息
|
||||||
|
*
|
||||||
|
* @param id 查询条件
|
||||||
|
* @return 月度进展信息单条数据
|
||||||
|
*/
|
||||||
|
MonthInformation selectMonthInformationId(Integer id);
|
||||||
|
/**
|
||||||
|
* 增加数据
|
||||||
|
*
|
||||||
|
* @param monthInformation 数据
|
||||||
|
* @return 新增结果
|
||||||
|
*/
|
||||||
|
int save(MonthInformation monthInformation);
|
||||||
|
/**
|
||||||
|
* 修改数据
|
||||||
|
*
|
||||||
|
* @param monthInformation 数据
|
||||||
|
* @return 修改结果
|
||||||
|
*/
|
||||||
|
int updateMonthInformation(MonthInformation monthInformation);
|
||||||
|
/**
|
||||||
|
* 删除数据
|
||||||
|
* @param id 数据
|
||||||
|
* @return 删除结果
|
||||||
|
*/
|
||||||
|
int deletemonthInformation(Integer id);
|
||||||
|
}
|
@ -0,0 +1,52 @@
|
|||||||
|
package com.ruoyi.gysl.service;
|
||||||
|
|
||||||
|
import com.ruoyi.gysl.entity.Fmqd;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 负面清单管理(FmqdController)表服务接口
|
||||||
|
*
|
||||||
|
* @author User
|
||||||
|
*/
|
||||||
|
public interface FmqdService {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 分页查询负面清单数据
|
||||||
|
*
|
||||||
|
* @param fmqd 查询条件实体
|
||||||
|
* @return 分页数据
|
||||||
|
*/
|
||||||
|
public List<Fmqd> selectFmqdList(Fmqd fmqd);
|
||||||
|
/**
|
||||||
|
* 通过主键查询单条数据
|
||||||
|
*
|
||||||
|
* @param id 主键
|
||||||
|
* @return 单条数据
|
||||||
|
*/
|
||||||
|
public Fmqd selectFmqdId(Integer id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增数据
|
||||||
|
*@param fmqd 实体对象
|
||||||
|
* @return 新增结果
|
||||||
|
*/
|
||||||
|
public int save(Fmqd fmqd);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改数据
|
||||||
|
*
|
||||||
|
* @param fmqd 实体对象
|
||||||
|
* @return 修改结果
|
||||||
|
*/
|
||||||
|
public int updateById (Fmqd fmqd);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除数据
|
||||||
|
*
|
||||||
|
* @param id 实体对象
|
||||||
|
* @return 删除结果
|
||||||
|
*/
|
||||||
|
public int deleteMapping(Integer id);
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,23 @@
|
|||||||
|
package com.ruoyi.gysl.service;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
import com.itextpdf.text.DocumentException;
|
||||||
|
import com.ruoyi.gysl.entity.Mmm;
|
||||||
|
import com.ruoyi.gysl.entity.request.MmmRequest;
|
||||||
|
|
||||||
|
import java.io.IOException;
|
||||||
|
|
||||||
|
|
||||||
|
public interface MmmService extends IService<Mmm> {
|
||||||
|
/**
|
||||||
|
* 分页查询所有数据
|
||||||
|
*
|
||||||
|
* @param page 分页对象
|
||||||
|
* @param mmm 查询实体
|
||||||
|
* @return 所有数据
|
||||||
|
*/
|
||||||
|
Page<Mmm> page(Page<Mmm> page, MmmRequest mmm);
|
||||||
|
|
||||||
|
byte[] fillPdfTemplate(String path, Mmm item) throws IOException, DocumentException;
|
||||||
|
}
|
@ -0,0 +1,43 @@
|
|||||||
|
package com.ruoyi.gysl.service;
|
||||||
|
|
||||||
|
import com.ruoyi.gysl.entity.MonthInformation;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
public interface MonthInformationService {
|
||||||
|
/**
|
||||||
|
* 分页查询月度进展信息
|
||||||
|
*
|
||||||
|
* @param monthInformation 查询实体
|
||||||
|
* @return 所有数据
|
||||||
|
*/
|
||||||
|
List<MonthInformation> selectMonthInformation(MonthInformation monthInformation);
|
||||||
|
/**
|
||||||
|
* 通过主键查询单条数据
|
||||||
|
*
|
||||||
|
* @param id 主键
|
||||||
|
* @return 单条数据
|
||||||
|
*/
|
||||||
|
MonthInformation selectMonthInformationId(Integer id);
|
||||||
|
/**
|
||||||
|
* 新增数据
|
||||||
|
*
|
||||||
|
* @param monthInformation 查询条件实体
|
||||||
|
* @return 新增结果
|
||||||
|
*/
|
||||||
|
int saveMonthInformation(MonthInformation monthInformation);
|
||||||
|
/**
|
||||||
|
* 修改数据
|
||||||
|
*
|
||||||
|
* @param monthInformation 实体对象
|
||||||
|
* @return 修改结果
|
||||||
|
*/
|
||||||
|
int updateById(MonthInformation monthInformation);
|
||||||
|
/**
|
||||||
|
* 删除数据
|
||||||
|
*
|
||||||
|
* @param id 主键
|
||||||
|
* @return 删除结果
|
||||||
|
*/
|
||||||
|
int deleteMonthInformation(Integer id);
|
||||||
|
}
|
@ -0,0 +1,74 @@
|
|||||||
|
package com.ruoyi.gysl.service.impl;
|
||||||
|
|
||||||
|
import com.ruoyi.gysl.entity.Fmqd;
|
||||||
|
import com.ruoyi.gysl.mapper.FmqdServiceMapper;
|
||||||
|
import com.ruoyi.gysl.service.FmqdService;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
*负面清单管理 表服务实现类
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class FmqdServiceImpl implements FmqdService {
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private FmqdServiceMapper fmqdMapper;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 分页查询负面清单数据
|
||||||
|
*
|
||||||
|
* @param fmqd 查询条件实体
|
||||||
|
* @return 分页数据
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public List<Fmqd> selectFmqdList(Fmqd fmqd) {
|
||||||
|
return fmqdMapper.selectFmqdList(fmqd);
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* 通过主键查询单条数据
|
||||||
|
*
|
||||||
|
* @param id 主键
|
||||||
|
* @return 单条数据
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Fmqd selectFmqdId(Integer id) {
|
||||||
|
return fmqdMapper.selectFmqdById(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增数据
|
||||||
|
*@param fmqd 实体对象
|
||||||
|
* @return 新增结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int save(Fmqd fmqd) {
|
||||||
|
return fmqdMapper.saveFmqd(fmqd);
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* 修改数据
|
||||||
|
*
|
||||||
|
* @param fmqd 实体对象
|
||||||
|
* @return 修改结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int updateById(Fmqd fmqd) {
|
||||||
|
return fmqdMapper.updateFmqd(fmqd);
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* 删除数据
|
||||||
|
*
|
||||||
|
* @param id 实体对象
|
||||||
|
* @return 删除结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteMapping(Integer id) {
|
||||||
|
return fmqdMapper.deleteFmqd(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,73 @@
|
|||||||
|
package com.ruoyi.gysl.service.impl;
|
||||||
|
|
||||||
|
import com.ruoyi.gysl.entity.Ml;
|
||||||
|
import com.ruoyi.gysl.mapper.MlMapper;
|
||||||
|
import com.ruoyi.gysl.service.MlService;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*目录管理 表服务实现类
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class MlServicImpl implements MlService {
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private MlMapper mlMapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询目录信息
|
||||||
|
*
|
||||||
|
* @param ml 查询条件实体
|
||||||
|
* @return 目录数据列表
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public List<Ml> selectMl(Ml ml) {
|
||||||
|
return mlMapper.selectMlList(ml);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询目录单条信息
|
||||||
|
*
|
||||||
|
* @param id 查询条件
|
||||||
|
* @return 目录单条数据
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public Ml selectMlId(Integer id) {
|
||||||
|
return mlMapper.selectMlById(id);
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* 添加目录信息
|
||||||
|
*
|
||||||
|
* @param ml 添加信息
|
||||||
|
* @return 新增结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int saveMl(Ml ml) {
|
||||||
|
return mlMapper.save(ml);
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* 修改目录信息
|
||||||
|
*
|
||||||
|
* @param ml 修改信息
|
||||||
|
* @return 修改结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int updateById(Ml ml) {
|
||||||
|
return mlMapper.updateMl(ml);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 添加目录信息
|
||||||
|
*
|
||||||
|
* @param id 删除
|
||||||
|
* @return 删除结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteMl(Integer id) {
|
||||||
|
return mlMapper.deleteml(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,63 @@
|
|||||||
|
package com.ruoyi.gysl.service.impl;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import com.itextpdf.text.DocumentException;
|
||||||
|
import com.itextpdf.text.pdf.AcroFields;
|
||||||
|
import com.itextpdf.text.pdf.PdfReader;
|
||||||
|
import com.itextpdf.text.pdf.PdfStamper;
|
||||||
|
import com.ruoyi.gysl.entity.Mmm;
|
||||||
|
import com.ruoyi.gysl.entity.request.MmmRequest;
|
||||||
|
import com.ruoyi.gysl.mapper.MmmMapper;
|
||||||
|
import com.ruoyi.gysl.service.MmmService;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import java.io.ByteArrayOutputStream;
|
||||||
|
import java.io.IOException;
|
||||||
|
import java.nio.file.Files;
|
||||||
|
import java.nio.file.Paths;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
@Service
|
||||||
|
public class MmmServiceImpl extends ServiceImpl<MmmMapper, Mmm> implements MmmService {
|
||||||
|
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Page<Mmm> page(Page<Mmm> page, MmmRequest mmm) {
|
||||||
|
return baseMapper.page(page, mmm);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public byte[] fillPdfTemplate(String path, Mmm item) throws IOException, DocumentException {
|
||||||
|
|
||||||
|
Map<String, String> fillData = new HashMap<>();
|
||||||
|
fillData.put("Title", item.getDocumentTitle());
|
||||||
|
fillData.put("Unit", item.getPublishUnit());
|
||||||
|
fillData.put("Publisher", item.getPublisher());
|
||||||
|
fillData.put("Time", item.getPublishTime().toString());
|
||||||
|
fillData.put("Content", item.getPublishingContent());
|
||||||
|
|
||||||
|
ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
|
||||||
|
|
||||||
|
PdfReader reader = new PdfReader(Files.newInputStream(Paths.get(path)));
|
||||||
|
PdfStamper stamper = new PdfStamper(reader, outputStream);
|
||||||
|
|
||||||
|
// 获取表单字段
|
||||||
|
AcroFields form = stamper.getAcroFields();
|
||||||
|
|
||||||
|
// 填充表单字段
|
||||||
|
for (Map.Entry<String, String> entry : fillData.entrySet()) {
|
||||||
|
String fieldName = entry.getKey();
|
||||||
|
String fieldValue = entry.getValue();
|
||||||
|
form.setField(fieldName, fieldValue);
|
||||||
|
|
||||||
|
}
|
||||||
|
stamper.setFormFlattening(true);
|
||||||
|
stamper.close();
|
||||||
|
reader.close();
|
||||||
|
|
||||||
|
return outputStream.toByteArray();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,70 @@
|
|||||||
|
package com.ruoyi.gysl.service.impl;
|
||||||
|
|
||||||
|
import com.ruoyi.gysl.entity.MonthInformation;
|
||||||
|
import com.ruoyi.gysl.mapper.MonthInformationMapper;
|
||||||
|
import com.ruoyi.gysl.service.MonthInformationService;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
import java.util.Collections;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 月度进展信息 表服务实现类
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class MonthInformationImpl implements MonthInformationService {
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private MonthInformationMapper monthInformationMapper;
|
||||||
|
/**
|
||||||
|
* 分页查询月度进展信息
|
||||||
|
*
|
||||||
|
* @param monthInformation 查询实体
|
||||||
|
* @return 所有数据
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public List<MonthInformation> selectMonthInformation(MonthInformation monthInformation) {
|
||||||
|
return monthInformationMapper.selectMonthInformationList(monthInformation);
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* 通过主键查询单条数据
|
||||||
|
*
|
||||||
|
* @param id 主键
|
||||||
|
* @return 单条数据
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public MonthInformation selectMonthInformationId(Integer id) {
|
||||||
|
return monthInformationMapper.selectMonthInformationId(id);
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* 新增数据
|
||||||
|
*
|
||||||
|
* @param monthInformation 查询条件实体
|
||||||
|
* @return 新增结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int saveMonthInformation(MonthInformation monthInformation) {
|
||||||
|
return monthInformationMapper.save(monthInformation);
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* 修改数据
|
||||||
|
*
|
||||||
|
* @param monthInformation 实体对象
|
||||||
|
* @return 修改结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int updateById(MonthInformation monthInformation) {
|
||||||
|
return monthInformationMapper.updateMonthInformation(monthInformation);
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* 删除数据
|
||||||
|
*
|
||||||
|
* @param id 主键
|
||||||
|
* @return 删除结果
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int deleteMonthInformation(Integer id) {
|
||||||
|
return monthInformationMapper.deletemonthInformation(id);
|
||||||
|
}
|
||||||
|
}
|
@ -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.ruoyi.gysl.mapper.FmqdServiceMapper">
|
||||||
|
|
||||||
|
|
||||||
|
<select id="selectFmqdList" resultType="com.ruoyi.gysl.entity.Fmqd">
|
||||||
|
SELECT * FROM fmqd
|
||||||
|
<where>
|
||||||
|
<if test="id != null">
|
||||||
|
AND id = #{id}
|
||||||
|
</if>
|
||||||
|
<if test="name != null and name != ''">
|
||||||
|
AND name = #{name}
|
||||||
|
</if>
|
||||||
|
<if test="xzfl != null">
|
||||||
|
AND xzfl = #{xzfl}
|
||||||
|
</if>
|
||||||
|
<if test="xmfrdw != null and xmfrdw != ''">
|
||||||
|
AND xmfrdw = #{xmfrdw}
|
||||||
|
</if>
|
||||||
|
<if test="xmjsqzsj != null and xmjsqzsj != ''">
|
||||||
|
AND xmjsqzsj = #{xmjsqzsj}
|
||||||
|
</if>
|
||||||
|
<if test="ztze != null">
|
||||||
|
AND ztze = #{ztze}
|
||||||
|
</if>
|
||||||
|
<if test="zydmj != null">
|
||||||
|
AND zydmj = #{zydmj}
|
||||||
|
</if>
|
||||||
|
<if test="createId != null">
|
||||||
|
AND create_id = #{createId}
|
||||||
|
</if>
|
||||||
|
<if test="createTime != null">
|
||||||
|
AND create_time = #{createTime}
|
||||||
|
</if>
|
||||||
|
<if test="createBy != null and createBy != ''">
|
||||||
|
AND create_by = #{createBy}
|
||||||
|
</if>
|
||||||
|
<if test="updateId != null">
|
||||||
|
AND update_id = #{updateId}
|
||||||
|
</if>
|
||||||
|
<if test="updateBy != null and updateBy != ''">
|
||||||
|
AND update_by = #{updateBy}
|
||||||
|
</if>
|
||||||
|
<if test="updateTime != null">
|
||||||
|
AND update_time = #{updateTime}
|
||||||
|
</if>
|
||||||
|
</where>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<select id="selectFmqdById" parameterType="Integer" resultType="com.ruoyi.gysl.entity.Fmqd">
|
||||||
|
SELECT * FROM fmqd
|
||||||
|
WHERE id = #{id}
|
||||||
|
</select>
|
||||||
|
<insert id="saveFmqd" parameterType="com.ruoyi.gysl.entity.Fmqd" useGeneratedKeys="true" keyProperty="id">
|
||||||
|
INSERT INTO fmqd (
|
||||||
|
<trim suffixOverrides=",">
|
||||||
|
<if test="name != null and name != ''">name,</if>
|
||||||
|
<if test="xzfl != null">xzfl,</if>
|
||||||
|
<if test="xmfrdw != null and xmfrdw != ''">xmfrdw,</if>
|
||||||
|
<if test="xmjsqzsj != null and xmjsqzsj != ''">xmjsqzsj,</if>
|
||||||
|
<if test="ztze != null">ztze,</if>
|
||||||
|
<if test="zydmj != null">zydmj,</if>
|
||||||
|
<if test="createId != null">create_id,</if>
|
||||||
|
<if test="createTime != null">create_time,</if>
|
||||||
|
<if test="createBy != null and createBy != ''">create_by,</if>
|
||||||
|
<if test="updateId != null">update_id,</if>
|
||||||
|
<if test="updateBy != null and updateBy != ''">update_by,</if>
|
||||||
|
<if test="updateTime != null">update_time</if>
|
||||||
|
</trim>
|
||||||
|
) VALUES (
|
||||||
|
<trim suffixOverrides=",">
|
||||||
|
<if test="name != null and name != ''">#{name},</if>
|
||||||
|
<if test="xzfl != null">#{xzfl},</if>
|
||||||
|
<if test="xmfrdw != null and xmfrdw != ''">#{xmfrdw},</if>
|
||||||
|
<if test="xmjsqzsj != null and xmjsqzsj != ''">#{xmjsqzsj},</if>
|
||||||
|
<if test="ztze != null">#{ztze},</if>
|
||||||
|
<if test="zydmj != null">#{zydmj},</if>
|
||||||
|
<if test="createId != null">#{createId},</if>
|
||||||
|
<if test="createTime != null">#{createTime},</if>
|
||||||
|
<if test="createBy != null and createBy != ''">#{createBy},</if>
|
||||||
|
<if test="updateId != null">#{updateId},</if>
|
||||||
|
<if test="updateBy != null and updateBy != ''">#{updateBy},</if>
|
||||||
|
<if test="updateTime != null">#{updateTime}</if>
|
||||||
|
</trim>
|
||||||
|
)
|
||||||
|
</insert>
|
||||||
|
|
||||||
|
<update id="updateFmqd" parameterType="com.ruoyi.gysl.entity.Fmqd">
|
||||||
|
UPDATE fmqd
|
||||||
|
<set>
|
||||||
|
<if test="name != null and name != ''">
|
||||||
|
name = #{name},
|
||||||
|
</if>
|
||||||
|
<if test="xzfl != null">
|
||||||
|
xzfl = #{xzfl},
|
||||||
|
</if>
|
||||||
|
<if test="xmfrdw != null and xmfrdw != ''">
|
||||||
|
xmfrdw = #{xmfrdw},
|
||||||
|
</if>
|
||||||
|
<if test="xmjsqzsj != null and xmjsqzsj != ''">
|
||||||
|
xmjsqzsj = #{xmjsqzsj},
|
||||||
|
</if>
|
||||||
|
<if test="ztze != null">
|
||||||
|
ztze = #{ztze},
|
||||||
|
</if>
|
||||||
|
<if test="zydmj != null">
|
||||||
|
zydmj = #{zydmj},
|
||||||
|
</if>
|
||||||
|
<if test="createId != null">
|
||||||
|
create_id = #{createId},
|
||||||
|
</if>
|
||||||
|
<if test="createTime != null">
|
||||||
|
create_time = #{createTime},
|
||||||
|
</if>
|
||||||
|
<if test="createBy != null and createBy != ''">
|
||||||
|
create_by = #{createBy},
|
||||||
|
</if>
|
||||||
|
<if test="updateId != null">
|
||||||
|
update_id = #{updateId},
|
||||||
|
</if>
|
||||||
|
<if test="updateBy != null and updateBy != ''">
|
||||||
|
update_by = #{updateBy},
|
||||||
|
</if>
|
||||||
|
<if test="updateTime != null">
|
||||||
|
update_time = #{updateTime},
|
||||||
|
</if>
|
||||||
|
</set>
|
||||||
|
WHERE id = #{id}
|
||||||
|
</update>
|
||||||
|
|
||||||
|
<delete id="deleteFmqd" parameterType="Integer">
|
||||||
|
DELETE FROM fmqd WHERE id = #{id}
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
</mapper>
|
@ -0,0 +1,10 @@
|
|||||||
|
<?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.gysl.mapper.MlDao">
|
||||||
|
|
||||||
|
<select id="exportMlList" resultType="com.ruoyi.gysl.entity.Ml">
|
||||||
|
SELECT slmllb, gydl, cy, update_time
|
||||||
|
FROM ml
|
||||||
|
</select>
|
||||||
|
</mapper>
|
@ -0,0 +1,27 @@
|
|||||||
|
<?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.gysl.mapper.MmmMapper">
|
||||||
|
|
||||||
|
<select id="page" resultType="com.ruoyi.gysl.entity.Mmm">
|
||||||
|
select * from monolithic_material_management
|
||||||
|
<where>
|
||||||
|
|
||||||
|
<if test="req.documentTitle != null">
|
||||||
|
AND document_title LIKE CONCAT('%', #{req.documentTitle}, '%')
|
||||||
|
</if>
|
||||||
|
|
||||||
|
<if test="req.publishTime != null">
|
||||||
|
AND publish_time = #{req.publishTime}
|
||||||
|
</if>
|
||||||
|
|
||||||
|
<if test="req.publishStarTime != null">
|
||||||
|
AND publish_time >= #{req.publishStarTime}
|
||||||
|
</if>
|
||||||
|
|
||||||
|
<if test="req.publishEndTime != null">
|
||||||
|
AND publish_time <= #{req.publishEndTime}
|
||||||
|
</if>
|
||||||
|
</where>
|
||||||
|
</select>
|
||||||
|
</mapper>
|
@ -0,0 +1,158 @@
|
|||||||
|
<?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.gysl.mapper.MonthInformationMapper">
|
||||||
|
|
||||||
|
|
||||||
|
<select id="selectMonthInformationList" resultType="com.ruoyi.gysl.entity.MonthInformation">
|
||||||
|
SELECT * FROM month_information
|
||||||
|
<where>
|
||||||
|
<if test="id != null">
|
||||||
|
AND id = #{id}
|
||||||
|
</if>
|
||||||
|
<if test="xmId != null">
|
||||||
|
AND xm_id = #{xmId}
|
||||||
|
</if>
|
||||||
|
<if test="month != null and month != ''">
|
||||||
|
AND month = #{month}
|
||||||
|
</if>
|
||||||
|
<if test="status != null">
|
||||||
|
AND status = #{status}
|
||||||
|
</if>
|
||||||
|
<if test="dywctz != null">
|
||||||
|
And dywctz = #{dywctz}
|
||||||
|
</if>
|
||||||
|
<if test="ljwctz != null">
|
||||||
|
And ljwctz = #{ljwctz}
|
||||||
|
</if>
|
||||||
|
<if test="jzmqljjcmj != null">
|
||||||
|
And jzmqljjcmj = #{jzmqljjcmj}
|
||||||
|
</if>
|
||||||
|
<if test="xmjzqk != null">
|
||||||
|
And xmjzqk = #{xmjzqk}
|
||||||
|
</if>
|
||||||
|
<if test="dked != null and dked !=''">
|
||||||
|
And dked = #{dked}
|
||||||
|
</if>
|
||||||
|
<if test="createId != null">
|
||||||
|
AND create_id = #{createId}
|
||||||
|
</if>
|
||||||
|
<if test="createTime != null">
|
||||||
|
AND create_time = #{createTime}
|
||||||
|
</if>
|
||||||
|
<if test="createBy != null and createBy != ''">
|
||||||
|
AND create_by = #{createBy}
|
||||||
|
</if>
|
||||||
|
<if test="updateId != null">
|
||||||
|
AND update_id = #{updateId}
|
||||||
|
</if>
|
||||||
|
<if test="updateBy != null and updateBy != ''">
|
||||||
|
AND update_by = #{updateBy}
|
||||||
|
</if>
|
||||||
|
<if test="updateTime != null">
|
||||||
|
AND update_time = #{updateTime}
|
||||||
|
</if>
|
||||||
|
</where>
|
||||||
|
</select>
|
||||||
|
|
||||||
|
|
||||||
|
<select id="selectMonthInformationId" parameterType="Integer" resultType="com.ruoyi.gysl.entity.MonthInformation">
|
||||||
|
SELECT * FROM month_information
|
||||||
|
WHERE id = #{id}
|
||||||
|
</select>
|
||||||
|
|
||||||
|
<insert id="save" parameterType="com.ruoyi.gysl.entity.MonthInformation" useGeneratedKeys="true" keyProperty="id">
|
||||||
|
INSERT INTO month_information (
|
||||||
|
<trim suffixOverrides=",">
|
||||||
|
<if test="xmId != null">xm_id,</if>
|
||||||
|
<if test="month != null and month != ''">month,</if>
|
||||||
|
<if test="status != null">status,</if>
|
||||||
|
<if test="dywctz != null">dywctz,</if>
|
||||||
|
<if test="ljwctz != null">ljwctz,</if>
|
||||||
|
<if test="jzmqljjcmj != null">jzmqljjcmj,</if>
|
||||||
|
<if test="xmjzqk != null">xmjzqk,</if>
|
||||||
|
<if test="dked != null and dked !=''">dked,</if>
|
||||||
|
<if test="createId != null">create_id,</if>
|
||||||
|
<if test="createTime != null">create_time,</if>
|
||||||
|
<if test="createBy != null and createBy != ''">create_by,</if>
|
||||||
|
<if test="updateId != null">update_id,</if>
|
||||||
|
<if test="updateBy != null and updateBy != ''">update_by,</if>
|
||||||
|
<if test="updateTime != null">update_time</if>
|
||||||
|
</trim>
|
||||||
|
) VALUES (
|
||||||
|
<trim suffixOverrides=",">
|
||||||
|
<if test="xmId != null">#{xmId},</if>
|
||||||
|
<if test="month != null and month != ''">#{month},</if>
|
||||||
|
<if test="status != null">#{status},</if>
|
||||||
|
<if test="dywctz != null">#{dywctz},</if>
|
||||||
|
<if test="ljwctz != null">#{ljwctz},</if>
|
||||||
|
<if test="jzmqljjcmj != null">#{jzmqljjcmj},</if>
|
||||||
|
<if test="xmjzqk != null">#{xmjzqk},</if>
|
||||||
|
<if test="dked != null and dked !=''">#{dked},</if>
|
||||||
|
<if test="createId != null">#{createId},</if>
|
||||||
|
<if test="createTime != null">#{createTime},</if>
|
||||||
|
<if test="createBy != null and createBy != ''">#{createBy},</if>
|
||||||
|
<if test="updateId != null">#{updateId},</if>
|
||||||
|
<if test="updateBy != null and updateBy != ''">#{updateBy},</if>
|
||||||
|
<if test="updateTime != null">#{updateTime}</if>
|
||||||
|
</trim>
|
||||||
|
)
|
||||||
|
</insert>
|
||||||
|
|
||||||
|
<update id="updateMonthInformation" parameterType="com.ruoyi.gysl.entity.MonthInformation">
|
||||||
|
UPDATE month_information
|
||||||
|
<set>
|
||||||
|
<if test="id != null">
|
||||||
|
id = #{id},
|
||||||
|
</if>
|
||||||
|
<if test="xmId != null">
|
||||||
|
xm_id = #{xmId},
|
||||||
|
</if>
|
||||||
|
<if test="month != null and month != ''">
|
||||||
|
month = #{month},
|
||||||
|
</if>
|
||||||
|
<if test="status != null">
|
||||||
|
status = #{status},
|
||||||
|
</if>
|
||||||
|
<if test="dywctz != null">
|
||||||
|
dywctz = #{dywctz},
|
||||||
|
</if>
|
||||||
|
<if test="ljwctz != null">
|
||||||
|
ljwctz = #{ljwctz},
|
||||||
|
</if>
|
||||||
|
<if test="jzmqljjcmj != null">
|
||||||
|
jzmqljjcmj = #{jzmqljjcmj},
|
||||||
|
</if>
|
||||||
|
<if test="xmjzqk != null">
|
||||||
|
xmjzqk = #{xmjzqk},
|
||||||
|
</if>
|
||||||
|
<if test="dked != null and dked !=''">
|
||||||
|
dked = #{dked},
|
||||||
|
</if>
|
||||||
|
<if test="createId != null">
|
||||||
|
create_id = #{createId},
|
||||||
|
</if>
|
||||||
|
<if test="createTime != null">
|
||||||
|
create_time = #{createTime},
|
||||||
|
</if>
|
||||||
|
<if test="createBy != null and createBy != ''">
|
||||||
|
create_by = #{createBy},
|
||||||
|
</if>
|
||||||
|
<if test="updateId != null">
|
||||||
|
update_id = #{updateId},
|
||||||
|
</if>
|
||||||
|
<if test="updateBy != null and updateBy != ''">
|
||||||
|
update_by = #{updateBy},
|
||||||
|
</if>
|
||||||
|
<if test="updateTime != null">
|
||||||
|
update_time = #{updateTime},
|
||||||
|
</if>
|
||||||
|
</set>
|
||||||
|
WHERE id = #{id}
|
||||||
|
</update>
|
||||||
|
|
||||||
|
<delete id="deletemonthInformation" parameterType="Integer">
|
||||||
|
DELETE FROM month_information WHERE id = #{id}
|
||||||
|
</delete>
|
||||||
|
|
||||||
|
</mapper>
|
Loading…
Reference in new issue