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