#基本信息接口 群聊数量,平均每天沟通次数优化返回字段类型

main
wangjie 1 year ago
parent d9fcd9cc49
commit ca7fd338ef

@ -356,7 +356,7 @@ public class UserInfoCmd {
* @return
*/
private String getCyqlNumNew(String employeeId) {
int count = 0;
double count = 0;
String sql = "select amount from uf_nj_cyqltjb where ry = ? and delete_type=0 and tenant_key = ?";
@ -370,10 +370,7 @@ public class UserInfoCmd {
List<Map<String,Object>> recordList = databaseUtils.getDataSourceList(result);
if(recordList.size()>0){
String amount = String.valueOf(recordList.get(0).get("amount"));
if(StringUtils.isNotBlank(amount)){
count = Util.getIntValue(amount);
}
count = Util.getDouleValue(recordList.get(0).get("amount"));
}
return count+"";
}
@ -446,7 +443,7 @@ public class UserInfoCmd {
* @return
*/
private String getPjMtgtcsNew(String employeeId) {
int count = 0;
double count = 0;
String sql = "select amount from uf_nj_pjmrdlhhsl where ry = ? and delete_type=0 and tenant_key = ?";
@ -460,10 +457,7 @@ public class UserInfoCmd {
List<Map<String,Object>> recordList = databaseUtils.getDataSourceList(result);
if(recordList.size()>0){
String amount = String.valueOf(recordList.get(0).get("amount"));
if(StringUtils.isNotBlank(amount)){
count = Util.getIntValue(amount);
}
count = Util.getDouleValue(recordList.get(0).get("amount"));
}
return count+"";
}

Loading…
Cancel
Save