Merge branch 'master' of http://git.picaiba.com/CaiXiang/cigs4
# Conflicts: # ym-packing/src/main/java/com/cnbm/packing/controller/WoPackagingBoxSubstrateController.java # ym-packing/src/main/java/com/cnbm/packing/mapper/WoPackagingBoxSubstrateMapper.java
This commit is contained in:
@@ -37,6 +37,7 @@ import springfox.documentation.annotations.ApiIgnore;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.text.DecimalFormat;
|
||||
import java.util.ArrayList;
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Objects;
|
||||
@@ -327,10 +328,35 @@ public class WoPackagingBoxSubstrateController {
|
||||
return new Result();
|
||||
}
|
||||
|
||||
@GetMapping("substrateList/{woSubstrateId}")
|
||||
@ApiOperation("模组信息查询")
|
||||
public List<WoPackagingBoxSubstrateDTO> substrateList(@PathVariable("woSubstrateId") String woSubstrateId){
|
||||
return woPackagingBoxSubstrateService.substrateList(woSubstrateId);
|
||||
@GetMapping("substrateList")
|
||||
@ApiOperation("装箱单信息查询")
|
||||
@ApiImplicitParams({
|
||||
@ApiImplicitParam(name = "startTime", value = "开始时间", paramType = "query", dataTypeClass = LocalDateTime.class),
|
||||
@ApiImplicitParam(name = "endTime", value = "结束时间", paramType = "query", dataTypeClass = LocalDateTime.class),
|
||||
@ApiImplicitParam(name = "model", value = "模式,1-手动模式;2-自动模式", paramType = "query", dataTypeClass = Integer.class),
|
||||
@ApiImplicitParam(name = "packagingBoxId", value = "包装箱ID,BoxId", paramType = "query", dataTypeClass = String.class),
|
||||
@ApiImplicitParam(name = "woSubstrateId", value = "基板ID(关联T_SUBSTRATE表)", paramType = "query", dataTypeClass = String.class)
|
||||
|
||||
})
|
||||
public List<WoPackagingBoxSubstrateDTO> substrateList(@ApiIgnore @RequestParam Map<String, Object> params){
|
||||
return woPackagingBoxSubstrateService.substrateList(params);
|
||||
}
|
||||
|
||||
@GetMapping("exportPackingInfo")
|
||||
@ApiOperation("装箱单信息导出")
|
||||
@LogOperation("装箱单信息导出")
|
||||
@ApiImplicitParams({
|
||||
@ApiImplicitParam(name = "startTime", value = "开始时间", paramType = "query", dataTypeClass = LocalDateTime.class),
|
||||
@ApiImplicitParam(name = "endTime", value = "结束时间", paramType = "query", dataTypeClass = LocalDateTime.class),
|
||||
@ApiImplicitParam(name = "model", value = "模式,1-手动模式;2-自动模式", paramType = "query", dataTypeClass = Integer.class),
|
||||
@ApiImplicitParam(name = "packagingBoxId", value = "包装箱ID,BoxId", paramType = "query", dataTypeClass = String.class),
|
||||
@ApiImplicitParam(name = "woSubstrateId", value = "基板ID(关联T_SUBSTRATE表)", paramType = "query", dataTypeClass = String.class)
|
||||
|
||||
})
|
||||
public void exportPackingInfo(@ApiIgnore @RequestParam Map<String, Object> params, HttpServletResponse response) throws Exception {
|
||||
List<WoPackagingBoxSubstrateDTO> list = woPackagingBoxSubstrateService.list(params);
|
||||
if(list.size()>0) {
|
||||
ExcelUtils.exportExcelToTarget(response, "装箱单信息", list, WoPackagingBoxSubstrateExcel.class);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user