单位散户

master
jevononlie 6 months ago
parent a1181d99ae
commit 36ae58706f

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

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

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

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

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

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

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

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

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

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

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

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

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

Loading…
Cancel
Save