Commit 4b8216b3 by huluobin

# 更新

parent af5e27b3
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
- springboot - springboot
- mybatis - mybatis
- mybatis plus - mybatis plus
- mysql
### 1.3 云服务器 ### 1.3 云服务器
正式环境:IP:193.112.167.175:22 ubuntu 密码:!@#blt*nix123 正式环境:IP:193.112.167.175:22 ubuntu 密码:!@#blt*nix123
......
...@@ -64,5 +64,8 @@ public class CostTypeDomain { ...@@ -64,5 +64,8 @@ public class CostTypeDomain {
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@ApiModelProperty(value = "最后更新时间") @ApiModelProperty(value = "最后更新时间")
private LocalDateTime lastUpdateTime; private LocalDateTime lastUpdateTime;
@ApiModelProperty(value = "ns会计科目Id")
private Integer nsAccountingSubjectId;
} }
...@@ -16,6 +16,10 @@ import javax.annotation.Resource; ...@@ -16,6 +16,10 @@ import javax.annotation.Resource;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
import java.io.IOException; import java.io.IOException;
/**
* @author robbendev
*/
@Slf4j @Slf4j
@Api(tags = "类型接口") @Api(tags = "类型接口")
@RestController @RestController
......
...@@ -30,4 +30,7 @@ public class CostTypeAddReq { ...@@ -30,4 +30,7 @@ public class CostTypeAddReq {
@ApiModelProperty("是否管理成本") @ApiModelProperty("是否管理成本")
private Boolean isManageCost; private Boolean isManageCost;
@ApiModelProperty(value = "ns会计科目Id")
private Integer nsAccountingSubjectId;
} }
...@@ -32,4 +32,6 @@ public class CostTypeModifyReq { ...@@ -32,4 +32,6 @@ public class CostTypeModifyReq {
@ApiModelProperty("是否管理成本") @ApiModelProperty("是否管理成本")
private Boolean isManageCost; private Boolean isManageCost;
@ApiModelProperty(value = "ns会计科目Id")
private Integer nsAccountingSubjectId;
} }
...@@ -267,6 +267,9 @@ public class CostDomain implements Serializable { ...@@ -267,6 +267,9 @@ public class CostDomain implements Serializable {
@TableField(exist = false) @TableField(exist = false)
private String departmentName; private String departmentName;
@ApiModelProperty(value = "ns会计科目Id")
private Integer nsAccountingSubjectId;
public void setCostType(CostTypeDomain costTypeDomain) { public void setCostType(CostTypeDomain costTypeDomain) {
...@@ -280,6 +283,7 @@ public class CostDomain implements Serializable { ...@@ -280,6 +283,7 @@ public class CostDomain implements Serializable {
this.setAccountingSubjectNo(accountingSubject.getSubjectNo()); this.setAccountingSubjectNo(accountingSubject.getSubjectNo());
this.setIsManageCost(costTypeDomain.getIsManageCost()); this.setIsManageCost(costTypeDomain.getIsManageCost());
this.setNsAccountingSubjectId(costTypeDomain.getNsAccountingSubjectId());
} }
private static final String REGEX_CHINESE = "[\u4e00-\u9fa5]";// 中文正则 private static final String REGEX_CHINESE = "[\u4e00-\u9fa5]";// 中文正则
......
...@@ -59,16 +59,38 @@ public interface CostTypeService extends IService<CostTypeDomain> { ...@@ -59,16 +59,38 @@ public interface CostTypeService extends IService<CostTypeDomain> {
*/ */
CostTypeResult queryByNo(String typeNo); CostTypeResult queryByNo(String typeNo);
/**
* 获取物流subjectCode
*
* @return rs
*/
GetLogisticsCodeResp getLogisticsCode(); GetLogisticsCodeResp getLogisticsCode();
//获取物流subjectCode
//获取物流银行帐号 /**
* 获取物流subjectCode
* 获取物流银行帐号
*
* @param subSupplierName 供应商名称
* @return res
*/
GetLogisticsBankResp getLogisticsBank(String subSupplierName); GetLogisticsBankResp getLogisticsBank(String subSupplierName);
//批量导入 /**
* 批量导入
*
* @param excel excel
* @throws IOException ex
*/
void importExcel(CostTypeImportExcelReq excel) throws IOException; void importExcel(CostTypeImportExcelReq excel) throws IOException;
//导出 /**
* 导出
*
* @param response res
* @param req re
* @throws IOException ex
*/
void exportExcel(HttpServletResponse response, CostTypeExportExcelReq req) throws IOException; void exportExcel(HttpServletResponse response, CostTypeExportExcelReq req) throws IOException;
} }
...@@ -64,6 +64,7 @@ public class CostTypeServiceImpl extends ServiceImpl<CostTypeDao, CostTypeDomain ...@@ -64,6 +64,7 @@ public class CostTypeServiceImpl extends ServiceImpl<CostTypeDao, CostTypeDomain
costTypeDomain.setIsManageCost(req.getIsManageCost()); costTypeDomain.setIsManageCost(req.getIsManageCost());
costTypeDomain.setCostTemplateType(this.getCostTemplateType(req.getType())); costTypeDomain.setCostTemplateType(this.getCostTemplateType(req.getType()));
costTypeDomain.setNsAccountingSubjectId(req.getNsAccountingSubjectId());
this.save(costTypeDomain); this.save(costTypeDomain);
...@@ -78,6 +79,7 @@ public class CostTypeServiceImpl extends ServiceImpl<CostTypeDao, CostTypeDomain ...@@ -78,6 +79,7 @@ public class CostTypeServiceImpl extends ServiceImpl<CostTypeDao, CostTypeDomain
lendCostTypeDomain.setTypeName(req.getTypeName()); lendCostTypeDomain.setTypeName(req.getTypeName());
lendCostTypeDomain.setDescription(req.getDescription()); lendCostTypeDomain.setDescription(req.getDescription());
lendCostTypeDomain.setAccountingSubjectId(lendAccountingSubject.getId()); lendCostTypeDomain.setAccountingSubjectId(lendAccountingSubject.getId());
lendCostTypeDomain.setNsAccountingSubjectId(req.getNsAccountingSubjectId());
this.save(lendCostTypeDomain); this.save(lendCostTypeDomain);
} }
...@@ -102,6 +104,7 @@ public class CostTypeServiceImpl extends ServiceImpl<CostTypeDao, CostTypeDomain ...@@ -102,6 +104,7 @@ public class CostTypeServiceImpl extends ServiceImpl<CostTypeDao, CostTypeDomain
lendCostTypeDomain.setUpdateUser(oaUser.getUserName()); lendCostTypeDomain.setUpdateUser(oaUser.getUserName());
lendCostTypeDomain.setLastUpdateTime(LocalDateTime.now()); lendCostTypeDomain.setLastUpdateTime(LocalDateTime.now());
lendCostTypeDomain.setIsManageCost(req.getIsManageCost()); lendCostTypeDomain.setIsManageCost(req.getIsManageCost());
lendCostTypeDomain.setNsAccountingSubjectId(req.getNsAccountingSubjectId());
this.updateById(lendCostTypeDomain); this.updateById(lendCostTypeDomain);
} }
...@@ -112,6 +115,7 @@ public class CostTypeServiceImpl extends ServiceImpl<CostTypeDao, CostTypeDomain ...@@ -112,6 +115,7 @@ public class CostTypeServiceImpl extends ServiceImpl<CostTypeDao, CostTypeDomain
costTypeDomain.setDescription(req.getDescription()); costTypeDomain.setDescription(req.getDescription());
costTypeDomain.setUpdateUserId(oaUser.getOaUserId()); costTypeDomain.setUpdateUserId(oaUser.getOaUserId());
costTypeDomain.setUpdateUser(oaUser.getUserName()); costTypeDomain.setUpdateUser(oaUser.getUserName());
costTypeDomain.setNsAccountingSubjectId(req.getNsAccountingSubjectId());
if (req.getAccountingSubjectId() != null) { if (req.getAccountingSubjectId() != null) {
AccountingSubject accountingSubject = accountingSubjectMapper.selectById(req.getAccountingSubjectId()); AccountingSubject accountingSubject = accountingSubjectMapper.selectById(req.getAccountingSubjectId());
......
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