二维码下载

This commit is contained in:
mashuai 2024-12-24 10:42:20 +08:00
parent db2b4b9e3e
commit c29c23c38c
1 changed files with 1 additions and 1 deletions

View File

@ -306,7 +306,7 @@ public class PurchaseBindServiceImpl implements IPurchaseBindService {
* @throws IOException * @throws IOException
*/ */
private void getString(Set<String> addedEntries, PurchaseDto purchaseDto, String genMonth, int num, ZipOutputStream zos, String materialModel, String materialName, Integer typeId, BigDecimal checkNum) throws WriterException, IOException { private void getString(Set<String> addedEntries, PurchaseDto purchaseDto, String genMonth, int num, ZipOutputStream zos, String materialModel, String materialName, Integer typeId, BigDecimal checkNum) throws WriterException, IOException {
int genNum = Integer.parseInt(String.valueOf(checkNum)); int genNum = (int) checkNum.doubleValue();
for (int j = 1; j <= genNum; j++) { for (int j = 1; j <= genNum; j++) {
genMonth = genMonth.replace("-", ""); genMonth = genMonth.replace("-", "");
String code = genMonth + "-" + String.format("%5d", num + j).replace(" ", "0"); String code = genMonth + "-" + String.format("%5d", num + j).replace(" ", "0");