| | |
| | | import io.swagger.annotations.ApiParam; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import com.ltkj.common.annotation.Log; |
| | | import com.ltkj.common.core.controller.BaseController; |
| | |
| | | map.put("key",key); |
| | | return AjaxResult.success(map); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | |
| | | List<TjProject> tjProjects = tjProjectService.list(wq); |
| | | return AjaxResult.success(tjProjects); |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | |
| | | @Log(title = "体检项目", businessType = BusinessType.DELETE) |
| | | @DeleteMapping("/{proIds}") |
| | | @ApiOperation(value = "删除体检项目(可删除父项目和子项目)") |
| | | @Transactional |
| | | public AjaxResult remove(@PathVariable Long[] proIds) { |
| | | if (null == proIds || proIds.length <= 0) { |
| | | return AjaxResult.error("请选择要删除的项目"); |
| | |
| | | wq.eq(TjStandard::getProId, proId); |
| | | tjStandardService.remove(wq); |
| | | tjProjectService.removeById(project1.getProId()); |
| | | TjProject project = tjProjectService.getById(project1.getProParentId()); |
| | | project.setProPrice(tjProjectService.getMoneys(project1.getProParentId().toString())); |
| | | tjProjectService.updateById(project); |
| | | } |
| | | } |
| | | } |