Просмотр исходного кода

采购单批量更新单价更新相关联的发票的单价

hejq 8 лет назад
Родитель
Сommit
77f2d18bdc

+ 1 - 1
src/main/java/com/uas/platform/b2b/service/impl/PurchaseApBillServiceImpl.java

@@ -171,7 +171,7 @@ public class PurchaseApBillServiceImpl implements PurchaseApBillService {
 	public void refreshPrice(List<ProdInOutRefreshPrice> prodInOuts) {
 		if(!CollectionUtils.isEmpty(prodInOuts)) {
 			for(ProdInOutRefreshPrice prod : prodInOuts) {
-				String sql = " merge into purc$apbillitem i using purc$apbill a on (i.papi_papid = a.pab_id and i.papi_pdinoutno = '" + prod.getPbu_inoutno() + "' and a.pad_venduu= " +SystemSession.getUser().getEnterprise().getUu() + ")" +
+				String sql = " merge into purc$apbillitem i using purc$apbill a on (i.papi_papid = a.pab_id and i.papi_pdinoutno = '" + prod.getPbu_inoutno() + "' and a.pad_enuu = " +SystemSession.getUser().getEnterprise().getUu() + ")" +
 						" when matched then update set i.papi_price = " + prod.getPbu_orderprice();
 				commonDao.getJdbcTemplate().update(sql);
 			}