ccjgmwz 3 anos atrás
pai
commit
7933746b78

+ 3 - 1
winsea-haixin-plugin-yiliangyiyun/src/main/java/com/yh/saas/plugin/yiliangyiyun/controller/PaymentManagementController.java

@@ -8,6 +8,7 @@ import com.yh.saas.plugin.yiliangyiyun.entity.view.PaymentView;
 import com.yh.saas.plugin.yiliangyiyun.service.IIdentityAuthenticationInfoService;
 import com.yh.saas.plugin.yiliangyiyun.service.IPaymentManagementService;
 import com.yh.saas.plugin.yiliangyiyun.util.XmlUtil;
+import org.springframework.beans.BeanUtils;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.web.bind.annotation.*;
 
@@ -186,7 +187,8 @@ public class PaymentManagementController {
                     );
                     list1.add(tmp);
                     //第二张发票
-                    PaymentManagement tmp1 = tmp;
+                    PaymentManagement tmp1 = new PaymentManagement();
+                    BeanUtils.copyProperties(tmp,tmp1);
                     tmp1.setPureWeight(weight - tmp.getPureWeight());
                     tmp1.setAmountIngPayable(payable - tmp.getAmountIngPayable());
                     tmp1.setRemarkss("车号:" + tmp1.getCarNo() + "毛:" + tmp1.getGrossWeight() + " 皮:" + tmp1.getTare() + " 净:" + tmp1.getNetWeight() + " 纯:" + weight + " 应付:" + payable + " 单号:" + m.replaceAll("").trim() + " ,★☆性质:贸易粮 形态:玉米堆(2)"