| | |
| | | import com.ruoyi.common.enums.OrganEnum; |
| | | import com.ruoyi.common.exception.base.BaseException; |
| | | import com.ruoyi.common.utils.PageUtils; |
| | | import com.ruoyi.project.domain.ServiceDonatebaseinfo; |
| | | import com.ruoyi.project.domain.vo.ServiceDonationwitnessVO; |
| | | import com.ruoyi.project.domain.vo.DonationwitnessBaseInfoVO; |
| | | import com.ruoyi.project.domain.ServiceDonateorgan; |
| | |
| | | * @date 2021-11-17 |
| | | */ |
| | | @Slf4j |
| | | @Api(description = "捐献见证管理") |
| | | @Api(description = "捐献见证管理",tags = {"捐献获取见证"}) |
| | | @RestController |
| | | @RequestMapping("/project/donationwitness") |
| | | public class ServiceDonationwitnessController extends BaseController { |
| | |
| | | @PostMapping("/add") |
| | | @RepeatSubmit |
| | | public AjaxResult add(@RequestBody ServiceDonationwitnessVO serviceDonationwitnessVO) { |
| | | boolean save = serviceDonationwitnessService.add(serviceDonationwitnessVO); |
| | | long save = serviceDonationwitnessService.add(serviceDonationwitnessVO); |
| | | log.info("新增捐献见证是否成功:{},id为:{},infoId为:{}", save, serviceDonationwitnessVO.getId(), serviceDonationwitnessVO.getInfoid()); |
| | | return AjaxResult.success(save); |
| | | } |
| | |
| | | public AjaxResult edit(@RequestBody ServiceDonationwitnessVO serviceDonationwitnessVO) { |
| | | log.info("新增捐献见证id为:{},infoId为:{}", serviceDonationwitnessVO.getId(), serviceDonationwitnessVO.getInfoid()); |
| | | Boolean edit = serviceDonationwitnessService.edit(serviceDonationwitnessVO); |
| | | if(edit&&serviceDonationwitnessVO.getWitnessState()=="3"){ |
| | | ServiceDonatebaseinfo donatebaseinfo=new ServiceDonatebaseinfo(); |
| | | donatebaseinfo.setWorkflow(6); |
| | | donatebaseinfo.setId(serviceDonationwitnessVO.getInfoid()); |
| | | serviceDonatebaseinfoService.updateById(donatebaseinfo); |
| | | } |
| | | return toAjax(edit); |
| | | } |
| | | |