|
|
@ -3,12 +3,15 @@ package org.nl.wms.board.service.impl; |
|
|
|
import com.alibaba.fastjson.JSON; |
|
|
|
import com.alibaba.fastjson.JSONObject; |
|
|
|
import com.alibaba.fastjson.serializer.SerializerFeature; |
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
import org.nl.common.utils.RedisUtils; |
|
|
|
import org.nl.wms.board.service.BoardService; |
|
|
|
import org.nl.wms.board.service.dao.dto.*; |
|
|
|
import org.nl.wms.board.service.dao.mapper.BoardMapper; |
|
|
|
import org.nl.wms.pda.service.dao.vo.PdaResponseVo; |
|
|
|
import org.nl.wms.sch.point.service.ISchBasePointService; |
|
|
|
import org.nl.wms.sch.point.service.dao.SchBasePoint; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
|
|
|
@ -21,6 +24,8 @@ public class BoardServiceImpl implements BoardService { |
|
|
|
private BoardMapper boardMapper; |
|
|
|
@Autowired |
|
|
|
private RedisUtils redisUtils; |
|
|
|
@Autowired |
|
|
|
private ISchBasePointService pointService; |
|
|
|
|
|
|
|
public JSONObject cz() { |
|
|
|
CzDto czDto = boardMapper.cz(String.valueOf(redisUtils.get("sub_tray"))); |
|
|
@ -34,6 +39,9 @@ public class BoardServiceImpl implements BoardService { |
|
|
|
czDto.setMother_type(String.valueOf(redisUtils.get("mother_type"))); |
|
|
|
czDto.setSub_type(String.valueOf(redisUtils.get("sub_type"))); |
|
|
|
czDto.setError(String.valueOf(redisUtils.get("error"))); |
|
|
|
SchBasePoint schBasePoint= pointService.getOne(new LambdaQueryWrapper<SchBasePoint>() |
|
|
|
.eq(SchBasePoint::getPoint_code, "FBC01")); |
|
|
|
czDto.setFbc(schBasePoint!=null&&schBasePoint.getVehicle_qty()==0?"无货":"有货"); |
|
|
|
return JSONObject.parseObject(JSON.toJSONString(czDto, SerializerFeature.WriteNullStringAsEmpty)); |
|
|
|
} |
|
|
|
|
|
|
|