|
@@ -120,8 +120,6 @@ public class TInvoiceBookingworkticketController extends BaseController
|
|
|
logger.info(JSON.toJSONString(tInvoiceBookingworkticket));
|
|
|
//字典查询
|
|
|
List<SysDictData> book_work_type = iSysDictTypeService.selectDictDataByType("book_work_type");
|
|
|
- List<SysDictData> book_work_unit = iSysDictTypeService.selectDictDataByType("book_work_unit");
|
|
|
- List<SysDictData> book_work_area = iSysDictTypeService.selectDictDataByType("book_work_area");
|
|
|
//
|
|
|
List<TInvoiceWorkcontent> newtInvoiceWorkcontentList =new ArrayList<>();
|
|
|
List<TInvoiceBookingworkticket> list = tInvoiceBookingworkticketService.selectTInvoiceBookingworkticketList(tInvoiceBookingworkticket);
|
|
@@ -184,7 +182,7 @@ public class TInvoiceBookingworkticketController extends BaseController
|
|
|
for (TInvoiceWorkcontent t: newtInvoiceWorkcontentList) {
|
|
|
Row row = sheet.createRow(rowIndex);
|
|
|
row.createCell(0).setCellValue("扬子石化-巴斯夫有限责任公司");
|
|
|
- //
|
|
|
+ //作业类型
|
|
|
if (t.getWorkType()!= null){
|
|
|
for (SysDictData p : book_work_type) {
|
|
|
if (t.getWorkType().toString().equals(p.getDictValue())) {
|
|
@@ -199,21 +197,15 @@ public class TInvoiceBookingworkticketController extends BaseController
|
|
|
if (t.getBookingworkticket().getWorkEndTime()!= null){
|
|
|
row.createCell(3).setCellValue(new SimpleDateFormat("yyyy/MM/dd").format(t.getBookingworkticket().getWorkEndTime()));
|
|
|
}
|
|
|
- if (t.getBookingworkticket().getWorkArea()!= null){
|
|
|
- for (SysDictData p : book_work_area) {
|
|
|
- if (t.getBookingworkticket().getWorkArea().toString().equals(p.getDictValue())) {
|
|
|
- row.createCell(4).setCellValue(p.getDictLabel());
|
|
|
- }
|
|
|
- }
|
|
|
+ //作业地址
|
|
|
+ if (t.getWorkDescription()!= null){
|
|
|
+ row.createCell(4).setCellValue(t.getWorkDescription());
|
|
|
+
|
|
|
}
|
|
|
row.createCell(5).setCellValue("是");
|
|
|
- //
|
|
|
+ //作业单位
|
|
|
if (t.getBookingworkticket().getWorkUnit()!= null){
|
|
|
- for (SysDictData p : book_work_unit) {
|
|
|
- if (t.getBookingworkticket().getWorkUnit().toString().equals(p.getDictValue())) {
|
|
|
- row.createCell(6).setCellValue(p.getDictLabel());
|
|
|
- }
|
|
|
- }
|
|
|
+ row.createCell(6).setCellValue(t.getBookingworkticket().getWorkUnit());
|
|
|
}
|
|
|
//
|
|
|
row.createCell(7).setCellValue(t.getBookingworkticket().getContact());
|