Commit 6b2661b4 by zhangchen

新建券解决bug

parent a65c4adf
......@@ -686,10 +686,11 @@ public class VoucherDao extends GenericHibernateDao<Voucher, Integer> {
insertSql.append(",'" + voucherRule.getExclusive() + "'");
insertSql.append(",'" + voucherRule.getCanUseAmount() + "'");
insertSql.append(",'" + voucherRule.getFullCutAmount() + "'");
if(type == 1){
if(!"".equals(voucherRule.getOperater()) && voucherRule.getOperater()!=null){
insertSql.append(",'"+voucherRule.getOperater()+"'");
}else{
insertSql.append(",'"+loginUserName+"'");
}
insertSql.append(",'" + voucherRule.getShared() + "'),");
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment