服务内容修改时使用枚举类
This commit is contained in:
parent
58c54e6fd3
commit
681fb980c2
@ -19,8 +19,18 @@ public enum ServiceWayContentServiceType {
|
||||
SERVICE_CONTENT,
|
||||
|
||||
/**
|
||||
*服务频次
|
||||
* 服务频次
|
||||
*/
|
||||
SERVICE_FREQUENCY
|
||||
SERVICE_FREQUENCY,
|
||||
|
||||
/**
|
||||
* 服务频次类型:数字:DIGIT
|
||||
*/
|
||||
DIGIT,
|
||||
|
||||
/**
|
||||
* 服务频次类型:文本:TEXT
|
||||
*/
|
||||
TEXT
|
||||
|
||||
}
|
||||
|
||||
@ -177,9 +177,9 @@ public class ServiceWayContentServiceImpl implements IServiceWayContentService {
|
||||
// 如果服务频次改变了,检查新服务频次的重复性
|
||||
if (serviceFrequencyChanged) {
|
||||
boolean isFrequencyDuplicate = false;
|
||||
if ("TEXT".equals(serviceWayContentEditDTO.getServiceFrequencyType())) {
|
||||
if (ServiceWayContentServiceType.TEXT.toString().equals(serviceWayContentEditDTO.getServiceFrequencyType())) {
|
||||
isFrequencyDuplicate = serviceWayContentMapper.isServiceFrequencyTextDuplicate(serviceWayContentEditDTO);
|
||||
} else if ("DIGIT".equals(serviceWayContentEditDTO.getServiceFrequencyType())) {
|
||||
} else if (ServiceWayContentServiceType.DIGIT.toString().equals(serviceWayContentEditDTO.getServiceFrequencyType())) {
|
||||
isFrequencyDuplicate = serviceWayContentMapper.isServiceFrequencyDigitDuplicate(serviceWayContentEditDTO);
|
||||
}
|
||||
if (isFrequencyDuplicate) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user