|
|
@ -1,13 +1,15 @@
|
|
|
|
package com.glxp.api.service.inout.impl;
|
|
|
|
package com.glxp.api.service.inout.impl;
|
|
|
|
|
|
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
|
|
|
|
|
import com.github.pagehelper.PageHelper;
|
|
|
|
import com.glxp.api.dao.inout.IoCodeDao;
|
|
|
|
import com.glxp.api.dao.inout.IoCodeDao;
|
|
|
|
import com.glxp.api.entity.inout.IoCodeEnttity;
|
|
|
|
import com.glxp.api.entity.inout.IoCodeEnttity;
|
|
|
|
|
|
|
|
import com.glxp.api.req.inout.FilterIoCodeRequest;
|
|
|
|
import com.glxp.api.service.inout.IoCodeService;
|
|
|
|
import com.glxp.api.service.inout.IoCodeService;
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
|
|
|
|
import java.util.Collections;
|
|
|
|
import java.util.List;
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
|
|
@Service
|
|
|
|
@Service
|
|
|
@ -41,5 +43,16 @@ public class IoCodeServiceImpl implements IoCodeService {
|
|
|
|
return ioCodeDao.selectOne(new QueryWrapper<IoCodeEnttity>().eq("orderId", orderId).eq("code", code));
|
|
|
|
return ioCodeDao.selectOne(new QueryWrapper<IoCodeEnttity>().eq("orderId", orderId).eq("code", code));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
|
|
|
public List<IoCodeEnttity> filterCodeList(FilterIoCodeRequest filterIoCodeRequest) {
|
|
|
|
|
|
|
|
if (null == filterIoCodeRequest) {
|
|
|
|
|
|
|
|
return Collections.emptyList();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (null != filterIoCodeRequest.getPage() && null != filterIoCodeRequest.getLimit()) {
|
|
|
|
|
|
|
|
PageHelper.offsetPage((filterIoCodeRequest.getPage() - 1) * filterIoCodeRequest.getLimit(), filterIoCodeRequest.getLimit());
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return ioCodeDao.filterCodeList(filterIoCodeRequest);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|