|
|
|
@ -17,6 +17,7 @@
|
|
|
|
|
package com.logpm.factory.snm.controller; |
|
|
|
|
|
|
|
|
|
import com.logpm.factory.jobhandler.FactoryXxlJob; |
|
|
|
|
import com.logpm.factory.snm.entity.StationOrderEntity; |
|
|
|
|
import io.swagger.annotations.Api; |
|
|
|
|
import io.swagger.annotations.ApiOperation; |
|
|
|
|
import io.swagger.annotations.ApiParam; |
|
|
|
@ -24,6 +25,7 @@ import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
|
|
|
|
|
import lombok.AllArgsConstructor; |
|
|
|
|
import javax.validation.Valid; |
|
|
|
|
|
|
|
|
|
import org.springblade.common.constant.PackagesTypeEnum; |
|
|
|
|
import org.springblade.core.secure.BladeUser; |
|
|
|
|
import org.springblade.core.mp.support.Condition; |
|
|
|
|
import org.springblade.core.mp.support.Query; |
|
|
|
@ -35,6 +37,9 @@ import com.logpm.factory.snm.entity.StaorderPackagesEntity;
|
|
|
|
|
import com.logpm.factory.snm.vo.StaorderPackagesVO; |
|
|
|
|
import com.logpm.factory.snm.service.IStaorderPackagesService; |
|
|
|
|
import org.springblade.core.boot.ctrl.BladeController; |
|
|
|
|
import springfox.documentation.annotations.ApiIgnore; |
|
|
|
|
|
|
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 寺尼曼运单 控制器 |
|
|
|
@ -69,9 +74,14 @@ public class StaorderPackagesController extends BladeController {
|
|
|
|
|
@ApiOperation(value = "分页", notes = "传入staorderPackages") |
|
|
|
|
public R<IPage<StaorderPackagesEntity>> list(StaorderPackagesEntity staorderPackages, Query query) { |
|
|
|
|
IPage<StaorderPackagesEntity> pages = staorderPackagesService.page(Condition.getPage(query), Condition.getQueryWrapper(staorderPackages)); |
|
|
|
|
//转换包件类型
|
|
|
|
|
List<StaorderPackagesEntity> records = pages.getRecords(); |
|
|
|
|
records.forEach(e->{e.setLx(PackagesTypeEnum.getMes(e.getLx()));}); |
|
|
|
|
return R.data(pages); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 寺尼曼运单 自定义分页 |
|
|
|
|
*/ |
|
|
|
|