| | |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.gs.xky.entity.DeliveryNotice; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | /** |
| | | * @author 28567 |
| | |
| | | public interface DeliveryNoticeMapper extends BaseMapper<DeliveryNotice> { |
| | | |
| | | long getNextVal(); |
| | | |
| | | /** |
| | | * 调用 Oracle 存储过程 PRC_RF_PDA_RECEIPT_BTN |
| | | * |
| | | * @param inStr 输入参数 |
| | | * @param result 输出参数 |
| | | */ |
| | | void callPdaReceiptBtn(@Param("C_IN_STR") String inStr, @Param("C_RESULT") String result); |
| | | } |
| | | |
| | | |
| | |
| | | boolean saveDeliveryNotice(XkyDetail xkyDetail); |
| | | |
| | | |
| | | void callPdaReceiptBtn(String inStr, String result); |
| | | } |
| | |
| | | String[] split = detail.getPoLineNo().split("-"); |
| | | detail.setPoLineNo(split[0]); |
| | | } |
| | | |
| | | |
| | | noticeDetails.add(detail); |
| | | } |
| | | |
| | | return save(deliveryNotice) && detailService.saveBatch(noticeDetails); |
| | | } |
| | | |
| | | @Override |
| | | public void callPdaReceiptBtn(String inStr, String result) { |
| | | baseMapper.callPdaReceiptBtn(inStr, result); |
| | | } |
| | | } |
| | | |
| | | |
| | |
| | | deliveryNoticeService.saveDeliveryNotice(detail); |
| | | List<BarcodeDeliveryNo> barcodeDeliveryNos = GetBarcodeInformation(deliveryNo.getDeliveryNo()); |
| | | barcodeInformationService.SaveBarcodeInformation(barcodeDeliveryNos, deliveryNo.getDeliveryNo()); |
| | | |
| | | deliveryNoticeService.callPdaReceiptBtn("送货单签收[BTNOK[PL017[" + deliveryNo.getDeliveryNo(), ""); |
| | | } catch (IOException e) { |
| | | throw new RuntimeException(e); |
| | | } |
| | |
| | | SELECT SEQ_XKY.NEXTVAL |
| | | FROM DUAL |
| | | </select> |
| | | |
| | | <!-- 调用存储过程 --> |
| | | <select id="callPdaReceiptBtn" statementType="CALLABLE"> |
| | | {call PRC_RF_PDA_RECEIPT_BTN( |
| | | #{C_IN_STR, mode=IN, jdbcType=VARCHAR}, |
| | | #{C_RESULT, mode=OUT, jdbcType=VARCHAR} |
| | | )} |
| | | </select> |
| | | </mapper> |