StaffConvert.java 726 B

1234567891011121314151617181920212223242526272829303132
  1. package com.dk.mdm.infrastructure.convert.mst;
  2. import com.dk.common.model.vo.core.StaffEntity;
  3. import com.dk.mdm.model.pojo.mst.Staff;
  4. import com.dk.mdm.model.response.mst.StaffResponse;
  5. import com.dk.mdm.model.vo.mst.StaffVO;
  6. import org.mapstruct.Mapper;
  7. /**
  8. * @desc : Staff转换类
  9. * @author : admin
  10. * @date : 2023/1/9 10:37
  11. */
  12. @Mapper(componentModel = "spring")
  13. public interface StaffConvert {
  14. /**
  15. * @desc : 转换vo为pojo
  16. * @author : admin
  17. * @date : 2023/1/9 10:37
  18. */
  19. Staff convertToPo(StaffVO staffVO);
  20. /**
  21. * @desc : 转换pojo为Entity
  22. *
  23. * @author : admin
  24. * @date : 2023/1/9 10:37
  25. */
  26. StaffEntity convertToEntity(StaffResponse staff);
  27. }