yang_shj
2 years ago
30 changed files with 339 additions and 27 deletions
@ -0,0 +1,27 @@
|
||||
package com.hnac.hzims.operational.alert.vo; |
||||
|
||||
import io.swagger.annotations.ApiModelProperty; |
||||
import lombok.Data; |
||||
|
||||
import java.util.Date; |
||||
|
||||
/** |
||||
* @author ysj |
||||
* @date 2023/03/17 10:02:33 |
||||
* @version 4.0.0 |
||||
*/ |
||||
@Data |
||||
public class HandleQueryVo { |
||||
|
||||
@ApiModelProperty("处理人") |
||||
private Long handleUser; |
||||
|
||||
@ApiModelProperty("开始时间") |
||||
private Date startTime; |
||||
|
||||
@ApiModelProperty("结束时间") |
||||
private Date endTime; |
||||
|
||||
@ApiModelProperty("处理类型:0-处理 1-延后 2-误报") |
||||
private Long handleWay; |
||||
} |
@ -0,0 +1,19 @@
|
||||
package com.hnac.hzims.operational.fill.vo; |
||||
|
||||
import com.hnac.hzims.operational.fill.entity.NotInsertPowerEntity; |
||||
import com.hnac.hzims.operational.fill.entity.OverEntity; |
||||
import io.swagger.annotations.ApiModelProperty; |
||||
import lombok.Data; |
||||
|
||||
/** |
||||
* @author ysj |
||||
* @date 2023/03/17 14:34:12 |
||||
* @version 4.0.0 |
||||
*/ |
||||
@Data |
||||
public class NotInsertPowerVo extends NotInsertPowerEntity { |
||||
|
||||
@ApiModelProperty("用户名称") |
||||
private String userName; |
||||
|
||||
} |
@ -0,0 +1,18 @@
|
||||
package com.hnac.hzims.operational.fill.vo; |
||||
|
||||
import com.hnac.hzims.operational.fill.entity.NotInsertUseEntity; |
||||
import io.swagger.annotations.ApiModelProperty; |
||||
import lombok.Data; |
||||
|
||||
/** |
||||
* @author ysj |
||||
* @date 2023/03/17 14:34:12 |
||||
* @version 4.0.0 |
||||
*/ |
||||
@Data |
||||
public class NotInsertUseVo extends NotInsertUseEntity { |
||||
|
||||
@ApiModelProperty("用户名称") |
||||
private String userName; |
||||
|
||||
} |
@ -0,0 +1,18 @@
|
||||
package com.hnac.hzims.operational.fill.vo; |
||||
|
||||
import com.hnac.hzims.operational.fill.entity.RainfallEntity; |
||||
import io.swagger.annotations.ApiModelProperty; |
||||
import lombok.Data; |
||||
|
||||
/** |
||||
* @author ysj |
||||
* @date 2023/03/17 14:34:12 |
||||
* @version 4.0.0 |
||||
*/ |
||||
@Data |
||||
public class RainfallVo extends RainfallEntity { |
||||
|
||||
@ApiModelProperty("用户名称") |
||||
private String userName; |
||||
|
||||
} |
@ -0,0 +1,18 @@
|
||||
package com.hnac.hzims.operational.fill.vo; |
||||
|
||||
import com.hnac.hzims.operational.fill.entity.StorageEntity; |
||||
import io.swagger.annotations.ApiModelProperty; |
||||
import lombok.Data; |
||||
|
||||
/** |
||||
* @author ysj |
||||
* @date 2023/03/17 14:34:12 |
||||
* @version 4.0.0 |
||||
*/ |
||||
@Data |
||||
public class StorageVo extends StorageEntity { |
||||
|
||||
@ApiModelProperty("用户名称") |
||||
private String userName; |
||||
|
||||
} |
@ -0,0 +1,37 @@
|
||||
package com.hnac.hzims.operational.fill.wrapper; |
||||
|
||||
import com.hnac.hzims.operational.fill.entity.NotInsertPowerEntity; |
||||
import com.hnac.hzims.operational.fill.vo.NotInsertPowerVo; |
||||
import com.hnac.hzims.operational.fill.vo.OverVo; |
||||
import org.springblade.core.mp.support.BaseEntityWrapper; |
||||
import org.springblade.core.tool.utils.BeanUtil; |
||||
import org.springblade.core.tool.utils.ObjectUtil; |
||||
import org.springblade.system.user.cache.UserCache; |
||||
import org.springblade.system.user.entity.User; |
||||
|
||||
import java.util.Optional; |
||||
|
||||
/** |
||||
* @author ysj |
||||
* @date 2023/03/17 14:34:12 |
||||
* @version 4.0.0 |
||||
*/ |
||||
public class NotInsertPowerWrapper extends BaseEntityWrapper<NotInsertPowerEntity, NotInsertPowerVo> { |
||||
|
||||
public static NotInsertPowerWrapper build() { |
||||
return new NotInsertPowerWrapper(); |
||||
} |
||||
|
||||
@Override |
||||
public NotInsertPowerVo entityVO(NotInsertPowerEntity entity) { |
||||
NotInsertPowerVo vo = BeanUtil.copy(entity, NotInsertPowerVo.class); |
||||
User createUser = UserCache.getUser(entity.getCreateUser()); |
||||
if(ObjectUtil.isEmpty(createUser)){ |
||||
return vo; |
||||
} |
||||
assert vo != null; |
||||
vo.setUserName(Optional.ofNullable(createUser.getName()).orElse(null)); |
||||
return vo; |
||||
} |
||||
|
||||
} |
@ -0,0 +1,36 @@
|
||||
package com.hnac.hzims.operational.fill.wrapper; |
||||
|
||||
import com.hnac.hzims.operational.fill.entity.NotInsertUseEntity; |
||||
import com.hnac.hzims.operational.fill.vo.NotInsertUseVo; |
||||
import org.springblade.core.mp.support.BaseEntityWrapper; |
||||
import org.springblade.core.tool.utils.BeanUtil; |
||||
import org.springblade.core.tool.utils.ObjectUtil; |
||||
import org.springblade.system.user.cache.UserCache; |
||||
import org.springblade.system.user.entity.User; |
||||
|
||||
import java.util.Optional; |
||||
|
||||
/** |
||||
* @author ysj |
||||
* @date 2023/03/17 14:34:12 |
||||
* @version 4.0.0 |
||||
*/ |
||||
public class NotInsertUseWrapper extends BaseEntityWrapper<NotInsertUseEntity, NotInsertUseVo> { |
||||
|
||||
public static NotInsertUseWrapper build() { |
||||
return new NotInsertUseWrapper(); |
||||
} |
||||
|
||||
@Override |
||||
public NotInsertUseVo entityVO(NotInsertUseEntity entity) { |
||||
NotInsertUseVo vo = BeanUtil.copy(entity, NotInsertUseVo.class); |
||||
User createUser = UserCache.getUser(entity.getCreateUser()); |
||||
if(ObjectUtil.isEmpty(createUser)){ |
||||
return vo; |
||||
} |
||||
assert vo != null; |
||||
vo.setUserName(Optional.ofNullable(createUser.getName()).orElse(null)); |
||||
return vo; |
||||
} |
||||
|
||||
} |
@ -0,0 +1,36 @@
|
||||
package com.hnac.hzims.operational.fill.wrapper; |
||||
|
||||
import com.hnac.hzims.operational.fill.entity.RainfallEntity; |
||||
import com.hnac.hzims.operational.fill.vo.RainfallVo; |
||||
import org.springblade.core.mp.support.BaseEntityWrapper; |
||||
import org.springblade.core.tool.utils.BeanUtil; |
||||
import org.springblade.core.tool.utils.ObjectUtil; |
||||
import org.springblade.system.user.cache.UserCache; |
||||
import org.springblade.system.user.entity.User; |
||||
|
||||
import java.util.Optional; |
||||
|
||||
/** |
||||
* @author ysj |
||||
* @date 2023/03/17 14:34:12 |
||||
* @version 4.0.0 |
||||
*/ |
||||
public class RainfallWrapper extends BaseEntityWrapper<RainfallEntity, RainfallVo> { |
||||
|
||||
public static RainfallWrapper build() { |
||||
return new RainfallWrapper(); |
||||
} |
||||
|
||||
@Override |
||||
public RainfallVo entityVO(RainfallEntity entity) { |
||||
RainfallVo vo = BeanUtil.copy(entity, RainfallVo.class); |
||||
User createUser = UserCache.getUser(entity.getCreateUser()); |
||||
if(ObjectUtil.isEmpty(createUser)){ |
||||
return vo; |
||||
} |
||||
assert vo != null; |
||||
vo.setUserName(Optional.ofNullable(createUser.getName()).orElse(null)); |
||||
return vo; |
||||
} |
||||
|
||||
} |
@ -0,0 +1,36 @@
|
||||
package com.hnac.hzims.operational.fill.wrapper; |
||||
|
||||
import com.hnac.hzims.operational.fill.entity.StorageEntity; |
||||
import com.hnac.hzims.operational.fill.vo.StorageVo; |
||||
import org.springblade.core.mp.support.BaseEntityWrapper; |
||||
import org.springblade.core.tool.utils.BeanUtil; |
||||
import org.springblade.core.tool.utils.ObjectUtil; |
||||
import org.springblade.system.user.cache.UserCache; |
||||
import org.springblade.system.user.entity.User; |
||||
|
||||
import java.util.Optional; |
||||
|
||||
/** |
||||
* @author ysj |
||||
* @date 2023/03/17 14:34:12 |
||||
* @version 4.0.0 |
||||
*/ |
||||
public class StorageWrapper extends BaseEntityWrapper<StorageEntity, StorageVo> { |
||||
|
||||
public static StorageWrapper build() { |
||||
return new StorageWrapper(); |
||||
} |
||||
|
||||
@Override |
||||
public StorageVo entityVO(StorageEntity entity) { |
||||
StorageVo vo = BeanUtil.copy(entity, StorageVo.class); |
||||
User createUser = UserCache.getUser(entity.getCreateUser()); |
||||
if(ObjectUtil.isEmpty(createUser)){ |
||||
return vo; |
||||
} |
||||
assert vo != null; |
||||
vo.setUserName(Optional.ofNullable(createUser.getName()).orElse(null)); |
||||
return vo; |
||||
} |
||||
|
||||
} |
Loading…
Reference in new issue