Commit 68345dd2 by huluobin

update

parent 761ebad0
...@@ -14,8 +14,6 @@ import lombok.Data; ...@@ -14,8 +14,6 @@ import lombok.Data;
@Data @Data
public class CostTypeAddReq { public class CostTypeAddReq {
@ApiModelProperty("费用类型编号")
private String typeNo;
@ApiModelProperty("费用类型标题") @ApiModelProperty("费用类型标题")
private String typeName; private String typeName;
......
package com.blt.other.module.cost.service.impl; package com.blt.other.module.cost.service.impl;
import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.IdWorker;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.blt.other.common.exception.BizRuntimeException; import com.blt.other.common.exception.BizRuntimeException;
...@@ -32,7 +33,7 @@ public class CostTypeServiceImpl extends ServiceImpl<CostTypeDao, CostTypeDomain ...@@ -32,7 +33,7 @@ public class CostTypeServiceImpl extends ServiceImpl<CostTypeDao, CostTypeDomain
public void addCostType(CostTypeAddReq req) { public void addCostType(CostTypeAddReq req) {
CostTypeDomain costTypeDomain = new CostTypeDomain(); CostTypeDomain costTypeDomain = new CostTypeDomain();
costTypeDomain.setAccountingSubjectNo(req.getAccountingSubjectNo()); costTypeDomain.setAccountingSubjectNo(req.getAccountingSubjectNo());
costTypeDomain.setTypeNo(req.getTypeNo()); costTypeDomain.setTypeNo(IdWorker.getIdStr());
costTypeDomain.setTypeName(req.getTypeName()); costTypeDomain.setTypeName(req.getTypeName());
costTypeDomain.setDescription(req.getDescription()); costTypeDomain.setDescription(req.getDescription());
......
...@@ -192,6 +192,13 @@ public class DepartmentCheckState extends CostState { ...@@ -192,6 +192,13 @@ public class DepartmentCheckState extends CostState {
return departmentReviewer; return departmentReviewer;
} }
// private OaDepartment getSecondDepartment(Integer departmentId) {
// OaDepartment oaDepartment = oaDepartmentMapper.selectByDepartmentId(departmentId);
// if (oaDepartment.getParentId() == 0) {
//
// }
// }
private void updateCurrentReviewer(Integer departmentId) { private void updateCurrentReviewer(Integer departmentId) {
CostDomain costDomain = costContext.costDomain; CostDomain costDomain = costContext.costDomain;
DepartmentReviewer departmentReviewer = this.getCurrentDepartmentReviewer(departmentId); DepartmentReviewer departmentReviewer = this.getCurrentDepartmentReviewer(departmentId);
......
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