master
parent
4bced50ec8
commit
97fe2d1050
|
@ -5,12 +5,19 @@
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
<body style="background-color: #d5e2ec;">
|
<body style="background-color: #d5e2ec;">
|
||||||
<div style= "position: absolute;width:300px;height:100px;left:40%;top:40%; border: 2px solid; background-color:white ">
|
<div style= "position: absolute;width:600px;height:200px;left:30%;top:20%; border: 2px solid; background-color:white ">
|
||||||
<p style ="color:red;text-align:center;">注意:以下数值为催缴人员手动任务量,<br/>影响系统任务自动分配条数,请谨慎修改。</p>
|
<p style ="color:red;text-align:center;">注意:以下数值为催缴人员手动任务量,<br/>影响系统任务自动分配条数,请谨慎修改。</p>
|
||||||
<div style = "text-align:center;" >
|
<div style = "text-align:center;" >
|
||||||
<input widget="edit" lable="手动工作量 " name ="count"/>
|
<input widget="edit" lable="手动工作量 " name ="count"/>
|
||||||
|
<div name="choose" required label="任务中心" widget="radiobuttonlist"
|
||||||
|
repeatitems="2" repeatlayout="table" textfield="text" valuefield="id"
|
||||||
|
data="[{id:0,text:'包含'},{id:1,text:'不包含'}]">
|
||||||
|
|
||||||
|
</div>
|
||||||
<a widget="button" iconCls="icon-enabled" style="width:70px;" onclick="save()">保存</a>
|
<a widget="button" iconCls="icon-enabled" style="width:70px;" onclick="save()">保存</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
|
@ -22,12 +29,14 @@
|
||||||
data:params,
|
data:params,
|
||||||
success: function(datas){
|
success: function(datas){
|
||||||
aos.get('count').setValue(datas.text);
|
aos.get('count').setValue(datas.text);
|
||||||
|
aos.get('choose').setValue(datas.choose);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
function save(){
|
function save(){
|
||||||
var params= {
|
var params= {
|
||||||
count : aos.get('count').getValue()
|
count : aos.get('count').getValue(),
|
||||||
|
choose : aos.get('choose').getValue()
|
||||||
}
|
}
|
||||||
aos.post({
|
aos.post({
|
||||||
url:'rush/manualtask/updatecount',
|
url:'rush/manualtask/updatecount',
|
||||||
|
|
Binary file not shown.
|
@ -5,12 +5,19 @@
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
<body style="background-color: #d5e2ec;">
|
<body style="background-color: #d5e2ec;">
|
||||||
<div style= "position: absolute;width:300px;height:100px;left:40%;top:40%; border: 2px solid; background-color:white ">
|
<div style= "position: absolute;width:600px;height:200px;left:30%;top:20%; border: 2px solid; background-color:white ">
|
||||||
<p style ="color:red;text-align:center;">注意:以下数值为催缴人员手动任务量,<br/>影响系统任务自动分配条数,请谨慎修改。</p>
|
<p style ="color:red;text-align:center;">注意:以下数值为催缴人员手动任务量,<br/>影响系统任务自动分配条数,请谨慎修改。</p>
|
||||||
<div style = "text-align:center;" >
|
<div style = "text-align:center;" >
|
||||||
<input widget="edit" lable="手动工作量 " name ="count"/>
|
<input widget="edit" lable="手动工作量 " name ="count"/>
|
||||||
|
<div name="choose" required label="任务中心" widget="radiobuttonlist"
|
||||||
|
repeatitems="2" repeatlayout="table" textfield="text" valuefield="id"
|
||||||
|
data="[{id:0,text:'包含'},{id:1,text:'不包含'}]">
|
||||||
|
|
||||||
|
</div>
|
||||||
<a widget="button" iconCls="icon-enabled" style="width:70px;" onclick="save()">保存</a>
|
<a widget="button" iconCls="icon-enabled" style="width:70px;" onclick="save()">保存</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
|
@ -22,12 +29,14 @@
|
||||||
data:params,
|
data:params,
|
||||||
success: function(datas){
|
success: function(datas){
|
||||||
aos.get('count').setValue(datas.text);
|
aos.get('count').setValue(datas.text);
|
||||||
|
aos.get('choose').setValue(datas.choose);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
function save(){
|
function save(){
|
||||||
var params= {
|
var params= {
|
||||||
count : aos.get('count').getValue()
|
count : aos.get('count').getValue(),
|
||||||
|
choose : aos.get('choose').getValue()
|
||||||
}
|
}
|
||||||
aos.post({
|
aos.post({
|
||||||
url:'rush/manualtask/updatecount',
|
url:'rush/manualtask/updatecount',
|
||||||
|
|
Binary file not shown.
|
@ -1,3 +1,3 @@
|
||||||
#save ini
|
#save ini
|
||||||
#Sun Oct 30 20:11:05 CST 2022
|
#Sun Dec 04 20:48:37 CST 2022
|
||||||
deploystamp=1612237236000
|
deploystamp=1612237236000
|
||||||
|
|
|
@ -5,12 +5,19 @@
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
<body style="background-color: #d5e2ec;">
|
<body style="background-color: #d5e2ec;">
|
||||||
<div style= "position: absolute;width:300px;height:100px;left:40%;top:40%; border: 2px solid; background-color:white ">
|
<div style= "position: absolute;width:600px;height:200px;left:30%;top:20%; border: 2px solid; background-color:white ">
|
||||||
<p style ="color:red;text-align:center;">注意:以下数值为催缴人员手动任务量,<br/>影响系统任务自动分配条数,请谨慎修改。</p>
|
<p style ="color:red;text-align:center;">注意:以下数值为催缴人员手动任务量,<br/>影响系统任务自动分配条数,请谨慎修改。</p>
|
||||||
<div style = "text-align:center;" >
|
<div style = "text-align:center;" >
|
||||||
<input widget="edit" lable="手动工作量 " name ="count"/>
|
<input widget="edit" lable="手动工作量 " name ="count"/>
|
||||||
|
<div name="choose" required label="任务中心" widget="radiobuttonlist"
|
||||||
|
repeatitems="2" repeatlayout="table" textfield="text" valuefield="id"
|
||||||
|
data="[{id:0,text:'包含'},{id:1,text:'不包含'}]">
|
||||||
|
|
||||||
|
</div>
|
||||||
<a widget="button" iconCls="icon-enabled" style="width:70px;" onclick="save()">保存</a>
|
<a widget="button" iconCls="icon-enabled" style="width:70px;" onclick="save()">保存</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
|
@ -22,12 +29,14 @@
|
||||||
data:params,
|
data:params,
|
||||||
success: function(datas){
|
success: function(datas){
|
||||||
aos.get('count').setValue(datas.text);
|
aos.get('count').setValue(datas.text);
|
||||||
|
aos.get('choose').setValue(datas.choose);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
function save(){
|
function save(){
|
||||||
var params= {
|
var params= {
|
||||||
count : aos.get('count').getValue()
|
count : aos.get('count').getValue(),
|
||||||
|
choose : aos.get('choose').getValue()
|
||||||
}
|
}
|
||||||
aos.post({
|
aos.post({
|
||||||
url:'rush/manualtask/updatecount',
|
url:'rush/manualtask/updatecount',
|
||||||
|
|
|
@ -77,7 +77,12 @@ public class ManualTaskAction {
|
||||||
DbHelper.getDbService().beginTransaction();
|
DbHelper.getDbService().beginTransaction();
|
||||||
DbHelper.getDbService().update("delete from rush_user_tasknum where to_date(createdate,'yyyy-mm-dd')=trunc(sysdate)");
|
DbHelper.getDbService().update("delete from rush_user_tasknum where to_date(createdate,'yyyy-mm-dd')=trunc(sysdate)");
|
||||||
DbHelper.getDbService().commit();
|
DbHelper.getDbService().commit();
|
||||||
|
//查询一下你们是否包含任务中心的数量
|
||||||
|
String sql = "select text from rush_dictionary where codetype = 'user_task_num_sd_choose'";
|
||||||
|
Map map = db.queryMap(sql);
|
||||||
|
//查一下需要分配的数量
|
||||||
|
String sql1 = "select text from rush_dictionary where codetype = 'user_task_num_sd'";
|
||||||
|
Map map1 = db.queryMap(sql1);
|
||||||
// 定时计算每天的每个人应该分配的数量
|
// 定时计算每天的每个人应该分配的数量
|
||||||
List<Map> taskNum= DbHelper.getDbService().queryMapList("SELECT a.cname, "
|
List<Map> taskNum= DbHelper.getDbService().queryMapList("SELECT a.cname, "
|
||||||
+" c.cname bname, "
|
+" c.cname bname, "
|
||||||
|
@ -109,8 +114,8 @@ public class ManualTaskAction {
|
||||||
insertParams.put("createdate", taskNum.get(i).get("creatdate"));
|
insertParams.put("createdate", taskNum.get(i).get("creatdate"));
|
||||||
insertParams.put("user_id", taskNum.get(i).get("user_id"));
|
insertParams.put("user_id", taskNum.get(i).get("user_id"));
|
||||||
insertParams.put("user_name", taskNum.get(i).get("cname"));
|
insertParams.put("user_name", taskNum.get(i).get("cname"));
|
||||||
insertParams.put("hold_num", taskNum.get(i).get("num"));
|
insertParams.put("hold_num", map.get("text").equals("0")?taskNum.get(i).get("num"):0);
|
||||||
insertParams.put("divided_num", taskNum.get(i).get("tasknum"));
|
insertParams.put("divided_num", map.get("text").equals("0")?taskNum.get(i).get("tasknum"):map1.get("text"));
|
||||||
String sqlString="insert into rush_user_tasknum (id,createdate,user_id,user_name,hold_num,divided_num) values('{id}','{createdate}','{user_id}','{user_name}','{hold_num}','{divided_num}')";
|
String sqlString="insert into rush_user_tasknum (id,createdate,user_id,user_name,hold_num,divided_num) values('{id}','{createdate}','{user_id}','{user_name}','{hold_num}','{divided_num}')";
|
||||||
DbHelper.getDbService().beginTransaction();
|
DbHelper.getDbService().beginTransaction();
|
||||||
DbHelper.getDbService().update(sqlString,insertParams);
|
DbHelper.getDbService().update(sqlString,insertParams);
|
||||||
|
@ -1098,7 +1103,10 @@ public class ManualTaskAction {
|
||||||
@Request.Post("searchcount")
|
@Request.Post("searchcount")
|
||||||
public Map searchcount(Params params) {
|
public Map searchcount(Params params) {
|
||||||
String sql = "select text from rush_dictionary where codetype = 'user_task_num_sd'";
|
String sql = "select text from rush_dictionary where codetype = 'user_task_num_sd'";
|
||||||
|
String sql1 = "select text from rush_dictionary where codetype = 'user_task_num_sd_choose'";
|
||||||
Map map = db.queryMap(sql, params);
|
Map map = db.queryMap(sql, params);
|
||||||
|
Map map1 = db.queryMap(sql1, params);
|
||||||
|
map.put("choose",map1.get("text").toString());
|
||||||
return map;
|
return map;
|
||||||
}
|
}
|
||||||
// authcount保存时的方法
|
// authcount保存时的方法
|
||||||
|
@ -1107,10 +1115,14 @@ public class ManualTaskAction {
|
||||||
public Map updatecount(Params params) {
|
public Map updatecount(Params params) {
|
||||||
Map map = new HashMap();
|
Map map = new HashMap();
|
||||||
String sql = "update rush_dictionary set text = ? where codetype = 'user_task_num_sd'";
|
String sql = "update rush_dictionary set text = ? where codetype = 'user_task_num_sd'";
|
||||||
|
String sql1 = "update rush_dictionary set text = ? where codetype = 'user_task_num_sd_choose'";
|
||||||
logger.debug("获取的查询语句:"+sql);
|
logger.debug("获取的查询语句:"+sql);
|
||||||
int num = db.update(sql, new Object[]{
|
int num = db.update(sql, new Object[]{
|
||||||
params.getString("count")
|
params.getString("count")
|
||||||
});
|
});
|
||||||
|
int num1 = db.update(sql1, new Object[]{
|
||||||
|
params.getString("choose")
|
||||||
|
});
|
||||||
if(num==1){
|
if(num==1){
|
||||||
map.put("code", "0000");
|
map.put("code", "0000");
|
||||||
map.put("message", "添加成功");
|
map.put("message", "添加成功");
|
||||||
|
|
Loading…
Reference in New Issue