图片分页
This commit is contained in:
@ -17,6 +17,7 @@ import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.swing.*;
|
||||
import java.io.IOException;
|
||||
|
||||
@Async
|
||||
@ -53,6 +54,7 @@ public class TuiZuController {
|
||||
String fs = object.getString("fs");
|
||||
|
||||
|
||||
|
||||
String ww = object.getString("ww");
|
||||
|
||||
String wws = "姓名/联营方公司: " + ww;
|
||||
@ -61,7 +63,7 @@ public class TuiZuController {
|
||||
String dls = "车辆剩余电量(KM): " + dl.toString();
|
||||
String sjs = "验车时间:" + timss;
|
||||
Photo.startPDF("/home/java/dpapp8090/pdf/" + id + ".pdf");
|
||||
Photo.TextAlignment(" 交车定损单");
|
||||
Photo.TextAlignment(" 车辆验收单");
|
||||
Photo.appendTextSection(" 驾驶员信息");
|
||||
Photo.appendTextSection(" " +wws);
|
||||
Photo.appendTextSection(" 车辆信息");
|
||||
@ -102,13 +104,15 @@ public class TuiZuController {
|
||||
|
||||
JSONObject test = (JSONObject) o;
|
||||
String xiang = test.getString("xiang");
|
||||
String jine1 = test.getString("jine");
|
||||
|
||||
String xiangs = "验车受损项:" + xiang;
|
||||
|
||||
|
||||
|
||||
String xiangs = "车辆验收项:" + xiang;
|
||||
Photo.appendTextSection(" " +xiangs);
|
||||
|
||||
Photo.appendTextSection(" " +"额定金额:"+jine1 );
|
||||
|
||||
|
||||
|
||||
JSONArray tp = test.getJSONArray("tp");
|
||||
if (tp != null && tp.size() != 0) {
|
||||
for (Object o1 : tp) {
|
||||
@ -116,7 +120,7 @@ public class TuiZuController {
|
||||
String url = tests.getString("url");
|
||||
String hkfile = APIUtils.hkfile(url);
|
||||
ThumbnailCompressor.compressWithThumbnailator(hkfile, hkfile);
|
||||
Photo.appendTextSection(" 车损详情图片:");
|
||||
Photo.appendTextSection(" 车辆验收详情图片:");
|
||||
Photo.appendImageSection(hkfile);
|
||||
}
|
||||
}
|
||||
@ -148,7 +152,7 @@ public class TuiZuController {
|
||||
openid.put("openId", "625776ecae6742cb8eb710beedef9b4c");
|
||||
initiator.put("initiator", openid);
|
||||
|
||||
initiator.put("signTaskSubject", "交车定损单");
|
||||
initiator.put("signTaskSubject", "交车验收单");
|
||||
|
||||
|
||||
|
||||
@ -213,13 +217,21 @@ public class TuiZuController {
|
||||
/*JSONArray permissionss = new JSONArray();
|
||||
permissionss.add("sign");
|
||||
actorlists.put("permissions",permissionss);*/
|
||||
if (!jsyss.equals("银建新能源")) {
|
||||
if (!jsyss.equals("银建新能源") && !jsyss.equals("北京银环泰西汽车服务有限公司")) {
|
||||
actorlists.put("actorOpenId", "625776ecae6742cb8eb710beedef9b4c");
|
||||
String entryids = FDaDaUtil.entryids(a);
|
||||
actorlists.put("actorEntityId", entryids);
|
||||
} else if (jsyss.equals("银建新能源")) {
|
||||
}
|
||||
if (jsyss.equals("银建新能源")) {
|
||||
actorlists.put("actorOpenId", "a0c12949a1c54ff9bfa45dbe957fbc5d");
|
||||
}
|
||||
|
||||
if (jsyss.equals("北京银环泰西汽车服务有限公司")) {
|
||||
actorlists.put("actorOpenId", "802b22355a0545558be4a1b1dad746a6");
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*actorlists.put("notifyAddress", "13520145209");*/
|
||||
JSONArray notifyTypes = new JSONArray();
|
||||
notifyTypes.add("start");
|
||||
@ -258,6 +270,9 @@ public class TuiZuController {
|
||||
jsonObject2.put("sealId", 1706510414541115296l);
|
||||
jsonObject2.put("fieldName", "签章");
|
||||
|
||||
} else if (jsyss.equals("北京银环泰西汽车服务有限公司")) {
|
||||
jsonObject2.put("sealId", 1754044354642191353l);
|
||||
jsonObject2.put("fieldName", "签章");
|
||||
}
|
||||
|
||||
|
||||
@ -265,6 +280,7 @@ public class TuiZuController {
|
||||
|
||||
|
||||
|
||||
|
||||
SignField.add(jsonObject2);
|
||||
|
||||
JSONObject signConfigInfo = new JSONObject();
|
||||
@ -339,7 +355,7 @@ public class TuiZuController {
|
||||
|
||||
|
||||
|
||||
if (true){
|
||||
/* if (true){
|
||||
Photo.startPDF("/home/java/dpapp8090/pdf/" + id + "a" + ".pdf");
|
||||
Photo.TextAlignment(" 交车验收单");
|
||||
Photo.appendTextSection(" 车号: " + car + " " + "所属分司: " + fs);
|
||||
@ -476,9 +492,9 @@ public class TuiZuController {
|
||||
|
||||
actorlists12.put("actorName", a);
|
||||
|
||||
/*JSONArray permissionss = new JSONArray();
|
||||
*//*JSONArray permissionss = new JSONArray();
|
||||
permissionss.add("sign");
|
||||
actorlists.put("permissions",permissionss);*/
|
||||
actorlists.put("permissions",permissionss);*//*
|
||||
if (!jsyss.equals("银建新能源")) {
|
||||
actorlists12.put("actorOpenId", "625776ecae6742cb8eb710beedef9b4c");
|
||||
String entryids = FDaDaUtil.entryids(a);
|
||||
@ -486,7 +502,7 @@ public class TuiZuController {
|
||||
} else if (jsyss.equals("银建新能源")) {
|
||||
actorlists12.put("actorOpenId", "a0c12949a1c54ff9bfa45dbe957fbc5d");
|
||||
}
|
||||
/*actorlists.put("notifyAddress", "13520145209");*/
|
||||
*//*actorlists.put("notifyAddress", "13520145209");*//*
|
||||
JSONArray notifyTypes12 = new JSONArray();
|
||||
notifyTypes12.add("start");
|
||||
notifyTypes12.add("finish");
|
||||
@ -603,7 +619,7 @@ public class TuiZuController {
|
||||
String signtask12 = FDaDaUtil.signtask(signTaskIds12);
|
||||
log.info("车损明细文件生成完成a" + signtask12);
|
||||
|
||||
}
|
||||
}*/
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user