|
@@ -165,6 +165,7 @@ public class ConsumerUserServiceImpl implements ConsumerUserService {
|
|
|
user.setUserType("0");
|
|
|
user.setStatus("1");//后台添加默认已审核
|
|
|
user.setVirPermId(appUserInputDto.getVirPermId());
|
|
|
+ user.setIsPushState(appUserInputDto.getPushState());
|
|
|
} else {
|
|
|
// 修改操作
|
|
|
user = appUserManager.get(Integer.parseInt(appUserInputDto.getId()));
|
|
@@ -212,6 +213,7 @@ public class ConsumerUserServiceImpl implements ConsumerUserService {
|
|
|
user.setIsBinding(0);
|
|
|
}
|
|
|
user.setUserMobile(appUserInputDto.getMobilePhone());
|
|
|
+ user.setIsPushState(appUserInputDto.getPushState());
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -285,7 +287,7 @@ public class ConsumerUserServiceImpl implements ConsumerUserService {
|
|
|
if (appUserInputDto != null && StringUtils.isBlank(appUserInputDto.getId())) {
|
|
|
// 新增操作
|
|
|
Integer usId = appUserManager.saveOrUpdateAppUser(user);
|
|
|
- setPushState(usId,appUserInputDto.getPushState());
|
|
|
+// setPushState(usId,appUserInputDto.getPushState());
|
|
|
//需要记录该积分流转(充值记录)
|
|
|
if (appUserInputDto.getIntegral() != null && appUserInputDto.getIntegral() >= 0) {
|
|
|
if (appUserManager.exists(usId)) {
|
|
@@ -321,7 +323,7 @@ public class ConsumerUserServiceImpl implements ConsumerUserService {
|
|
|
try {
|
|
|
Integer usId = appUserManager.saveOrUpdateAppUser(user);
|
|
|
|
|
|
- setPushState(usId,appUserInputDto.getPushState());
|
|
|
+// setPushState(usId,appUserInputDto.getPushState());
|
|
|
//C端认证后 修改企业 修改绑定的企业账号
|
|
|
if (null != user.getWxUserId()) {
|
|
|
if (scWxuserManager.exists(user.getWxUserId())) {
|
|
@@ -355,24 +357,24 @@ public class ConsumerUserServiceImpl implements ConsumerUserService {
|
|
|
return "fail";
|
|
|
}
|
|
|
|
|
|
- private void setPushState(Integer userId,String pushState){
|
|
|
- if(null == userId){
|
|
|
- return;
|
|
|
- }
|
|
|
- if(StringUtils.isEmpty(pushState)){
|
|
|
- pushState = "1";
|
|
|
- }
|
|
|
- OrderDinnerSet set = orderDinnerSetManager.findByUserId(userId);
|
|
|
- if(null == set){
|
|
|
- set = new OrderDinnerSet();
|
|
|
- set.setUserId(userId);
|
|
|
- set.setStatus(pushState);
|
|
|
- orderDinnerSetManager.saveModel(set);
|
|
|
- }else{
|
|
|
- set.setStatus(pushState);
|
|
|
- orderDinnerSetManager.updateModel(set);
|
|
|
- }
|
|
|
- }
|
|
|
+// private void setPushState(Integer userId,String pushState){
|
|
|
+// if(null == userId){
|
|
|
+// return;
|
|
|
+// }
|
|
|
+// if(StringUtils.isEmpty(pushState)){
|
|
|
+// pushState = "1";
|
|
|
+// }
|
|
|
+// OrderDinnerSet set = orderDinnerSetManager.findByUserId(userId);
|
|
|
+// if(null == set){
|
|
|
+// set = new OrderDinnerSet();
|
|
|
+// set.setUserId(userId);
|
|
|
+// set.setStatus(pushState);
|
|
|
+// orderDinnerSetManager.saveModel(set);
|
|
|
+// }else{
|
|
|
+// set.setStatus(pushState);
|
|
|
+// orderDinnerSetManager.updateModel(set);
|
|
|
+// }
|
|
|
+// }
|
|
|
|
|
|
@Override
|
|
|
public String setFaceImage(AppUser user, String addimgUrls, String imageUrlids, String removeUrlids) {
|
|
@@ -904,12 +906,13 @@ public class ConsumerUserServiceImpl implements ConsumerUserService {
|
|
|
dto.setPermName(config.getName());
|
|
|
dto.setPermId(config.getId());
|
|
|
}
|
|
|
- OrderDinnerSet set = orderDinnerSetManager.findByUserId(id);
|
|
|
- if(null != set && "0".equals(set.getStatus())){
|
|
|
- dto.setPushState("0");
|
|
|
- }else{
|
|
|
- dto.setPushState("1");
|
|
|
- }
|
|
|
+// OrderDinnerSet set = orderDinnerSetManager.findByUserId(id);
|
|
|
+// if(null != set && "0".equals(set.getStatus())){
|
|
|
+// dto.setPushState("0");
|
|
|
+// }else{
|
|
|
+// dto.setPushState("1");
|
|
|
+// }
|
|
|
+ dto.setPushState(cons.getIsPushState());
|
|
|
return AppResultUtil.createSuccesDto(dto);
|
|
|
}
|
|
|
}
|