springmvc雙迴圈表單訪問值,物件導向

2022-05-04 14:45:10 字數 1867 閱讀 1025

jsp頁面

時間**商

姓名月回款額(分成款)

操作人數記錄

varstatus="s">$$

$$(操作師)

$(諮詢師)

$varstatus="s">

id="projectid" name="projectid" value="$" />

id="projectcnt" name="projectcnt">0

//與迴圈相對應

js指令碼

$(document).ready(function() ;

var data = json.stringify(jsondata);              //stringify()用於從乙個物件解析出字串,parse()用於從乙個字串中解析出json物件

});});

});});

controller部分

service部分          處理業務邏輯

performancebill selectperformancebill(mapparam);

select * from

(select currentmonth,ifnull(institutionid,'') institutionid,

ifnull(sum(subtotal),0)subtotal,count(1) projectcnt,

ifnull( ( select institutionname from t_inst where t_inst. id = v_t_detail. institutionid),'-') agent,

ifnull((select f.username from t_sys_user f where f.id=v_t_detail.operator),'') operatorname,

ifnull((select g.username from t_sys_user g where g.id=v_t_detail.counselor),'') counselorname,

v_t_detail.operator as operatorid,

v_t_detail.counselor as counselorid,

v_t_detail.projectid as projectid

from

(select date_format( t_detail.date,'%y-%m') currentmonth,

t_info.institutionid,

t_detail.*

from t_detail left join t_info on t_detail.infoid = t_info.id

) v_t_detail

group by currentmonth,institutionid ,operator,counselor,projectid

order by currentmonth,institutionid,operator,counselor,projectid

) tmp

where 1=1

新建乙個model為performancebill         作為物件儲存資料

雙迴圈鍊錶

nyoj511移動小球 include include typedef struct node lnode 結點 lnode creat list lnode head,int num 建立不帶頭結點的雙迴圈鍊錶 current data i current rear current pre nul...

雙迴圈鍊錶

include include include include include include using namespace std typedef int elemtype typedef struct node linknode,linklist 鍊錶初始化 linklist initlink...

雙迴圈,控制語句break continue

一.定義 乙個語句中出現兩個for或者while 二.例 1.for的雙迴圈 include int main 分析 1.找配對 2.找控制 for只能就近控制一條語句,所以,下面那個for控制倒數第二個printf,第乙個for控制第二個for迴圈,是控制整個for迴圈,而不是只控制第二個for ...