| | |
| | | package com.zy.asrs.service.impl; |
| | | |
| | | import com.alibaba.fastjson.JSON; |
| | | import com.baomidou.mybatisplus.mapper.EntityWrapper; |
| | | import com.core.common.BaseRes; |
| | | import com.core.common.Cools; |
| | |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import org.springframework.util.StringUtils; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | import java.util.*; |
| | | import java.util.stream.Collectors; |
| | | |
| | | /** |
| | |
| | | } |
| | | Date now = new Date(); |
| | | Order order = orderMapping(param, now, pakin, docName); |
| | | StringBuffer tel = new StringBuffer(); |
| | | Set<String> set = new HashSet<>(); |
| | | for (OrderSyncParam.OrderDetl child : param.getChildren()) { |
| | | tel.append(child.getCDefine22()).append(";"); |
| | | set.add(child.getCDefine22()); |
| | | } |
| | | order.setTel(tel.toString()); |
| | | order.setTel(JSON.toJSONString(set)); |
| | | orderService.insert(order); |
| | | param.getChildren().forEach(od -> { |
| | | OrderDetl orderDetl = orderDetlMapping(order, od, now); |