You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

41 lines
964 B

  1. package com.qmrz.dto;
  2. import com.qmrz.admin.AdminLogin;
  3. import lombok.Data;
  4. import lombok.extern.slf4j.Slf4j;
  5. @Data
  6. @Slf4j
  7. public class ParamNameDTO {
  8. private String name;
  9. private Integer customerid;
  10. public ParamNameDTO setCustomerid(Integer customerid){
  11. log.warn("customerid不允许set,请使用_set");
  12. return this;
  13. }
  14. public ParamNameDTO _setCustomerid(Integer customerid){
  15. this.customerid = customerid;
  16. return this;
  17. }
  18. public ParamNameDTO() {
  19. this.customerid = AdminLogin.getCustomerInfo().getCustomerID();
  20. }
  21. public ParamNameDTO(String name) {
  22. this.name = name;
  23. this.customerid = AdminLogin.getCustomerInfo().getCustomerID();
  24. }
  25. public ParamNameDTO(String name,Integer customerid) {
  26. this.name = name;
  27. this.customerid = customerid;
  28. }
  29. public static ParamNameDTO newdto(String name) {
  30. return new ParamNameDTO(name);
  31. }
  32. }