|
|
@@ -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);
|
|
|
}
|