Commit 67e66a45 by wuchengwu

手机统计列表性别翻译,职业描述等长度限制

parent d19c57eb
......@@ -4,6 +4,7 @@ import com.founder.dao.TbPhSjInfoDao;
import com.founder.model.*;
import com.founder.service.TbPhSjInfoService;
import com.founder.utils.EasyuiPage;
import org.apache.commons.lang.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
......@@ -24,13 +25,17 @@ public class TbPhSjInfoServiceImpl implements TbPhSjInfoService{
@Override
public List<TbPhFzxyrsjgl> getPhoneInfoList(Map<String, Object> map) {
List<TbPhFzxyrsjgl> phoneInfoList = phSjInfoDao.getPhoneInfoList(map);
phoneInfoList.stream().forEach(p -> {
if (p.getYddh().startsWith("86")){
p.setYddh(p.getYddh().substring(2));
}else if (p.getYddh().startsWith("+86")){
p.setYddh(p.getYddh().substring(3));
}
});
if (phoneInfoList.size() > 0) {
phoneInfoList.stream().forEach(p -> {
if (StringUtils.isNotBlank(p.getYddh())){
if (p.getYddh().startsWith("86")) {
p.setYddh(p.getYddh().substring(2));
} else if (p.getYddh().startsWith("+86")) {
p.setYddh(p.getYddh().substring(3));
}
}
});
}
return phoneInfoList;
}
......
......@@ -497,23 +497,6 @@
return false;
}
}
function getRecentDay() {
var today = new Date();
var tYear = today.getFullYear();
var tMonth = today.getMonth()+1;
// var tDate = today.getDate();
return tYear + "-" + tMonth + "-01" ;
}
function getCruuentDay() {
var today = new Date();
var tYear = today.getFullYear();
var tMonth = today.getMonth()+1;
var tDate = today.getDate();
return tYear + "-" + tMonth + "-" + tDate ;
}
//格式化字典
function codeFormatter(val,type){
var codeName="";
......
......@@ -138,7 +138,16 @@
return "<span title='点击查看人员生物特征详情' onclick=\"openRyxq('"+rybh+"')\">"+rybh+"</span>";
}},
{title:"姓名",field:"xm",align:'left',width:120},
{title:"性别",field:"xbdm",align:'left',width:80},
{title:"性别",field:"xbdm",align:'left',width:80,formatter:function(val,row,index){
var xbdm=row.xbdm;
var rstStr="";
if(xbdm=="1"){
rstStr = "男";
}else if(xbdm=="2"){
rstStr = "女";
}
return rstStr;
}},
{title:"证件号码",field:"gmsfhm",align:'left',width:150,formatter:function(val,row,index){
var gmsfhm=row.gmsfhm;
var zjhm=row.zjhm;
......
......@@ -796,15 +796,15 @@
layer.alert("现住址详址长度过长!",{icon: 7, title: '提示'});
return -1;
}
if($("#zylbdmbcms").val()!=null&&$("#zylbdmbcms").val().length>100){
if($("#zylbdmbcms").val()!=null&&$("#zylbdmbcms").val().length>60){
layer.alert("职业描述长度过长!",{icon: 7, title: '提示'});
return -1;
}
if($("#tszcdmbcms").val()!=null&&$("#tszcdmbcms").val().length>100){
if($("#tszcdmbcms").val()!=null&&$("#tszcdmbcms").val().length>60){
layer.alert("专长描述长度过长!",{icon: 7, title: '提示'});
return -1;
}
if($("#sarysfdmbcms").val()!=null&&$("#sarysfdmbcms").val().length>100){
if($("#sarysfdmbcms").val()!=null&&$("#sarysfdmbcms").val().length>60){
layer.alert("身份描述长度过长!",{icon: 7, title: '提示'});
return -1;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment