| | |
| | | import java.lang.reflect.Field; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 参数设置 |
| | | * @author WWW |
| | | */ |
| | | @Service |
| | | @SuppressWarnings("ALL") |
| | | public class ArgsService implements ArgsMapper { |
| | | @Autowired |
| | | ArgsMapper argsMapper; |
| | |
| | | return argsMapper.updates(list); |
| | | } |
| | | |
| | | /** |
| | | * 初始化设置值 |
| | | */ |
| | | public void initSettingData() throws Exception { |
| | | List<ArgsEntity> list = selectAll(); |
| | | if (list == null || list.isEmpty()) { |
| | |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 更新设置值 |
| | | */ |
| | | public void updateSettingData(ArgsEntity entity) throws Exception { |
| | | Field field = SettingData.class.getField(entity.getMark()); |
| | | // field.setAccessible(true) |