|
|
|
@ -20,6 +20,8 @@ import com.alibaba.fastjson.JSON;
|
|
|
|
|
import com.alibaba.fastjson.JSONObject; |
|
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
|
|
|
|
import com.baomidou.mybatisplus.core.toolkit.ObjectUtils; |
|
|
|
|
import com.logpm.basicdata.entity.BasicdataWarehouseEntity; |
|
|
|
|
import com.logpm.basicdata.feign.IBasicdataWarehouseClient; |
|
|
|
|
import com.logpm.distribution.dto.DistributionDeliveryInfoDTO; |
|
|
|
|
import com.logpm.distribution.dto.DistributionSigndetailDTO; |
|
|
|
|
import com.logpm.distribution.entity.DistributionSigndetailEntity; |
|
|
|
@ -28,9 +30,11 @@ import com.logpm.distribution.mapper.DistributionSigndetailMapper;
|
|
|
|
|
import com.logpm.distribution.service.IDistributionSigndetailService; |
|
|
|
|
import com.logpm.distribution.vo.DistributionDeliveryInfoVO; |
|
|
|
|
import com.logpm.distribution.vo.DistributionSigndetailVO; |
|
|
|
|
import lombok.AllArgsConstructor; |
|
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
|
import org.springblade.common.constant.DictBizConstant; |
|
|
|
|
import org.springblade.core.mp.base.BaseServiceImpl; |
|
|
|
|
import org.springblade.core.tool.utils.Func; |
|
|
|
|
import org.springblade.system.cache.DictBizCache; |
|
|
|
|
import org.springframework.beans.BeanUtils; |
|
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
@ -49,10 +53,20 @@ import java.util.Map;
|
|
|
|
|
*/ |
|
|
|
|
@Service |
|
|
|
|
@Slf4j |
|
|
|
|
|
|
|
|
|
@AllArgsConstructor |
|
|
|
|
public class DistributionSigndetailServiceImpl extends BaseServiceImpl<DistributionSigndetailMapper, DistributionSigndetailEntity> implements IDistributionSigndetailService { |
|
|
|
|
|
|
|
|
|
private IBasicdataWarehouseClient warehouseClient; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public IPage<DistributionSigndetailVO> selectDistributionSigndetailPage(IPage<DistributionSigndetailVO> page, DistributionSigndetailDTO distributionSigndetail) { |
|
|
|
|
BasicdataWarehouseEntity myCurrentWarehouse = warehouseClient.getMyCurrentWarehouse(); |
|
|
|
|
if (Func.isNotEmpty(myCurrentWarehouse)){ |
|
|
|
|
distributionSigndetail.setWarehouseId(myCurrentWarehouse.getId().toString()); |
|
|
|
|
} |
|
|
|
|
//转换创建时间
|
|
|
|
|
if (null != distributionSigndetail.getCreateTime()){ |
|
|
|
|
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); |
|
|
|
|