订单打印模板,内部码模板

master
chenqf 3 years ago
parent d4c511a20b
commit 57763020f9

@ -0,0 +1 @@
/target/

@ -1,12 +1,29 @@
package com.glxp.sale.admin.controller.inout;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.BindingResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;
import com.github.pagehelper.PageInfo;
import com.glxp.sale.admin.entity.basic.BussinessTypeEntity;
import com.glxp.sale.admin.entity.inout.*;
import com.glxp.sale.admin.entity.inout.StockOrderDetailEntity;
import com.glxp.sale.admin.entity.inout.StockOrderEntity;
import com.glxp.sale.admin.entity.inout.StockOrderPrintEntity;
import com.glxp.sale.admin.entity.inout.StockQRCodeTextEntity;
import com.glxp.sale.admin.entity.param.SystemPDFModuleEntity;
import com.glxp.sale.admin.entity.param.SystemPDFTemplateEntity;
import com.glxp.sale.admin.req.inout.DeleteRequest;
import com.glxp.sale.admin.req.inout.StockOrderDetailFilterRequest;
import com.glxp.sale.admin.req.inout.StockQRCodeTextFilterRequest;
import com.glxp.sale.admin.req.itextpdf.InspectionPDFTemplateRequest;
import com.glxp.sale.admin.req.itextpdf.StockQRCodeTextPDFTemplateRequest;
@ -14,25 +31,19 @@ import com.glxp.sale.admin.res.PageSimpleResponse;
import com.glxp.sale.admin.service.basic.BussinessTypeService;
import com.glxp.sale.admin.service.basic.UdiInfoService;
import com.glxp.sale.admin.service.basic.UdiRelevanceService;
import com.glxp.sale.admin.service.inout.*;
import com.glxp.sale.admin.service.inout.StockOrderDetailService;
import com.glxp.sale.admin.service.inout.StockOrderDetailTempService;
import com.glxp.sale.admin.service.inout.StockOrderService;
import com.glxp.sale.admin.service.inout.StockQRCodeTextService;
import com.glxp.sale.admin.service.param.SystemPDFModuleService;
import com.glxp.sale.admin.service.param.SystemPDFTemplateService;
import com.glxp.sale.admin.service.param.SystemParamConfigService;
import com.glxp.sale.admin.thread.IoTransInoutService;
import com.glxp.sale.admin.util.ITextPDFUtils;
import com.glxp.sale.admin.util.JasperUtils;
import com.glxp.sale.common.enums.ResultEnum;
import com.glxp.sale.common.res.BaseResponse;
import com.glxp.sale.common.util.ResultVOUtils;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.BindingResult;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.ArrayList;
import java.util.List;
@RestController
public class StockQRCodeTextController {
@ -113,6 +124,8 @@ public class StockQRCodeTextController {
@RequestBody StockQRCodeTextPDFTemplateRequest stockQRCodeTextPDFTemplateRequest,
HttpServletRequest request, HttpServletResponse response) throws Exception {
StockQRCodeTextEntity stockQRCodeTextEntity = stockQRCodeTextService.findOne(stockQRCodeTextPDFTemplateRequest.getId());
if (stockQRCodeTextEntity == null) {
return;
@ -161,6 +174,8 @@ public class StockQRCodeTextController {
@RequestBody StockQRCodeTextPDFTemplateRequest stockQRCodeTextPDFTemplateRequest,
HttpServletRequest request, HttpServletResponse response) throws Exception {
/*
StockOrderEntity stockOrderEntity =
stockOrderService.findById(stockQRCodeTextPDFTemplateRequest.getId());
if (stockOrderEntity == null) {
@ -189,11 +204,21 @@ public class StockQRCodeTextController {
ITextPDFUtils.exportStockOrderPDFFromTemplateFile(
stockQRCodeTextPDFTemplateRequest, stockOrderEntity, stockOrderDetailEntityList, request, response);
StockOrderEntity updateStockOrderEntity = new StockOrderEntity();
updateStockOrderEntity.setId(stockOrderEntity.getId());
updateStockOrderEntity.setPrintStatus("102");
stockOrderService.updateById(updateStockOrderEntity);
*/
/*打印订单*/
List<StockOrderPrintEntity> list = stockOrderService.listOrderPrint(stockQRCodeTextPDFTemplateRequest.getId());
if(list!=null&&list.size()>0) {
StockOrderEntity updateStockOrderEntity = new StockOrderEntity();
updateStockOrderEntity.setId(stockQRCodeTextPDFTemplateRequest.getId());
updateStockOrderEntity.setPrintStatus("102");
stockOrderService.updateById(updateStockOrderEntity);
Map<String,Object> data = new HashMap<String,Object>();
data.put("data", list);
JasperUtils.jasperReport(request, response, data, "aspers/order_print_1.jasper", "pdf");
}
}

@ -1,16 +1,14 @@
package com.glxp.sale.admin.dao.inout;
import com.glxp.sale.admin.entity.inout.OrderEntity;
import com.glxp.sale.admin.entity.inout.StockOrderEntity;
import com.glxp.sale.admin.entity.inout.WarehouseEntity;
import com.glxp.sale.admin.req.inout.OrderFilterRequest;
import com.glxp.sale.admin.req.inout.OrderQueryRequest;
import com.glxp.sale.admin.req.inout.StockOrderFilterRequest;
import com.glxp.sale.admin.req.inout.StockOrderQueryRequest;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
import com.glxp.sale.admin.entity.inout.StockOrderEntity;
import com.glxp.sale.admin.entity.inout.StockOrderPrintEntity;
import com.glxp.sale.admin.req.inout.StockOrderFilterRequest;
import com.glxp.sale.admin.req.inout.StockOrderQueryRequest;
@Mapper
public interface StockOrderDao {
@ -32,4 +30,6 @@ public interface StockOrderDao {
List<StockOrderEntity> filterListOr(StockOrderFilterRequest stockOrderFilterRequest);
StockOrderEntity findOne(StockOrderFilterRequest stockOrderFilterRequest);
List<StockOrderPrintEntity> listOrderPrint(StockOrderFilterRequest stockOrderFilterRequest);
}

@ -0,0 +1,23 @@
package com.glxp.sale.admin.entity.inout;
import lombok.Data;
@Data
public class StockOrderPrintEntity extends StockOrderDetailEntity {
private String id;
private String billNo;
private String billdate;
private String corpId;
private String corpName;
private String billType;
private String billFlag;
private String thirdSysFk;
private String status;
private String statusInfo;
private String type;
private String sourceType;
private String printStatus;
private String unitIdFk;
private String customerId;
}

@ -1,12 +1,12 @@
package com.glxp.sale.admin.service.inout;
import java.util.List;
import com.glxp.sale.admin.entity.inout.StockOrderEntity;
import com.glxp.sale.admin.entity.inout.WarehouseEntity;
import com.glxp.sale.admin.entity.inout.StockOrderPrintEntity;
import com.glxp.sale.admin.req.inout.StockOrderFilterRequest;
import com.glxp.sale.admin.req.inout.StockOrderQueryRequest;
import java.util.List;
public interface StockOrderService {
List<StockOrderEntity> listStockOrders(StockOrderQueryRequest stockOrderQueryRequest);
@ -30,4 +30,6 @@ public interface StockOrderService {
StockOrderEntity findOne(StockOrderFilterRequest stockOrderFilterRequest);
StockOrderEntity findById(String orderId);
List<StockOrderPrintEntity> listOrderPrint(String orderId);
}

@ -1,22 +1,19 @@
package com.glxp.sale.admin.service.inout.impl;
import java.util.Collections;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import com.github.pagehelper.PageHelper;
import com.glxp.sale.admin.dao.inout.OrderDao;
import com.glxp.sale.admin.dao.inout.StockOrderDao;
import com.glxp.sale.admin.dao.inout.WarehouseDao;
import com.glxp.sale.admin.entity.inout.OrderEntity;
import com.glxp.sale.admin.entity.inout.StockOrderEntity;
import com.glxp.sale.admin.entity.inout.WarehouseEntity;
import com.glxp.sale.admin.req.inout.OrderFilterRequest;
import com.glxp.sale.admin.entity.inout.StockOrderPrintEntity;
import com.glxp.sale.admin.req.inout.StockOrderFilterRequest;
import com.glxp.sale.admin.req.inout.StockOrderQueryRequest;
import com.glxp.sale.admin.service.inout.OrderService;
import com.glxp.sale.admin.service.inout.StockOrderService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.Collections;
import java.util.List;
@Service
public class StockOrderServiceImpl implements StockOrderService {
@ -97,5 +94,11 @@ public class StockOrderServiceImpl implements StockOrderService {
return stockOrderDao.findOne(stockOrderFilterRequest);
}
@Override
public List<StockOrderPrintEntity> listOrderPrint(String orderId) {
StockOrderFilterRequest stockOrderFilterRequest = new StockOrderFilterRequest();
stockOrderFilterRequest.setId(orderId);
return stockOrderDao.listOrderPrint(stockOrderFilterRequest);
}
}

@ -2,7 +2,7 @@
server.port=9996
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
spring.datasource.jdbc-url=jdbc:mysql://127.0.0.1:3306/spms?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowPublicKeyRetrieval=true
spring.datasource.jdbc-url=jdbc:mysql://139.159.187.130:3306/spms?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowPublicKeyRetrieval=true
spring.datasource.username=root
spring.datasource.password=root
#spring.datasource.password=123456

@ -0,0 +1,179 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Created with Jaspersoft Studio version 6.5.1.final using JasperReports Library version 6.5.1 -->
<jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="Blank_A4_1" pageWidth="595" pageHeight="842" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="ebb5aab8-f051-4bd8-bded-1a51a76d9c3b">
<property name="com.jaspersoft.studio.data.defaultdataadapter" value="One Empty Record"/>
<queryString language="json">
<![CDATA[data]]>
</queryString>
<field name="id" class="java.lang.String"/>
<field name="udiCode" class="java.lang.String"/>
<field name="nameCode" class="java.lang.String"/>
<field name="cpmctymc" class="java.lang.String"/>
<field name="batchNo" class="java.lang.String"/>
<field name="produceDate" class="java.lang.String"/>
<field name="expireDate" class="java.lang.String"/>
<field name="ggxh" class="java.lang.String"/>
<field name="ylqxzcrbarmc" class="java.lang.String"/>
<field name="zczbhhzbzpzbh" class="java.lang.String"/>
<field name="spaceCode" class="java.lang.String"/>
<field name="spaceName" class="java.lang.String"/>
<group name="Group1" isStartNewPage="true">
<groupExpression><![CDATA[$F{id}]]></groupExpression>
<groupHeader>
<band/>
</groupHeader>
<groupFooter>
<band/>
</groupFooter>
</group>
<background>
<band splitType="Stretch"/>
</background>
<title>
<band splitType="Stretch"/>
</title>
<pageHeader>
<band splitType="Stretch"/>
</pageHeader>
<columnHeader>
<band splitType="Stretch"/>
</columnHeader>
<detail>
<band height="269" splitType="Stretch">
<textField isBlankWhenNull="true">
<reportElement x="76" y="24" width="136" height="20" uuid="52ef5da3-ec39-4066-8050-f7525f74a811"/>
<textElement>
<font fontName="Arial"/>
</textElement>
<textFieldExpression><![CDATA[$F{batchNo}]]></textFieldExpression>
<patternExpression><![CDATA[$F{batchNo}]]></patternExpression>
</textField>
<staticText>
<reportElement x="22" y="24" width="50" height="20" uuid="0cf4dca2-498c-4ee3-8220-bf22d83e7143"/>
<textElement textAlignment="Right">
<font fontName="华文宋体"/>
</textElement>
<text><![CDATA[产品批号:]]></text>
</staticText>
<textField isBlankWhenNull="true">
<reportElement x="28" y="50" width="190" height="14" uuid="da5b32a2-7feb-4c0a-ab3a-cb7c6c53db12"/>
<textElement>
<font fontName="Arial"/>
</textElement>
<textFieldExpression><![CDATA[$F{udiCode}]]></textFieldExpression>
<patternExpression><![CDATA[$F{udiCode}]]></patternExpression>
</textField>
<staticText>
<reportElement x="22" y="73" width="49" height="19" uuid="7919a800-0d64-439a-8087-03c1c9aec723"/>
<textElement textAlignment="Right">
<font fontName="华文宋体"/>
</textElement>
<text><![CDATA[生产日期:]]></text>
</staticText>
<staticText>
<reportElement x="22" y="98" width="49" height="20" uuid="087847cc-7217-471b-8008-da2f31d54c72"/>
<textElement textAlignment="Right">
<font fontName="华文宋体"/>
</textElement>
<text><![CDATA[失效日期:]]></text>
</staticText>
<textField isBlankWhenNull="true">
<reportElement x="76" y="72" width="136" height="19" uuid="af99e057-78e6-4f1c-abce-8e9edd0fcd7e"/>
<textElement>
<font fontName="Arial"/>
</textElement>
<textFieldExpression><![CDATA[$F{produceDate}]]></textFieldExpression>
<patternExpression><![CDATA[$F{produceDate}]]></patternExpression>
</textField>
<textField isBlankWhenNull="true">
<reportElement x="76" y="98" width="134" height="20" uuid="70419277-91ad-43dc-92ae-8d2cfc071c5d"/>
<textElement>
<font fontName="Arial"/>
</textElement>
<textFieldExpression><![CDATA[$F{expireDate}]]></textFieldExpression>
<patternExpression><![CDATA[$F{expireDate}]]></patternExpression>
</textField>
<componentElement>
<reportElement x="222" y="14" width="90" height="90" uuid="8aab5c5a-5cd9-4fc3-943e-26a659e7e2c4"/>
<jr:DataMatrix xmlns:jr="http://jasperreports.sourceforge.net/jasperreports/components" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports/components http://jasperreports.sourceforge.net/xsd/components.xsd">
<jr:codeExpression><![CDATA["123456789"]]></jr:codeExpression>
<jr:patternExpression><![CDATA[$F{udiCode}]]></jr:patternExpression>
</jr:DataMatrix>
</componentElement>
<staticText>
<reportElement x="23" y="174" width="48" height="16" uuid="802e13c8-d34e-4dc9-8d77-abd57d3fe305"/>
<textElement textAlignment="Right">
<font fontName="华文宋体"/>
</textElement>
<text><![CDATA[生产企业:]]></text>
</staticText>
<textField isBlankWhenNull="true">
<reportElement x="76" y="173" width="234" height="23" uuid="0eb681fd-be5a-46bc-a417-55bdcdd0f024"/>
<textFieldExpression><![CDATA[$F{ylqxzcrbarmc}]]></textFieldExpression>
<patternExpression><![CDATA[$F{ylqxzcrbarmc}]]></patternExpression>
</textField>
<staticText>
<reportElement x="22" y="124" width="50" height="19" uuid="1600efd6-e53c-4498-a21f-39d288c979a3"/>
<textElement textAlignment="Right">
<font fontName="华文宋体"/>
</textElement>
<text><![CDATA[产品名称:]]></text>
</staticText>
<textField isBlankWhenNull="true">
<reportElement x="76" y="124" width="234" height="19" uuid="33d41506-86c3-431f-84e8-18c20ffe293b"/>
<textFieldExpression><![CDATA[$F{cpmctymc}]]></textFieldExpression>
<patternExpression><![CDATA[$F{cpmctymc}]]></patternExpression>
</textField>
<staticText>
<reportElement x="22" y="148" width="50" height="20" uuid="28f00009-ce52-4e04-9f4c-4fb894c027a4"/>
<textElement textAlignment="Right">
<font fontName="华文宋体"/>
</textElement>
<text><![CDATA[规格型号:]]></text>
</staticText>
<textField isBlankWhenNull="true">
<reportElement x="76" y="147" width="234" height="20" uuid="a5924840-ccad-4f8f-a174-5de7a38315f5"/>
<textFieldExpression><![CDATA[$F{ggxh}]]></textFieldExpression>
<patternExpression><![CDATA[$F{ggxh}]]></patternExpression>
</textField>
<textField isBlankWhenNull="true">
<reportElement x="75" y="197" width="237" height="26" uuid="f24409d0-4e24-46f5-b881-283627534c02"/>
<textFieldExpression><![CDATA[$F{zczbhhzbzpzbh}]]></textFieldExpression>
<patternExpression><![CDATA[$F{zczbhhzbzpzbh}]]></patternExpression>
</textField>
<staticText>
<reportElement x="22" y="196" width="49" height="21" uuid="935137fa-d982-46f3-8375-91ff48e9ceb4"/>
<textElement textAlignment="Right">
<font fontName="华文宋体"/>
</textElement>
<text><![CDATA[注册证号:]]></text>
</staticText>
<staticText>
<reportElement x="22" y="222" width="49" height="14" uuid="9ee0ff34-6637-4a3c-bb1a-44f2ab25c498"/>
<textElement textAlignment="Right">
<font fontName="华文宋体"/>
</textElement>
<text><![CDATA[货位:]]></text>
</staticText>
<textField isBlankWhenNull="true">
<reportElement x="76" y="222" width="74" height="24" uuid="dd48b293-6833-4125-86d1-6e7e7facf91d"/>
<textFieldExpression><![CDATA[$F{spaceCode}]]></textFieldExpression>
<patternExpression><![CDATA[$F{spaceCode}]]></patternExpression>
</textField>
<textField isBlankWhenNull="true">
<reportElement x="155" y="224" width="155" height="23" uuid="51a77544-b235-4234-967d-b235ad3a4958"/>
<textFieldExpression><![CDATA[$F{spaceName}]]></textFieldExpression>
<patternExpression><![CDATA[$F{spaceName}]]></patternExpression>
</textField>
</band>
</detail>
<columnFooter>
<band splitType="Stretch"/>
</columnFooter>
<pageFooter>
<band splitType="Stretch"/>
</pageFooter>
<summary>
<band height="1" splitType="Stretch"/>
</summary>
</jasperReport>

@ -0,0 +1,298 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Created with Jaspersoft Studio version 6.5.1.final using JasperReports Library version 6.5.1 -->
<jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="order_print_1" pageWidth="595" pageHeight="842" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="0e03c1b8-3ccd-4d9e-bf8b-ff9afa08cdba">
<property name="com.jaspersoft.studio.data.defaultdataadapter" value="One Empty Record"/>
<queryString language="json">
<![CDATA[data]]>
</queryString>
<field name="id" class="java.lang.String"/>
<field name="title" class="java.lang.String"/>
<field name="billNo" class="java.lang.String"/>
<field name="corpName" class="java.lang.String"/>
<field name="billDate" class="java.lang.String"/>
<field name="productName" class="java.lang.String"/>
<field name="spec" class="java.lang.String"/>
<field name="batchNo" class="java.lang.String"/>
<field name="productDate" class="java.lang.String"/>
<field name="expireDate" class="java.lang.String"/>
<field name="count" class="java.lang.String"/>
<field name="reCount" class="java.lang.String"/>
<field name="total" class="java.lang.String"/>
<field name="sweepCount" class="java.lang.String"/>
<field name="ylqxzcrbarmc" class="java.lang.String"/>
<field name="zczbhhzbzpzbh" class="java.lang.String"/>
<field name="billBy" class="java.lang.String"/>
<background>
<band splitType="Stretch"/>
</background>
<title>
<band height="98" splitType="Stretch">
<textField isBlankWhenNull="true">
<reportElement x="40" y="8" width="504" height="30" uuid="792264b3-8a9c-42fe-ba28-ffc580771931"/>
<textElement textAlignment="Center" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$F{title}]]></textFieldExpression>
</textField>
<staticText>
<reportElement x="0" y="47" width="50" height="24" uuid="5ba70caa-24aa-45b4-996c-46c1e4500475"/>
<textElement textAlignment="Right" verticalAlignment="Middle">
<font fontName="华文宋体"/>
</textElement>
<text><![CDATA[单号:]]></text>
</staticText>
<textField isBlankWhenNull="true">
<reportElement x="56" y="47" width="124" height="24" uuid="92a15708-763f-496c-ab77-55130f8f4e1c"/>
<textElement verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$F{billNo}]]></textFieldExpression>
</textField>
<staticText>
<reportElement x="401" y="70" width="50" height="24" uuid="198d781d-8f0d-4b91-9eb9-eb845e506d3b"/>
<textElement textAlignment="Right" verticalAlignment="Middle">
<font fontName="华文宋体"/>
</textElement>
<text><![CDATA[开单日期:]]></text>
</staticText>
<textField isBlankWhenNull="true">
<reportElement x="459" y="70" width="100" height="24" uuid="006f1842-d859-4f94-84be-6601ad8f972a"/>
<textElement verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$F{billDate}]]></textFieldExpression>
</textField>
<staticText>
<reportElement x="-8" y="72" width="58" height="24" uuid="3b263493-0ad2-4c4f-b101-18781d92378f"/>
<textElement textAlignment="Right" verticalAlignment="Middle">
<font fontName="华文宋体"/>
</textElement>
<text><![CDATA[送货单位:]]></text>
</staticText>
<textField isBlankWhenNull="true">
<reportElement x="56" y="72" width="337" height="24" uuid="c7ff1896-1c78-44fd-a795-7005efd9e190"/>
<textElement verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$F{corpName}]]></textFieldExpression>
</textField>
</band>
</title>
<pageHeader>
<band splitType="Stretch"/>
</pageHeader>
<columnHeader>
<band height="49" splitType="Stretch">
<staticText>
<reportElement x="-8" y="12" width="100" height="30" uuid="41db35e4-06f8-4b77-bfa4-e3c568be09ca"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="华文宋体"/>
</textElement>
<text><![CDATA[名称]]></text>
</staticText>
<staticText>
<reportElement x="94" y="12" width="93" height="30" uuid="3c9fcc88-074d-4843-83c0-d93db6d80bc8"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="华文宋体"/>
</textElement>
<text><![CDATA[规格]]></text>
</staticText>
<staticText>
<reportElement x="190" y="11" width="80" height="30" uuid="a56f660a-60ff-49c4-8c9e-8ac3fd27e34b"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="华文宋体"/>
</textElement>
<text><![CDATA[批次号]]></text>
</staticText>
<staticText>
<reportElement x="340" y="10" width="53" height="30" uuid="3c0243e8-3cb1-4a1c-aaff-54c6cea92e8d"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="华文宋体"/>
</textElement>
<text><![CDATA[生产日期]]></text>
</staticText>
<staticText>
<reportElement x="400" y="11" width="51" height="30" uuid="1dceea9b-b390-449f-a18b-1f89d38d52f6"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="华文宋体"/>
</textElement>
<text><![CDATA[失效日期]]></text>
</staticText>
<staticText>
<reportElement x="458" y="9" width="102" height="14" uuid="e0c0b310-25b9-4151-8281-b67841bf3534"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="华文宋体"/>
</textElement>
<text><![CDATA[注册/备案人]]></text>
</staticText>
<staticText>
<reportElement x="458" y="26" width="102" height="14" uuid="9872692e-de08-4d42-96e8-6038ce25ce4a"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="华文宋体"/>
</textElement>
<text><![CDATA[注册/备案证号]]></text>
</staticText>
<staticText>
<reportElement x="275" y="10" width="57" height="30" uuid="e826196f-97bd-4488-b33e-45e90effcd2e"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="华文宋体"/>
</textElement>
<text><![CDATA[数量]]></text>
</staticText>
<line>
<reportElement x="-11" y="6" width="581" height="1" uuid="10571ec0-4ba7-4733-98f1-b4bf15b3a19c"/>
</line>
<line>
<reportElement x="-11" y="7" width="1" height="41" uuid="a4f700d8-3b2a-4e94-aaa9-7370f14766fc"/>
</line>
<line>
<reportElement x="93" y="7" width="1" height="41" uuid="43915dda-87ae-4713-81f4-b30cc741a80a"/>
</line>
<line>
<reportElement x="190" y="6" width="1" height="41" uuid="2e815313-27e9-422d-b0a9-90df9cf5a977"/>
</line>
<line>
<reportElement x="271" y="6" width="1" height="41" uuid="1a9cbd88-78d2-4040-a82f-b69a61c4242a"/>
</line>
<line>
<reportElement x="335" y="6" width="1" height="41" uuid="5c7e2c47-9770-4b5a-8a8a-01e9ea7780dc"/>
</line>
<line>
<reportElement x="397" y="7" width="1" height="41" uuid="2df14fa5-fafa-407f-9bd5-c3c522de39b5"/>
</line>
<line>
<reportElement x="454" y="7" width="1" height="41" uuid="36a5686f-c202-4efb-8e5b-b9de420a6139"/>
</line>
<line>
<reportElement x="570" y="7" width="1" height="41" uuid="f9524faf-9099-44a3-9593-851faa0b2595"/>
</line>
</band>
</columnHeader>
<detail>
<band height="46" splitType="Stretch">
<textField isBlankWhenNull="true">
<reportElement x="-10" y="10" width="100" height="20" uuid="d9c60974-1460-4233-8d27-19e61f63d3e9"/>
<textElement verticalAlignment="Middle">
<font fontName="Arial"/>
</textElement>
<textFieldExpression><![CDATA[$F{productName}]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="true">
<reportElement x="92" y="11" width="95" height="20" uuid="d0cdd9db-c7be-4147-85b9-e3caa6742d4f"/>
<textElement verticalAlignment="Middle">
<font fontName="Arial"/>
</textElement>
<textFieldExpression><![CDATA[$F{spec}]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="true">
<reportElement x="193" y="10" width="77" height="20" uuid="c5d2818c-0d96-40c1-ae67-6f697a35cab9"/>
<textElement verticalAlignment="Middle">
<font fontName="Arial"/>
</textElement>
<textFieldExpression><![CDATA[$F{batchNo}]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="true">
<reportElement x="275" y="11" width="57" height="20" uuid="d2e85539-0930-40c8-b45e-508e899c0f70"/>
<textElement textAlignment="Right" verticalAlignment="Middle">
<font fontName="Arial"/>
</textElement>
<textFieldExpression><![CDATA[$F{count}]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="true">
<reportElement x="340" y="11" width="53" height="20" uuid="b34e1882-6bd9-426c-a042-83f5d4fa98ac"/>
<textElement textAlignment="Center" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$F{productDate}]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="true">
<reportElement x="399" y="10" width="53" height="20" uuid="8e364374-1761-4a40-af72-0b3cac70e2cf"/>
<textElement textAlignment="Center" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$F{expireDate}]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="true">
<reportElement x="459" y="1" width="111" height="20" uuid="3984093f-f1d5-4f00-b73f-be98d29f6967"/>
<textElement verticalAlignment="Middle">
<font fontName="Arial"/>
</textElement>
<textFieldExpression><![CDATA[$F{ylqxzcrbarmc}]]></textFieldExpression>
</textField>
<textField isBlankWhenNull="true">
<reportElement x="460" y="21" width="111" height="20" uuid="e63a2c61-14b4-4999-b5de-51ea520f0752"/>
<textElement verticalAlignment="Middle">
<font fontName="Arial"/>
</textElement>
<textFieldExpression><![CDATA[$F{zczbhhzbzpzbh}]]></textFieldExpression>
</textField>
<line>
<reportElement x="-11" y="-6" width="581" height="1" uuid="6e02baa0-033f-44bb-8941-57cb7545f696"/>
</line>
<line>
<reportElement x="-11" y="44" width="581" height="1" uuid="cff99d0f-7fe0-48e2-b9f9-4fcb02c13159"/>
</line>
<line>
<reportElement x="-11" y="0" width="1" height="46" uuid="9213557c-69c5-4ba1-a327-c138546f33dc"/>
</line>
<line>
<reportElement x="93" y="0" width="1" height="44" uuid="1a1963b1-c35f-4f27-a1f5-11226928d3da"/>
</line>
<line>
<reportElement x="190" y="-1" width="1" height="44" uuid="54c24c4a-4aa6-4940-848b-d9ab0f8c61ec"/>
</line>
<line>
<reportElement x="335" y="-1" width="1" height="44" uuid="9abb2a20-efde-4df2-938c-a8301b37b01d"/>
</line>
<line>
<reportElement x="271" y="-1" width="1" height="44" uuid="be0176c3-0f40-469d-a822-b49fe0ff66ed"/>
</line>
<line>
<reportElement x="397" y="-1" width="1" height="44" uuid="0c148808-1742-4eef-a4c1-590ef2a268fb"/>
</line>
<line>
<reportElement x="454" y="-1" width="1" height="44" uuid="977a419a-0ed3-494f-90c1-444900a8ab9f"/>
</line>
<line>
<reportElement x="570" y="-2" width="1" height="48" uuid="12270e75-0e37-49af-a53b-f0ccbac542c5"/>
</line>
</band>
</detail>
<columnFooter>
<band splitType="Stretch"/>
</columnFooter>
<pageFooter>
<band splitType="Stretch"/>
</pageFooter>
<summary>
<band height="93" splitType="Stretch">
<textField isBlankWhenNull="true">
<reportElement x="416" y="48" width="100" height="21" uuid="fa0d9aed-728b-4700-8cdc-480eef4623e5"/>
<textElement verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$F{billBy}]]></textFieldExpression>
</textField>
<staticText>
<reportElement x="326" y="47" width="80" height="24" uuid="e6b7d051-d47d-46d9-ba2b-eb4c4139c5d8"/>
<textElement textAlignment="Right" verticalAlignment="Middle">
<font fontName="华文宋体"/>
</textElement>
<text><![CDATA[开单人:]]></text>
</staticText>
<line>
<reportElement x="570" y="0" width="1" height="42" uuid="09545d99-eb15-43e9-88b4-79053c475458"/>
</line>
<line>
<reportElement x="335" y="-1" width="1" height="42" uuid="22a2e639-25ee-4bb2-8264-e7e3277775dc"/>
</line>
<line>
<reportElement x="-11" y="42" width="581" height="1" uuid="c3d0ee9f-b319-4287-b0cd-e28f45f81611"/>
</line>
<line>
<reportElement x="93" y="-1" width="1" height="42" uuid="e366110d-0e7e-4abe-967f-d6424b4346a2"/>
</line>
<line>
<reportElement x="-11" y="1" width="1" height="40" uuid="932c4e75-824b-43a1-8f98-c222869e1e7f"/>
</line>
<textField isBlankWhenNull="true">
<reportElement x="232" y="6" width="100" height="24" uuid="da11bd14-bd7d-4096-bff3-fa5070d75826"/>
<textElement textAlignment="Right" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$F{total}]]></textFieldExpression>
</textField>
<staticText>
<reportElement x="0" y="6" width="80" height="24" uuid="85978bb5-24bc-4b50-bd52-5e2ef0cc9f98"/>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="华文宋体"/>
</textElement>
<text><![CDATA[合计]]></text>
</staticText>
</band>
</summary>
</jasperReport>

@ -161,5 +161,35 @@
limit 1
</select>
<select id="listOrderPrint" parameterType="com.glxp.sale.admin.req.inout.StockOrderFilterRequest"
resultType="com.glxp.sale.admin.entity.inout.StockOrderPrintEntity">
SELECT stock_order.*,
stock_order_detail.productId,
stock_order_detail.productName,
stock_order_detail.spec,
stock_order_detail.batchNo,
stock_order_detail.productDate,
stock_order_detail.expireDate,
stock_order_detail.count,
stock_order_detail.sweepCount,
stock_order_detail.ylqxzcrbarmc,
stock_order_detail.zczbhhzbapzbh
FROM stock_order,stock_order_detail
<where>
stock_order.id=stock_order_detai.orderIdFk
<if test="id != '' and id!=null">
and stock_order.id =#{id}
</if>
<if test="corpId != '' and corpId !=null">
and stock_order.corpId =#{corpId}
</if>
<if test="billNo != '' and billNo !=null">
and stock_order.billNo =#{billNo}
</if>
<if test="customerId != '' and customerId !=null">
and stock_order.customerId =#{customerId}
</if>
</where>
</select>
</mapper>

@ -0,0 +1 @@
/target/
Loading…
Cancel
Save