|
@@ -233,4 +233,22 @@ public class AwardItems extends Controller {
|
|
|
return rand.nextInt(max - min + 1) + min;
|
|
|
}
|
|
|
|
|
|
+ @API(title = "我的中奖", apiversion = R.ID20240515140302.v1.class)
|
|
|
+ public String myaward() throws YosException {
|
|
|
+
|
|
|
+ QuerySQL querySQL = SQLFactory.createQuerySQL(this, "sa_awardmx")
|
|
|
+ .setTableAlias("t1");
|
|
|
+ querySQL.addJoinTable(JOINTYPE.inner, "sa_award", "t2", "t2.sa_awardid=t2.sa_awardid and t2.siteid=t1.siteid");
|
|
|
+ querySQL.addQueryFields("addressdetail", "concat(province,city,county,address)");
|
|
|
+ querySQL.addQueryFields("awardheadname", "t2.name");
|
|
|
+ querySQL.setSiteid(siteid);
|
|
|
+ querySQL.setWhere("createuserid", userid);
|
|
|
+ querySQL.setOrderBy(pageSorting).setPage(pageSize, pageNumber);
|
|
|
+ Rows rows = querySQL.query();
|
|
|
+
|
|
|
+
|
|
|
+ return getSucReturnObject().setData(rows).toString();
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
}
|