| | |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.common.service.user.UserService; |
| | | import com.panzhihua.service_community.entity.ComSanshuoIndustryCenter; |
| | | import com.panzhihua.service_community.schedule.util.MyAESUtil; |
| | | import com.panzhihua.service_community.service.ComSanShuoIndustryCenterService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | |
| | | * */ |
| | | @PostMapping |
| | | public R add(@RequestBody ComSanShuoIndustryCenterDTO comSanShuoIndustryCenterDTO){ |
| | | comSanShuoIndustryCenterDTO.setCreateBy(this.getLoginUserInfo().getName()); |
| | | //comSanShuoIndustryCenterDTO.setCreateBy(this.getLoginUserInfo().getName()); |
| | | return comSanShuoIndustryCenterService.addOrUpdate(comSanShuoIndustryCenterDTO); |
| | | } |
| | | |
| | |
| | | public R resetPassword(@RequestBody ComSanShuoIndustryCenterDTO comSanShuoIndustryCenterDTO){ |
| | | ComSanshuoIndustryCenter center = comSanShuoIndustryCenterService.getById(comSanShuoIndustryCenterDTO.getId()); |
| | | center.setPassword(comSanShuoIndustryCenterDTO.getPassword()); |
| | | return R.ok(comSanShuoIndustryCenterService.updateById(center)); |
| | | return R.ok(comSanShuoIndustryCenterService.resetPassword(center)); |
| | | } |
| | | |
| | | } |