|
|
|
@ -38,9 +38,10 @@ public class ZyClothsTypeServiceImpl extends ServiceImpl<ZyClothsTypeMapper, ZyC |
|
|
|
|
@Override |
|
|
|
|
public String sort(String enterpriseId) { |
|
|
|
|
String format = String.format("%06d", orderNumber()); |
|
|
|
|
String enterpriseName = zyClothsTypeMapper.getEnterprisenameById(enterpriseId); |
|
|
|
|
//现在是拿到企业编号
|
|
|
|
|
String enterpriseName = zyClothsTypeMapper.getEnterpriseNum(enterpriseId); |
|
|
|
|
//根据企业名称拿到企业编号
|
|
|
|
|
String enterpriseNums = getEnterpriseNums(enterpriseName); |
|
|
|
|
String enterpriseNums = getEnterpriseNumsTwo(enterpriseName); |
|
|
|
|
return enterpriseNums + format; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -80,6 +81,19 @@ public class ZyClothsTypeServiceImpl extends ServiceImpl<ZyClothsTypeMapper, ZyC |
|
|
|
|
return "NONE"; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 根据企业名称拿到企业编号 |
|
|
|
|
* |
|
|
|
|
* @param enterpriseName |
|
|
|
|
*/ |
|
|
|
|
@Override |
|
|
|
|
public String getEnterpriseNumsTwo(String enterpriseName) { |
|
|
|
|
if (StringUtils.isEmpty(enterpriseName)) { |
|
|
|
|
return "NULL"; |
|
|
|
|
} |
|
|
|
|
return enterpriseName; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public Long orderNumber() { |
|
|
|
|
//List<String> listString = zyClothsTypeMapper.selectNumsList();
|
|
|
|
|