|
@@ -9,6 +9,7 @@ import com.platform.dao.dto.remote.RemoteOpcDTO;
|
|
|
import com.platform.dao.entity.remote.RemoteOpc;
|
|
|
import com.platform.dao.entity.sb.SbInfo;
|
|
|
import com.platform.dao.entity.upms.SysDict;
|
|
|
+import com.platform.dao.enums.YesNoEnum;
|
|
|
import com.platform.dao.mapper.remote.RemoteOpcMapper;
|
|
|
import com.platform.dao.mapper.sb.SbInfoMapper;
|
|
|
import com.platform.dao.mapper.upms.SysDictMapper;
|
|
@@ -73,9 +74,9 @@ public class RemoteOpcServiceImpl extends BaseServiceImpl<RemoteOpcMapper, Remot
|
|
|
|
|
|
@Override
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
- public String importListByAdd(MultipartFile file, Integer line) {
|
|
|
+ public String importListByAdd(MultipartFile file, String line) {
|
|
|
if(line == null){
|
|
|
- line =1;
|
|
|
+ line = "1";
|
|
|
}
|
|
|
Weekend<SysDict> weekend = new Weekend<>(SysDict.class);
|
|
|
WeekendCriteria<SysDict, Object> weekendCriteria = weekend.weekendCriteria();
|
|
@@ -89,8 +90,9 @@ public class RemoteOpcServiceImpl extends BaseServiceImpl<RemoteOpcMapper, Remot
|
|
|
for (RemoteOpc remoteOpc : items) {
|
|
|
remoteOpc.setType(1);
|
|
|
remoteOpc.setLine(line);
|
|
|
- remoteOpc.setAvFlag(1);
|
|
|
- remoteOpc.setCreatedFlag(0);
|
|
|
+ remoteOpc.setAvFlag(YesNoEnum.YES.getValue());
|
|
|
+ remoteOpc.setCreatedFlag(YesNoEnum.NO.getValue());
|
|
|
+ remoteOpc.setPositionFlag(YesNoEnum.NO.getValue());
|
|
|
/* boolean find = false;
|
|
|
for (SysDict sysDict : sysDictList) {
|
|
|
if (sysDict.getLabel().equals(remoteOpc.getRemark())) {
|