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