提交 ebc57227 authored 作者: liupengfei's avatar liupengfei

--no commit message

上级 5528e7cf
...@@ -76,6 +76,11 @@ public class AdspaceController { ...@@ -76,6 +76,11 @@ public class AdspaceController {
} catch (ParseException e) { } catch (ParseException e) {
e.printStackTrace(); e.printStackTrace();
} }
if(endTime == null) {
Adspace ad = adspaceService.selectByPrimaryKey(form.getId());
ad.setEndTime(null);
adspaceService.updateByPrimaryKey(ad);
}
adspace.setEndTime(endTime); adspace.setEndTime(endTime);
adspace.setUpdateTime(new Date()); adspace.setUpdateTime(new Date());
if(!adspaceService.updateByPrimaryKeySelective(adspace)){ if(!adspaceService.updateByPrimaryKeySelective(adspace)){
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论