|
@@ -54,7 +54,7 @@ public class EncyclopediaController extends BaseController {
|
|
@GetMapping("/list-{typeId}.html")
|
|
@GetMapping("/list-{typeId}.html")
|
|
public String getEncyclopediaList(final Model model,@PathVariable("typeId") Integer typeId) {
|
|
public String getEncyclopediaList(final Model model,@PathVariable("typeId") Integer typeId) {
|
|
//词条信息
|
|
//词条信息
|
|
- SimpleDateFormat sl=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
|
|
|
|
|
+ SimpleDateFormat sl=new SimpleDateFormat("yyyy-MM-dd");
|
|
List<BaikeProductVo> authUserList = productService.getAuthUserList(typeId);
|
|
List<BaikeProductVo> authUserList = productService.getAuthUserList(typeId);
|
|
if(null!=authUserList&&authUserList.size()>0){
|
|
if(null!=authUserList&&authUserList.size()>0){
|
|
for (BaikeProductVo baikeProductVo:authUserList) {
|
|
for (BaikeProductVo baikeProductVo:authUserList) {
|
|
@@ -81,7 +81,7 @@ public class EncyclopediaController extends BaseController {
|
|
* */
|
|
* */
|
|
@GetMapping("/detail-{id}.html")
|
|
@GetMapping("/detail-{id}.html")
|
|
public String getEncyclopediaDetail(final Model model, @PathVariable("id") Integer id) {
|
|
public String getEncyclopediaDetail(final Model model, @PathVariable("id") Integer id) {
|
|
- SimpleDateFormat sl=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
|
|
|
|
|
+ SimpleDateFormat sl=new SimpleDateFormat("yyyy-MM-dd");
|
|
BaikeProductVo baikeproduct = productService.getEncyclopediaDetail(id);
|
|
BaikeProductVo baikeproduct = productService.getEncyclopediaDetail(id);
|
|
if(null!=baikeproduct){
|
|
if(null!=baikeproduct){
|
|
if(null!=baikeproduct.getPublishTime()){
|
|
if(null!=baikeproduct.getPublishTime()){
|