Commit da5af0eb authored by 赵啸非's avatar 赵啸非

添加更新默认用户角色

parent 217f7231
......@@ -7,7 +7,7 @@ import org.springframework.amqp.rabbit.config.SimpleRabbitListenerContainerFacto
import org.springframework.stereotype.Component;
import org.springframework.util.ErrorHandler;
@Component
//@Component
@Slf4j
public class RabbitLoggingErrorHandler implements ErrorHandler {
......
......@@ -12,7 +12,7 @@ import org.springframework.stereotype.Service;
* @description:
**/
@Slf4j
@Service
//@Service
public class SimpleDynamicListener implements ChannelAwareMessageListener {
@Override
......
......@@ -148,6 +148,7 @@ public class H5LoginController extends BaseCRUDJsonBodyMappingController<UserSer
data.put("phone", userEntity.getPhone());
data.put("userName", userEntity.getRealName());
data.put("userType", userEntity.getUserType());
data.put("companyId", userEntity.getCompanyId());
userEntity.setLoginTime(System.currentTimeMillis());
userEntity.setToken(IdUtil.fastSimpleUUID());
userEntity.setExpireTime(DateUtils.addCurrDate(3).getTime());
......@@ -245,6 +246,7 @@ public class H5LoginController extends BaseCRUDJsonBodyMappingController<UserSer
data.put("phone", userEntity.getPhone());
data.put("userName", userEntity.getRealName());
data.put("userType", userEntity.getUserType());
data.put("companyId", userEntity.getCompanyId());
userEntity.setLoginTime(System.currentTimeMillis());
userEntity.setToken(IdUtil.fastSimpleUUID());
userEntity.setExpireTime(DateUtils.addCurrDate(7).getTime());
......
package com.mortals.xhx.module.park.service.impl;
import com.mortals.framework.model.PageInfo;
import com.mortals.xhx.module.declare.model.DeclareEntity;
import com.mortals.xhx.module.declare.model.DeclareQuery;
import com.mortals.xhx.module.declare.service.DeclareService;
import org.springframework.beans.BeanUtils;
import java.util.List;
import java.util.function.Function;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.mortals.framework.service.impl.AbstractCRUDServiceImpl;
import com.mortals.framework.exception.AppException;
......@@ -10,15 +18,29 @@ import com.mortals.xhx.module.park.dao.ParkDao;
import com.mortals.xhx.module.park.model.ParkEntity;
import com.mortals.xhx.module.park.service.ParkService;
import lombok.extern.slf4j.Slf4j;
/**
* ParkService
* 园区基本信息 service实现
*
* @author zxfei
* @date 2025-04-27
*/
* ParkService
* 园区基本信息 service实现
*
* @author zxfei
* @date 2025-04-27
*/
@Service("parkService")
@Slf4j
public class ParkServiceImpl extends AbstractCRUDServiceImpl<ParkDao, ParkEntity, Long> implements ParkService {
@Autowired
private DeclareService declareService;
@Override
protected void updateAfter(ParkEntity entity, Context context) throws AppException {
super.updateAfter(entity, context);
List<DeclareEntity> declareEntities = declareService.find(new DeclareQuery().parkId(entity.getId()));
for (DeclareEntity declareEntity : declareEntities) {
declareEntity.setParkName(entity.getName());
}
declareService.update(declareEntities, context);
}
}
\ No newline at end of file
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