add 添加单据暂存状态

This commit is contained in:
songgaoshuai 2024-06-03 13:48:30 +08:00
parent f2e0ffb2b2
commit 5d3af1a932

View File

@ -92,6 +92,9 @@ public class TestLeaveServiceImpl implements ITestLeaveService {
@Override
public TestLeaveVo insertByBo(TestLeaveBo bo) {
TestLeave add = MapstructUtils.convert(bo, TestLeave.class);
if (StringUtils.isBlank(add.getStatus())) {
add.setStatus(BusinessStatusEnum.DRAFT.getStatus());
}
boolean flag = baseMapper.insert(add) > 0;
if (flag) {
bo.setId(add.getId());