Commit 85f50d9b by zhiwj

修改取值

parent 46e4be15
......@@ -40,7 +40,10 @@ public class StoreBusinessTimeServiceImpl implements StoreBusinessTimeService {
if (StringUtils.isNotBlank(storeBusinessTimeDTO.getWeekday())) {
TabStoreBusinessTime businessTime = new TabStoreBusinessTime();
businessTime.setStoreBusinessTimeId(storeBusinessTimeDTO.getStoreBusinessTimeId());
businessTime.setWeekday(storeBusinessTimeDTO.getWeekday());
if (StringUtils.isNotBlank(storeBusinessTimeDTO.getWeekday())) {
String weekday = Stream.of(storeBusinessTimeDTO.getWeekday().split(GlobalInfo.FLAG_COMMA)).sorted().reduce((x, y) -> x + GlobalInfo.FLAG_COMMA + y).get();
businessTime.setWeekday(weekday);
}
businessTime.setOpenTime(storeBusinessTimeDTO.getOpenTime());
businessTime.setCloseTime(storeBusinessTimeDTO.getCloseTime());
businessTime.setEnterpriseId(enterpriseId);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment