|
|
@ -37,10 +37,8 @@ import javax.annotation.Resource;
|
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
|
import java.text.SimpleDateFormat;
|
|
|
|
import java.text.SimpleDateFormat;
|
|
|
|
import java.util.ArrayList;
|
|
|
|
import java.util.*;
|
|
|
|
import java.util.HashMap;
|
|
|
|
import java.util.stream.Collectors;
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
import java.util.Map;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Slf4j
|
|
|
|
@Slf4j
|
|
|
|
@RestController
|
|
|
|
@RestController
|
|
|
@ -108,6 +106,8 @@ public class BasicOrderPrintController {
|
|
|
|
List<Object> list = new ArrayList<>();
|
|
|
|
List<Object> list = new ArrayList<>();
|
|
|
|
SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd");//定义新的日期格式
|
|
|
|
SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd");//定义新的日期格式
|
|
|
|
String printThird = systemParamConfigService.selectValueByParamKey("order_print_by_thrproduct");
|
|
|
|
String printThird = systemParamConfigService.selectValueByParamKey("order_print_by_thrproduct");
|
|
|
|
|
|
|
|
String value = systemParamConfigService.selectValueByParamKey("order_detail_visible");
|
|
|
|
|
|
|
|
|
|
|
|
//查询打印格式
|
|
|
|
//查询打印格式
|
|
|
|
BasicBussinessTypeEntity basicBussinessTypeEntity = basicBussinessTypeService.findByAction(filterOrderPrintRequest.getAction());
|
|
|
|
BasicBussinessTypeEntity basicBussinessTypeEntity = basicBussinessTypeService.findByAction(filterOrderPrintRequest.getAction());
|
|
|
|
//根据批次号打印
|
|
|
|
//根据批次号打印
|
|
|
@ -116,8 +116,15 @@ public class BasicOrderPrintController {
|
|
|
|
FilterOrderRequest filterOrderRequest = new FilterOrderRequest();
|
|
|
|
FilterOrderRequest filterOrderRequest = new FilterOrderRequest();
|
|
|
|
filterOrderRequest.setBillNo(filterOrderPrintRequest.getOrderIdFk());
|
|
|
|
filterOrderRequest.setBillNo(filterOrderPrintRequest.getOrderIdFk());
|
|
|
|
IoOrderResponse ioOrderResponse = ioOrderService.filterList(filterOrderRequest).get(0);
|
|
|
|
IoOrderResponse ioOrderResponse = ioOrderService.filterList(filterOrderRequest).get(0);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//查询业务单详情
|
|
|
|
//查询业务单详情
|
|
|
|
List<IoOrderDetailBizEntity> ioOrderDetailBizEntityList = ioOrderDetailBizService.findByOrderId(filterOrderPrintRequest.getOrderIdFk());
|
|
|
|
List<IoOrderDetailBizEntity> ioOrderDetailBizEntityList = ioOrderDetailBizService.findByOrderId(filterOrderPrintRequest.getOrderIdFk());
|
|
|
|
|
|
|
|
if (IntUtil.value(value) == 1) {
|
|
|
|
|
|
|
|
ioOrderDetailBizEntityList = ioOrderDetailBizEntityList.stream()
|
|
|
|
|
|
|
|
.sorted(Comparator.comparing(IoOrderDetailBizEntity::getNameCode))
|
|
|
|
|
|
|
|
.collect(Collectors.toList());
|
|
|
|
|
|
|
|
}
|
|
|
|
int i = 1;
|
|
|
|
int i = 1;
|
|
|
|
if (ioOrderDetailBizEntityList != null && ioOrderDetailBizEntityList.size() > 0) {
|
|
|
|
if (ioOrderDetailBizEntityList != null && ioOrderDetailBizEntityList.size() > 0) {
|
|
|
|
for (IoOrderDetailBizEntity obj : ioOrderDetailBizEntityList) {
|
|
|
|
for (IoOrderDetailBizEntity obj : ioOrderDetailBizEntityList) {
|
|
|
@ -171,6 +178,11 @@ public class BasicOrderPrintController {
|
|
|
|
IoOrderResponse ioOrderResponse = ioOrderService.filterList(filterOrderRequest).get(0);
|
|
|
|
IoOrderResponse ioOrderResponse = ioOrderService.filterList(filterOrderRequest).get(0);
|
|
|
|
//查询扫码单详情
|
|
|
|
//查询扫码单详情
|
|
|
|
List<IoCodeEntity> ioCodeEntityList = ioCodeService.findByOrderId(filterOrderPrintRequest.getOrderIdFk());
|
|
|
|
List<IoCodeEntity> ioCodeEntityList = ioCodeService.findByOrderId(filterOrderPrintRequest.getOrderIdFk());
|
|
|
|
|
|
|
|
if (IntUtil.value(value) == 1) {
|
|
|
|
|
|
|
|
ioCodeEntityList = ioCodeEntityList.stream()
|
|
|
|
|
|
|
|
.sorted(Comparator.comparing(IoCodeEntity::getNameCode))
|
|
|
|
|
|
|
|
.collect(Collectors.toList());
|
|
|
|
|
|
|
|
}
|
|
|
|
//查询业务单据表
|
|
|
|
//查询业务单据表
|
|
|
|
List<IoOrderDetailBizEntity> ioOrderDetailBizEntityList = ioOrderDetailBizService.findByOrderId(filterOrderPrintRequest.getOrderIdFk());
|
|
|
|
List<IoOrderDetailBizEntity> ioOrderDetailBizEntityList = ioOrderDetailBizService.findByOrderId(filterOrderPrintRequest.getOrderIdFk());
|
|
|
|
int i = 1;
|
|
|
|
int i = 1;
|
|
|
|