Commit 0af9a2db by 吕明尚

修改设备查询的BUG

parent 0c1ed350
...@@ -405,6 +405,7 @@ public class SConsumerCouponServiceImpl extends ServiceImpl<SConsumerCouponMappe ...@@ -405,6 +405,7 @@ public class SConsumerCouponServiceImpl extends ServiceImpl<SConsumerCouponMappe
newSConsumerCoupon.setStartDate(sCoupon.getStartDate()); newSConsumerCoupon.setStartDate(sCoupon.getStartDate());
newSConsumerCoupon.setEndDate(sCoupon.getEndDate()); newSConsumerCoupon.setEndDate(sCoupon.getEndDate());
newSConsumerCoupon.setRemark(sCoupon.getRemark()); newSConsumerCoupon.setRemark(sCoupon.getRemark());
newSConsumerCoupon.setCreateTime(new Date());
int insert = baseMapper.insert(newSConsumerCoupon); int insert = baseMapper.insert(newSConsumerCoupon);
if (insert > 0) { if (insert > 0) {
//优惠券数量减一 //优惠券数量减一
......
...@@ -67,7 +67,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -67,7 +67,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="devPsw != null and devPsw != ''">and t1.dev_psw = #{devPsw}</if> <if test="devPsw != null and devPsw != ''">and t1.dev_psw = #{devPsw}</if>
<if test="devVer != null and devVer != ''">and t1.dev_ver = #{devVer}</if> <if test="devVer != null and devVer != ''">and t1.dev_ver = #{devVer}</if>
<if test="devType != null and devType != ''">and t1.dev_type = #{devType}</if> <if test="devType != null and devType != ''">and t1.dev_type = #{devType}</if>
<if test="group != null and group != ''">and `groupt1.` = #{group}</if> <if test="group != null and group != ''">and t1.group = #{group}</if>
<if test="status != null and status != ''">and t1.status = #{status}</if> <if test="status != null and status != ''">and t1.status = #{status}</if>
<if test="mqttIp != null and mqttIp != ''">and t1.mqtt_iP = #{mqttIp}</if> <if test="mqttIp != null and mqttIp != ''">and t1.mqtt_iP = #{mqttIp}</if>
<if test="mqttPort != null and mqttPort != ''">and t1.mqtt_port = #{mqttPort}</if> <if test="mqttPort != null and mqttPort != ''">and t1.mqtt_port = #{mqttPort}</if>
......
...@@ -69,7 +69,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" ...@@ -69,7 +69,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="devType != null and devType != ''">and t1.dev_type = #{devType}</if> <if test="devType != null and devType != ''">and t1.dev_type = #{devType}</if>
<if test="projtId != null and projtId != ''">and t1.projt_id = #{projtId}</if> <if test="projtId != null and projtId != ''">and t1.projt_id = #{projtId}</if>
<if test="projtPsw != null and projtPsw != ''">and t1.projt_psw = #{projtPsw}</if> <if test="projtPsw != null and projtPsw != ''">and t1.projt_psw = #{projtPsw}</if>
<if test="group != null and group != ''">and `groupt1.` = #{group}</if> <if test="group != null and group != ''">and t1.group = #{group}</if>
<if test="status != null and status != ''">and t1.status = #{status}</if> <if test="status != null and status != ''">and t1.status = #{status}</if>
<if test="devPosition != null and devPosition != ''">and t1.dev_position = #{devPosition}</if> <if test="devPosition != null and devPosition != ''">and t1.dev_position = #{devPosition}</if>
<if test="gatewayId != null and gatewayId != ''">and t1.gateway_id = #{gatewayId}</if> <if test="gatewayId != null and gatewayId != ''">and t1.gateway_id = #{gatewayId}</if>
......
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 to comment