diff --git a/production/src/main/java/com/foreverwin/mesnac/production/controller/SfcScrapController.java b/production/src/main/java/com/foreverwin/mesnac/production/controller/SfcScrapController.java
index 4158f1a5..3442dcec 100644
--- a/production/src/main/java/com/foreverwin/mesnac/production/controller/SfcScrapController.java
+++ b/production/src/main/java/com/foreverwin/mesnac/production/controller/SfcScrapController.java
@@ -17,8 +17,8 @@ import java.util.List;
/**
*
- * @author zjw
- * @since 2021-07-30
+ * @author Leon.L
+ * @since 2021-09-07
*/
@RestController
@RequestMapping("/Z-SFC-SCRAP")
@@ -30,8 +30,6 @@ public class SfcScrapController {
@Autowired
private AnomalyService anomalyService;
-
-
/**
* 根据id查询
*
@@ -83,6 +81,7 @@ public class SfcScrapController {
.or().like(SfcScrap::getReason, frontPage.getGlobalQuery())
.or().like(SfcScrap::getCreatedUser, frontPage.getGlobalQuery())
.or().like(SfcScrap::getModifiedUser, frontPage.getGlobalQuery())
+ .or().like(SfcScrap::getDutyUser, frontPage.getGlobalQuery())
);
}
result = sfcScrapService.page(frontPage.getPagePlus(), queryWrapper);
@@ -168,19 +167,4 @@ public class SfcScrapController {
sfcScrapService.generatorWord(shopOrder,sfc,response,request);
return R.ok();
}
-
-
-// @PostMapping("/import")
-// public String importFile(@PathParam("shopOrder") String shopOrder,@PathParam("sfc")String sfc, @RequestParam("file") MultipartFile multipartFile) {
-//
-// //-----------------------------------------------------------------------------------------------------------------------------------------
-// try {
-// String transInfo = masterDataImportService.importFile(multipartFile, importRequest);
-// return new APResult().getResult(0, transInfo, transInfo);
-// } catch (Exception e) {
-// e.printStackTrace();
-// return new APResult().getResult(9999, e.getMessage(), e.getMessage());
-// }
-// }
-
}
\ No newline at end of file
diff --git a/production/src/main/resources/mapper/SfcScrapMapper.xml b/production/src/main/resources/mapper/SfcScrapMapper.xml
index 2fe19166..e9f85cf5 100644
--- a/production/src/main/resources/mapper/SfcScrapMapper.xml
+++ b/production/src/main/resources/mapper/SfcScrapMapper.xml
@@ -16,11 +16,12 @@
+
- HANDLE, SITE, SFC, OPERATION, STEP_ID, QTY, TYPE, REASON, CREATED_USER, CREATED_DATE_TIME, MODIFIED_USER, MODIFIED_DATE_TIME
+ HANDLE, SITE, SFC, OPERATION, STEP_ID, QTY, TYPE, REASON, CREATED_USER, CREATED_DATE_TIME, MODIFIED_USER, MODIFIED_DATE_TIME, DUTY_USER
@@ -66,6 +67,7 @@
AND CREATED_DATE_TIME=#{ew.entity.createdDateTime}
AND MODIFIED_USER=#{ew.entity.modifiedUser}
AND MODIFIED_DATE_TIME=#{ew.entity.modifiedDateTime}
+ AND DUTY_USER=#{ew.entity.dutyUser}
@@ -88,6 +90,7 @@
AND CREATED_DATE_TIME=#{ew.entity.createdDateTime}
AND MODIFIED_USER=#{ew.entity.modifiedUser}
AND MODIFIED_DATE_TIME=#{ew.entity.modifiedDateTime}
+ AND DUTY_USER=#{ew.entity.dutyUser}
${ew.sqlSegment}
@@ -118,6 +121,7 @@
AND CREATED_DATE_TIME=#{ew.entity.createdDateTime}
AND MODIFIED_USER=#{ew.entity.modifiedUser}
AND MODIFIED_DATE_TIME=#{ew.entity.modifiedDateTime}
+ AND DUTY_USER=#{ew.entity.dutyUser}
${ew.sqlSegment}
@@ -148,6 +152,7 @@
AND CREATED_DATE_TIME=#{ew.entity.createdDateTime}
AND MODIFIED_USER=#{ew.entity.modifiedUser}
AND MODIFIED_DATE_TIME=#{ew.entity.modifiedDateTime}
+ AND DUTY_USER=#{ew.entity.dutyUser}
${ew.sqlSegment}
@@ -178,6 +183,7 @@
AND CREATED_DATE_TIME=#{ew.entity.createdDateTime}
AND MODIFIED_USER=#{ew.entity.modifiedUser}
AND MODIFIED_DATE_TIME=#{ew.entity.modifiedDateTime}
+ AND DUTY_USER=#{ew.entity.dutyUser}
${ew.sqlSegment}
@@ -208,6 +214,7 @@
AND CREATED_DATE_TIME=#{ew.entity.createdDateTime}
AND MODIFIED_USER=#{ew.entity.modifiedUser}
AND MODIFIED_DATE_TIME=#{ew.entity.modifiedDateTime}
+ AND DUTY_USER=#{ew.entity.dutyUser}
${ew.sqlSegment}
@@ -238,6 +245,7 @@
AND CREATED_DATE_TIME=#{ew.entity.createdDateTime}
AND MODIFIED_USER=#{ew.entity.modifiedUser}
AND MODIFIED_DATE_TIME=#{ew.entity.modifiedDateTime}
+ AND DUTY_USER=#{ew.entity.dutyUser}
${ew.sqlSegment}
@@ -264,6 +272,7 @@
CREATED_DATE_TIME,
MODIFIED_USER,
MODIFIED_DATE_TIME,
+ DUTY_USER,
VALUES
#{handle},
@@ -278,6 +287,7 @@
#{createdDateTime},
#{modifiedUser},
#{modifiedDateTime},
+ #{dutyUser},
@@ -299,6 +309,7 @@
#{createdDateTime},
#{modifiedUser},
#{modifiedDateTime},
+ #{dutyUser},
@@ -316,6 +327,7 @@
CREATED_DATE_TIME=#{et.createdDateTime},
MODIFIED_USER=#{et.modifiedUser},
MODIFIED_DATE_TIME=#{et.modifiedDateTime},
+ DUTY_USER=#{et.dutyUser},
WHERE HANDLE=#{et.handle} and ${et.MP_OPTLOCK_VERSION_COLUMN}=#{et.MP_OPTLOCK_VERSION_ORIGINAL}
@@ -333,6 +345,7 @@
CREATED_DATE_TIME=#{et.createdDateTime},
MODIFIED_USER=#{et.modifiedUser},
MODIFIED_DATE_TIME=#{et.modifiedDateTime},
+ DUTY_USER=#{et.dutyUser},
WHERE HANDLE=#{et.handle} and ${et.MP_OPTLOCK_VERSION_COLUMN}=#{et.MP_OPTLOCK_VERSION_ORIGINAL}
@@ -350,6 +363,7 @@
CREATED_DATE_TIME=#{et.createdDateTime},
MODIFIED_USER=#{et.modifiedUser},
MODIFIED_DATE_TIME=#{et.modifiedDateTime},
+ DUTY_USER=#{et.dutyUser},
@@ -366,6 +380,7 @@
AND CREATED_DATE_TIME=#{ew.entity.createdDateTime}
AND MODIFIED_USER=#{ew.entity.modifiedUser}
AND MODIFIED_DATE_TIME=#{ew.entity.modifiedDateTime}
+ AND DUTY_USER=#{ew.entity.dutyUser}
${ew.sqlSegment}
@@ -413,6 +428,7 @@
AND CREATED_DATE_TIME=#{ew.entity.createdDateTime}
AND MODIFIED_USER=#{ew.entity.modifiedUser}
AND MODIFIED_DATE_TIME=#{ew.entity.modifiedDateTime}
+ AND DUTY_USER=#{ew.entity.dutyUser}
${ew.sqlSegment}
@@ -430,28 +446,31 @@
)
+
+
+