单位散户

master
jevononlie 6 months ago
parent a1181d99ae
commit 36ae58706f

@ -6,6 +6,8 @@ import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import java.time.LocalDateTime;
/** /**
* DTO * DTO
*/ */
@ -43,4 +45,11 @@ public class UserDTO {
@ApiModelProperty(value = "是否单位散户", required = false) @ApiModelProperty(value = "是否单位散户", required = false)
private String isClientUnit; private String isClientUnit;
@ApiModelProperty("散户类型,单位散户")
private LocalDateTime clientType;
@ApiModelProperty("所属单位名称")
private LocalDateTime clientUnitName;
} }

@ -114,4 +114,13 @@ public class Client {
@TableField("f_last_modify_time") @TableField("f_last_modify_time")
private LocalDateTime updateTime; private LocalDateTime updateTime;
@ApiModelProperty("散户类型,单位散户")
@TableField("client_type")
private LocalDateTime clientType;
@ApiModelProperty("所属单位名称")
@TableField("client_unit_name")
private LocalDateTime clientUnitName;
} }

@ -68,4 +68,6 @@ public class RecycleOrderRespVO {
@ApiModelProperty("备注") @ApiModelProperty("备注")
protected String remark; protected String remark;
@ApiModelProperty("单位订单")
private Integer clientType;
} }

@ -24,7 +24,7 @@ public class DZRecycleOrderCreateVO {
@Valid @Valid
private List<RecycleOrderDetailSaveVO> orderDetails; private List<RecycleOrderDetailSaveVO> orderDetails;
@ApiModelProperty(value = "订单的散户类型1非单位2单位订单", required = true, example = "1") @ApiModelProperty(value = "订单的散户类型1非单位2单位订单", required = false)
private String clientType; private String clientType;
@ApiModelProperty(value = "订单备注", required = false, example = "请尽快上门") @ApiModelProperty(value = "订单备注", required = false, example = "请尽快上门")
@ -33,4 +33,5 @@ public class DZRecycleOrderCreateVO {
@ApiModelProperty(value = "回收员id", hidden = true, example = "17802164218") @ApiModelProperty(value = "回收员id", hidden = true, example = "17802164218")
private String recyclerId; private String recyclerId;
} }

@ -24,4 +24,7 @@ public class DZRecycleOrderRespVO extends RecycleOrderRespVO {
@ApiModelProperty("订单明细详情") @ApiModelProperty("订单明细详情")
private List<RecycleOrderDetailRespVO> orderDetails; private List<RecycleOrderDetailRespVO> orderDetails;
@ApiModelProperty("单位订单")
private Integer clientType;
} }

@ -17,4 +17,7 @@ public class RecycleOrderCancelVO {
@ApiModelProperty(value = "散户id", hidden = true, example = "533242995646951684") @ApiModelProperty(value = "散户id", hidden = true, example = "533242995646951684")
private String clientId; private String clientId;
@ApiModelProperty(value = "单位订单", required = false)
private Integer clientType;
} }

@ -62,10 +62,8 @@ public class RecycleOrderCreateVO {
@Valid @Valid
private List<RecycleOrderDetailCreateVO> orderDetails; private List<RecycleOrderDetailCreateVO> orderDetails;
// @ApiModelProperty(value = "单位订单", required = true) @ApiModelProperty(value = "单位订单", required = false)
// @NotNull(message = "是否单位订单") private Integer clientType;
// @Valid
// private Integer clientType;
} }

@ -27,4 +27,7 @@ public class RecycleOrderFinishVO {
@NotNull(message = "订单明细未提交") @NotNull(message = "订单明细未提交")
@Valid @Valid
private List<RecycleOrderDetailSaveVO> orderDetails; private List<RecycleOrderDetailSaveVO> orderDetails;
@ApiModelProperty(value = "单位订单", required = false)
private Integer clientType;
} }

@ -24,4 +24,8 @@ public class RecycleOrderReachVO {
@NotNull(message = "位置定位信息未授权") @NotNull(message = "位置定位信息未授权")
@Valid @Valid
private LocationDTO location; private LocationDTO location;
@ApiModelProperty(value = "单位订单", required = false)
private Integer clientType;
} }

@ -17,4 +17,7 @@ public class RecycleOrderTakingVO {
@ApiModelProperty(value = "回收员id", hidden = true, example = "533242995646951684") @ApiModelProperty(value = "回收员id", hidden = true, example = "533242995646951684")
private String staffsId; private String staffsId;
@ApiModelProperty(value = "单位订单", required = false)
private Integer clientType;
} }

@ -34,4 +34,7 @@ public class RecycleOrderUpdateVO {
@ApiModelProperty(value = "备注", required = false, example = "请尽快上门") @ApiModelProperty(value = "备注", required = false, example = "请尽快上门")
private String remark; private String remark;
@ApiModelProperty(value = "单位订单", required = false)
private Integer clientType;
} }

@ -68,6 +68,9 @@ public class SHRecycleOrderRespVO extends RecycleOrderRespVO {
@ApiModelProperty("订单明细详情") @ApiModelProperty("订单明细详情")
private List<RecycleOrderDetailRespVO> orderDetails; private List<RecycleOrderDetailRespVO> orderDetails;
@ApiModelProperty(value = "单位订单", required = false)
private Integer clientType;
// @ApiModelProperty("综合评分") // @ApiModelProperty("综合评分")
// private Integer starScore; // private Integer starScore;

@ -24,12 +24,14 @@ import cn.hutool.core.util.StrUtil;
import cn.hutool.http.HttpUtil; import cn.hutool.http.HttpUtil;
import cn.hutool.json.JSONObject; import cn.hutool.json.JSONObject;
import cn.hutool.json.JSONUtil; import cn.hutool.json.JSONUtil;
import io.swagger.annotations.ApiModelProperty;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.util.StringUtils; import org.springframework.util.StringUtils;
import org.springframework.validation.annotation.Validated; import org.springframework.validation.annotation.Validated;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.time.LocalDateTime;
import java.util.Date; import java.util.Date;
/** /**
@ -161,7 +163,9 @@ public class CommonService implements ICommonService {
userDTO.setUsername(client.getNickName()); userDTO.setUsername(client.getNickName());
userDTO.setToken(this.createToken(userDTO)); userDTO.setToken(this.createToken(userDTO));
// userDTO.setIsClientUnit( clientService.isClientUnit(userDTO.getPhone())); userDTO.setClientType(client.getClientType());
userDTO.setClientUnitName(client.getClientUnitName());
return userDTO; return userDTO;
} }

Loading…
Cancel
Save