提交 1461e02e authored 作者: luojie's avatar luojie

修改店铺SQL

上级 9633dd14
package com.platform.entity;
import java.util.Date;
/**
* 评论表主表
*/
public class TbCfCommentsInfoEntity {
//评论主键id
private String id;
//被评论者的id
private String ownerId;
//评论者id
private String fromId;
//评论者名字
private String fromName;
//评论者头像
private String fromAvatar;
//获得点赞的数量
private Integer likeNum;
//评论内容
private String content;
//创建时间
private Date createTime;
//更新时间
private Date updateTime;
}
\ No newline at end of file
......@@ -61,7 +61,7 @@ public class TbCfIssueCouponServiceImpl implements TbCfIssueCouponService {
tbCfIssueCoupon.setCouponId(tbCfCouponIssue.getCouponId());
tbCfIssueCoupon.setUserId(userId);
tbCfIssueCoupon.setNick(nick);
tbCfIssueCoupon.setEnableFlag(0);
tbCfIssueCoupon.setEnableFlag(1);
tbCfIssueCoupon.setCreateTime(new Date());
tbCfIssueCoupon.setIssueId(tbCfCouponIssue.getCouponIssueId());
return tbCfIssueCouponDao.save(tbCfIssueCoupon);
......
......@@ -40,7 +40,7 @@
select
*
from tb_cf_store
WHERE 1=1
WHERE 1=1 and enable_flag!=0
<if test="name != null and name.trim() != ''">
AND name LIKE concat('%',#{name},'%')
</if>
......
......@@ -11,4 +11,4 @@ jdbc.maxActive=30
jdbc.minPoolSize=2
jdbc.maxIdleTime=30000
jdbc.idleConnectionTestPeriod=100
\ No newline at end of file
jdbc.idleConnectionTestPeriod=100
\ No newline at end of file
......@@ -7,4 +7,4 @@ jdbc.maxActive=30
jdbc.minPoolSize=2
jdbc.maxIdleTime=30000
jdbc.idleConnectionTestPeriod=100
\ No newline at end of file
jdbc.idleConnectionTestPeriod=100
\ No newline at end of file
......@@ -10,7 +10,7 @@ $(function () {
{label: '用户id', name: 'userId', index: 'user_id', width: 80,hidden: true},
{label: '用户昵称', name: 'nick', index: 'nick', width: 80},
{label: '创建日期', name: 'createTime', index: 'create_time', width: 80},
{label: '是否已经使用(0未使用,1已使用)', name: 'enableFlag', index: 'enable_flag', width: 80}
{label: '是否已经使用(0已使用,1未使用)', name: 'enableFlag', index: 'enable_flag', width: 80}
]
});
});
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论