Browse Source

修改收料单客户

koul 4 years ago
parent
commit
5883f2b04b
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/main/java/com/uas/eis/service/Impl/ERPServiceImpl.java

+ 3 - 3
src/main/java/com/uas/eis/service/Impl/ERPServiceImpl.java

@@ -73,11 +73,11 @@ public class ERPServiceImpl implements ERPService {
         Map<Object, Object> store = BaseUtil.parseFormStoreToMap(data);
         VerifyApply verifyApply = baseDao.getJdbcTemplate().queryForObject("select va_id,va_mescode,va_code,to_char(va_date,'yyyy-MM-dd HH24:mi:ss') va_date,va_vendcode,va_vendname,va_currency,va_rate,va_paymentscode,va_payments,va_transport,va_sendcode,va_emcode,va_emname,va_departmentcode,va_department,va_recorder,nvl(va_cop,'BYT') va_cop,va_remark,va_ancode,va_factory,0 version,va_type,va_pucode,case when nvl(va_pucode,' ')=' ' then 0 else (select pu_id from purchase where pu_code=va_pucode) end pu_id,va_status,1 posted,to_char(va_auditdate,'yyyy-MM-dd HH24:mi:ss') va_auditdate,va_auditman,va_custcode,va_custname from VerifyApply where va_id=?",
                 new BeanPropertyRowMapper<VerifyApply>(VerifyApply.class), store.get("va_id"));
-        /*SqlRowList rs = baseDao.queryForRowSet("select case when pr_kh_user='柏英特' or nvl(pr_kh_user,' ')=' ' then 'BYT' else nvl(cu_mescode,cu_code) end cu_code,cu_name from verifyapplydetail left join product on vad_prodcode=pr_code left join customer on cu_shortname=pr_kh_user where vad_vaid="+store.get("va_id")+" order by vad_detno");
+        SqlRowList rs = baseDao.queryForRowSet("select case when va_custcode='柏英特' or nvl(va_custcode,' ')=' ' then 'BYT' else nvl(cu_mescode,cu_code) end cu_code,cu_name from verifyapply left join customer on va_custcode=cu_code where va_id="+store.get("va_id"));
         if (rs.next()){
             verifyApply.setVa_custcode(rs.getString("cu_code"));
-            verifyApply.setVa_custname(rs.getString("cu_name"));
-        }*/
+            //verifyApply.setVa_custname(rs.getString("cu_name"));
+        }
         verifyApply.setMesPwd(MD5Util.encodeByMD5(tokenConfig.get("mesPwd")));
         verifyApply.setMesUser(tokenConfig.get("mesUser"));
         verifyApply.setFlag(Integer.parseInt(StringUtil.nvl(store.get("flag"),"-1")));