新增打印依赖,olap4j,com.lowagie.text,打印问题,

修改打印订单查询语句
master
anthonywj 3 years ago
parent 64d80f0b62
commit fa36f5cd68

@ -182,6 +182,14 @@
<scope>provided</scope>
</dependency>
<!--部署成war包时开启↑↑↑↑-->
<!-- https://mvnrepository.com/artifact/org.olap4j/olap4j -->
<!-- https://mvnrepository.com/artifact/org.olap4j/olap4j -->
<!-- https://mvnrepository.com/artifact/org.olap4j/olap4j -->
<dependency>
<groupId>org.olap4j</groupId>
<artifactId>olap4j</artifactId>
<version>1.2.0</version>
</dependency>
<dependency>
<groupId>javax.xml.bind</groupId>
@ -203,62 +211,88 @@
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi</artifactId>
<version>RELEASE</version>
<version>4.0.0</version>
</dependency>
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi-ooxml</artifactId>
<version>RELEASE</version>
<version>4.0.0</version>
</dependency>
<!-- jasperreports-dependency-begin -->
<!-- jasperreports-->
<!-- https://mvnrepository.com/artifact/net.sf.barcode4j/barcode4j -->
<!-- jasperreports相关 -->
<dependency>
<groupId>net.sf.barcode4j</groupId>
<artifactId>barcode4j</artifactId>
<version>2.1</version>
</dependency>
<dependency>
<groupId>net.sf.jasperreports</groupId>
<artifactId>jasperreports</artifactId>
<version>6.5.1</version>
</dependency>
<dependency>
<groupId>net.sf.jasperreports</groupId>
<artifactId>jasperreports-fonts</artifactId>
<version>6.0.0</version>
</dependency>
<dependency>
<groupId>com.itextpdf</groupId>
<artifactId>itext-pdfa</artifactId>
<version>5.5.0</version>
</dependency>
<dependency>
<groupId>cn.lesper</groupId>
<artifactId>iTextAsian</artifactId>
<version>3.0</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.apache.xmlgraphics/batik-bridge -->
<dependency>
<groupId>org.apache.xmlgraphics</groupId>
<artifactId>batik-bridge</artifactId>
<version>1.11</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.apache.xmlgraphics/batik-dom -->
<dependency>
<groupId>org.apache.xmlgraphics</groupId>
<artifactId>batik-dom</artifactId>
<version>1.11</version>
</dependency>
<!-- jasperreports end-->
<!-- jasperreports-dependency-end -->
<!-- jasperreports-->
<!-- https://mvnrepository.com/artifact/net.sf.barcode4j/barcode4j -->
<!-- jasperreports相关 -->
<dependency>
<groupId>net.sf.barcode4j</groupId>
<artifactId>barcode4j</artifactId>
<version>2.1</version>
<exclusions>
<exclusion>
<groupId>org.olap4je</groupId>
<artifactId>olap4j</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>net.sf.jasperreports</groupId>
<artifactId>jasperreports</artifactId>
<version>6.5.1</version>
<exclusions>
<exclusion>
<groupId>com.lowagie</groupId>
<artifactId>itext</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>net.sf.jasperreports</groupId>
<artifactId>jasperreports-fonts</artifactId>
<version>6.0.0</version>
</dependency>
<dependency>
<groupId>com.itextpdf</groupId>
<artifactId>itext-pdfa</artifactId>
<version>5.5.0</version>
</dependency>
<dependency>
<groupId>cn.lesper</groupId>
<artifactId>iTextAsian</artifactId>
<version>3.0</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.apache.xmlgraphics/batik-bridge -->
<dependency>
<groupId>org.apache.xmlgraphics</groupId>
<artifactId>batik-bridge</artifactId>
<version>1.11</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.apache.xmlgraphics/batik-dom -->
<dependency>
<groupId>org.apache.xmlgraphics</groupId>
<artifactId>batik-dom</artifactId>
<version>1.11</version>
</dependency>
<dependency>
<groupId>org.eclipse.birt.runtime.3_7_1</groupId>
<artifactId>com.lowagie.text</artifactId>
<version>2.1.7</version>
</dependency>
<dependency>
<groupId>org.olap4j</groupId>
<artifactId>olap4j</artifactId>
<version>1.2.0</version>
</dependency>
<!-- jasperreports end-->
<!-- jasperreports-dependency-end -->
</dependencies>
<build>
@ -307,7 +341,7 @@
<verbose>true</verbose>
</configuration>
<executions>
<execution>
<execution>
<id>Generate MyBatis Artifacts</id>
<goals>
<goal>generate</goal>

@ -216,7 +216,7 @@ public class StockQRCodeTextController {
Map<String,Object> data = new HashMap<String,Object>();
data.put("data", list);
JasperUtils.jasperReport(request, response, data, "aspers/order_print_1.jasper", "pdf");
JasperUtils.jasperReport(request, response, data, "jaspers/order_print_1.jasper", "pdf");
}
}

@ -23,9 +23,8 @@
<insert id="insertStockOrder" useGeneratedKeys="true" keyProperty="id"
parameterType="com.glxp.sale.admin.entity.inout.StockOrderEntity">
insert INTO stock_order(id, billNo, billdate, corpId, corpName, billType, billFlag,
thirdSysFk, status, statusInfo, type, sourceType, printStatus,unitIdFk,customerId)
values (
#{id},
thirdSysFk, status, statusInfo, type, sourceType, printStatus, unitIdFk, customerId)
values (#{id},
#{billNo},
#{billdate},
#{corpId},
@ -37,8 +36,7 @@
#{statusInfo},
#{type},
#{sourceType},
#{printStatus},#{unitIdFk},#{customerId}
)
#{printStatus}, #{unitIdFk}, #{customerId})
</insert>
<update id="updateById" parameterType="com.glxp.sale.admin.entity.inout.StockOrderEntity">
UPDATE stock_order
@ -161,22 +159,15 @@
limit 1
</select>
<select id="listOrderPrint" parameterType="com.glxp.sale.admin.req.inout.StockOrderFilterRequest"
<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
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 INNER JOIN stock_order_detail on stock_order.id =
stock_order_detail.orderIdFk
<where>
stock_order.id=stock_order_detai.orderIdFk
<if test="id != '' and id!=null">
and stock_order.id =#{id}
</if>
@ -191,5 +182,5 @@
</if>
</where>
</select>
</select>
</mapper>
Loading…
Cancel
Save