宠物笼杀菌
This commit is contained in:
parent
8ed193a0b8
commit
bb4366cecb
|
|
@ -453,9 +453,10 @@ public class UserAction {
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
@RequestMapping("/setRemindWaterInf.do")
|
@RequestMapping("/setRemindWaterInf.do")
|
||||||
public Object setRemindWaterInf(Device device) {
|
public Object setRemindWaterInf(Device device, Integer type) {
|
||||||
try {
|
try {
|
||||||
return this.baseService.setRemindWaterInf(device);
|
type = type == null ? 0 : type.intValue();
|
||||||
|
return this.baseService.setRemindWaterInf(device, type);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
log.error("setRemindWaterInf:deviceId:{},error message:{}", device.getDeviceId(), e.toString());
|
log.error("setRemindWaterInf:deviceId:{},error message:{}", device.getDeviceId(), e.toString());
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -38,6 +38,9 @@ public class PushRemind implements Serializable{
|
||||||
@Column(name = "is_push")
|
@Column(name = "is_push")
|
||||||
private String isPush;
|
private String isPush;
|
||||||
|
|
||||||
|
@Column(name = "notify_type")
|
||||||
|
private int notifyType;
|
||||||
|
|
||||||
public PushRemindId getId() {
|
public PushRemindId getId() {
|
||||||
return id;
|
return id;
|
||||||
}
|
}
|
||||||
|
|
@ -101,4 +104,12 @@ public class PushRemind implements Serializable{
|
||||||
public void setIsPush(String isPush) {
|
public void setIsPush(String isPush) {
|
||||||
this.isPush = isPush;
|
this.isPush = isPush;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public int getNotifyType() {
|
||||||
|
return notifyType;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setNotifyType(int notifyType) {
|
||||||
|
this.notifyType = notifyType;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -105,7 +105,7 @@ public interface BaseService {
|
||||||
public Object getRemindWaterInf(Integer deviceId);
|
public Object getRemindWaterInf(Integer deviceId);
|
||||||
|
|
||||||
//设置换水提醒
|
//设置换水提醒
|
||||||
public Object setRemindWaterInf(Device device);
|
public Object setRemindWaterInf(Device device, int type);
|
||||||
|
|
||||||
//保存商家信息
|
//保存商家信息
|
||||||
public Object saveShopsInfo(ShopsInfo shopsInfo,MultipartFile file1,MultipartFile file2,MultipartFile file3);
|
public Object saveShopsInfo(ShopsInfo shopsInfo,MultipartFile file1,MultipartFile file2,MultipartFile file3);
|
||||||
|
|
|
||||||
|
|
@ -1160,7 +1160,7 @@ public class BaseServiceImpl implements BaseService {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Object setRemindWaterInf(Device device) {
|
public Object setRemindWaterInf(Device device, int type) {
|
||||||
log.info("setRemindWaterInf begin");
|
log.info("setRemindWaterInf begin");
|
||||||
Device tmpDevice = this.deviceDao.get(device.getDeviceId());
|
Device tmpDevice = this.deviceDao.get(device.getDeviceId());
|
||||||
if (tmpDevice != null) {
|
if (tmpDevice != null) {
|
||||||
|
|
@ -1192,6 +1192,7 @@ public class BaseServiceImpl implements BaseService {
|
||||||
pushRemind.setRemindCycle(tmpDevice.getRemindCycle());
|
pushRemind.setRemindCycle(tmpDevice.getRemindCycle());
|
||||||
pushRemind.setRemindDate(tmpDevice.getRemindDate());
|
pushRemind.setRemindDate(tmpDevice.getRemindDate());
|
||||||
pushRemind.setIsPush("0");
|
pushRemind.setIsPush("0");
|
||||||
|
pushRemind.setNotifyType(type);
|
||||||
this.pushRemindDao.update(pushRemind);
|
this.pushRemindDao.update(pushRemind);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
@ -1204,6 +1205,7 @@ public class BaseServiceImpl implements BaseService {
|
||||||
if (pr != null) {
|
if (pr != null) {
|
||||||
pr.setRemindCycle(tmpDevice.getRemindCycle());
|
pr.setRemindCycle(tmpDevice.getRemindCycle());
|
||||||
pr.setRemindDate(tmpDevice.getRemindDate());
|
pr.setRemindDate(tmpDevice.getRemindDate());
|
||||||
|
pr.setNotifyType(type);
|
||||||
this.pushRemindDao.update(pr);
|
this.pushRemindDao.update(pr);
|
||||||
} else {
|
} else {
|
||||||
//推送表ID
|
//推送表ID
|
||||||
|
|
@ -1223,6 +1225,7 @@ public class BaseServiceImpl implements BaseService {
|
||||||
pushRemind.setShowName(deviceUser.getShowName());
|
pushRemind.setShowName(deviceUser.getShowName());
|
||||||
pushRemind.setLoginType(user.getLoginType());
|
pushRemind.setLoginType(user.getLoginType());
|
||||||
pushRemind.setIsPush("0");
|
pushRemind.setIsPush("0");
|
||||||
|
pushRemind.setNotifyType(type);
|
||||||
this.pushRemindDao.save(pushRemind);
|
this.pushRemindDao.save(pushRemind);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue