Commit 27ee775c authored by wei's avatar wei 🎱

增加供方编号

parent 169306fd
......@@ -217,6 +217,10 @@ public class ExtSupplierManageVO extends IdOnlyVO implements DxIterationVOHolder
*/
private String unifiedSocietyCode;
/**
* supplierNumber
*/
private String supplierNumber;
}
......@@ -21,6 +21,7 @@ import org.springframework.stereotype.Service;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.Year;
import java.util.List;
/**
......@@ -102,6 +103,22 @@ public class ExtSupplierManageServiceImpl<V extends ExtSupplierManageVO> impleme
DxPageImpl recursion = extSupplierManageLinkService.findRecursion(searchQueryCondition);
return recursion;
}
/**
* 走已过期更新供方编号
* @param extSupplierManageVO
* @return
*/
public String generateEncode(ExtSupplierManageVO extSupplierManageVO) {
String supplierNumber = extSupplierManageVO.getSupplierNumber();
log.info("generateEncode.beforeSupplierNumber={}", supplierNumber);
String[] split = supplierNumber.split("-");
if (split.length > 2) {
supplierNumber = split[0] + "-" + split[1] + "-" + Year.now().getValue();
}
log.info("generateEncode.supplierNumber={}", supplierNumber);
return supplierNumber;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment