|
|
@@ -484,8 +484,10 @@ public class supplyanddemand extends Controller {
|
|
|
}
|
|
|
|
|
|
public int getTimesSQl(Long tenterprise_userid, int ftype) {
|
|
|
- String sql = "SELECT COUNT (*) num FROM tsupplyanddemand_log t1 LEFT JOIN tsupplyanddemand t2 ON t1.tenterprise_userid =t2.tenterprise_userid WHERE t1.tenterprise_userid ='" + tenterprise_userid + "' AND t1.ftype ='" + ftype + "'";
|
|
|
- Rows rows = dbConnect.runSqlQuery(sql);
|
|
|
+ SQLFactory sqlFactory = new SQLFactory(this,"²éѯ·ÖÏíµç»°ä¯ÀÀ×ÜÊý");
|
|
|
+ sqlFactory.addParameter("tenterprise_userid",tenterprise_userid);
|
|
|
+ sqlFactory.addParameter("ftype",ftype);
|
|
|
+ Rows rows = dbConnect.runSqlQuery(sqlFactory.getSQL());
|
|
|
if (rows.isEmpty()) {
|
|
|
return 0;
|
|
|
}
|