判断企业名称+编号是否是唯一的
This commit is contained in:
+1
-1
@@ -365,7 +365,7 @@ public class SarBussionessStandController extends BaseController<SarBussionessSt
|
|||||||
return "1";
|
return "1";
|
||||||
}
|
}
|
||||||
|
|
||||||
@ApiOperation(value = "|SarStandardsInfoEO|编号+名称组合为唯一标识(标准海外)")
|
@ApiOperation(value = "|SarStandardsInfoEO|编号+名称组合为唯一标识(企业)")
|
||||||
@PostMapping("/selectOnlyInfo")
|
@PostMapping("/selectOnlyInfo")
|
||||||
public ResponseMessage selectOnlyInfo (SarBussionessStand sarBussionessStand){
|
public ResponseMessage selectOnlyInfo (SarBussionessStand sarBussionessStand){
|
||||||
|
|
||||||
|
|||||||
-12
@@ -97,18 +97,6 @@ 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