|
@@ -126,7 +126,7 @@ public class supplyanddemand extends Controller {
|
|
|
// * 阅读次数+1
|
|
|
// */
|
|
|
// dbConnect.runSqlUpdate("update tsupplyanddemand set freadtimes=isnull(freadtimes,0)+1 where siteid='" + siteid + "' and tsupplyanddemandid='" + tsupplyanddemandid + "'");
|
|
|
- addsupplyanddemandLog(tsupplyanddemandid, 1);
|
|
|
+ addsupplyanddemandLog(tsupplyanddemandid, 1,userid);
|
|
|
SQLFactory sqlFactory = new SQLFactory(this, "供需详情查询");
|
|
|
sqlFactory.addParameter("siteid", siteid);
|
|
|
sqlFactory.addParameter("tsupplyanddemandid", tsupplyanddemandid);
|
|
@@ -420,7 +420,7 @@ public class supplyanddemand extends Controller {
|
|
|
long tenterprise_userid = content.getLong("tenterprise_userid");
|
|
|
|
|
|
|
|
|
- addsupplyanddemandLog(tsupplyanddemandid, ftype);
|
|
|
+ addsupplyanddemandLog(tsupplyanddemandid, ftype,tenterprise_userid);
|
|
|
|
|
|
return getSucReturnObject().toString();
|
|
|
|
|
@@ -431,7 +431,7 @@ public class supplyanddemand extends Controller {
|
|
|
*
|
|
|
* @return
|
|
|
*/
|
|
|
- public void addsupplyanddemandLog(Long tsupplyanddemandid, int ftype) throws P2Exception {
|
|
|
+ public void addsupplyanddemandLog(Long tsupplyanddemandid, int ftype,long tenterprise_userid) throws P2Exception {
|
|
|
/**
|
|
|
* 阅读次数+1
|
|
|
*/
|
|
@@ -459,7 +459,7 @@ public class supplyanddemand extends Controller {
|
|
|
paoRemote.setValue("createdate", sysdate, 11L);//录入时间
|
|
|
paoRemote.setValue("changeby", username, 11L);//修改人
|
|
|
paoRemote.setValue("changedate", sysdate, 11L);//修改时间
|
|
|
- paoRemote.setValue("tenterprise_userid", 0, 11L);//修改时间
|
|
|
+ paoRemote.setValue("tenterprise_userid", tenterprise_userid, 11L);//修改时间
|
|
|
paoRemote.setValue("tsupplyanddemandid", tsupplyanddemandid, 11L);
|
|
|
paoRemote.setValue("ftype", ftype, 11L);
|
|
|
logPaoSetRemote.save();
|