|
@@ -4,11 +4,14 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
import com.fjhx.constants.StatusConstant;
|
|
|
import com.fjhx.constants.logistics.LogisticsConstant;
|
|
|
import com.fjhx.entity.logistics.LogisticsInfo;
|
|
|
+import com.fjhx.params.logistics.DataInfoPageDto;
|
|
|
+import com.fjhx.params.logistics.DataInfoPageVo;
|
|
|
import com.fjhx.params.logistics.DeliverDetailsVo;
|
|
|
import com.fjhx.params.logistics.LogisticsInfoVo;
|
|
|
import com.fjhx.service.logistics.LogisticsInfoService;
|
|
|
import org.springblade.core.tool.api.R;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.validation.annotation.Validated;
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
@@ -64,15 +67,14 @@ public class LogisticsInfoController {
|
|
|
|
|
|
@PostMapping("/list")
|
|
|
public R list() {
|
|
|
- List<LogisticsInfo> list = logisticsInfoService.list(q -> q.eq(LogisticsInfo::getStatus, StatusConstant.NO).eq(LogisticsInfo::getLogisticsStatus, LogisticsConstant.KD100Status.STATUS_3));
|
|
|
+ List<LogisticsInfo> list = logisticsInfoService.list(q -> q
|
|
|
+ .eq(LogisticsInfo::getStatus, StatusConstant.NO)
|
|
|
+ .eq(LogisticsInfo::getLogisticsStatus, LogisticsConstant.KD100Status.STATUS_3));
|
|
|
return R.success(list);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 查询物流单号下拉款
|
|
|
- *
|
|
|
- * @param entity
|
|
|
- * @return
|
|
|
*/
|
|
|
@PostMapping("/code/select")
|
|
|
public R codeSelect(@RequestBody LogisticsInfoVo entity) {
|
|
@@ -90,9 +92,6 @@ public class LogisticsInfoController {
|
|
|
|
|
|
/**
|
|
|
* 到货通知
|
|
|
- *
|
|
|
- * @param entity
|
|
|
- * @return
|
|
|
*/
|
|
|
@PostMapping("/arrival/notice")
|
|
|
public R arrivalNotice(@RequestBody LogisticsInfoVo entity) {
|
|
@@ -100,5 +99,14 @@ public class LogisticsInfoController {
|
|
|
return R.success();
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 物流数据分页列表
|
|
|
+ */
|
|
|
+ @PostMapping(value = "/dataInfoPage")
|
|
|
+ public R dataInfoPage(@Validated @RequestBody DataInfoPageDto dto) {
|
|
|
+ Page<DataInfoPageVo> result = logisticsInfoService.dataInfoPage(dto);
|
|
|
+ return R.success(result);
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
|