-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #85 from likehabits/develop
update run model ftl
- Loading branch information
Showing
18 changed files
with
1,695 additions
and
1,316 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
primihub-service/biz/src/main/java/com/primihub/biz/entity/data/base/ResourceFileData.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
package com.primihub.biz.entity.data.base; | ||
|
||
import lombok.Data; | ||
|
||
import java.util.Arrays; | ||
import java.util.List; | ||
import java.util.stream.Collectors; | ||
|
||
@Data | ||
public class ResourceFileData { | ||
|
||
private String field; | ||
|
||
private List<String> fieldList; | ||
|
||
private Integer fieldSize = 0; | ||
|
||
private Integer fileContentSize = 0; | ||
|
||
private Integer resourceFileYRow = 0; | ||
|
||
private boolean fileContainsY = false; | ||
|
||
public Integer yIndex = 0; | ||
|
||
public void setField(String field) { | ||
this.field = field; | ||
fieldList = Arrays.stream(field.split(",")).collect(Collectors.toList()); | ||
fieldSize = fieldList.size(); | ||
if (fieldList.contains("y")){ | ||
fileContainsY = true; | ||
yIndex = fieldList.indexOf("y"); | ||
} | ||
} | ||
|
||
public void addContentSzie(){ | ||
fileContentSize++; | ||
} | ||
public void addFileYRowSzie(){ | ||
resourceFileYRow++; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.