@Size(max = 64) | @Size(max = 64) | ||||
@Column(name = "TYPE_ID") | @Column(name = "TYPE_ID") | ||||
private String typeId;//所属的字典类型ID,DictType表的ID字段 | private String typeId;//所属的字典类型ID,DictType表的ID字段 | ||||
@Size(max = 20) | |||||
@Size(max = 50) | |||||
@Column(name = "CODE") | @Column(name = "CODE") | ||||
private String code;//字典项的编码,用于唯一标识一个字典项 | private String code;//字典项的编码,用于唯一标识一个字典项 | ||||
@Size(max = 50) | @Size(max = 50) |
package cn.com.taiji.core.entity.dict.operation; | package cn.com.taiji.core.entity.dict.operation; | ||||
/** | /** | ||||
* @desc : 库存类型 | |||||
* @desc : 业务类型 | |||||
*/ | */ | ||||
public enum BusinessType { | public enum BusinessType { | ||||
COMMON_PROBLEM("常见问题",1){}, | COMMON_PROBLEM("常见问题",1){}, |
import org.springframework.web.bind.annotation.RestController; | import org.springframework.web.bind.annotation.RestController; | ||||
import javax.validation.Valid; | import javax.validation.Valid; | ||||
import java.util.UUID; | |||||
/** | /** | ||||
* @Auther: humh | * @Auther: humh | ||||
} | } | ||||
} | } |
private String title; | private String title; | ||||
@ApiModelProperty(value = "文本类型") | @ApiModelProperty(value = "文本类型") | ||||
@NotBlank(message = "文本类型不能为空") | |||||
@NotNull(message = "文本类型不能为空") | |||||
private TextType textType; | private TextType textType; | ||||
@ApiModelProperty(value = "文本内容") | @ApiModelProperty(value = "文本内容") |
private String title; | private String title; | ||||
@ApiModelProperty(value = "文本类型") | @ApiModelProperty(value = "文本类型") | ||||
@NotBlank(message = "文本类型不能为空") | |||||
@NotNull(message = "文本类型不能为空") | |||||
private TextType textType; | private TextType textType; | ||||
@ApiModelProperty(value = "文本内容") | @ApiModelProperty(value = "文本内容") |
} | } | ||||
public FundsDetail pushData(FundsDetail detail) throws ManagerException { | public FundsDetail pushData(FundsDetail detail) throws ManagerException { | ||||
FundsConfig config = fundsConfigRepo.findByAgencyIdAndEnableFlag(detail.getAgencyId(), ENABLE); | |||||
FundsConfig config = fundsConfigRepo.findByChannelIdAndEnableFlag(detail.getAgencyId(), ENABLE); | |||||
if (config == null) | if (config == null) | ||||
throw GlyServiceError.BUSINESS_VALIDATE_ERR.toHandleException("编号" + detail.getAgencyId() + "的渠道请款配置,未启用!"); | throw GlyServiceError.BUSINESS_VALIDATE_ERR.toHandleException("编号" + detail.getAgencyId() + "的渠道请款配置,未启用!"); | ||||
// 根据卡号获取车辆编号,并截取车牌号 | // 根据卡号获取车辆编号,并截取车牌号 |
package cn.com.taiji.ats.manager.handler; | package cn.com.taiji.ats.manager.handler; | ||||
import cn.com.taiji.ats.config.AliConfig; | |||||
import cn.com.taiji.ats.manager.ali.OrderApplyManager; | import cn.com.taiji.ats.manager.ali.OrderApplyManager; | ||||
import cn.com.taiji.common.manager.net.http.ServiceHandleException; | import cn.com.taiji.common.manager.net.http.ServiceHandleException; | ||||
import cn.com.taiji.common.model.file.FileProtocolSystemError; | import cn.com.taiji.common.model.file.FileProtocolSystemError; |