|
@@ -533,8 +533,15 @@ public class TInvoiceBookingworkticketController extends BaseController {
|
|
List<TInvoiceWorkcontent> tInvoiceWorkcontentList = tInvoiceBookingworkticketService.selectTInvoiceWorkcontentList(tInvoiceBookingworkticket);
|
|
List<TInvoiceWorkcontent> tInvoiceWorkcontentList = tInvoiceBookingworkticketService.selectTInvoiceWorkcontentList(tInvoiceBookingworkticket);
|
|
for (TInvoiceWorkcontent workcontent : tInvoiceWorkcontentList) {
|
|
for (TInvoiceWorkcontent workcontent : tInvoiceWorkcontentList) {
|
|
TInvoiceBookingworkticket bookingworkticket = tInvoiceBookingworkticketService.selectTInvoiceBookingworkticketById(workcontent.getBookingticketId());
|
|
TInvoiceBookingworkticket bookingworkticket = tInvoiceBookingworkticketService.selectTInvoiceBookingworkticketById(workcontent.getBookingticketId());
|
|
|
|
+ SysUser mg = sysUserService.selectUserById(bookingworkticket.getUserMg());
|
|
|
|
+ bookingworkticket.setUserMgDeptName(mg.getDept().getDeptName());
|
|
|
|
+ if (bookingworkticket.getUserSupId() != null) {
|
|
|
|
+ SysUser sup = sysUserService.selectUserById(Long.parseLong(bookingworkticket.getUserSupId()));
|
|
|
|
+ bookingworkticket.setUserSupDeptName(sup.getDept().getDeptName());
|
|
|
|
+ }
|
|
workcontent.setBookingworkticket(bookingworkticket);
|
|
workcontent.setBookingworkticket(bookingworkticket);
|
|
}
|
|
}
|
|
|
|
+
|
|
//除去作废的票 以及 续票
|
|
//除去作废的票 以及 续票
|
|
Iterator<TInvoiceWorkcontent> iterator = tInvoiceWorkcontentList.iterator();
|
|
Iterator<TInvoiceWorkcontent> iterator = tInvoiceWorkcontentList.iterator();
|
|
while (iterator.hasNext()) {
|
|
while (iterator.hasNext()) {
|
|
@@ -659,7 +666,8 @@ public class TInvoiceBookingworkticketController extends BaseController {
|
|
row.createCell(3).setCellValue(t.getWorkDescription());
|
|
row.createCell(3).setCellValue(t.getWorkDescription());
|
|
}
|
|
}
|
|
//工艺主管
|
|
//工艺主管
|
|
- row.createCell(4).setCellValue(t.getBookingworkticket().getUserSupName() + " " + t.getBookingworkticket().getUserSupPhone());
|
|
|
|
|
|
+
|
|
|
|
+ row.createCell(4).setCellValue(t.getBookingworkticket().getUserSupDeptName() +" " + t.getBookingworkticket().getUserSupName() + " " + t.getBookingworkticket().getUserSupPhone());
|
|
//作业单位
|
|
//作业单位
|
|
if (t.getBookingworkticket().getWorkUnit() != null) {
|
|
if (t.getBookingworkticket().getWorkUnit() != null) {
|
|
row.createCell(5).setCellValue(t.getBookingworkticket().getWorkUnit());
|
|
row.createCell(5).setCellValue(t.getBookingworkticket().getWorkUnit());
|
|
@@ -669,7 +677,8 @@ public class TInvoiceBookingworkticketController extends BaseController {
|
|
//电话
|
|
//电话
|
|
row.createCell(7).setCellValue(t.getBookingworkticket().getPhonenumber());
|
|
row.createCell(7).setCellValue(t.getBookingworkticket().getPhonenumber());
|
|
//用户
|
|
//用户
|
|
- row.createCell(8).setCellValue(t.getBookingworkticket().getUserMgName() + " " + t.getBookingworkticket().getUserMgPhone());
|
|
|
|
|
|
+
|
|
|
|
+ row.createCell(8).setCellValue(t.getBookingworkticket().getUserMgDeptName() +" " +t.getBookingworkticket().getUserMgName() + " " + t.getBookingworkticket().getUserMgPhone());
|
|
//票号
|
|
//票号
|
|
String ticketNo = t.getWhgzxkzh() + t.getDhzyxkzh()+t.getGczyxkzh()+t.getMbzyxkzh()+t.getXzkjxkzh() + t.getYqxkzh();
|
|
String ticketNo = t.getWhgzxkzh() + t.getDhzyxkzh()+t.getGczyxkzh()+t.getMbzyxkzh()+t.getXzkjxkzh() + t.getYqxkzh();
|
|
row.createCell(9).setCellValue(ticketNo.replaceAll("null" , ""));
|
|
row.createCell(9).setCellValue(ticketNo.replaceAll("null" , ""));
|