判断企业名称+编号是否是唯一的
This commit is contained in:
+1
-1
@@ -374,7 +374,7 @@ public class SarBussionessStandController extends BaseController<SarBussionessSt
|
|||||||
.eq(null!=sarBussionessStand.getStandNumber(),"STAND_NUMBER",sarBussionessStand.getStandNumber());
|
.eq(null!=sarBussionessStand.getStandNumber(),"STAND_NUMBER",sarBussionessStand.getStandNumber());
|
||||||
Integer s=sarBussionessStandEOService.count(wrapper);
|
Integer s=sarBussionessStandEOService.count(wrapper);
|
||||||
if (s>0){
|
if (s>0){
|
||||||
return Result.error("当前标准编号和中文名称已存在");
|
return Result.error("当前企业编号和中文名称已存在");
|
||||||
}else {
|
}else {
|
||||||
return Result.success();
|
return Result.success();
|
||||||
}
|
}
|
||||||
|
|||||||
+13
@@ -1,6 +1,7 @@
|
|||||||
package com.adc.da.slrs.sarStandIdea.service.Impl;
|
package com.adc.da.slrs.sarStandIdea.service.Impl;
|
||||||
|
|
||||||
|
|
||||||
|
import com.adc.da.person.entity.TsPersonCollect;
|
||||||
import com.adc.da.slrs.sarStandIdea.dao.SarPublicIdeaDao;
|
import com.adc.da.slrs.sarStandIdea.dao.SarPublicIdeaDao;
|
||||||
|
|
||||||
import com.adc.da.slrs.sarStandIdea.entity.SarPublicIdea;
|
import com.adc.da.slrs.sarStandIdea.entity.SarPublicIdea;
|
||||||
@@ -96,6 +97,18 @@ public class SarPublicIdeaServiceImpl extends ServiceImpl<SarPublicIdeaDao, SarP
|
|||||||
IPage<SarPublicIdea> userIPage = sarPublicIdeaDao.selectPage(page, list);
|
IPage<SarPublicIdea> userIPage = sarPublicIdeaDao.selectPage(page, list);
|
||||||
System.out.println("总条数" + userIPage.getTotal());
|
System.out.println("总条数" + userIPage.getTotal());
|
||||||
System.out.println("总页数" + userIPage.getPages());
|
System.out.println("总页数" + userIPage.getPages());
|
||||||
|
//三天以内收藏的 标题名称后面加 new 一小时3600000 一天时间戳 为 86400000 三天259,200,000
|
||||||
|
long newTime = 259200000;
|
||||||
|
Date date = new Date();
|
||||||
|
long time = date.getTime();
|
||||||
|
for (SarPublicIdea data : userIPage.getRecords()){
|
||||||
|
long creationTime = data.getEndTime().getTime();
|
||||||
|
if(creationTime + newTime == time || creationTime + newTime > time){
|
||||||
|
StringBuffer sb = new StringBuffer();
|
||||||
|
sb.append("<span style=\'color:red\'>"+"(new)"+"</span>").append(data.getCid());
|
||||||
|
data.setCid(sb.toString());
|
||||||
|
}
|
||||||
|
}
|
||||||
return userIPage;
|
return userIPage;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user