|
|
|
@ -51,7 +51,7 @@ public class VoucherServiceImpl implements VoucherService {
|
|
|
|
|
DepotCabinetDO depotCabinetDO = depotCabinetMapper.selectById(cabinetId);
|
|
|
|
|
String position="";
|
|
|
|
|
if (organizationDO != null){
|
|
|
|
|
position=position+"/"+organizationDO.getOrganizationName();
|
|
|
|
|
position=position+organizationDO.getOrganizationName();
|
|
|
|
|
if (depotDO != null){
|
|
|
|
|
position=position+"/"+depotDO.getName();
|
|
|
|
|
if (depotCabinetDO != null){
|
|
|
|
@ -70,7 +70,7 @@ public class VoucherServiceImpl implements VoucherService {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public void updateVoucher(VoucherUpdateReqVO updateReqVO) {
|
|
|
|
|
public void updateVoucherPositon(VoucherUpdateReqVO updateReqVO) {
|
|
|
|
|
// 校验存在
|
|
|
|
|
validateVoucherExists(updateReqVO.getId());
|
|
|
|
|
// 更新
|
|
|
|
@ -98,6 +98,14 @@ public class VoucherServiceImpl implements VoucherService {
|
|
|
|
|
updateObj.setPosition(position);
|
|
|
|
|
voucherMapper.updateById(updateObj);
|
|
|
|
|
}
|
|
|
|
|
@Override
|
|
|
|
|
public void updateVoucher(VoucherUpdateReqVO updateReqVO) {
|
|
|
|
|
// 校验存在
|
|
|
|
|
validateVoucherExists(updateReqVO.getId());
|
|
|
|
|
// 更新
|
|
|
|
|
VoucherDO updateObj = VoucherConvert.INSTANCE.convert(updateReqVO);
|
|
|
|
|
voucherMapper.updateById(updateObj);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public void deleteVoucher(Long id) {
|
|
|
|
|