|
|
@@ -474,6 +474,33 @@ public class notice extends Controller {
|
|
|
return getSucReturnObject().setData(rows).toString();
|
|
|
}
|
|
|
|
|
|
+ @API(title = "通告阅读数据接口", apiversion = R.ID2024082910591603.v1.class)
|
|
|
+ @CACHEING
|
|
|
+ public String queryNoticeReadAgent() throws YosException {
|
|
|
+
|
|
|
+ long sat_noticeid=content.getLongValue("sat_noticeid");
|
|
|
+ String where = " 1=1 ";
|
|
|
+ if (content.containsKey("where")) {
|
|
|
+ JSONObject whereObject = content.getJSONObject("where");
|
|
|
+ if (whereObject.containsKey("condition") && !"".equals(whereObject.getString("condition"))) {
|
|
|
+ where = where + " and(t1.agentnum like '%" + whereObject.getString("condition")
|
|
|
+ + "%' or t3.enterprisename like '%" + whereObject.getString("condition") + "%')";
|
|
|
+ }
|
|
|
+ if (whereObject.containsKey("readstatus") && !"".equals(whereObject.getString("readstatus"))) {
|
|
|
+ where = where + " and if(ifnull( sat_notice_readid, 0 )= 0, '未读', '已读') ='" + whereObject.getString("readstatus") + "' ";
|
|
|
+
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ SQLFactory factory = new SQLFactory(this, "通告阅读数据查询", pageSize, pageNumber, pageSorting);
|
|
|
+ factory.addParameter("sat_noticeid", sat_noticeid);
|
|
|
+ factory.addParameter("siteid", siteid);
|
|
|
+ factory.addParameter_SQL("where", where);
|
|
|
+ Rows rows = dbConnect.runSqlQuery(factory.getSQL());
|
|
|
+ return getSucReturnObject().setData(rows).toString();
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
@API(title = "更新下载附件记录")
|
|
|
public String updateDownloadRecord() throws YosException {
|
|
|
Long sat_noticeid = content.getLong("sat_noticeid");
|