| | |
| | | import com.core.common.SpringUtils; |
| | | import com.zy.crm.manager.service.CstmrTypeService; |
| | | import com.zy.crm.system.entity.Dept; |
| | | import com.zy.crm.system.entity.Dic; |
| | | import com.zy.crm.system.entity.Host; |
| | | import com.zy.crm.system.entity.User; |
| | | import com.zy.crm.system.service.DeptService; |
| | | import com.zy.crm.system.service.DicService; |
| | | import com.zy.crm.system.service.HostService; |
| | | import com.zy.crm.system.service.UserService; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | |
| | | return null; |
| | | } |
| | | |
| | | |
| | | public void setType0(String type0){ |
| | | if (Cools.isEmpty(type0)) { |
| | | return; |
| | | } |
| | | switch (type0){ |
| | | case "内销": |
| | | this.type = 1; |
| | | break; |
| | | case "外销": |
| | | this.type = 2; |
| | | break; |
| | | default: |
| | | this.type = 1; |
| | | break; |
| | | } |
| | | } |
| | | |
| | | public String getType$(){ |
| | | if (null == this.type){ return null; } |
| | | switch (this.type){ |
| | |
| | | return s; |
| | | } |
| | | |
| | | public String getPcd$() { |
| | | StringBuilder sb = new StringBuilder(); |
| | | DicService service = SpringUtils.getBean(DicService.class); |
| | | if (!Cools.isEmpty(province)) { |
| | | Dic provinceDic = service.selectById(province); |
| | | if (!Cools.isEmpty(provinceDic)) { |
| | | sb.append(provinceDic.getName()).append(","); |
| | | } |
| | | } |
| | | if (!Cools.isEmpty(city)) { |
| | | Dic cityDic = service.selectById(city); |
| | | if (!Cools.isEmpty(cityDic)) { |
| | | sb.append(cityDic.getName()).append(","); |
| | | } |
| | | } |
| | | if (!Cools.isEmpty(district)) { |
| | | Dic districtDic = service.selectById(district); |
| | | if (!Cools.isEmpty(districtDic)) { |
| | | sb.append(districtDic.getName()).append(","); |
| | | } |
| | | } |
| | | String s = sb.toString(); |
| | | if (s.endsWith(",")) { |
| | | s = s.substring(0, s.length() - 1); |
| | | } |
| | | return s; |
| | | } |
| | | |
| | | public void setPcd(String pcd) { |
| | | this.pcd = pcd; |
| | | if (!Cools.isEmpty(pcd)) { |
| | |
| | | break; |
| | | } |
| | | } |
| | | } else { |
| | | this.province = ""; |
| | | this.city = ""; |
| | | this.district = ""; |
| | | } |
| | | } |
| | | |