保存创建时间

This commit is contained in:
shuzheng 2017-03-18 20:23:49 +08:00
parent d6ad11695a
commit 4874229025
1 changed files with 1 additions and 0 deletions

View File

@ -89,6 +89,7 @@ public class CmsPageController extends BaseController {
return new CmsResult(CmsResultConstant.INVALID_LENGTH, result.getErrors());
}
long time = System.currentTimeMillis();
cmsPage.setCtime(time);
cmsPage.setOrders(time);
int count = cmsPageService.insertSelective(cmsPage);
return new CmsResult(CmsResultConstant.SUCCESS, count);