result = new HashMap<>();
try {
String site = CommonMethods.getSite();
- if (StringUtil.isBlank(sfcDispatchDto.getStartFromDate_S())) {
- throw BusinessException.build("派工开始时间不能为空!");
- }
- if (StringUtil.isBlank(sfcDispatchDto.getStartToDate_S())) {
- throw BusinessException.build("派工开始时间不能为空!");
- }
- sfcDispatchDto.setSite(site);
- sfcDispatchDto.setDispatchStatus(DispatchStatusEnum.RELEASE.getCode());
- sfcDispatchDto.setStartFromDate(DateUtil.parseDate(sfcDispatchDto.getStartFromDate_S()));
- sfcDispatchDto.setStartToDate(DateUtil.parseDate(sfcDispatchDto.getStartToDate_S()));
-
-
- result = sfcDispatchService.ganttList(site, sfcDispatchDto);
+ paramMap.put("site", site);
+ paramMap.put("", DispatchStatusEnum.RELEASE.getCode());
+
+
+ result = sfcDispatchService.ganttList(site, paramMap);
} catch (Exception e) {
return R.failed(e.getMessage());
}
diff --git a/dispatch/src/main/java/com/foreverwin/mesnac/dispatch/mapper/SfcDispatchMapper.java b/dispatch/src/main/java/com/foreverwin/mesnac/dispatch/mapper/SfcDispatchMapper.java
index d755ce71..fe88aa95 100644
--- a/dispatch/src/main/java/com/foreverwin/mesnac/dispatch/mapper/SfcDispatchMapper.java
+++ b/dispatch/src/main/java/com/foreverwin/mesnac/dispatch/mapper/SfcDispatchMapper.java
@@ -8,6 +8,7 @@ import org.springframework.stereotype.Repository;
import java.time.LocalDateTime;
import java.util.List;
+import java.util.Map;
/**
*
@@ -25,10 +26,10 @@ public interface SfcDispatchMapper extends BaseMapper {
/**
* 查询派工生产批次数据
*
- * @param sfcDispatchDto
+ * @param paramMap
* @return
*/
- List findSfcDispatchList(SfcDispatchDto sfcDispatchDto);
+ List findSfcDispatchList(Map paramMap);
/**
* 修改派工单状态
diff --git a/dispatch/src/main/java/com/foreverwin/mesnac/dispatch/service/SfcDispatchService.java b/dispatch/src/main/java/com/foreverwin/mesnac/dispatch/service/SfcDispatchService.java
index e6ddae8b..9d8fee61 100644
--- a/dispatch/src/main/java/com/foreverwin/mesnac/dispatch/service/SfcDispatchService.java
+++ b/dispatch/src/main/java/com/foreverwin/mesnac/dispatch/service/SfcDispatchService.java
@@ -33,10 +33,10 @@ public interface SfcDispatchService extends IService {
/**
* 查询派工清单
*
- * @param sfcDispatchDto
+ * @param paramMap
* @return
*/
- List findSfcDispatchList(SfcDispatchDto sfcDispatchDto);
+ List findSfcDispatchList(Map paramMap);
/**
* 派工保存
@@ -105,10 +105,10 @@ public interface SfcDispatchService extends IService {
* 甘特图数据查询
*
* @param site
- * @param sfcDispatchDto
+ * @param paramMap
* @return
*/
- Map ganttList(String site, SfcDispatchDto sfcDispatchDto);
+ Map ganttList(String site, Map paramMap);
}
\ No newline at end of file
diff --git a/dispatch/src/main/java/com/foreverwin/mesnac/dispatch/service/impl/SfcDispatchServiceImpl.java b/dispatch/src/main/java/com/foreverwin/mesnac/dispatch/service/impl/SfcDispatchServiceImpl.java
index b786ea0d..c2066bb3 100644
--- a/dispatch/src/main/java/com/foreverwin/mesnac/dispatch/service/impl/SfcDispatchServiceImpl.java
+++ b/dispatch/src/main/java/com/foreverwin/mesnac/dispatch/service/impl/SfcDispatchServiceImpl.java
@@ -88,8 +88,8 @@ public class SfcDispatchServiceImpl extends ServiceImpl findSfcDispatchList(SfcDispatchDto sfcDispatchDto) {
- List list = sfcDispatchMapper.findSfcDispatchList(sfcDispatchDto);
+ public List findSfcDispatchList(Map paramMap) {
+ List list = sfcDispatchMapper.findSfcDispatchList(paramMap);
if (list == null || list.size() <= 0) {
return list;
}
@@ -282,11 +282,11 @@ public class SfcDispatchServiceImpl extends ServiceImpl ganttList(String site, SfcDispatchDto sfcDispatchDto) {
+ public Map ganttList(String site, Map paramMap) {
Map map = new HashMap<>();
//查询派工数据
- List scheduleList = this.findSfcDispatchList(sfcDispatchDto);
+ List scheduleList = this.findSfcDispatchList(paramMap);
if (scheduleList == null || scheduleList.size() <= 0) {
return map;
}
@@ -299,7 +299,9 @@ public class SfcDispatchServiceImpl extends ServiceImpl>> processedMap = this.processWorkCenterWorkTimes(site, workCenterList, sfcDispatchDto.getStartFromDate(), sfcDispatchDto.getStartToDate());
+ Date startFromDate = (Date) paramMap.get("startFromDate");
+ Date StartToDate = (Date) paramMap.get("StartToDate");
+ Map>> processedMap = this.processWorkCenterWorkTimes(site, workCenterList, startFromDate, StartToDate);
map.put("workCenterWorkTimes", processedMap);
return map;
diff --git a/dispatch/src/main/resources/mapper/SfcDispatchMapper.xml b/dispatch/src/main/resources/mapper/SfcDispatchMapper.xml
index cc2621cc..a3f83381 100644
--- a/dispatch/src/main/resources/mapper/SfcDispatchMapper.xml
+++ b/dispatch/src/main/resources/mapper/SfcDispatchMapper.xml
@@ -668,96 +668,102 @@
diff --git a/quality/src/main/java/com/foreverwin/mesnac/quality/service/impl/InspectionTaskManageServiceImpl.java b/quality/src/main/java/com/foreverwin/mesnac/quality/service/impl/InspectionTaskManageServiceImpl.java
index 19ebf9ef..2f7e9a0f 100644
--- a/quality/src/main/java/com/foreverwin/mesnac/quality/service/impl/InspectionTaskManageServiceImpl.java
+++ b/quality/src/main/java/com/foreverwin/mesnac/quality/service/impl/InspectionTaskManageServiceImpl.java
@@ -212,6 +212,8 @@ public class InspectionTaskManageServiceImpl implements InspectionTaskManageServ
newInspectionTask.setStatus(Constants.INSPECTION_TASK_STATUS_NEW);
newInspectionTask.setResult(null);
newInspectionTask.setComments(null);
+ newInspectionTask.setCreatedDateTime(dateTime);
+ newInspectionTask.setModifiedDateTime(dateTime);
inspectionTaskService.save(newInspectionTask);
}
}
diff --git a/quality/src/main/resources/mapper/InspectionTaskManageMapper.xml b/quality/src/main/resources/mapper/InspectionTaskManageMapper.xml
index f0559043..68b442df 100644
--- a/quality/src/main/resources/mapper/InspectionTaskManageMapper.xml
+++ b/quality/src/main/resources/mapper/InspectionTaskManageMapper.xml
@@ -39,14 +39,17 @@
AND B.WORK_CENTER = #{workCenter}
-
-
- AND B.CATEGORY = #{category}
-
-
- AND (B.CATEGORY = 'S' OR B.CATEGORY = 'P')
-
-
+
+
+ AND B.CATEGORY = #{category}
+
+
+ AND (B.CATEGORY = 'S' OR B.CATEGORY = 'P')
+
+
+
+ AND B.TASK_NO =#{taskNo}
+
AND B.STATUS = #{status}