|
|
@@ -356,8 +356,8 @@ public class PsExeExcelUtil {
|
|
356
|
356
|
entity.setCreateBy(createBy);
|
|
357
|
357
|
}
|
|
358
|
358
|
|
|
359
|
|
- int danhaochongfu=infExe1Mapper.selectFnoByPfnoCount(dto.getPfno());
|
|
360
|
|
- if (danhaochongfu==0) {
|
|
|
359
|
+ /*int danhaochongfu=infExe1Mapper.selectFnoByPfnoCount(dto.getPfno());
|
|
|
360
|
+ if (danhaochongfu==0) {*/
|
|
361
|
361
|
//6.生成流水号
|
|
362
|
362
|
InfExe1Amount infExe1Amount = new InfExe1Amount();
|
|
363
|
363
|
infExe1Amount.setCreateTime(new Date());
|
|
|
@@ -369,14 +369,14 @@ public class PsExeExcelUtil {
|
|
369
|
369
|
StringBuilder rukudanhao = sb.append("POIS").append(year).append(String.format(String.valueOf(id))).append("-QC");
|
|
370
|
370
|
entity.setFno(rukudanhao.toString());
|
|
371
|
371
|
entity.setFphno(rukudanhao + "-01");
|
|
372
|
|
- }else {
|
|
|
372
|
+ /*}else {
|
|
373
|
373
|
String fno=infExe1Mapper.selectFnoByPfno(dto.getPfno());
|
|
374
|
374
|
entity.setFno(fno);
|
|
375
|
375
|
StringBuilder sb1=new StringBuilder();
|
|
376
|
376
|
String picishu = String.format("%02d", Long.parseLong(String.valueOf(danhaochongfu+1)));
|
|
377
|
377
|
sb1.append(fno).append("-").append(picishu);
|
|
378
|
378
|
entity.setFphno(sb1.toString());
|
|
379
|
|
- }
|
|
|
379
|
+ }*/
|
|
380
|
380
|
entity.setFmodalid(22);
|
|
381
|
381
|
// 拆分itemno-sdesc-brand字段
|
|
382
|
382
|
if (dto.getItemnoSdescBrand() != null&& !dto.getItemnoSdescBrand().isEmpty()) {
|
|
|
@@ -553,8 +553,8 @@ public class PsExeExcelUtil {
|
|
553
|
553
|
}
|
|
554
|
554
|
|
|
555
|
555
|
// 6. 流水号生成逻辑
|
|
556
|
|
- int danhaochongfu = infExe1Mapper.selectFnoBySfnoCount(dto.getSfno());
|
|
557
|
|
- if (danhaochongfu == 0) {
|
|
|
556
|
+ /*int danhaochongfu = infExe1Mapper.selectFnoBySfnoCount(dto.getSfno());
|
|
|
557
|
+ if (danhaochongfu == 0) {*/
|
|
558
|
558
|
InfExe1Amount infExe1Amount = new InfExe1Amount();
|
|
559
|
559
|
infExe1Amount.setCreateTime(new Date());
|
|
560
|
560
|
infExe1AmountMapper.insert(infExe1Amount);
|
|
|
@@ -565,14 +565,14 @@ public class PsExeExcelUtil {
|
|
565
|
565
|
StringBuilder rukudanhao = sb.append("SOOS").append(year).append(String.format(String.valueOf(id))).append("-QC");
|
|
566
|
566
|
entity.setFno(rukudanhao.toString());
|
|
567
|
567
|
entity.setFphno(rukudanhao + "-01");
|
|
568
|
|
- } else {
|
|
|
568
|
+ /*} else {
|
|
569
|
569
|
String fno = infExe1Mapper.selectFnoBySfno(dto.getSfno());
|
|
570
|
570
|
entity.setFno(fno);
|
|
571
|
571
|
StringBuilder sb1 = new StringBuilder();
|
|
572
|
572
|
String picishu = String.format("%02d", Long.parseLong(String.valueOf(danhaochongfu + 1)));
|
|
573
|
573
|
sb1.append(fno).append("-").append(picishu);
|
|
574
|
574
|
entity.setFphno(sb1.toString());
|
|
575
|
|
- }
|
|
|
575
|
+ }*/
|
|
576
|
576
|
entity.setFmodalid(24); //
|
|
577
|
577
|
|
|
578
|
578
|
// 7. 拆分itemno-sdesc-brand字段(与InfExe1一致)
|