org.zodiac.develop.service.impl.DefaultCodeServiceImpl Maven / Gradle / Ivy
package org.zodiac.develop.service.impl;
import org.zodiac.develop.mapper.CodeEntityMapper;
import org.zodiac.develop.model.entity.CodeEntity;
import org.zodiac.develop.service.CodeService;
import org.zodiac.mybatisplus.base.BaseEnhancedServiceImpl;
import org.zodiac.mybatisplus.constants.MyBatisPlusConstants;
public class DefaultCodeServiceImpl, E extends CodeEntity> extends BaseEnhancedServiceImpl
implements CodeService {
@Override
public boolean submit(E code) {
code.setIsDeleted(MyBatisPlusConstants.DB_NOT_DELETED);
return saveOrUpdate(code);
}
}