| | |
| | | |
| | | import cn.hutool.core.bean.BeanUtil; |
| | | import cn.hutool.core.collection.CollUtil; |
| | | import cn.hutool.core.util.StrUtil; |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | |
| | | DeliveryNoticeDetail detail = new DeliveryNoticeDetail(); |
| | | BeanUtil.copyProperties(list, detail); |
| | | detail.setPid(id); |
| | | |
| | | if (StrUtil.isNotEmpty(detail.getPoLineNo())) { |
| | | String[] split = detail.getPoLineNo().split("-"); |
| | | detail.setPoLineNo(split[0]); |
| | | detail.setPlanLineNo(split[1]); |
| | | } |
| | | |
| | | noticeDetails.add(detail); |
| | | } |
| | | |
| | | return save(deliveryNotice) && detailService.saveBatch(noticeDetails); |
| | | } |
| | | |
| | | @Override |
| | | public void callPdaReceiptBtn(String inStr, String result) { |
| | | baseMapper.callPdaReceiptBtn(inStr, result); |
| | | } |
| | | } |
| | | |
| | | |