コード例 #1
0
 @Override
 public void createLogisticsPrintInfo(LogisticsPrintInfo logisticsPrintInfo) {
   if (queryLogisticsPrintInfoByNameAndCustomerId(
           logisticsPrintInfo.getName(), logisticsPrintInfo.getCustomerId())
       != null) {
     throw new RuntimeException("添加过这个物流公司, 不需要重复添加");
   }
   logisticsPrintInfoRepository.createLogisticsPrintInfo(logisticsPrintInfo);
 }
コード例 #2
0
 @Override
 public void deleteLogisticsPrintInfoById(int logisticsPrintInfoId) {
   logisticsPrintInfoRepository.deleteLogisticsPrintInfoById(logisticsPrintInfoId);
 }
コード例 #3
0
 @Override
 public void updateLogisticsPrintInfo(LogisticsPrintInfo logisticsPrintInfo) {
   logisticsPrintInfoRepository.updateLogisticsPrintInfo(logisticsPrintInfo);
 }
コード例 #4
0
 @Override
 public LogisticsPrintInfo queryLogisticsPrintInfoById(int id) {
   return logisticsPrintInfoRepository.queryLogisticsPrintInfoById(id);
 }
コード例 #5
0
 @Override
 public LogisticsPrintInfo queryLogisticsPrintInfoByNameAndCustomerId(
     DeliveryInfo.DeliveryType name, int customerId) {
   return logisticsPrintInfoRepository.queryLogisticsPrintInfoByNameAndCustomerId(
       name, customerId);
 }
コード例 #6
0
 @Override
 public List<LogisticsPrintInfo> queryAllLogisticsPrintInfoByCustomerId(int customerId) {
   return logisticsPrintInfoRepository.queryAllLogisticsPrintInfoByCustomerId(customerId);
 }