| | |
| | | import cn.hutool.core.collection.CollectionUtil; |
| | | import com.matrix.system.common.bean.BusParameterSettings; |
| | | import com.matrix.system.common.bean.SysCompany; |
| | | import com.matrix.system.common.constance.AppConstance; |
| | | import com.matrix.system.common.dao.BusParameterSettingsDao; |
| | | import com.matrix.system.common.dao.SysCompanyDao; |
| | | import com.matrix.system.hive.bean.ParameterSettings; |
| | |
| | | newSetting1.setCategory("APP设置"); |
| | | newSettings.add(newSetting1); |
| | | |
| | | ParameterSettings newSetting2=new ParameterSettings(); |
| | | newSetting2.setCode(AppConstance.WAREHOUSE_MANAGE_STOCK); |
| | | newSetting2.setName("是否管理产品库存"); |
| | | newSetting2.setType(1); |
| | | newSetting2.setCategory("仓库设置"); |
| | | newSettings.add(newSetting2); |
| | | |
| | | ParameterSettings newSetting3=new ParameterSettings(); |
| | | newSetting3.setCode(AppConstance.WECHARPAY_RECHARGE_NOTIFYURL); |
| | | newSetting3.setName("储值卡充值回调地址"); |
| | | newSetting3.setType(1); |
| | | newSetting3.setCategory("微信开发配置"); |
| | | newSettings.add(newSetting3); |
| | | |
| | | |
| | | |
| | | |
| | | for (ParameterSettings newSetting : newSettings) { |
| | | List<ParameterSettings> parameterSettings = parameterSettingsDao.selectByModel(newSetting); |
| | | if(CollectionUtil.isEmpty(parameterSettings)){ |