类 DutyController
- java.lang.Object
-
- net.guerlab.smart.platform.server.controller.AbstractControllerImpl<D,E,S,PK>
-
- net.guerlab.smart.platform.server.controller.BaseFindController<D,E,S,SP,PK>
-
- net.guerlab.smart.platform.server.controller.BaseController<net.guerlab.smart.platform.user.core.domain.DutyDTO,Duty,DutyService,net.guerlab.smart.platform.user.core.searchparams.DutySearchParams,Long>
-
- net.guerlab.smart.platform.user.web.controller.user.DutyController
-
- 所有已实现的接口:
net.guerlab.smart.platform.server.controller.DeleteController<net.guerlab.smart.platform.user.core.domain.DutyDTO,Duty,DutyService,Long>,net.guerlab.smart.platform.server.controller.FindController<net.guerlab.smart.platform.user.core.domain.DutyDTO,Duty,DutyService,net.guerlab.smart.platform.user.core.searchparams.DutySearchParams,Long>,net.guerlab.smart.platform.server.controller.IController<Duty,DutyService,Long>,net.guerlab.smart.platform.server.controller.ModifyControllerWrapper<net.guerlab.smart.platform.user.core.domain.DutyDTO,Duty,Long>,net.guerlab.smart.platform.server.controller.SaveController<net.guerlab.smart.platform.user.core.domain.DutyDTO,Duty,DutyService,Long>,net.guerlab.smart.platform.server.controller.UpdateController<net.guerlab.smart.platform.user.core.domain.DutyDTO,Duty,DutyService,Long>
@RestController("/user/duty") @RequestMapping("/user/duty") public class DutyController extends net.guerlab.smart.platform.server.controller.BaseController<net.guerlab.smart.platform.user.core.domain.DutyDTO,Duty,DutyService,net.guerlab.smart.platform.user.core.searchparams.DutySearchParams,Long>职务- 作者:
- guer
-
-
构造器概要
构造器 构造器 说明 DutyController()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidcopyProperties(net.guerlab.smart.platform.user.core.domain.DutyDTO dto, Duty entity, Long id)Collection<Long>getDistribution(Long dutyId)protected net.guerlab.commons.exception.ApplicationExceptionnullPointException()voidsetDistribution(Long dutyId, Collection<Long> departmentIds)voidsetDistributionService(DepartmentDutyDistributionService distributionService)-
从类继承的方法 net.guerlab.smart.platform.server.controller.AbstractControllerImpl
findOne0, getService, newEntity, setService
-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
方法详细资料
-
copyProperties
public void copyProperties(net.guerlab.smart.platform.user.core.domain.DutyDTO dto, Duty entity, Long id)
-
nullPointException
protected net.guerlab.commons.exception.ApplicationException nullPointException()
- 覆盖:
nullPointException在类中net.guerlab.smart.platform.server.controller.AbstractControllerImpl<net.guerlab.smart.platform.user.core.domain.DutyDTO,Duty,DutyService,Long>
-
getDistribution
@GetMapping("/distribution/{dutyId}") public Collection<Long> getDistribution(@PathVariable Long dutyId)
-
setDistribution
@PostMapping("/distribution/{dutyId}") @Transactional(rollbackFor=java.lang.Exception.class) public void setDistribution(@PathVariable Long dutyId, @RequestBody Collection<Long> departmentIds)
-
setDistributionService
@Autowired public void setDistributionService(DepartmentDutyDistributionService distributionService)
-
-