| | |
| | | import com.example.erp.common.Result; |
| | | import com.example.erp.entity.sd.OrderDetail; |
| | | import com.example.erp.entity.sd.OrderFile; |
| | | import com.example.erp.mapper.sd.OrderDetailMapper; |
| | | import com.example.erp.mapper.sd.OrderFileMapper; |
| | | import lombok.RequiredArgsConstructor; |
| | | import org.springframework.stereotype.Service; |
| | |
| | | @RequiredArgsConstructor |
| | | public class OrderFileService { |
| | | private final OrderFileMapper orderFileMapper; |
| | | private final OrderDetailMapper orderDetailMapper; |
| | | public List<OrderFile> getOrderFilePicture(List<Map<String,Object>> orderDetails) throws NoSuchFieldException { |
| | | Set<String> seenKeys = new HashSet<>(); |
| | | List<Map<String,Object>> result = new ArrayList<>(); |
| | |
| | | .eq(OrderFile::getOrderNumber, orderNumber) |
| | | ); |
| | | } |
| | | |
| | | orderDetailMapper.update(null,new LambdaUpdateWrapper<OrderDetail>() |
| | | .setSql("file_name = '" + name + "'") |
| | | .eq(OrderDetail::getOrderId, orderId)); |
| | | |
| | | return orderFile; |
| | | } catch (Exception e) { |