Commit 16e8cc93 by huluobin

update

parent 6b3c4163
...@@ -3,6 +3,7 @@ package com.blt.other.module.cost.model; ...@@ -3,6 +3,7 @@ package com.blt.other.module.cost.model;
import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.google.common.collect.Lists; import com.google.common.collect.Lists;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
...@@ -50,6 +51,7 @@ public class CostTemplateCol implements Serializable { ...@@ -50,6 +51,7 @@ public class CostTemplateCol implements Serializable {
private Boolean isDefault; private Boolean isDefault;
@ApiModelProperty(value = "创建时间") @ApiModelProperty(value = "创建时间")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private LocalDateTime createTime; private LocalDateTime createTime;
private Integer createUserId; private Integer createUserId;
...@@ -59,6 +61,7 @@ public class CostTemplateCol implements Serializable { ...@@ -59,6 +61,7 @@ public class CostTemplateCol implements Serializable {
private String updateUserName; private String updateUserName;
@ApiModelProperty(value = "更新时间") @ApiModelProperty(value = "更新时间")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private LocalDateTime lastUpdateTime; private LocalDateTime lastUpdateTime;
private String companyScope; private String companyScope;
......
...@@ -27,7 +27,6 @@ public class DepartmentCheckState extends CostState { ...@@ -27,7 +27,6 @@ public class DepartmentCheckState extends CostState {
@Autowired @Autowired
FinancialCheckState financialCheckState; FinancialCheckState financialCheckState;
@Resource @Resource
OaDepartmentMapper oaDepartmentMapper; OaDepartmentMapper oaDepartmentMapper;
@Resource @Resource
......
...@@ -87,7 +87,6 @@ public class CostTemplateColServiceImpl extends ServiceImpl<CostTemplateColMappe ...@@ -87,7 +87,6 @@ public class CostTemplateColServiceImpl extends ServiceImpl<CostTemplateColMappe
costTemplateService.updateById(costTemplate); costTemplateService.updateById(costTemplate);
} }
/** /**
...@@ -133,6 +132,8 @@ public class CostTemplateColServiceImpl extends ServiceImpl<CostTemplateColMappe ...@@ -133,6 +132,8 @@ public class CostTemplateColServiceImpl extends ServiceImpl<CostTemplateColMappe
return costTemplateService.queryDetail(req.getCostTemplateId()).getCostTemplateColList() return costTemplateService.queryDetail(req.getCostTemplateId()).getCostTemplateColList()
.stream() .stream()
//非默认
.filter(costTemplateCol -> !costTemplateCol.getIsDefault())
//字段类目 //字段类目
.filter(costTemplateCol -> StringUtils.isEmpty(req.getColCategory()) || .filter(costTemplateCol -> StringUtils.isEmpty(req.getColCategory()) ||
Optional.ofNullable(costTemplateCol.getCostTemplateBaseCol().getColCategory()).map(str -> str.contains(req.getColCategory())).orElse(false)) Optional.ofNullable(costTemplateCol.getCostTemplateBaseCol().getColCategory()).map(str -> str.contains(req.getColCategory())).orElse(false))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment