|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import com.matrix.core.constance.MatrixConstance; | 
|---|
|  |  |  | import com.matrix.core.pojo.AjaxResult; | 
|---|
|  |  |  | import com.matrix.core.pojo.PaginationVO; | 
|---|
|  |  |  | import com.matrix.core.tools.WebUtil; | 
|---|
|  |  |  | import com.matrix.system.common.bean.BusParameterSettings; | 
|---|
|  |  |  | import com.matrix.system.common.bean.SysUsers; | 
|---|
|  |  |  | import com.matrix.system.common.dao.BusParameterSettingsDao; | 
|---|
|  |  |  | import com.matrix.system.constance.Dictionary; | 
|---|
|  |  |  | import com.matrix.system.hive.action.util.QueryUtil; | 
|---|
|  |  |  | import com.matrix.system.hive.bean.ParameterSettings; | 
|---|
|  |  |  | import com.matrix.system.hive.bean.SysProjUse; | 
|---|
|  |  |  | import com.matrix.system.score.constant.ScoreSettingConstant; | 
|---|
|  |  |  | import com.matrix.system.score.service.ScoreOrderService; | 
|---|
|  |  |  | import com.matrix.system.score.vo.ScoreOrderVo; | 
|---|
|  |  |  | import com.matrix.system.score.service.ScoreRuleSettingService; | 
|---|
|  |  |  | import com.matrix.system.score.vo.ScoreRuleSettingsVo; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import cn.hutool.core.collection.CollUtil; | 
|---|
|  |  |  | import cn.hutool.core.util.StrUtil; | 
|---|
|  |  |  | import io.swagger.annotations.Api; | 
|---|
|  |  |  | import net.sf.jsqlparser.util.AddAliasesVisitor; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import org.springframework.beans.BeanUtils; | 
|---|
|  |  |  | import org.springframework.beans.factory.annotation.Autowired; | 
|---|
|  |  |  | 
|---|
|  |  |  | * @author wzy | 
|---|
|  |  |  | * @date 2021-02-22 | 
|---|
|  |  |  | **/ | 
|---|
|  |  |  | @Api(value = "积分订单", tags = "积分订单") | 
|---|
|  |  |  | @RestController | 
|---|
|  |  |  | @RequestMapping(value = "/score/ruleSetting") | 
|---|
|  |  |  | public class ScoreRuleSettingAction { | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Autowired | 
|---|
|  |  |  | private ScoreOrderService scoreOrderService; | 
|---|
|  |  |  | private ScoreRuleSettingService scoreRuleSettingService; | 
|---|
|  |  |  | @Autowired | 
|---|
|  |  |  | private BusParameterSettingsDao busParameterSettingsDao; | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @GetMapping(value = "/testApi") | 
|---|
|  |  |  | public AjaxResult testApi() { | 
|---|
|  |  |  | scoreOrderService.testMethod(); | 
|---|
|  |  |  | scoreRuleSettingService.testMethod(); | 
|---|
|  |  |  | return AjaxResult.buildSuccessInstance("success"); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | @PostMapping(value = "/updateScoreRule") | 
|---|
|  |  |  | public @ResponseBody | 
|---|
|  |  |  | AjaxResult updateScoreRule(@RequestBody List<BusParameterSettings> busParameterSettings) { | 
|---|
|  |  |  | return scoreOrderService.updateScoreRuleByCompanyId(busParameterSettings); | 
|---|
|  |  |  | return scoreRuleSettingService.updateScoreRuleByCompanyId(busParameterSettings); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|