Commit 6f54c712 by wang_jiaxing

修改读取文件时的人员编号来源,修改时同步更新法律文书大小字段

parent a57d3c2c
......@@ -16,4 +16,5 @@ public class TbStAsjFlws {
private String wslb;
private byte[] wsnr;
private String wswz;
private int wsdx;
}
......@@ -50,6 +50,7 @@ public class FlwsHqServiceImpl implements FlwsHqService {
byte[] bytes = IOUtils.toByteArray(is);
if (bytes != null && bytes.length > 0) {
flws.setWsnr(bytes);
flws.setWsdx(bytes.length);
flws.setWswz("/sjsb/43/TB_ST_ASJ_FLWS/" + flws.getXxzjbh() + ".pdf");
// System.out.println(flws.getXxzjbh() + " ======== " + flws.getWsnr().length + "字节");
cgsl.incrementAndGet();
......
......@@ -5,13 +5,14 @@
update tb_st_asj_flws
set flws_dzwjnr = #{wsnr},
flws_dzwjwz = #{wswz,jdbcType=VARCHAR},
flws_dzwjdx = #{wsdx,jdbcType=INTEGER},
gxsj = now()
where xxzjbh = #{xxzjbh,jdbcType=VARCHAR}
</update>
<select id="selectList" resultType="com.founder.flwshq.entity.TbStAsjFlws">
select flws.xxzjbh as xxzjbh,
flws.asjbh as asjbh,
flws.asjxgrybh as rybh,
flws.jzrybh as rybh,
flws.flws_asjflwsdm as wslb
from tb_st_asj_flws flws, tb_st_asj asj
where flws.xxsc_pdbz = '0' and asj.xxsc_pdbz = '0'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment