Browse Source

LY 预约票导出

ly 2 năm trước cách đây
mục cha
commit
778b769436

+ 2 - 1
master/src/main/java/com/ruoyi/project/invoice/controller/TInvoiceBookingworkticketController.java

@@ -29,6 +29,7 @@ import com.ruoyi.project.system.service.ISysUserService;
 import io.jsonwebtoken.lang.Assert;
 import org.apache.poi.ss.usermodel.*;
 import org.apache.poi.xssf.streaming.SXSSFWorkbook;
+import org.springframework.beans.BeanUtils;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.security.access.prepost.PreAuthorize;
 import org.springframework.web.bind.annotation.*;
@@ -158,7 +159,7 @@ public class TInvoiceBookingworkticketController extends BaseController
             if (wtArr.length > 1) {
                 for (int i = 0; i < wtArr.length; i++) {
                     TInvoiceWorkcontent arrItem = new TInvoiceWorkcontent();
-                    arrItem = t;
+                    BeanUtils.copyProperties(t, arrItem);
                     arrItem.setWorkType(wtArr[i]);
                     newWorkcontentList.add(arrItem);
                 }