文档拆分
This commit is contained in:
+7
@@ -50,4 +50,11 @@ public interface SysDepartMapper extends BaseMapper<SysDepart> {
|
||||
*/
|
||||
List<String> getSubDepIdsByOrgCodes(@org.apache.ibatis.annotations.Param("orgCodes") String[] orgCodes);
|
||||
|
||||
/**
|
||||
* 更新所有组织的父节点id
|
||||
* @return
|
||||
*/
|
||||
@Select("UPDATE sys_depart t1 JOIN sys_depart t2 ON t1.parent_code = t2.org_code SET t1.parent_id = t2.id")
|
||||
int updateAllParentId();
|
||||
|
||||
}
|
||||
|
||||
+8
-8
@@ -1,21 +1,19 @@
|
||||
package com.jero.modules.system.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.apache.ibatis.annotations.ResultType;
|
||||
import org.apache.ibatis.annotations.Select;
|
||||
import org.apache.ibatis.annotations.Update;
|
||||
import com.jero.common.system.vo.DictModel;
|
||||
import com.jero.common.system.vo.DictQuery;
|
||||
import com.jero.modules.system.entity.SysDict;
|
||||
import com.jero.modules.system.model.DuplicateCheckVo;
|
||||
import com.jero.modules.system.model.TreeSelectModel;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.apache.ibatis.annotations.Select;
|
||||
import org.apache.ibatis.annotations.Update;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
@@ -49,6 +47,8 @@ public interface SysDictMapper extends BaseMapper<SysDict> {
|
||||
|
||||
public String queryDictTextByKey(@Param("code") String code,@Param("key") String key);
|
||||
|
||||
public String queryDictKeyByText(@Param("code") String code,@Param("text") String key);
|
||||
|
||||
@Deprecated
|
||||
public String queryTableDictTextByKey(@Param("table") String table,@Param("text") String text,@Param("code") String code,@Param("key") String key);
|
||||
|
||||
|
||||
+6
@@ -16,6 +16,12 @@
|
||||
and s.item_value = #{key}
|
||||
</select>
|
||||
|
||||
<!-- 通过字典code获取字典数据 -->
|
||||
<select id="queryDictKeyByText" parameterType="String" resultType="String">
|
||||
select s.item_value from sys_dict_item s
|
||||
where s.dict_id = (select id from sys_dict where dict_code = #{code})
|
||||
and s.item_text = #{text}
|
||||
</select>
|
||||
|
||||
<!--通过查询指定table的 text code 获取字典-->
|
||||
<select id="queryTableDictItemsByCode" parameterType="String" resultType="com.jero.common.system.vo.DictModel">
|
||||
|
||||
+11
-1
@@ -17,7 +17,17 @@
|
||||
|
||||
<!-- 查询用户的所属部门名称信息 -->
|
||||
<select id="getDepNamesByUserIds" resultType="com.jero.modules.system.vo.SysUserDepVo">
|
||||
select d.depart_name,ud.user_id from sys_user_depart ud,sys_depart d where d.id = ud.dep_id and ud.user_id in
|
||||
SELECT
|
||||
d.depart_name,
|
||||
dru.user_id
|
||||
FROM
|
||||
sys_depart_role_user dru,
|
||||
sys_depart_role dr,
|
||||
sys_depart d
|
||||
WHERE
|
||||
d.id = dr.depart_id
|
||||
and dr.id = dru.drole_id
|
||||
and dru.user_id in
|
||||
<foreach collection="userIds" index="index" item="id" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
|
||||
+6
@@ -130,4 +130,10 @@ public interface ISysDepartService extends IService<SysDepart>{
|
||||
* @return
|
||||
*/
|
||||
List<SysDepart> queryByDepartCode(String departCode);
|
||||
|
||||
/**
|
||||
* 更新所有组织的父节点id
|
||||
* @return
|
||||
*/
|
||||
int updateAllParentId();
|
||||
}
|
||||
|
||||
+3
-1
@@ -99,6 +99,8 @@ public class SyncDataServiceImpl implements ISyncDataService{
|
||||
// int insertRowNum = insertDepartFromTree(ppo, 1);
|
||||
// log.info(ppo.getName() + "添加成功条数:" + insertRowNum);
|
||||
}
|
||||
//添加组织的父节点id
|
||||
sysDepartService.updateAllParentId();
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -243,7 +245,7 @@ public class SyncDataServiceImpl implements ISyncDataService{
|
||||
sysUser.setThirdId(employee.getWorker_user_id());
|
||||
sysUser.setActivitiSync(CommonConstant.ACT_SYNC_1);
|
||||
sysUser.setWorkNo(employee.getEmployee_id());
|
||||
sysUser.setUpdateTime(employee.getUpdate_time());
|
||||
// sysUser.setUpdateTime(employee.getUpdate_time());
|
||||
|
||||
sysUser.setCreateTime(new Date());
|
||||
sysUser.setCreateBy("admin");
|
||||
|
||||
+5
@@ -534,4 +534,9 @@ public class SysDepartServiceImpl extends ServiceImpl<SysDepartMapper, SysDepart
|
||||
queryWrapper.eq(SysDepart::getOrgCode, departCode);
|
||||
return this.list(queryWrapper);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int updateAllParentId() {
|
||||
return this.updateAllParentId();
|
||||
}
|
||||
}
|
||||
|
||||
+69
@@ -0,0 +1,69 @@
|
||||
package com.jero.modules.system.util;
|
||||
|
||||
import org.apache.commons.collections.CollectionUtils;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Author: liyawei
|
||||
* @Description:
|
||||
* @Date: Created in 17:23 2022/3/2
|
||||
*/
|
||||
public class StringUtils extends org.apache.commons.lang3.StringUtils {
|
||||
public StringUtils() {
|
||||
}
|
||||
|
||||
public static String listToString(List<String> stringList) {
|
||||
if (CollectionUtils.isEmpty(stringList)) {
|
||||
return null;
|
||||
} else {
|
||||
StringBuilder builder = new StringBuilder();
|
||||
|
||||
for(int i = 0; i < stringList.size(); ++i) {
|
||||
builder.append((String)stringList.get(i));
|
||||
if (i < stringList.size() - 1) {
|
||||
builder.append(",");
|
||||
}
|
||||
}
|
||||
|
||||
return builder.toString();
|
||||
}
|
||||
}
|
||||
|
||||
public static List<String> stringToList(String string) {
|
||||
return isEmpty(string) ? null : Arrays.asList(string.split(","));
|
||||
}
|
||||
|
||||
public static List<Integer> stringToIntList(String string) {
|
||||
if (isEmpty(string)) {
|
||||
return null;
|
||||
} else {
|
||||
List<Integer> integerList = new ArrayList();
|
||||
String[] stringArray = string.split(",");
|
||||
|
||||
for(int i = 0; i < stringArray.length; ++i) {
|
||||
String str = stringArray[i];
|
||||
if (isNotEmpty(str)) {
|
||||
integerList.add(Integer.valueOf(str));
|
||||
}
|
||||
}
|
||||
|
||||
return integerList;
|
||||
}
|
||||
}
|
||||
|
||||
public static String FilterNull(Object o) {
|
||||
return o != null && !"null".equals(o.toString()) ? o.toString().trim() : "";
|
||||
}
|
||||
|
||||
public static boolean isEmptyWithFilterNull(Object o) {
|
||||
if (o == null) {
|
||||
return true;
|
||||
} else {
|
||||
return "".equals(FilterNull(o.toString()));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+28
@@ -0,0 +1,28 @@
|
||||
package com.jero.modules.system.util;
|
||||
|
||||
import com.jero.common.system.vo.LoginUser;
|
||||
import org.apache.shiro.SecurityUtils;
|
||||
import org.apache.shiro.UnavailableSecurityManagerException;
|
||||
import org.apache.shiro.session.InvalidSessionException;
|
||||
|
||||
public class UserUtils {
|
||||
|
||||
/**
|
||||
* 获取当前登录用户ID
|
||||
*
|
||||
*/
|
||||
public static String getUserId() {
|
||||
String userId = null;
|
||||
try {
|
||||
LoginUser sysUser = (LoginUser) SecurityUtils.getSubject().getPrincipal();
|
||||
if(sysUser!=null){
|
||||
userId = sysUser.getId();
|
||||
}
|
||||
} catch (UnavailableSecurityManagerException e) {
|
||||
e.printStackTrace();
|
||||
} catch (InvalidSessionException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
return userId;
|
||||
}
|
||||
}
|
||||
@@ -107,6 +107,30 @@
|
||||
<groupId>org.springframework.cloud</groupId>
|
||||
<artifactId>spring-cloud-starter-openfeign</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!-- 导入zip文件使用到 -->
|
||||
<dependency>
|
||||
<groupId>org.apache.ant</groupId>
|
||||
<artifactId>ant</artifactId>
|
||||
<version>1.10.5</version>
|
||||
</dependency>
|
||||
|
||||
<!-- easypoi使用到 -->
|
||||
<dependency>
|
||||
<groupId>cn.afterturn</groupId>
|
||||
<artifactId>easypoi-base</artifactId>
|
||||
<version>3.2.0</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>cn.afterturn</groupId>
|
||||
<artifactId>easypoi-web</artifactId>
|
||||
<version>3.2.0</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>cn.afterturn</groupId>
|
||||
<artifactId>easypoi-annotation</artifactId>
|
||||
<version>3.2.0</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
</project>
|
||||
|
||||
@@ -0,0 +1,91 @@
|
||||
package com.jero.modules.split.common;
|
||||
|
||||
public class BasePage{
|
||||
private Integer page = 1;
|
||||
private Integer pageSize = 10;
|
||||
private Integer startIndex;
|
||||
private Integer endIndex;
|
||||
private String orderBy;
|
||||
private String order;
|
||||
private String q;
|
||||
private Pager pager = new Pager();
|
||||
|
||||
public BasePage() {
|
||||
}
|
||||
|
||||
public Pager getPager() {
|
||||
this.pager.setPageId(this.getPage());
|
||||
this.pager.setPageSize(this.getPageSize());
|
||||
String orderField = "";
|
||||
if (this.orderBy != null && this.orderBy.trim().length() > 0) {
|
||||
orderField = this.orderBy;
|
||||
}
|
||||
|
||||
if (orderField.trim().length() > 0 && this.order != null && this.order.trim().length() > 0) {
|
||||
orderField = orderField + " " + this.order;
|
||||
}
|
||||
|
||||
this.pager.setOrderField(orderField);
|
||||
return this.pager;
|
||||
}
|
||||
|
||||
public void setPager(Pager pager) {
|
||||
this.pager = pager;
|
||||
}
|
||||
|
||||
public Integer getPage() {
|
||||
return this.page;
|
||||
}
|
||||
|
||||
public void setPage(Integer page) {
|
||||
this.page = page;
|
||||
}
|
||||
|
||||
public Integer getPageSize() {
|
||||
return this.pageSize;
|
||||
}
|
||||
|
||||
public void setPageSize(Integer pageSize) {
|
||||
this.pageSize = pageSize;
|
||||
}
|
||||
|
||||
public String getOrderBy() {
|
||||
return this.orderBy;
|
||||
}
|
||||
|
||||
public void setOrderBy(String orderBy) {
|
||||
this.orderBy = orderBy;
|
||||
}
|
||||
|
||||
public String getOrder() {
|
||||
return this.order;
|
||||
}
|
||||
|
||||
public void setOrder(String order) {
|
||||
this.order = order;
|
||||
}
|
||||
|
||||
public String getQ() {
|
||||
return this.q;
|
||||
}
|
||||
|
||||
public void setQ(String q) {
|
||||
this.q = q;
|
||||
}
|
||||
|
||||
public Integer getStartIndex() {
|
||||
return this.startIndex;
|
||||
}
|
||||
|
||||
public void setStartIndex(Integer startIndex) {
|
||||
this.startIndex = (this.page - 1) * this.pageSize + 1;
|
||||
}
|
||||
|
||||
public Integer getEndIndex() {
|
||||
return this.endIndex;
|
||||
}
|
||||
|
||||
public void setEndIndex(Integer endIndex) {
|
||||
this.endIndex = this.page * this.pageSize;
|
||||
}
|
||||
}
|
||||
+284
@@ -0,0 +1,284 @@
|
||||
package com.jero.modules.split.common;
|
||||
|
||||
import com.jero.modules.system.util.StringUtils;
|
||||
import org.apache.commons.lang3.math.NumberUtils;
|
||||
import org.apache.poi.hssf.usermodel.*;
|
||||
import org.apache.poi.hssf.util.HSSFCellUtil;
|
||||
import org.apache.poi.hssf.util.HSSFColor;
|
||||
import org.apache.poi.ss.util.CellRangeAddress;
|
||||
import org.dom4j.Document;
|
||||
import org.dom4j.DocumentHelper;
|
||||
import org.dom4j.Element;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Description:
|
||||
* @Author: yangxuenan
|
||||
* date: 2020/2/26 10:10
|
||||
*/
|
||||
public class ConvertHtml2Excel {
|
||||
|
||||
/**
|
||||
* html表格转excel
|
||||
*/
|
||||
public static HSSFWorkbook table2Excel(String tableHtml,HSSFWorkbook wb,String sheetName) throws Exception {
|
||||
// HSSFWorkbook wb = new HSSFWorkbook();
|
||||
HSSFSheet sheet = wb.createSheet(sheetName);
|
||||
List<Integer> moneyCols =new ArrayList<>();
|
||||
moneyCols.add(1);
|
||||
int headEndRow = 1;
|
||||
List<CrossRangeCellMeta> crossRowEleMetaLs = new ArrayList<CrossRangeCellMeta>();
|
||||
int rowIndex = 0;
|
||||
try {
|
||||
Document data = DocumentHelper.parseText(tableHtml);
|
||||
HSSFCellStyle contentStyle = getContentStyle(wb);
|
||||
// 生成表头
|
||||
Element thead = data.getRootElement().element("thead");
|
||||
HSSFCellStyle titleStyle = getTitleStyle(wb);
|
||||
int ls = 0;//列数
|
||||
if (thead != null) {
|
||||
List<Element> trLs = thead.elements("tr");
|
||||
for (Element trEle : trLs) {
|
||||
HSSFCellStyle style = rowIndex<=headEndRow?titleStyle:contentStyle;
|
||||
style.setWrapText(true);
|
||||
HSSFRow row = sheet.createRow(rowIndex);
|
||||
List<Element> thLs = trEle.elements("th");
|
||||
if(ls<thLs.size())
|
||||
ls = thLs.size();
|
||||
int cellIndex = makeRowCell(thLs, rowIndex, row, 0, style, crossRowEleMetaLs, true,moneyCols);
|
||||
List<Element> tdLs = trEle.elements("td");
|
||||
if(ls<ls+tdLs.size())
|
||||
ls = ls + tdLs.size();
|
||||
makeRowCell(tdLs, rowIndex, row, cellIndex, style, crossRowEleMetaLs, true,moneyCols);
|
||||
rowIndex++;
|
||||
}
|
||||
}
|
||||
|
||||
// 生成表体
|
||||
Element tbody = data.getRootElement().element("tbody");
|
||||
if (tbody != null) {
|
||||
List<Element> trBody = tbody.elements("tr");
|
||||
for (Element trEle : trBody) {
|
||||
HSSFCellStyle style = rowIndex<=headEndRow?titleStyle:contentStyle;
|
||||
style.setWrapText(true);
|
||||
HSSFRow row = sheet.createRow(rowIndex);
|
||||
List<Element> thLs = trEle.elements("th");
|
||||
if(ls<thLs.size())
|
||||
ls = thLs.size();
|
||||
int cellIndex = makeRowCell(thLs, rowIndex, row, 0, style, crossRowEleMetaLs, false,moneyCols);
|
||||
List<Element> tdLs = trEle.elements("td");
|
||||
if(ls<ls+tdLs.size())
|
||||
ls = ls + tdLs.size();
|
||||
makeRowCell(tdLs, rowIndex, row, cellIndex, style, crossRowEleMetaLs, false,moneyCols);
|
||||
rowIndex++;
|
||||
}
|
||||
}
|
||||
// 生成表体
|
||||
Element tfoot = data.getRootElement().element("tfoot");
|
||||
if (tfoot != null) {
|
||||
List<Element> trFoot = tfoot.elements("tr");
|
||||
for (Element trEle : trFoot) {
|
||||
HSSFCellStyle style = rowIndex<=headEndRow?titleStyle:contentStyle;
|
||||
style.setWrapText(true);
|
||||
HSSFRow row = sheet.createRow(rowIndex);
|
||||
List<Element> thLs = trEle.elements("th");
|
||||
if(ls<thLs.size())
|
||||
ls = thLs.size();
|
||||
int cellIndex = makeRowCell(thLs, rowIndex, row, 0, style, crossRowEleMetaLs, false,moneyCols);
|
||||
List<Element> tdLs = trEle.elements("td");
|
||||
if(ls<ls+tdLs.size())
|
||||
ls = ls + tdLs.size();
|
||||
makeRowCell(tdLs, rowIndex, row, cellIndex, style, crossRowEleMetaLs, false,moneyCols);
|
||||
rowIndex++;
|
||||
}
|
||||
}
|
||||
// 合并表头
|
||||
for (CrossRangeCellMeta crcm : crossRowEleMetaLs) {
|
||||
sheet.addMergedRegion(new CellRangeAddress(crcm.getFirstRow(), crcm.getLastRow(), crcm.getFirstCol(), crcm.getLastCol()));
|
||||
HSSFCellStyle mergeStyle;
|
||||
if (crcm.isInHead()) {
|
||||
mergeStyle = titleStyle;
|
||||
} else {
|
||||
mergeStyle = contentStyle;
|
||||
}
|
||||
mergeStyle.setWrapText(true);
|
||||
setRegionStyle(sheet, new CellRangeAddress(crcm.getFirstRow(), crcm.getLastRow(), crcm.getFirstCol(), crcm.getLastCol()), mergeStyle);
|
||||
}
|
||||
for (int i = 0; i < ls; i++) {
|
||||
sheet.autoSizeColumn(i, true);//设置列宽
|
||||
sheet.setColumnWidth(i,30*256);
|
||||
// sheet.setColumnWidth(i,sheet.getColumnWidth(i)*15/10);
|
||||
}
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
return wb;
|
||||
}
|
||||
|
||||
/**
|
||||
* 生产行内容
|
||||
*
|
||||
* @return 最后一列的cell index
|
||||
*/
|
||||
/**
|
||||
* @param tdLs th或者td集合
|
||||
* @param rowIndex 行号
|
||||
* @param row POI行对象
|
||||
* @param startCellIndex
|
||||
* @param cellStyle 样式
|
||||
* @param crossRowEleMetaLs 跨行元数据集合
|
||||
* @return
|
||||
*/
|
||||
private static int makeRowCell(List<Element> tdLs, int rowIndex, HSSFRow row, int startCellIndex, HSSFCellStyle cellStyle,
|
||||
List<CrossRangeCellMeta> crossRowEleMetaLs, boolean inHead, List<Integer> moneyCols) {
|
||||
int i = startCellIndex;
|
||||
for (int eleIndex = 0; eleIndex < tdLs.size(); i++, eleIndex++) {
|
||||
int captureCellSize = getCaptureCellSize(rowIndex, i, crossRowEleMetaLs);
|
||||
while (captureCellSize > 0) {
|
||||
for (int j = 0; j < captureCellSize; j++) {// 当前行跨列处理(补单元格)
|
||||
row.createCell(i);
|
||||
i++;
|
||||
}
|
||||
captureCellSize = getCaptureCellSize(rowIndex, i, crossRowEleMetaLs);
|
||||
}
|
||||
Element thEle = tdLs.get(eleIndex);
|
||||
String val = thEle.getText();
|
||||
if (StringUtils.isEmpty(val)) {
|
||||
Element e = thEle.element("a");
|
||||
if (e != null) {
|
||||
val = e.getText();
|
||||
}
|
||||
}
|
||||
HSSFCell c = row.createCell(i);
|
||||
if (NumberUtils.isNumber(val)) {
|
||||
if (moneyCols != null && moneyCols.contains(i)) {
|
||||
c.setCellType(HSSFCell.CELL_TYPE_STRING);
|
||||
c.setCellValue(val);
|
||||
} else {
|
||||
c.setCellValue(Double.parseDouble(val));
|
||||
c.setCellType(HSSFCell.CELL_TYPE_NUMERIC);
|
||||
}
|
||||
|
||||
} else {
|
||||
c.setCellType(HSSFCell.CELL_TYPE_STRING);
|
||||
c.setCellValue(new HSSFRichTextString(val));
|
||||
}
|
||||
int rowSpan = NumberUtils.toInt(thEle.attributeValue("rowspan"), 1);
|
||||
int colSpan = NumberUtils.toInt(thEle.attributeValue("colspan"), 1);
|
||||
c.setCellStyle(cellStyle);
|
||||
if (rowSpan > 1 || colSpan > 1) { // 存在跨行或跨列
|
||||
crossRowEleMetaLs.add(new CrossRangeCellMeta(rowIndex, i, rowSpan, colSpan, inHead));
|
||||
}
|
||||
if (colSpan > 1) {// 当前行跨列处理(补单元格)
|
||||
for (int j = 1; j < colSpan; j++) {
|
||||
i++;
|
||||
row.createCell(i);
|
||||
}
|
||||
}
|
||||
}
|
||||
return i;
|
||||
}
|
||||
|
||||
/**
|
||||
* 设置合并单元格的边框样式
|
||||
*
|
||||
* @param sheet
|
||||
* @param region
|
||||
* @param cs
|
||||
*/
|
||||
public static void setRegionStyle(HSSFSheet sheet, CellRangeAddress region, HSSFCellStyle cs) {
|
||||
for (int i = region.getFirstRow(); i <= region.getLastRow(); i++) {
|
||||
HSSFRow row = HSSFCellUtil.getRow(i, sheet);
|
||||
for (int j = region.getFirstColumn(); j <= region.getLastColumn(); j++) {
|
||||
HSSFCell cell = HSSFCellUtil.getCell(row, (short) j);
|
||||
cell.setCellStyle(cs);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 获得因rowSpan占据的单元格
|
||||
*
|
||||
* @param rowIndex 行号
|
||||
* @param colIndex 列号
|
||||
* @param crossRowEleMetaLs 跨行列元数据
|
||||
* @return 当前行在某列需要占据单元格
|
||||
*/
|
||||
private static int getCaptureCellSize(int rowIndex, int colIndex, List<CrossRangeCellMeta> crossRowEleMetaLs) {
|
||||
int captureCellSize = 0;
|
||||
for (CrossRangeCellMeta crossRangeCellMeta : crossRowEleMetaLs) {
|
||||
if (crossRangeCellMeta.getFirstRow() < rowIndex && crossRangeCellMeta.getLastRow() >= rowIndex) {
|
||||
if (crossRangeCellMeta.getFirstCol() <= colIndex && crossRangeCellMeta.getLastCol() >= colIndex) {
|
||||
captureCellSize = crossRangeCellMeta.getLastCol() - colIndex + 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
return captureCellSize;
|
||||
}
|
||||
|
||||
/**
|
||||
* 获得标题样式
|
||||
*
|
||||
* @param workbook
|
||||
* @return
|
||||
*/
|
||||
private static HSSFCellStyle getTitleStyle(HSSFWorkbook workbook) {
|
||||
short titlebackgroundcolor = HSSFColor.WHITE.index;
|
||||
short fontSize = 11;
|
||||
String fontName = "宋体";
|
||||
HSSFCellStyle style = workbook.createCellStyle();
|
||||
style.setVerticalAlignment(HSSFCellStyle.VERTICAL_CENTER);
|
||||
style.setAlignment(HSSFCellStyle.ALIGN_CENTER);
|
||||
style.setBorderBottom(HSSFCellStyle.BORDER_THIN); //下边框
|
||||
style.setBorderLeft(HSSFCellStyle.BORDER_THIN);//左边框
|
||||
style.setBorderTop(HSSFCellStyle.BORDER_THIN);//上边框
|
||||
style.setBorderRight(HSSFCellStyle.BORDER_THIN);//右边框
|
||||
style.setFillPattern(HSSFCellStyle.SOLID_FOREGROUND);
|
||||
style.setFillForegroundColor(titlebackgroundcolor);// 背景色
|
||||
style.setWrapText(true);
|
||||
HSSFFont font = workbook.createFont();
|
||||
// font.setFontName(fontName);
|
||||
font.setFontHeightInPoints(fontSize);
|
||||
// font.setBoldweight(HSSFFont.BOLDWEIGHT_BOLD);
|
||||
style.setFont(font);
|
||||
return style;
|
||||
}
|
||||
|
||||
/**
|
||||
* 获得内容样式
|
||||
*
|
||||
* @param wb
|
||||
* @return
|
||||
*/
|
||||
private static HSSFCellStyle getContentStyle(HSSFWorkbook wb) {
|
||||
short fontSize = 11;
|
||||
// String fontName = "宋体";
|
||||
HSSFCellStyle style = wb.createCellStyle();
|
||||
style.setBorderBottom((short) 1);
|
||||
style.setBorderTop((short) 1);
|
||||
style.setBorderLeft((short) 1);
|
||||
style.setBorderRight((short) 1);
|
||||
HSSFFont font = wb.createFont();
|
||||
// font.setFontName(fontName);
|
||||
font.setFontHeightInPoints(fontSize);
|
||||
style.setFont(font);
|
||||
style.setAlignment(HSSFCellStyle.ALIGN_CENTER);//水平居中
|
||||
style.setVerticalAlignment(HSSFCellStyle.VERTICAL_CENTER);//垂直居中
|
||||
style.setWrapText(true);
|
||||
return style;
|
||||
}
|
||||
|
||||
public static void main(String[] args) throws Exception {
|
||||
String cnt = "\n";
|
||||
List<Integer> c =new ArrayList<>();
|
||||
c.add(1);
|
||||
String tableHtml = "<table><tbody><tr><td colspan='2'>11111111</td><td rowspan='3'>3333333333</td><td>444444444</td></tr><tr><td>5555555</td><td>66666</td><td></td></tr><tr><td></td><td>324234</td><td></td></tr></tbody></table>";
|
||||
tableHtml = tableHtml.replaceAll("<[\\s]*?br[^>]*?>|<[\\s]*?\\/[\\s]*?br[\\s]*?>", cnt);
|
||||
// HSSFWorkbook hssfWorkbook = ConvertHtml2Excel.table2Excel(tableHtml,c,1);
|
||||
// hssfWorkbook.write(FileUtils.openOutputStream(new File("D:\\test\\test1.xls")));
|
||||
}
|
||||
|
||||
}
|
||||
+53
@@ -0,0 +1,53 @@
|
||||
package com.jero.modules.split.common;
|
||||
|
||||
/**
|
||||
* @Description: table转excel 跨行元素元数据
|
||||
* @Author: yangxuenan
|
||||
* date: 2020/2/26 10:14
|
||||
*/
|
||||
public class CrossRangeCellMeta {
|
||||
|
||||
public CrossRangeCellMeta(int firstRowIndex, int firstColIndex, int rowSpan, int colSpan, boolean inHead) {
|
||||
super();
|
||||
this.firstRowIndex = firstRowIndex;
|
||||
this.firstColIndex = firstColIndex;
|
||||
this.rowSpan = rowSpan;
|
||||
this.colSpan = colSpan;
|
||||
this.inHead = inHead;
|
||||
}
|
||||
|
||||
private int firstRowIndex;
|
||||
private int firstColIndex;
|
||||
private int rowSpan;// 跨越行数
|
||||
private int colSpan;// 跨越列数
|
||||
private boolean inHead;
|
||||
|
||||
public boolean isInHead() {
|
||||
return inHead;
|
||||
}
|
||||
|
||||
public CrossRangeCellMeta setInHead(boolean inHead) {
|
||||
this.inHead = inHead;
|
||||
return this;
|
||||
}
|
||||
|
||||
public int getFirstRow() {
|
||||
return firstRowIndex;
|
||||
}
|
||||
|
||||
public int getLastRow() {
|
||||
return firstRowIndex + rowSpan - 1;
|
||||
}
|
||||
|
||||
public int getFirstCol() {
|
||||
return firstColIndex;
|
||||
}
|
||||
|
||||
public int getLastCol() {
|
||||
return firstColIndex + colSpan - 1;
|
||||
}
|
||||
|
||||
public int getColSpan() {
|
||||
return colSpan;
|
||||
}
|
||||
}
|
||||
+155
@@ -0,0 +1,155 @@
|
||||
package com.jero.modules.split.common;
|
||||
|
||||
import com.xkcoding.http.util.StringUtil;
|
||||
import org.apache.tools.zip.ZipEntry;
|
||||
import org.apache.tools.zip.ZipFile;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
import java.io.*;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Enumeration;
|
||||
import java.util.List;
|
||||
|
||||
public class FileUnZip {
|
||||
|
||||
private static final Logger logger = LoggerFactory.getLogger(FileUnZip.class);
|
||||
|
||||
/**
|
||||
* 解压zip文件
|
||||
*
|
||||
* @param sourceFile,待解压的zip文件; toFolder,解压后的存放路径
|
||||
* @throws Exception
|
||||
* @author gaoyan
|
||||
**/
|
||||
public static String unZipFiles(String sourceFile, String descDir) throws IOException {
|
||||
File zipFile = new File(sourceFile);
|
||||
|
||||
File pathFile = new File(descDir);
|
||||
if (!pathFile.exists()) {
|
||||
pathFile.mkdirs();
|
||||
}
|
||||
ZipFile zip = new ZipFile(zipFile,"gbk");
|
||||
String orgMkdirs = "";
|
||||
for (Enumeration entries = zip.getEntries(); entries.hasMoreElements(); ) {
|
||||
ZipEntry entry = (ZipEntry) entries.nextElement();
|
||||
String zipEntryName = entry.getName();
|
||||
String outPath = (descDir + "/" + zipEntryName).replaceAll("\\*", "/");
|
||||
//判断路径是否存在,不存在则创建文件路径
|
||||
File file = new File(outPath.substring(0, outPath.lastIndexOf('/')));
|
||||
if (!file.exists()) {
|
||||
orgMkdirs = outPath.substring(0, outPath.lastIndexOf('/'));
|
||||
file.mkdirs();
|
||||
}else{
|
||||
orgMkdirs = outPath.substring(0, outPath.lastIndexOf('/'));
|
||||
}
|
||||
//判断文件全路径是否为文件夹,如果是上面已经上传,不需要解压
|
||||
if (new File(outPath).isDirectory()) {
|
||||
continue;
|
||||
}
|
||||
//输出文件路径信息
|
||||
// InputStream in = null;
|
||||
// OutputStream out = null;
|
||||
try(InputStream in =zip.getInputStream(entry);
|
||||
OutputStream out =new FileOutputStream(outPath)){
|
||||
byte[] buf1 = new byte[1024];
|
||||
int len;
|
||||
while ((len = in.read(buf1)) > 0) {
|
||||
out.write(buf1, 0, len);
|
||||
}
|
||||
}catch(IOException e){
|
||||
logger.error(e.getMessage(),e);
|
||||
}
|
||||
}
|
||||
zip.close();
|
||||
return orgMkdirs;
|
||||
}
|
||||
|
||||
/**
|
||||
* 递归删除文件及文件夹
|
||||
*
|
||||
* @throws Exception
|
||||
* @author gaoyan
|
||||
* toFolder,解压后的存放路径
|
||||
**/
|
||||
public static boolean deleteDir(File dir) {
|
||||
if (dir.isDirectory()) {
|
||||
String[] children = dir.list();
|
||||
for (int i = 0; i < children.length; i++) {
|
||||
boolean success = deleteDir(new File(dir, children[i]));
|
||||
if (!success) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
// 目录此时为空,可以删除
|
||||
return dir.delete();
|
||||
}
|
||||
|
||||
/**
|
||||
* 读取一个目录下所有的Excel文件
|
||||
* gaoyan
|
||||
*
|
||||
* @param path
|
||||
*/
|
||||
public static List<File> readExcelFile(String path) {
|
||||
File file = new File(path);
|
||||
List<File> resultlist = new ArrayList<>();
|
||||
if (file.isDirectory()) {
|
||||
File[] files = file.listFiles();
|
||||
for (File fi : files) {
|
||||
// 对文件进行过滤,只读取Excel文件
|
||||
if (fi.getName().contains(".xls") || fi.getName().contains(".xlsx")) {
|
||||
resultlist.add(fi);
|
||||
}
|
||||
}
|
||||
}
|
||||
return resultlist;
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据文件名称读取固定目录下文件
|
||||
* gaoyan
|
||||
* @param filename
|
||||
*/
|
||||
public static List<File> readFileByFilename(String path,String filename) {
|
||||
List<File> resultlist = new ArrayList<>();
|
||||
if (StringUtil.isNotEmpty(path)){
|
||||
File file = new File(path);
|
||||
if (file.isDirectory()) {
|
||||
File[] files = file.listFiles();
|
||||
for (File fi : files) {
|
||||
// 对文件进行过滤
|
||||
if (fi.getName().equals(filename)) {
|
||||
resultlist.add(fi);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return resultlist;
|
||||
}
|
||||
|
||||
/**
|
||||
*@Description: 删除某个文件
|
||||
*@Param: [file]
|
||||
*@return: void
|
||||
*@Author: duyunbao
|
||||
*@date: 2019/5/23 20:31
|
||||
*/
|
||||
public static void delete(File file) {
|
||||
if (!file.exists()) return;
|
||||
|
||||
if (file.isFile() || file.list() == null) {
|
||||
file.delete();
|
||||
logger.info("删除了" + file.getName());
|
||||
} else {
|
||||
File[] files = file.listFiles();
|
||||
for (File a : files) {
|
||||
delete(a);
|
||||
}
|
||||
file.delete();
|
||||
logger.info("删除了" + file.getName());
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,171 @@
|
||||
package com.jero.modules.split.common;
|
||||
|
||||
/**
|
||||
* @Author: liyawei
|
||||
* @Description:
|
||||
* @Date: Created in 11:14 2022/3/2
|
||||
*/
|
||||
public class Pager {
|
||||
private int pageId = 1;
|
||||
private int rowCount = 0;
|
||||
private int pageSize = 10;
|
||||
private int pageCount = 0;
|
||||
private int pageOffset = 0;
|
||||
private int pageTail = 0;
|
||||
private String orderField;
|
||||
private boolean orderDirection = true;
|
||||
private boolean pageEnabled = true;
|
||||
private int length = 6;
|
||||
private int startIndex = 0;
|
||||
private int endIndex = 0;
|
||||
private int[] indexs;
|
||||
|
||||
public Pager() {
|
||||
}
|
||||
|
||||
public int getLength() {
|
||||
return this.length;
|
||||
}
|
||||
|
||||
public void setLength(int length) {
|
||||
this.length = length;
|
||||
}
|
||||
|
||||
public int[] getIndexs() {
|
||||
int len = this.getEndIndex() - this.getStartIndex() + 1;
|
||||
this.indexs = new int[len];
|
||||
|
||||
for(int i = 0; i < len; ++i) {
|
||||
this.indexs[i] = this.getStartIndex() + i;
|
||||
}
|
||||
|
||||
return this.indexs;
|
||||
}
|
||||
|
||||
public void setIndexs(int[] indexs) {
|
||||
this.indexs = indexs;
|
||||
}
|
||||
|
||||
public int getStartIndex() {
|
||||
this.startIndex = (this.pageId - 1) * this.pageSize + 1;
|
||||
return this.startIndex;
|
||||
}
|
||||
|
||||
public void setStartIndex(int startIndex) {
|
||||
System.out.println("startIndx:" + this.pageId + ":" + this.pageSize);
|
||||
this.startIndex = (this.pageId - 1) * this.pageSize + 1;
|
||||
}
|
||||
|
||||
public int getEndIndex() {
|
||||
this.endIndex = this.pageId * this.pageSize;
|
||||
return this.endIndex;
|
||||
}
|
||||
|
||||
public void setEndIndex(int endIndex) {
|
||||
this.endIndex = this.pageId * this.pageSize;
|
||||
}
|
||||
|
||||
protected void doPage() {
|
||||
this.pageCount = this.rowCount / this.pageSize + 1;
|
||||
if (this.rowCount % this.pageSize == 0 && this.pageCount > 1) {
|
||||
--this.pageCount;
|
||||
}
|
||||
|
||||
this.pageOffset = (this.pageId - 1) * this.pageSize;
|
||||
this.pageTail = this.pageOffset + this.pageSize;
|
||||
if (this.pageOffset + this.pageSize > this.rowCount) {
|
||||
this.pageTail = this.rowCount;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public String getOrderCondition() {
|
||||
String condition = "";
|
||||
if (this.orderField != null && this.orderField.length() != 0) {
|
||||
condition = " order by " + this.orderField + (this.orderDirection ? " " : " desc ");
|
||||
}
|
||||
|
||||
return condition;
|
||||
}
|
||||
|
||||
public String getMysqlQueryCondition() {
|
||||
String condition = "";
|
||||
if (this.pageEnabled) {
|
||||
}
|
||||
|
||||
return condition;
|
||||
}
|
||||
|
||||
public void setOrderDirection(boolean orderDirection) {
|
||||
this.orderDirection = orderDirection;
|
||||
}
|
||||
|
||||
public boolean isOrderDirection() {
|
||||
return this.orderDirection;
|
||||
}
|
||||
|
||||
public void setOrderField(String orderField) {
|
||||
this.orderField = orderField;
|
||||
}
|
||||
|
||||
public String getOrderField() {
|
||||
return this.orderField;
|
||||
}
|
||||
|
||||
public void setPageCount(int pageCount) {
|
||||
this.pageCount = pageCount;
|
||||
}
|
||||
|
||||
public int getPageCount() {
|
||||
return this.pageCount;
|
||||
}
|
||||
|
||||
public void setPageId(int pageId) {
|
||||
this.pageId = pageId;
|
||||
}
|
||||
|
||||
public int getPageId() {
|
||||
return this.pageId;
|
||||
}
|
||||
|
||||
public void setPageOffset(int pageOffset) {
|
||||
this.pageOffset = pageOffset;
|
||||
}
|
||||
|
||||
public int getPageOffset() {
|
||||
return this.pageOffset;
|
||||
}
|
||||
|
||||
public void setPageSize(int pageSize) {
|
||||
this.pageSize = pageSize;
|
||||
}
|
||||
|
||||
public int getPageSize() {
|
||||
return this.pageSize;
|
||||
}
|
||||
|
||||
public void setPageTail(int pageTail) {
|
||||
this.pageTail = pageTail;
|
||||
}
|
||||
|
||||
public int getPageTail() {
|
||||
return this.pageTail;
|
||||
}
|
||||
|
||||
public void setRowCount(int rowCount) {
|
||||
this.rowCount = rowCount;
|
||||
this.doPage();
|
||||
}
|
||||
|
||||
public int getRowCount() {
|
||||
return this.rowCount;
|
||||
}
|
||||
|
||||
public boolean isPageEnabled() {
|
||||
return this.pageEnabled;
|
||||
}
|
||||
|
||||
public void setPageEnabled(boolean pageEnabled) {
|
||||
this.pageEnabled = pageEnabled;
|
||||
}
|
||||
}
|
||||
+176
@@ -0,0 +1,176 @@
|
||||
package com.jero.modules.split.common;
|
||||
|
||||
import com.jero.modules.split.util.WDWUtil;
|
||||
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
|
||||
import org.apache.poi.ss.usermodel.Workbook;
|
||||
import org.apache.poi.xssf.usermodel.XSSFWorkbook;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
import org.springframework.web.multipart.commons.CommonsMultipartFile;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.net.URLEncoder;
|
||||
|
||||
/**
|
||||
* @des : excel信息读取
|
||||
* @author: duyunbao
|
||||
* @email: 1114808306@qq.com
|
||||
* @date 2017/10/27 17:06
|
||||
**/
|
||||
public class ReadExcel {
|
||||
private static final Logger logger = LoggerFactory.getLogger(ReadExcel.class);
|
||||
|
||||
/**
|
||||
* 总行数
|
||||
*/
|
||||
private int totalRows = 0;
|
||||
/**
|
||||
* 总条数
|
||||
*/
|
||||
private int totalCells = 0;
|
||||
/**
|
||||
* 错误信息接收器
|
||||
*/
|
||||
private String errorMsg;
|
||||
|
||||
public ReadExcel() {
|
||||
// 不做操作
|
||||
}
|
||||
|
||||
public int getTotalRows() {
|
||||
return totalRows;
|
||||
}
|
||||
|
||||
public int getTotalCells() {
|
||||
return totalCells;
|
||||
}
|
||||
|
||||
public String getErrorInfo() {//获取错误信息
|
||||
return errorMsg;
|
||||
}
|
||||
|
||||
/**
|
||||
* @method_name: validateExcel
|
||||
* @des : 验证excel格式
|
||||
* @author: duyunbao
|
||||
* @param: [filePath]
|
||||
* @return: boolean
|
||||
* @date: 2017/10/27 17:07
|
||||
**/
|
||||
public boolean validateExcel(String filePath) {
|
||||
if (filePath == null || !(WDWUtil.isExcel2003(filePath) || WDWUtil.isExcel2007(filePath))) {
|
||||
errorMsg = "文件名不是excel格式";
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* @method_name: getExcelInfo
|
||||
* @des : 读EXCEL文件,获取信息集合
|
||||
* @author: duyunbao
|
||||
* @param: [fileName, Mfile]
|
||||
* @return: org.apache.poi.ss.usermodel.Workbook
|
||||
* @date: 2017/10/27 17:08
|
||||
**/
|
||||
public Workbook getExcelInfo(String fileName, MultipartFile Mfile) {
|
||||
Workbook wb = null;
|
||||
//把spring文件上传的MultipartFile转换成CommonsMultipartFile类型
|
||||
CommonsMultipartFile cf = (CommonsMultipartFile) Mfile; //获取本地存储路径
|
||||
//初始化输入流
|
||||
InputStream is = null;
|
||||
try {
|
||||
//根据文件名判断文件是2003版本还是2007版本
|
||||
boolean isExcel2003 = true;
|
||||
if (WDWUtil.isExcel2007(fileName)) {
|
||||
isExcel2003 = false;
|
||||
}
|
||||
is = cf.getInputStream();
|
||||
//根据excel里面的内容读取客户信息
|
||||
wb = getExcelInfo(is, isExcel2003, wb);
|
||||
is.close();
|
||||
} catch (Exception e) {
|
||||
logger.error(e.getMessage(),e);
|
||||
} finally {
|
||||
if (is != null) {
|
||||
try {
|
||||
is.close();
|
||||
} catch (IOException e) {
|
||||
is = null;
|
||||
logger.error(e.getMessage(),e);
|
||||
}
|
||||
}
|
||||
}
|
||||
return wb;
|
||||
}
|
||||
|
||||
/***
|
||||
* @method_name: getExcelInfo
|
||||
* @des : 判断excel版本
|
||||
* @author: duyunbao
|
||||
* @param: [is, isExcel2003, wb]
|
||||
* @return: org.apache.poi.ss.usermodel.Workbook
|
||||
* @date: 2017/10/27 17:08
|
||||
**/
|
||||
private Workbook getExcelInfo(InputStream is, boolean isExcel2003, Workbook wb) {
|
||||
Workbook workbook =wb;
|
||||
try {
|
||||
/** 根据版本选择创建Workbook的方式 */
|
||||
//当excel是2003时
|
||||
if (isExcel2003) {
|
||||
workbook = new HSSFWorkbook(is);
|
||||
} else {//当excel是2007时
|
||||
workbook = new XSSFWorkbook(is);
|
||||
}
|
||||
} catch (IOException e) {
|
||||
logger.error(e.getMessage(),e);
|
||||
}
|
||||
return workbook;
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取sheet的名称
|
||||
* @MethodName:getSheetName
|
||||
* @author: 马晓晨
|
||||
* @email: 747052172@qq.com
|
||||
* @date 2017年11月24日 上午9:49:22
|
||||
* @version V1.0
|
||||
* @param filename
|
||||
* @param file
|
||||
* @param sheetIndex
|
||||
* @return
|
||||
*/
|
||||
public String getSheetName(String filename, MultipartFile file, Integer sheetIndex) {
|
||||
Workbook wb = getExcelInfo(filename, file);
|
||||
return wb.getSheetName(sheetIndex);
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @Title: encodeFileName
|
||||
* @Description: 导出文件转换文件名称编码
|
||||
* @param @param fileNames
|
||||
* @param @param request
|
||||
* @param @return 设定文件
|
||||
* @return String 返回类型
|
||||
* @throws
|
||||
*/
|
||||
public static String encodeFileName(String fileNames ,HttpServletRequest request) {
|
||||
try {
|
||||
String agent = request.getHeader("User-Agent");
|
||||
if (agent.contains("Firefox")) {
|
||||
fileNames = new String(fileNames.getBytes("UTF-8"), "ISO8859-1"); // firefox浏览器
|
||||
} else {
|
||||
fileNames = URLEncoder.encode(fileNames, "utf-8");
|
||||
//谷歌中空格变为+问题
|
||||
fileNames = fileNames.replaceAll("\\+","%20");
|
||||
}
|
||||
} catch (Exception e) {
|
||||
logger.error(e.getMessage(),e);
|
||||
}
|
||||
return fileNames ;
|
||||
}
|
||||
}
|
||||
+28
@@ -0,0 +1,28 @@
|
||||
package com.jero.modules.split.common;
|
||||
|
||||
/**
|
||||
* @Description:
|
||||
* @Author: yangxuenan
|
||||
* date: 2020/5/11 10:29
|
||||
*/
|
||||
public class SplitTableInfo {
|
||||
private String tableName;
|
||||
|
||||
private String tableHtml;
|
||||
|
||||
public String getTableName() {
|
||||
return tableName;
|
||||
}
|
||||
|
||||
public void setTableName(String tableName) {
|
||||
this.tableName = tableName;
|
||||
}
|
||||
|
||||
public String getTableHtml() {
|
||||
return tableHtml;
|
||||
}
|
||||
|
||||
public void setTableHtml(String tableHtml) {
|
||||
this.tableHtml = tableHtml;
|
||||
}
|
||||
}
|
||||
+36
@@ -0,0 +1,36 @@
|
||||
package com.jero.modules.split.common;
|
||||
|
||||
/**
|
||||
* @Description:
|
||||
* @Author: yangxuenan
|
||||
* date: 2020/1/9 18:59
|
||||
*/
|
||||
public class UploadFileInfo {
|
||||
private String id;
|
||||
private String filePath;
|
||||
private String name;
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getFilePath() {
|
||||
return filePath;
|
||||
}
|
||||
|
||||
public void setFilePath(String filePath) {
|
||||
this.filePath = filePath;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
}
|
||||
+703
@@ -0,0 +1,703 @@
|
||||
package com.jero.modules.split.controller;
|
||||
|
||||
import cn.afterturn.easypoi.excel.ExcelImportUtil;
|
||||
import cn.afterturn.easypoi.excel.entity.ImportParams;
|
||||
import cn.hutool.core.util.ZipUtil;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.jero.common.api.vo.Result;
|
||||
import com.jero.common.exception.JeroBootException;
|
||||
import com.jero.common.system.base.controller.JeroController;
|
||||
import com.jero.modules.oss.entity.OSSFile;
|
||||
import com.jero.modules.oss.service.IOSSFileService;
|
||||
import com.jero.modules.split.common.ConvertHtml2Excel;
|
||||
import com.jero.modules.split.common.FileUnZip;
|
||||
import com.jero.modules.split.common.ReadExcel;
|
||||
import com.jero.modules.split.common.SplitTableInfo;
|
||||
import com.jero.modules.split.dto.*;
|
||||
import com.jero.modules.split.entity.SarFileSplitItemsEO;
|
||||
import com.jero.modules.split.entity.SarFileSplitItemsParamsEO;
|
||||
import com.jero.modules.split.entity.SarFileSplitItemsValEO;
|
||||
import com.jero.modules.split.page.SarFileSplitItemsEOPage;
|
||||
import com.jero.modules.split.page.SarFileSplitItemsParamsEOPage;
|
||||
import com.jero.modules.split.page.SarFileSplitItemsValEOPage;
|
||||
import com.jero.modules.split.service.ISarFileSplitItemsEOService;
|
||||
import com.jero.modules.split.service.ISarFileSplitItemsParamsEOService;
|
||||
import com.jero.modules.split.service.ISarFileSplitItemsTableEOService;
|
||||
import com.jero.modules.split.service.ISarFileSplitItemsValEOService;
|
||||
import com.jero.modules.split.util.POIReadExcelToHtml;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.apache.commons.collections.CollectionUtils;
|
||||
import org.apache.commons.io.FileUtils;
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
import org.apache.commons.lang3.StringEscapeUtils;
|
||||
import org.apache.poi.common.usermodel.HyperlinkType;
|
||||
import org.apache.poi.hssf.usermodel.*;
|
||||
import org.apache.poi.hssf.util.HSSFColor;
|
||||
import org.apache.poi.ss.usermodel.CreationHelper;
|
||||
import org.apache.poi.ss.usermodel.Hyperlink;
|
||||
import org.apache.poi.ss.util.CellRangeAddress;
|
||||
import org.apache.poi.util.IOUtils;
|
||||
import org.apache.poi.xssf.usermodel.XSSFSheet;
|
||||
import org.apache.poi.xssf.usermodel.XSSFWorkbook;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.io.File;
|
||||
import java.io.FileInputStream;
|
||||
import java.io.FileOutputStream;
|
||||
import java.io.OutputStream;
|
||||
import java.util.*;
|
||||
|
||||
import static com.jero.modules.split.util.ExcelUtil.checkObjAllFieldsIsNull;
|
||||
|
||||
@RestController
|
||||
@RequestMapping("/split/sarFileSplitItems")
|
||||
@Api(tags = "文档拆分条款信息")
|
||||
public class SarFileSplitItemsEOController extends JeroController<SarFileSplitItemsEO, ISarFileSplitItemsEOService> {
|
||||
|
||||
private static final Logger logger = LoggerFactory.getLogger(SarFileSplitItemsEOController.class);
|
||||
|
||||
@Autowired
|
||||
private ISarFileSplitItemsEOService sarFileSplitItemsEOService;
|
||||
|
||||
@Autowired
|
||||
private ISarFileSplitItemsValEOService sarFileSplitItemsValEOService;
|
||||
|
||||
@Autowired
|
||||
private ISarFileSplitItemsTableEOService sarFileSplitItemsTableEOService;
|
||||
|
||||
@Autowired
|
||||
private ISarFileSplitItemsParamsEOService sarFileSplitItemsParamsEOService;
|
||||
|
||||
@Autowired
|
||||
private IOSSFileService ossFileService;
|
||||
|
||||
@Value("${jero.path.upload}")
|
||||
private String filePath;
|
||||
|
||||
@Value("${jero.path.upload}")
|
||||
private String uploadFilePath;
|
||||
|
||||
@ApiOperation(value = "|SarFileSplitItemsEO|分页查询")
|
||||
@GetMapping("/getSplitItemsByPage")
|
||||
// @RequiresPermissions("lawss:sarFileSplitItems:page")
|
||||
public Result<IPage<SarFileSplitItemsEO>> page(SarFileSplitItemsEOPage page) throws Exception {
|
||||
page.setValidFlag("0");
|
||||
//page.setOrderBy("regexp_replace(replace('.'||ITEMS_NUM, '.', '.00000000'), '0+([^\\.]{8})', '\\1')");
|
||||
page.setOrderBy("SAR_FILE_SPLIT_MENU.display_seq asc");
|
||||
List<SarFileSplitItemsEO> rows = sarFileSplitItemsEOService.queryByPage(page);
|
||||
if (rows != null && !rows.isEmpty()) {
|
||||
for (SarFileSplitItemsEO sarFileSplitItemsEO : rows) {
|
||||
SarFileSplitItemsParamsEOPage paramPage = new SarFileSplitItemsParamsEOPage();
|
||||
paramPage.setItemId(sarFileSplitItemsEO.getId());
|
||||
List<SarFileSplitItemsParamsEO> paramList = sarFileSplitItemsParamsEOService.queryByList(paramPage);
|
||||
sarFileSplitItemsEO.setParamsList(paramList);
|
||||
}
|
||||
|
||||
}
|
||||
IPage<SarFileSplitItemsEO> pageList = null;
|
||||
pageList.setRecords(rows);
|
||||
pageList.setCurrent(page.getPage());
|
||||
pageList.setSize(page.getPageSize());
|
||||
pageList.setTotal(sarFileSplitItemsEOService.queryByCount(page));
|
||||
return Result.OK(pageList);
|
||||
}
|
||||
@ApiOperation(value = "|SarFileSplitItemsEO|查看所有条款详情")
|
||||
@GetMapping("/getAllSplitItems")
|
||||
public Result<List<SarFileSplitItemsEO>> getAllSplitItems(SarFileSplitItemsEOPage page){
|
||||
page.setValidFlag("0");
|
||||
page.setOrderBy("SAR_FILE_SPLIT_MENU.display_seq asc");
|
||||
List<SarFileSplitItemsEO> rows = sarFileSplitItemsEOService.queryByList2(page);
|
||||
return Result.OK(rows);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|SarFileSplitItemsEO|查询")
|
||||
@GetMapping("")
|
||||
// @RequiresPermissions("lawss:sarFileSplitItems:list")
|
||||
public Result<List<SarFileSplitItemsEO>> list(SarFileSplitItemsEOPage page) throws Exception {
|
||||
return Result.OK(sarFileSplitItemsEOService.queryByList(page));
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|SarFileSplitItemsEO|详情")
|
||||
@GetMapping("/{id}")
|
||||
@RequiresPermissions("lawss:sarFileSplitItems:get")
|
||||
public Result<SarFileSplitItemsEO> find(@PathVariable String id) throws Exception {
|
||||
return Result.OK(sarFileSplitItemsEOService.selectByPrimaryKey(id));
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|SarFileSplitItemsEO|新增")
|
||||
@PostMapping("/addSplitItems")
|
||||
public Result<?> create(@RequestBody SarFileSplitItemsEO sarFileSplitItemsEO) throws Exception {
|
||||
if(CollectionUtils.isNotEmpty(sarFileSplitItemsEO.getItemValEOList())) {
|
||||
List<SarFileSplitItemsValEO> itemValEOListNew = new ArrayList<>();
|
||||
for (SarFileSplitItemsValEO itemsValEO : sarFileSplitItemsEO.getItemValEOList()) {
|
||||
itemsValEO.setItemContent(StringEscapeUtils.unescapeHtml4(itemsValEO.getItemContent()));
|
||||
itemValEOListNew.add(itemsValEO);
|
||||
}
|
||||
sarFileSplitItemsEO.setItemValEOList(itemValEOListNew);
|
||||
}
|
||||
|
||||
int resultCount = 0;
|
||||
if(StringUtils.isBlank(sarFileSplitItemsEO.getId())){
|
||||
resultCount = sarFileSplitItemsEOService.addItemContent(sarFileSplitItemsEO);
|
||||
}else{
|
||||
resultCount = sarFileSplitItemsEOService.updateItemContent(sarFileSplitItemsEO);
|
||||
}
|
||||
if (resultCount > 0) {
|
||||
return Result.OK("新增成功",sarFileSplitItemsEO);
|
||||
} else {
|
||||
return Result.error("新增失败");
|
||||
}
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|SarFileSplitItemsEO|修改")
|
||||
@PutMapping("/updateSplitItems")
|
||||
public Result<?> update(@RequestBody SarFileSplitItemsEO sarFileSplitItemsEO) throws Exception {
|
||||
if(CollectionUtils.isNotEmpty(sarFileSplitItemsEO.getItemValEOList())) {
|
||||
List<SarFileSplitItemsValEO> itemValEOListNew = new ArrayList<>();
|
||||
for (SarFileSplitItemsValEO itemsValEO : sarFileSplitItemsEO.getItemValEOList()) {
|
||||
itemsValEO.setItemContent(StringEscapeUtils.unescapeHtml4(itemsValEO.getItemContent()));
|
||||
itemValEOListNew.add(itemsValEO);
|
||||
}
|
||||
sarFileSplitItemsEO.setItemValEOList(itemValEOListNew);
|
||||
}
|
||||
|
||||
int resultCount = sarFileSplitItemsEOService.updateItemContent(sarFileSplitItemsEO);
|
||||
if (resultCount > 0) {
|
||||
return Result.OK("修改成功",sarFileSplitItemsEO);
|
||||
} else {
|
||||
return Result.error("修改失败");
|
||||
}
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|SarFileSplitItemsEO|暂存")
|
||||
@PutMapping("/saveSplitItems")
|
||||
public Result<?> save(@RequestBody SarFileSplitItemsEO sarFileSplitItemsEO) throws Exception {
|
||||
if(CollectionUtils.isNotEmpty(sarFileSplitItemsEO.getItemValEOList())) {
|
||||
List<SarFileSplitItemsValEO> itemValEOListNew = new ArrayList<>();
|
||||
for (SarFileSplitItemsValEO itemsValEO : sarFileSplitItemsEO.getItemValEOList()) {
|
||||
itemsValEO.setItemContent(StringEscapeUtils.unescapeHtml4(itemsValEO.getItemContent()));
|
||||
itemValEOListNew.add(itemsValEO);
|
||||
}
|
||||
sarFileSplitItemsEO.setItemValEOList(itemValEOListNew);
|
||||
}
|
||||
|
||||
int resultCount = 0;
|
||||
if(StringUtils.isBlank(sarFileSplitItemsEO.getId())){
|
||||
resultCount = sarFileSplitItemsEOService.addItemContent(sarFileSplitItemsEO);
|
||||
}else{
|
||||
resultCount = sarFileSplitItemsEOService.updateItemContent(sarFileSplitItemsEO);
|
||||
}
|
||||
|
||||
if (resultCount > 0) {
|
||||
return Result.OK("暂存成功",sarFileSplitItemsEO);
|
||||
} else {
|
||||
return Result.error("暂存失败");
|
||||
}
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|SarFileSplitItemsEO|删除")
|
||||
@DeleteMapping("/{id}")
|
||||
@RequiresPermissions("lawss:sarFileSplitItems:delete")
|
||||
public Result delete(@PathVariable String id) throws Exception {
|
||||
sarFileSplitItemsEOService.deleteByPrimaryKey(id);
|
||||
logger.info("delete from SAR_FILE_SPLIT_ITEMS where id = {}", id);
|
||||
return Result.OK();
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|SarFileSplitItemsEO|批量删除")
|
||||
@PostMapping("/batchDeleteItems")
|
||||
public Result batchDeleteItems(String ids) throws Exception {
|
||||
if (StringUtils.isNotEmpty(ids)) {
|
||||
int result = sarFileSplitItemsEOService.batchDeleteItems(ids);
|
||||
if (result > 0) {
|
||||
return Result.OK("删除成功",null);
|
||||
} else {
|
||||
return Result.error("删除失败");
|
||||
}
|
||||
|
||||
} else {
|
||||
return Result.error("请选择要删除的数据");
|
||||
}
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|SarFileSplitItemsEO|批量删除条款要求")
|
||||
@PostMapping("/batchDeleteItemsVal")
|
||||
public Result batchDeleteItemsVal(@RequestBody SarFileSplitItemsEO sarFileSplitItemsEO) throws Exception {
|
||||
if(CollectionUtils.isNotEmpty(sarFileSplitItemsEO.getItemValEOList())) {
|
||||
List<SarFileSplitItemsValEO> itemValEOListNew = new ArrayList<>();
|
||||
for (SarFileSplitItemsValEO itemsValEO : sarFileSplitItemsEO.getItemValEOList()) {
|
||||
itemsValEO.setItemContent(StringEscapeUtils.unescapeHtml4(itemsValEO.getItemContent()));
|
||||
itemValEOListNew.add(itemsValEO);
|
||||
}
|
||||
sarFileSplitItemsEO.setItemValEOList(itemValEOListNew);
|
||||
}
|
||||
|
||||
int resultCount = sarFileSplitItemsEOService.updateItemContentAfterBathDel(sarFileSplitItemsEO);
|
||||
if (resultCount > 0) {
|
||||
return Result.OK("批量删除成功",sarFileSplitItemsEO);
|
||||
} else {
|
||||
return Result.error("批量删除失败");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ApiOperation(value = "|SarFileSplitItemsEO|移动条款要求到指定目录")
|
||||
@PostMapping("/moveSplitItemsVal")
|
||||
public Result moveSplitItemsVal(@RequestBody SarFileSplitItemsEOPage page) throws Exception {
|
||||
if(CollectionUtils.isNotEmpty(page.getTargetItemValEOList())) {
|
||||
List<SarFileSplitItemsValEO> itemValEOListNew = new ArrayList<>();
|
||||
for (SarFileSplitItemsValEO itemsValEO : page.getTargetItemValEOList()) {
|
||||
itemsValEO.setItemContent(StringEscapeUtils.unescapeHtml4(itemsValEO.getItemContent()));
|
||||
itemValEOListNew.add(itemsValEO);
|
||||
}
|
||||
page.setTargetItemValEOList(itemValEOListNew);
|
||||
}
|
||||
|
||||
Map<String,String> resultMsgMap = sarFileSplitItemsEOService.moveSplitItemsVal(page);
|
||||
if ("0".equals(resultMsgMap.get("code"))) {
|
||||
return Result.OK("移动成功");
|
||||
} else {
|
||||
return Result.error(resultMsgMap.get("msg"));
|
||||
}
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|SarFileSplitItemsEO|根据id查询")
|
||||
@GetMapping("/getInfoById")
|
||||
// @RequiresPermissions("lawss:sarFileSplitItems:get")
|
||||
public Result<SarFileSplitItemsEO> getInfoById(String id) throws Exception {
|
||||
SarFileSplitItemsEO sarFileSplitItemsEO = sarFileSplitItemsEOService.selectByPrimaryKey(id);
|
||||
if (sarFileSplitItemsEO != null) {
|
||||
SarFileSplitItemsParamsEOPage paramPage = new SarFileSplitItemsParamsEOPage();
|
||||
paramPage.setItemId(id);
|
||||
List<SarFileSplitItemsParamsEO> paramList = sarFileSplitItemsParamsEOService.queryByList(paramPage);
|
||||
sarFileSplitItemsEO.setParamsList(paramList);
|
||||
}
|
||||
// 查询特殊参数要求信息
|
||||
return Result.OK(sarFileSplitItemsEO);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "判断包含子节点")
|
||||
@GetMapping("/judgeContaintChilds")
|
||||
/*@RequiresPermissions("lawss:sarMenu:judgequeryMenuByPid")*/
|
||||
public Result<Map<String, Object>> judgeContaintChilds(String ids) throws Exception {
|
||||
Map<String, Object> result = sarFileSplitItemsEOService.judgeContaintChilds(ids);
|
||||
return Result.OK(result);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|SarFileSplitItemsEO|导出zip")
|
||||
@GetMapping(value = "/exportSplitInfoZip")
|
||||
public void exportSplitInfoZip(String idList, String infoId,String exportName, HttpServletResponse response, HttpServletRequest request) throws Exception {
|
||||
OutputStream os = null;
|
||||
OutputStream excelOS = null;
|
||||
HSSFWorkbook workbook = new HSSFWorkbook();
|
||||
String fileOriName = "拆分条款信息";
|
||||
if (StringUtils.isNotEmpty(exportName)) {
|
||||
fileOriName = exportName;
|
||||
}
|
||||
try{
|
||||
//创建临时文件夹
|
||||
String fileNowPath = uploadFilePath + "/tempZip/" + UUID.randomUUID().toString().replace("-","") + "/" + fileOriName;
|
||||
File nowFile = new File(fileNowPath);
|
||||
if (nowFile.exists()){
|
||||
nowFile.delete();
|
||||
}
|
||||
nowFile.mkdirs();
|
||||
String fileName = fileOriName + ".xls";
|
||||
HSSFSheet sheetItems = workbook.createSheet("条款内容");
|
||||
String[] headers = {"条款号","条款名称","条款内容"};
|
||||
HSSFCellStyle cellStyle =workbook.createCellStyle();
|
||||
cellStyle.setWrapText(true);
|
||||
// cellStyle.setAlignment(HSSFCellStyle.ALIGN_CENTER);
|
||||
cellStyle.setVerticalAlignment(HSSFCellStyle.VERTICAL_CENTER);
|
||||
HSSFCellStyle cellStyle1 =workbook.createCellStyle();
|
||||
cellStyle1.setAlignment(HSSFCellStyle.ALIGN_CENTER);
|
||||
HSSFCellStyle cellStyleLink =workbook.createCellStyle();
|
||||
HSSFFont font = workbook.createFont();
|
||||
font.setColor(HSSFColor.LIGHT_BLUE.index);
|
||||
cellStyleLink.setFont(font);
|
||||
cellStyleLink.setWrapText(true);
|
||||
List<String> itemIdList = new ArrayList<>();
|
||||
SarFileSplitItemsEOPage page = new SarFileSplitItemsEOPage();
|
||||
if (StringUtils.isNotEmpty(idList)) {
|
||||
String[] idArr = idList.split(",");
|
||||
itemIdList = Arrays.asList(idArr);
|
||||
page.setIdList(itemIdList);
|
||||
}
|
||||
//查询全部条款
|
||||
page.setInfoId(infoId);
|
||||
page.setOrderBy("SAR_FILE_SPLIT_MENU.display_seq asc");
|
||||
List<FileSplitItemsExportDto> allItemsList = sarFileSplitItemsEOService.queryByOrdersForExport(page);
|
||||
List<FileSpiltValTableExportDto> allTableList = new ArrayList<>();
|
||||
List<FileSplitValImgExportDto> allImgList = new ArrayList<>();
|
||||
List<OSSFile> allRelevFileList = new ArrayList<>();
|
||||
int countMaxFile = 1;
|
||||
if (allItemsList != null && !allItemsList.isEmpty()) {
|
||||
for (FileSplitItemsExportDto itemsExportDto : allItemsList) {
|
||||
SarFileSplitItemsValEOPage valEOPage = new SarFileSplitItemsValEOPage();
|
||||
valEOPage.setItemId(itemsExportDto.getId());
|
||||
valEOPage.setOrderBy("DISPLAY_SEQ,ID");
|
||||
List<SarFileSplitItemsValEO> getValList = sarFileSplitItemsValEOService.queryByList(valEOPage);
|
||||
List<FileSplitValExportDto> valContentList = sarFileSplitItemsEOService.combineItemValInfo(getValList,allTableList,allImgList,page);
|
||||
itemsExportDto.setItemValContent(valContentList);
|
||||
}
|
||||
}
|
||||
// 在excel表中添加表头
|
||||
HSSFRow row = sheetItems.createRow(0);
|
||||
sheetItems.setColumnWidth(0,10*256);
|
||||
sheetItems.setColumnWidth(1,20*256);
|
||||
sheetItems.setColumnWidth(2,100*256);
|
||||
//导出目前只需要条款号、条款名称、条款内容
|
||||
|
||||
// sheetItems.setColumnWidth(3,20*256);
|
||||
// sheetItems.setColumnWidth(4,20*256);
|
||||
// sheetItems.setColumnWidth(5,20*256);
|
||||
// sheetItems.setColumnWidth(6,20*256);
|
||||
// sheetItems.setColumnWidth(7,20*256);
|
||||
// sheetItems.setColumnWidth(8,20*256);
|
||||
// sheetItems.setColumnWidth(9,40*256);
|
||||
for (int i = 0; i < headers.length; i++) {
|
||||
HSSFCell cell = row.createCell(i);
|
||||
HSSFRichTextString text = new HSSFRichTextString(headers[i]);
|
||||
cell.setCellValue(text);
|
||||
cell.setCellStyle(cellStyle1);
|
||||
}
|
||||
//放文字内容
|
||||
int allRow = 0;
|
||||
for(int rowNum = 0;rowNum < allItemsList.size(); rowNum++){
|
||||
FileSplitItemsExportDto exportDto = allItemsList.get(rowNum);
|
||||
List<FileSplitValExportDto> valList = exportDto.getItemValContent();
|
||||
int countFile = 0;
|
||||
if(valList != null && !valList.isEmpty()){
|
||||
int startRow = allRow + 1;
|
||||
for (int valRow=0;valRow<valList.size();valRow++) {
|
||||
allRow++;
|
||||
HSSFRow row1 = sheetItems.createRow(allRow);
|
||||
row1.createCell(0).setCellValue(exportDto.getItemsNum());
|
||||
row1.getCell(0).setCellStyle(cellStyle);
|
||||
row1.createCell(1).setCellValue(exportDto.getItemsName());
|
||||
row1.getCell(1).setCellStyle(cellStyle);
|
||||
HSSFCell cell2 = row1.createCell(2);
|
||||
row1.getCell(2).setCellStyle(cellStyle);
|
||||
String content = valList.get(valRow).getValContent();
|
||||
if (StringUtils.isNotEmpty(content)) {
|
||||
content = content.replaceAll("null","");
|
||||
if (content.lastIndexOf("\n") > -1) {
|
||||
content = content.substring(0,content.lastIndexOf("\n"));
|
||||
}
|
||||
}
|
||||
if("TABLE".equals(valList.get(valRow).getValType())){
|
||||
/* 连接跳转*/
|
||||
CreationHelper createHelper = workbook.getCreationHelper();
|
||||
Hyperlink hyperlink1 = createHelper.createHyperlink(HyperlinkType.DOCUMENT);
|
||||
String tableName = "#\'"+ content + "\'!A1";
|
||||
hyperlink1.setAddress(tableName);
|
||||
cell2.setHyperlink(hyperlink1);// 链接
|
||||
row1.getCell(2).setCellStyle(cellStyleLink);
|
||||
} else if ("IMG".equals(valList.get(valRow).getValType())) {
|
||||
/* 连接跳转*/
|
||||
CreationHelper createHelper = workbook.getCreationHelper();
|
||||
Hyperlink hyperlink1 = createHelper.createHyperlink(HyperlinkType.FILE);
|
||||
String imgName = content;
|
||||
hyperlink1.setAddress(imgName);
|
||||
cell2.setHyperlink(hyperlink1);// 链接
|
||||
row1.getCell(2).setCellStyle(cellStyleLink);
|
||||
}
|
||||
cell2.setCellValue(content);
|
||||
// SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
|
||||
// if (exportDto.getNewcarPutTime() != null) {
|
||||
// String time= sdf.format(exportDto.getNewcarPutTime());
|
||||
// row1.createCell(3).setCellValue(time);
|
||||
// row1.getCell(3).setCellStyle(cellStyle);
|
||||
// }
|
||||
// if (exportDto.getProductPutTime() != null) {
|
||||
// String time= sdf.format(exportDto.getProductPutTime());
|
||||
// row1.createCell(4).setCellValue(time);
|
||||
// row1.getCell(4).setCellStyle(cellStyle);
|
||||
// }
|
||||
// row1.createCell(5).setCellValue(exportDto.getSvpps());
|
||||
// row1.getCell(5).setCellStyle(cellStyle);
|
||||
// row1.createCell(6).setCellValue(exportDto.getApplyArctic());
|
||||
// row1.getCell(6).setCellStyle(cellStyle);
|
||||
// row1.createCell(7).setCellValue(exportDto.getReferenceStand());
|
||||
// row1.getCell(7).setCellStyle(cellStyle);
|
||||
// row1.createCell(8).setCellValue(exportDto.getRemarks());
|
||||
// row1.getCell(8).setCellStyle(cellStyle);
|
||||
// if (StringUtils.isNotEmpty(exportDto.getRelevanceFile())) {
|
||||
// List<AttFileEO> fileList = attFileEOService.getMultiFileInfos(exportDto.getRelevanceFile());
|
||||
// if (fileList != null && !fileList.isEmpty()) {
|
||||
// if (countMaxFile < fileList.size()) {
|
||||
// countMaxFile = fileList.size();
|
||||
// }
|
||||
// countFile = 0;
|
||||
// for (AttFileEO attFileEO : fileList) {
|
||||
// /* 连接跳转*/
|
||||
// String releFileName = attFileEO.getOldFileName();
|
||||
// CreationHelper createHelper = workbook.getCreationHelper();
|
||||
// Hyperlink hyperlink1 = createHelper.createHyperlink(HyperlinkType.URL);
|
||||
//// String addr = new String(releFileName.getBytes(),"UTF-8");
|
||||
// hyperlink1.setAddress(releFileName);
|
||||
// row1.createCell(9+countFile).setHyperlink(hyperlink1);
|
||||
// row1.createCell(9+countFile).setCellValue(releFileName);
|
||||
// row1.getCell(9+countFile).setCellStyle(cellStyleLink);
|
||||
// countFile++;
|
||||
// }
|
||||
// allRelevFileList.addAll(fileList);
|
||||
// }
|
||||
// }
|
||||
}
|
||||
if (allRow > startRow) {
|
||||
sheetItems.addMergedRegion(new CellRangeAddress(startRow,allRow,0,0));
|
||||
sheetItems.addMergedRegion(new CellRangeAddress(startRow,allRow,1,1));
|
||||
// sheetItems.addMergedRegion(new CellRangeAddress(startRow,allRow,3,3));
|
||||
// sheetItems.addMergedRegion(new CellRangeAddress(startRow,allRow,4,4));
|
||||
// sheetItems.addMergedRegion(new CellRangeAddress(startRow,allRow,5,5));
|
||||
// sheetItems.addMergedRegion(new CellRangeAddress(startRow,allRow,6,6));
|
||||
// sheetItems.addMergedRegion(new CellRangeAddress(startRow,allRow,7,7));
|
||||
// sheetItems.addMergedRegion(new CellRangeAddress(startRow,allRow,8,8));
|
||||
// if (countFile > 0) {
|
||||
// for (int i=0;i<=countFile;i++) {
|
||||
// sheetItems.addMergedRegion(new CellRangeAddress(startRow,allRow,9+i,9+i));
|
||||
// }
|
||||
// }
|
||||
}
|
||||
} else {
|
||||
allRow++;
|
||||
HSSFRow row1 = sheetItems.createRow(allRow);
|
||||
row1.createCell(0).setCellValue(exportDto.getItemsNum());
|
||||
row1.getCell(0).setCellStyle(cellStyle);
|
||||
row1.createCell(1).setCellValue(exportDto.getItemsName());
|
||||
row1.getCell(1).setCellStyle(cellStyle);
|
||||
row1.createCell(2).setCellValue("");
|
||||
row1.getCell(2).setCellStyle(cellStyle);
|
||||
// SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
|
||||
// if (exportDto.getNewcarPutTime() != null) {
|
||||
// String time= sdf.format(exportDto.getNewcarPutTime());
|
||||
// row1.createCell(3).setCellValue(time);
|
||||
// row1.getCell(3).setCellStyle(cellStyle);
|
||||
// }
|
||||
// if (exportDto.getProductPutTime() != null) {
|
||||
// String time= sdf.format(exportDto.getProductPutTime());
|
||||
// row1.createCell(4).setCellValue(time);
|
||||
// row1.getCell(4).setCellStyle(cellStyle);
|
||||
// }
|
||||
// row1.createCell(5).setCellValue(exportDto.getSvpps());
|
||||
// row1.getCell(5).setCellStyle(cellStyle);
|
||||
// row1.createCell(6).setCellValue(exportDto.getApplyArctic());
|
||||
// row1.getCell(6).setCellStyle(cellStyle);
|
||||
// row1.createCell(7).setCellValue(exportDto.getReferenceStand());
|
||||
// row1.getCell(7).setCellStyle(cellStyle);
|
||||
// row1.createCell(8).setCellValue(exportDto.getRemarks());
|
||||
// row1.getCell(8).setCellStyle(cellStyle);
|
||||
// if (StringUtils.isNotEmpty(exportDto.getRelevanceFile())) {
|
||||
// List<AttFileEO> fileList = attFileEOService.getMultiFileInfos(exportDto.getRelevanceFile());
|
||||
// if (fileList != null && !fileList.isEmpty()) {
|
||||
// countFile = 0;
|
||||
// for (AttFileEO attFileEO : fileList) {
|
||||
// /* 连接跳转*/
|
||||
// String releFileName = attFileEO.getOldFileName();
|
||||
// CreationHelper createHelper = workbook.getCreationHelper();
|
||||
// Hyperlink hyperlink1 = createHelper.createHyperlink(HyperlinkType.URL);
|
||||
//// String addr = new String(releFileName.getBytes(),"UTF-8");
|
||||
// hyperlink1.setAddress(releFileName);
|
||||
// row1.createCell(9+countFile).setHyperlink(hyperlink1);
|
||||
// row1.createCell(9+countFile).setCellValue(releFileName);
|
||||
// row1.getCell(9+countFile).setCellStyle(cellStyleLink);
|
||||
// countFile++;
|
||||
// }
|
||||
// allRelevFileList.addAll(fileList);
|
||||
// }
|
||||
// }
|
||||
}
|
||||
}
|
||||
if (countMaxFile > 1) {
|
||||
for (int i=1;i<countMaxFile;i++) {
|
||||
sheetItems.setColumnWidth(9+i,40*256);
|
||||
}
|
||||
sheetItems.addMergedRegion(new CellRangeAddress(0,0,9,9+countMaxFile-1));
|
||||
}
|
||||
// 放表格内容
|
||||
if(allTableList!= null && !allTableList.isEmpty()){
|
||||
for(FileSpiltValTableExportDto tableExportDto : allTableList){
|
||||
// List<List<SarFileSplitItemsTableEO>> rowtableList = tableExportDto.getTableEOList();
|
||||
// HSSFSheet sheetTable = workbook.createSheet(tableExportDto.getTableName());
|
||||
String tableName = tableExportDto.getTableName();
|
||||
String tableHtml = tableExportDto.getTableHtCon();
|
||||
if (StringUtils.isNotEmpty(tableHtml) && tableHtml.indexOf("<tbody>") < 0) {
|
||||
if (tableHtml.indexOf("<thead>") < 0) {
|
||||
tableHtml = tableHtml.replaceFirst("<tr>","<tbody><tr>");
|
||||
tableHtml = tableHtml.replaceFirst("</table>","</tbody></table>");
|
||||
} else {
|
||||
tableHtml = tableHtml.replaceFirst("</thead>","</thead><tbody>");
|
||||
tableHtml = tableHtml.replaceFirst("</table>","</tbody></table>");
|
||||
}
|
||||
}
|
||||
String cnt = "\n";
|
||||
tableHtml = tableHtml.replaceAll("<[\\s]*?br[^>]*?>|<[\\s]*?\\/[\\s]*?br[\\s]*?>", cnt);
|
||||
workbook = ConvertHtml2Excel.table2Excel(tableHtml,workbook,tableName);
|
||||
// for (int r=0;r<rowtableList.size();r++) {
|
||||
// List<SarFileSplitItemsTableEO> colTableList = rowtableList.get(r);
|
||||
// HSSFRow tRow = sheetTable.createRow(colTableList.get(0).getRowNum()-1);
|
||||
// for(int c=0;c<colTableList.size();c++){
|
||||
// SarFileSplitItemsTableEO tableEO = colTableList.get(c);
|
||||
// tRow.createCell(tableEO.getColNum()-1).setCellValue(tableEO.getContent());
|
||||
// tRow.getCell(tableEO.getColNum()-1).setCellStyle(cellStyle);
|
||||
// }
|
||||
// }
|
||||
}
|
||||
}
|
||||
//下载图片内容
|
||||
if (allImgList != null && !allImgList.isEmpty()) {
|
||||
sarFileSplitItemsEOService.downLoadImgList(allImgList,fileNowPath);
|
||||
}
|
||||
//下载关联文件内容
|
||||
if (allRelevFileList != null && !allRelevFileList.isEmpty()) {
|
||||
sarFileSplitItemsEOService.downLoadFileList(allRelevFileList,fileNowPath);
|
||||
}
|
||||
String repFileName = fileName.replaceAll("/","_");
|
||||
excelOS = new FileOutputStream(fileNowPath + "/" + repFileName);
|
||||
response.setHeader("Content-Disposition",
|
||||
"attachment; filename=\""+ ReadExcel.encodeFileName(fileOriName+".zip", request) +"\"");
|
||||
response.setContentType("application/force-download");
|
||||
response.flushBuffer();
|
||||
os = response.getOutputStream();
|
||||
workbook.write(excelOS);
|
||||
excelOS.flush();
|
||||
excelOS.close();
|
||||
ZipUtil.zip(fileNowPath,fileNowPath+".zip");
|
||||
FileInputStream fis = new FileInputStream(fileNowPath+".zip");
|
||||
int len = 0;
|
||||
while ((len = fis.read()) != -1) {
|
||||
os.write(len);
|
||||
}
|
||||
os.flush();
|
||||
os.close(); // 后开先关
|
||||
fis.close(); // 先开后关
|
||||
} catch (Exception e) {
|
||||
logger.error(e.getMessage(), e);
|
||||
throw new JeroBootException("下载文件失败,请重试");
|
||||
} finally {
|
||||
IOUtils.closeQuietly(os);
|
||||
IOUtils.closeQuietly(excelOS);
|
||||
}
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|SarFileSplitItemsEO|导入")
|
||||
@PostMapping(value = "/importSplitItemsZip")
|
||||
public Result<?> importSplitItemsZip(@RequestParam(value = "file", required = false) MultipartFile file,
|
||||
@RequestParam(value = "menuId", required = false) String menuId,
|
||||
@RequestParam(value = "infoId", required = false) String infoId) throws Exception {
|
||||
//验证文件名是否合格
|
||||
/* 截取后缀名 */
|
||||
int pos = file.getOriginalFilename().lastIndexOf(".");
|
||||
String str = file.getOriginalFilename().substring(pos+1).toLowerCase();
|
||||
String filenameorg = file.getOriginalFilename().substring(0,pos);
|
||||
//判断上传文件必须是zip
|
||||
if (!str.equals("zip")) {
|
||||
return Result.error("请上传zip文件");
|
||||
}
|
||||
String path = filePath + "/modal/"+filenameorg;
|
||||
File saveDirectory = new File(path);
|
||||
if(!saveDirectory.isDirectory()){
|
||||
saveDirectory.mkdir();
|
||||
}
|
||||
FileUtils.copyInputStreamToFile(file.getInputStream(), new File(path +"/"+ file.getOriginalFilename()));
|
||||
try{
|
||||
//解压缩
|
||||
String zipEntryName = FileUnZip.unZipFiles(path +"/"+ file.getOriginalFilename(),path);
|
||||
// 数据相关处理,
|
||||
// 1.获取其中的Excel,
|
||||
List<File> excelfilelist = FileUnZip.readExcelFile(zipEntryName);
|
||||
if(excelfilelist.size()<1){
|
||||
//删除原上传文件
|
||||
FileUnZip.deleteDir(saveDirectory);
|
||||
return Result.error("压缩包内没有上传Excel数据");
|
||||
} else if (excelfilelist.size()>1) {
|
||||
//删除原上传文件
|
||||
FileUnZip.deleteDir(saveDirectory);
|
||||
return Result.error("压缩包内有多个Excel数据源");
|
||||
}
|
||||
File excelfile = excelfilelist.get(0);
|
||||
// 导入参数设置,默认即可
|
||||
ImportParams params = new ImportParams();
|
||||
try {
|
||||
String fields[] = {"条款号", "条款名称","条款内容","新车型实施日期",
|
||||
"在产车实施日期","关联零部件","适用车型","引用标准","备注","关联文件"};
|
||||
params.setImportFields(fields);
|
||||
List<SarFileSplitItemsImportDto> result = new ArrayList<>();
|
||||
// 解析excel,并返回校验信息
|
||||
result = ExcelImportUtil.importExcel(excelfile, SarFileSplitItemsImportDto.class, params);
|
||||
Long getExcelInfo = System.currentTimeMillis();
|
||||
//excel读取到的数据
|
||||
List<SarFileSplitItemsImportDto> datas = result;
|
||||
if(datas!=null &&!datas.isEmpty()){
|
||||
try {
|
||||
//获取全部sheet页中表格
|
||||
XSSFWorkbook workbook=new XSSFWorkbook(new FileInputStream(excelfile));
|
||||
XSSFSheet sheet=null;
|
||||
List<SplitTableInfo> getSheetTableList = new ArrayList();
|
||||
for (int i = 1; i < workbook.getNumberOfSheets(); i++) {//获取每个Sheet表
|
||||
sheet = workbook.getSheetAt(i);
|
||||
SplitTableInfo splitTableInfo = new SplitTableInfo();
|
||||
splitTableInfo.setTableName(sheet.getSheetName());
|
||||
String tableHtml = POIReadExcelToHtml.readExcelToHtml(workbook,i,false);
|
||||
splitTableInfo.setTableHtml(tableHtml);
|
||||
getSheetTableList.add(splitTableInfo);
|
||||
}
|
||||
int i = 0 ;
|
||||
List<SarFileSplitItemsImportDto> datasUpdate = new ArrayList<>();
|
||||
//2019.05.14 当读取exceL出现空行过多时,空行数为20以上时中断读取,将数据清洗为新的list
|
||||
for(SarFileSplitItemsImportDto sarStandImportDto :datas){
|
||||
if(i>20){
|
||||
break;
|
||||
}
|
||||
//判断此行数据是否全部为空
|
||||
if(checkObjAllFieldsIsNull(sarStandImportDto)){
|
||||
i++;
|
||||
//是则不读取
|
||||
continue;
|
||||
}
|
||||
i = 0;
|
||||
datasUpdate.add(sarStandImportDto);
|
||||
}
|
||||
String unzipfilepath = zipEntryName;
|
||||
Result<?> message = sarFileSplitItemsEOService.importSplitItems(datasUpdate,menuId,unzipfilepath,infoId,getSheetTableList);
|
||||
//删除原上传文件
|
||||
FileUnZip.deleteDir(saveDirectory);
|
||||
return message;
|
||||
} catch (Exception e) {
|
||||
//删除原上传文件
|
||||
FileUnZip.deleteDir(saveDirectory);
|
||||
return Result.error(e.getMessage());
|
||||
}
|
||||
}else{
|
||||
//删除原上传文件
|
||||
FileUnZip.deleteDir(saveDirectory);
|
||||
return Result.error("没有可导入的数据,请检查!");
|
||||
}
|
||||
} catch (NoSuchElementException e){
|
||||
FileUnZip.deleteDir(saveDirectory);
|
||||
return Result.error("没有可导入的数据,请检查!");
|
||||
} catch (Exception e) {
|
||||
//删除原上传文件
|
||||
FileUnZip.deleteDir(saveDirectory);
|
||||
return Result.error( "读取失败,请严格按照模板文件导入数据");
|
||||
}
|
||||
} catch (Exception e) {
|
||||
//删除原上传文件
|
||||
FileUnZip.deleteDir(saveDirectory);
|
||||
return Result.error("读取失败,请严格按照模板文件导入数据");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
+108
@@ -0,0 +1,108 @@
|
||||
package com.jero.modules.split.controller;
|
||||
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.jero.common.api.vo.Result;
|
||||
import com.jero.common.system.base.controller.JeroController;
|
||||
import com.jero.modules.oss.entity.OSSFile;
|
||||
import com.jero.modules.oss.service.IOSSFileService;
|
||||
import com.jero.modules.split.entity.SarFileSplitItemsFileEO;
|
||||
import com.jero.modules.split.page.SarFileSplitItemsFileEOPage;
|
||||
import com.jero.modules.split.service.ISarFileSplitItemsFileEOService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import static org.springframework.http.MediaType.APPLICATION_JSON_UTF8_VALUE;
|
||||
|
||||
@RestController
|
||||
@RequestMapping("/split/sarFileSplitItemsFile")
|
||||
@Api(tags = "文档拆分")
|
||||
public class SarFileSplitItemsFileEOController extends JeroController<SarFileSplitItemsFileEO, ISarFileSplitItemsFileEOService> {
|
||||
|
||||
private static final Logger logger = LoggerFactory.getLogger(SarFileSplitItemsFileEOController.class);
|
||||
|
||||
@Autowired
|
||||
private ISarFileSplitItemsFileEOService sarFileSplitItemsFileEOService;
|
||||
|
||||
@Autowired
|
||||
private IOSSFileService ossFileService;
|
||||
|
||||
@ApiOperation(value = "|SarFileSplitItemsFileEO|分页查询")
|
||||
@GetMapping("/page")
|
||||
@RequiresPermissions("lawss:sarFileSplitItemsFile:page")
|
||||
public Result<IPage<SarFileSplitItemsFileEO>> page(SarFileSplitItemsFileEOPage page) throws Exception {
|
||||
List<SarFileSplitItemsFileEO> rows = sarFileSplitItemsFileEOService.queryByPage(page);
|
||||
IPage<SarFileSplitItemsFileEO> pageList = null;
|
||||
pageList.setRecords(rows);
|
||||
pageList.setCurrent(page.getPage());
|
||||
pageList.setSize(page.getPageSize());
|
||||
pageList.setTotal(sarFileSplitItemsFileEOService.queryByCount(page));
|
||||
return Result.OK(pageList);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|SarFileSplitItemsFileEO|查询")
|
||||
@GetMapping("")
|
||||
@RequiresPermissions("lawss:sarFileSplitItemsFile:list")
|
||||
public Result<List<SarFileSplitItemsFileEO>> list(SarFileSplitItemsFileEOPage page) throws Exception {
|
||||
return Result.OK(sarFileSplitItemsFileEOService.queryByList(page));
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|SarFileSplitItemsFileEO|详情")
|
||||
@GetMapping("/{id}")
|
||||
@RequiresPermissions("lawss:sarFileSplitItemsFile:get")
|
||||
public Result<SarFileSplitItemsFileEO> find(@PathVariable String id) throws Exception {
|
||||
return Result.OK(sarFileSplitItemsFileEOService.selectByPrimaryKey(id));
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|SarFileSplitItemsFileEO|新增")
|
||||
@PostMapping(consumes = APPLICATION_JSON_UTF8_VALUE)
|
||||
@RequiresPermissions("lawss:sarFileSplitItemsFile:save")
|
||||
public Result<SarFileSplitItemsFileEO> create(@RequestBody SarFileSplitItemsFileEO sarFileSplitItemsFileEO) throws Exception {
|
||||
sarFileSplitItemsFileEOService.insertSelective(sarFileSplitItemsFileEO);
|
||||
return Result.OK(sarFileSplitItemsFileEO);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|SarFileSplitItemsFileEO|修改")
|
||||
@PutMapping(consumes = APPLICATION_JSON_UTF8_VALUE)
|
||||
@RequiresPermissions("lawss:sarFileSplitItemsFile:update")
|
||||
public Result<SarFileSplitItemsFileEO> update(@RequestBody SarFileSplitItemsFileEO sarFileSplitItemsFileEO) throws Exception {
|
||||
sarFileSplitItemsFileEOService.updateByPrimaryKeySelective(sarFileSplitItemsFileEO);
|
||||
return Result.OK(sarFileSplitItemsFileEO);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|SarFileSplitItemsFileEO|删除")
|
||||
@DeleteMapping("/{id}")
|
||||
@RequiresPermissions("lawss:sarFileSplitItemsFile:delete")
|
||||
public Result delete(@PathVariable String id) throws Exception {
|
||||
sarFileSplitItemsFileEOService.deleteByPrimaryKey(id);
|
||||
logger.info("delete from SAR_FILE_SPLIT_ITEMS_FILE where id = {}", id);
|
||||
return Result.OK();
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|SarFileSplitItemsFileEO|查询转换后的文档详情")
|
||||
@GetMapping("/queryConvertAtt")
|
||||
/*@RequiresPermissions("lawss:sarLawsFile:list")*/
|
||||
public Result<SarFileSplitItemsFileEO> queryConvertAtt(String attId) throws Exception {
|
||||
List<SarFileSplitItemsFileEO> getList = sarFileSplitItemsFileEOService.selectFileByAttId(attId);
|
||||
SarFileSplitItemsFileEO sarBussStandFileEO = new SarFileSplitItemsFileEO();
|
||||
if(getList != null && !getList.isEmpty()){
|
||||
sarBussStandFileEO = getList.get(0);
|
||||
OSSFile ossFile = ossFileService.getById(attId);
|
||||
if(ossFile != null){
|
||||
sarBussStandFileEO.setFileOldName(ossFile.getFileName());
|
||||
}
|
||||
// readStandOrLawsLogService.sendReadSOLLog("STAND",sarBussStandFileEO);
|
||||
return Result.OK(sarBussStandFileEO);
|
||||
} else {
|
||||
return Result.OK(null);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
+83
@@ -0,0 +1,83 @@
|
||||
package com.jero.modules.split.controller;
|
||||
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.jero.common.api.vo.Result;
|
||||
import com.jero.common.system.base.controller.JeroController;
|
||||
import com.jero.modules.split.entity.SarFileSplitItemsParamsEO;
|
||||
import com.jero.modules.split.page.SarFileSplitItemsParamsEOPage;
|
||||
import com.jero.modules.split.service.ISarFileSplitItemsParamsEOService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import static org.springframework.http.MediaType.APPLICATION_JSON_UTF8_VALUE;
|
||||
|
||||
@RestController
|
||||
@RequestMapping("/split/sarFileSplitItemsParams")
|
||||
@Api(tags = "文档拆分")
|
||||
public class SarFileSplitItemsParamsEOController extends JeroController<SarFileSplitItemsParamsEO, ISarFileSplitItemsParamsEOService> {
|
||||
|
||||
private static final Logger logger = LoggerFactory.getLogger(SarFileSplitItemsParamsEOController.class);
|
||||
|
||||
@Autowired
|
||||
private ISarFileSplitItemsParamsEOService sarFileSplitItemsParamsEOService;
|
||||
|
||||
@ApiOperation(value = "|SarFileSplitItemsParamsEO|分页查询")
|
||||
@GetMapping("/page")
|
||||
@RequiresPermissions("lawss:sarFileSplitItemsParams:page")
|
||||
public Result<IPage<SarFileSplitItemsParamsEO>> page(SarFileSplitItemsParamsEOPage page) throws Exception {
|
||||
List<SarFileSplitItemsParamsEO> rows = sarFileSplitItemsParamsEOService.queryByPage(page);
|
||||
IPage<SarFileSplitItemsParamsEO> pageList = null;
|
||||
pageList.setRecords(rows);
|
||||
pageList.setCurrent(page.getPage());
|
||||
pageList.setSize(page.getPageSize());
|
||||
pageList.setTotal(sarFileSplitItemsParamsEOService.queryByCount(page));
|
||||
return Result.OK(pageList);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|SarFileSplitItemsParamsEO|查询")
|
||||
@GetMapping("")
|
||||
@RequiresPermissions("lawss:sarFileSplitItemsParams:list")
|
||||
public Result<List<SarFileSplitItemsParamsEO>> list(SarFileSplitItemsParamsEOPage page) throws Exception {
|
||||
return Result.OK(sarFileSplitItemsParamsEOService.queryByList(page));
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|SarFileSplitItemsParamsEO|详情")
|
||||
@GetMapping("/{id}")
|
||||
@RequiresPermissions("lawss:sarFileSplitItemsParams:get")
|
||||
public Result<SarFileSplitItemsParamsEO> find(@PathVariable String id) throws Exception {
|
||||
return Result.OK(sarFileSplitItemsParamsEOService.selectByPrimaryKey(id));
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|SarFileSplitItemsParamsEO|新增")
|
||||
@PostMapping(consumes = APPLICATION_JSON_UTF8_VALUE)
|
||||
@RequiresPermissions("lawss:sarFileSplitItemsParams:save")
|
||||
public Result<SarFileSplitItemsParamsEO> create(@RequestBody SarFileSplitItemsParamsEO sarFileSplitItemsParamsEO) throws Exception {
|
||||
sarFileSplitItemsParamsEOService.insertSelective(sarFileSplitItemsParamsEO);
|
||||
return Result.OK(sarFileSplitItemsParamsEO);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|SarFileSplitItemsParamsEO|修改")
|
||||
@PutMapping(consumes = APPLICATION_JSON_UTF8_VALUE)
|
||||
@RequiresPermissions("lawss:sarFileSplitItemsParams:update")
|
||||
public Result<SarFileSplitItemsParamsEO> update(@RequestBody SarFileSplitItemsParamsEO sarFileSplitItemsParamsEO) throws Exception {
|
||||
sarFileSplitItemsParamsEOService.updateByPrimaryKeySelective(sarFileSplitItemsParamsEO);
|
||||
return Result.OK(sarFileSplitItemsParamsEO);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|SarFileSplitItemsParamsEO|删除")
|
||||
@DeleteMapping("/{id}")
|
||||
@RequiresPermissions("lawss:sarFileSplitItemsParams:delete")
|
||||
public Result delete(@PathVariable String id) throws Exception {
|
||||
sarFileSplitItemsParamsEOService.deleteByPrimaryKey(id);
|
||||
logger.info("delete from SAR_FILE_SPLIT_ITEMS_PARAMS where id = {}", id);
|
||||
return Result.OK();
|
||||
}
|
||||
|
||||
}
|
||||
+83
@@ -0,0 +1,83 @@
|
||||
package com.jero.modules.split.controller;
|
||||
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.jero.common.api.vo.Result;
|
||||
import com.jero.common.system.base.controller.JeroController;
|
||||
import com.jero.modules.split.entity.SarFileSplitItemsResEO;
|
||||
import com.jero.modules.split.page.SarFileSplitItemsResEOPage;
|
||||
import com.jero.modules.split.service.ISarFileSplitItemsResEOService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import static org.springframework.http.MediaType.APPLICATION_JSON_UTF8_VALUE;
|
||||
|
||||
@RestController
|
||||
@RequestMapping("/split/sarFileSplitItemsRes")
|
||||
@Api(tags = "文档拆分")
|
||||
public class SarFileSplitItemsResEOController extends JeroController<SarFileSplitItemsResEO, ISarFileSplitItemsResEOService> {
|
||||
|
||||
private static final Logger logger = LoggerFactory.getLogger(SarFileSplitItemsResEOController.class);
|
||||
|
||||
@Autowired
|
||||
private ISarFileSplitItemsResEOService sarFileSplitItemsResEOService;
|
||||
|
||||
@ApiOperation(value = "|SarFileSplitItemsResEO|分页查询")
|
||||
@GetMapping("/page")
|
||||
@RequiresPermissions("lawss:sarFileSplitItemsRes:page")
|
||||
public Result<IPage<SarFileSplitItemsResEO>> page(SarFileSplitItemsResEOPage page) throws Exception {
|
||||
List<SarFileSplitItemsResEO> rows = sarFileSplitItemsResEOService.queryByPage(page);
|
||||
IPage<SarFileSplitItemsResEO> pageList = null;
|
||||
pageList.setRecords(rows);
|
||||
pageList.setCurrent(page.getPage());
|
||||
pageList.setSize(page.getPageSize());
|
||||
pageList.setTotal(sarFileSplitItemsResEOService.queryByCount(page));
|
||||
return Result.OK(pageList);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|SarFileSplitItemsResEO|查询")
|
||||
@GetMapping("")
|
||||
@RequiresPermissions("lawss:sarFileSplitItemsRes:list")
|
||||
public Result<List<SarFileSplitItemsResEO>> list(SarFileSplitItemsResEOPage page) throws Exception {
|
||||
return Result.OK(sarFileSplitItemsResEOService.queryByList(page));
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|SarFileSplitItemsResEO|详情")
|
||||
@GetMapping("/{id}")
|
||||
@RequiresPermissions("lawss:sarFileSplitItemsRes:get")
|
||||
public Result<SarFileSplitItemsResEO> find(@PathVariable String id) throws Exception {
|
||||
return Result.OK(sarFileSplitItemsResEOService.selectByPrimaryKey(id));
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|SarFileSplitItemsResEO|新增")
|
||||
@PostMapping(consumes = APPLICATION_JSON_UTF8_VALUE)
|
||||
@RequiresPermissions("lawss:sarFileSplitItemsRes:save")
|
||||
public Result<SarFileSplitItemsResEO> create(@RequestBody SarFileSplitItemsResEO sarFileSplitItemsResEO) throws Exception {
|
||||
sarFileSplitItemsResEOService.insertSelective(sarFileSplitItemsResEO);
|
||||
return Result.OK(sarFileSplitItemsResEO);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|SarFileSplitItemsResEO|修改")
|
||||
@PutMapping(consumes = APPLICATION_JSON_UTF8_VALUE)
|
||||
@RequiresPermissions("lawss:sarFileSplitItemsRes:update")
|
||||
public Result<SarFileSplitItemsResEO> update(@RequestBody SarFileSplitItemsResEO sarFileSplitItemsResEO) throws Exception {
|
||||
sarFileSplitItemsResEOService.updateByPrimaryKeySelective(sarFileSplitItemsResEO);
|
||||
return Result.OK(sarFileSplitItemsResEO);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|SarFileSplitItemsResEO|删除")
|
||||
@DeleteMapping("/{id}")
|
||||
@RequiresPermissions("lawss:sarFileSplitItemsRes:delete")
|
||||
public Result delete(@PathVariable String id) throws Exception {
|
||||
sarFileSplitItemsResEOService.deleteByPrimaryKey(id);
|
||||
logger.info("delete from SAR_FILE_SPLIT_ITEMS_RES where id = {}", id);
|
||||
return Result.OK();
|
||||
}
|
||||
|
||||
}
|
||||
+83
@@ -0,0 +1,83 @@
|
||||
package com.jero.modules.split.controller;
|
||||
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.jero.common.api.vo.Result;
|
||||
import com.jero.common.system.base.controller.JeroController;
|
||||
import com.jero.modules.split.entity.SarFileSplitItemsTableEO;
|
||||
import com.jero.modules.split.page.SarFileSplitItemsTableEOPage;
|
||||
import com.jero.modules.split.service.ISarFileSplitItemsTableEOService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import static org.springframework.http.MediaType.APPLICATION_JSON_UTF8_VALUE;
|
||||
|
||||
@RestController
|
||||
@RequestMapping("/split/sarFileSplitItemsTable")
|
||||
@Api(tags = "文档拆分")
|
||||
public class SarFileSplitItemsTableEOController extends JeroController<SarFileSplitItemsTableEO, ISarFileSplitItemsTableEOService> {
|
||||
|
||||
private static final Logger logger = LoggerFactory.getLogger(SarFileSplitItemsTableEOController.class);
|
||||
|
||||
@Autowired
|
||||
private ISarFileSplitItemsTableEOService sarFileSplitItemsTableEOService;
|
||||
|
||||
@ApiOperation(value = "|SarFileSplitItemsTableEO|分页查询")
|
||||
@GetMapping("/page")
|
||||
@RequiresPermissions("lawss:sarFileSplitItemsTable:page")
|
||||
public Result<IPage<SarFileSplitItemsTableEO>> page(SarFileSplitItemsTableEOPage page) throws Exception {
|
||||
List<SarFileSplitItemsTableEO> rows = sarFileSplitItemsTableEOService.queryByPage(page);
|
||||
IPage<SarFileSplitItemsTableEO> pageList = null;
|
||||
pageList.setRecords(rows);
|
||||
pageList.setCurrent(page.getPage());
|
||||
pageList.setSize(page.getPageSize());
|
||||
pageList.setTotal(sarFileSplitItemsTableEOService.queryByCount(page));
|
||||
return Result.OK(pageList);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|SarFileSplitItemsTableEO|查询")
|
||||
@GetMapping("")
|
||||
@RequiresPermissions("lawss:sarFileSplitItemsTable:list")
|
||||
public Result<List<SarFileSplitItemsTableEO>> list(SarFileSplitItemsTableEOPage page) throws Exception {
|
||||
return Result.OK(sarFileSplitItemsTableEOService.queryByList(page));
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|SarFileSplitItemsTableEO|详情")
|
||||
@GetMapping("/{id}")
|
||||
@RequiresPermissions("lawss:sarFileSplitItemsTable:get")
|
||||
public Result<SarFileSplitItemsTableEO> find(@PathVariable String id) throws Exception {
|
||||
return Result.OK(sarFileSplitItemsTableEOService.selectByPrimaryKey(id));
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|SarFileSplitItemsTableEO|新增")
|
||||
@PostMapping(consumes = APPLICATION_JSON_UTF8_VALUE)
|
||||
@RequiresPermissions("lawss:sarFileSplitItemsTable:save")
|
||||
public Result<SarFileSplitItemsTableEO> create(@RequestBody SarFileSplitItemsTableEO sarFileSplitItemsTableEO) throws Exception {
|
||||
sarFileSplitItemsTableEOService.insertSelective(sarFileSplitItemsTableEO);
|
||||
return Result.OK(sarFileSplitItemsTableEO);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|SarFileSplitItemsTableEO|修改")
|
||||
@PutMapping(consumes = APPLICATION_JSON_UTF8_VALUE)
|
||||
@RequiresPermissions("lawss:sarFileSplitItemsTable:update")
|
||||
public Result<SarFileSplitItemsTableEO> update(@RequestBody SarFileSplitItemsTableEO sarFileSplitItemsTableEO) throws Exception {
|
||||
sarFileSplitItemsTableEOService.updateByPrimaryKeySelective(sarFileSplitItemsTableEO);
|
||||
return Result.OK(sarFileSplitItemsTableEO);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|SarFileSplitItemsTableEO|删除")
|
||||
@DeleteMapping("/{id}")
|
||||
@RequiresPermissions("lawss:sarFileSplitItemsTable:delete")
|
||||
public Result delete(@PathVariable String id) throws Exception {
|
||||
sarFileSplitItemsTableEOService.deleteByPrimaryKey(id);
|
||||
logger.info("delete from SAR_FILE_SPLIT_ITEMS_TABLE where id = {}", id);
|
||||
return Result.OK();
|
||||
}
|
||||
|
||||
}
|
||||
+132
@@ -0,0 +1,132 @@
|
||||
package com.jero.modules.split.controller;
|
||||
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.jero.common.api.vo.Result;
|
||||
import com.jero.common.system.base.controller.JeroController;
|
||||
import com.jero.modules.split.entity.SarFileSplitItemsValEO;
|
||||
import com.jero.modules.split.page.SarFileSplitItemsValEOPage;
|
||||
import com.jero.modules.split.service.ISarFileSplitItemsEOService;
|
||||
import com.jero.modules.split.service.ISarFileSplitItemsTableEOService;
|
||||
import com.jero.modules.split.service.ISarFileSplitItemsValEOService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import static org.springframework.http.MediaType.APPLICATION_JSON_UTF8_VALUE;
|
||||
|
||||
@RestController
|
||||
@RequestMapping("/split/sarFileSplitItemsVal")
|
||||
@Api(tags = "文档拆分条目信息")
|
||||
public class SarFileSplitItemsValEOController extends JeroController<SarFileSplitItemsValEO, ISarFileSplitItemsValEOService> {
|
||||
|
||||
private static final Logger logger = LoggerFactory.getLogger(SarFileSplitItemsValEOController.class);
|
||||
|
||||
@Autowired
|
||||
private ISarFileSplitItemsValEOService sarFileSplitItemsValEOService;
|
||||
|
||||
@Autowired
|
||||
private ISarFileSplitItemsTableEOService sarFileSplitItemsTableEOService;
|
||||
|
||||
@Autowired
|
||||
private ISarFileSplitItemsEOService sarFileSplitItemsEOService;
|
||||
|
||||
@ApiOperation(value = "|SarFileSplitItemsValEO|分页查询")
|
||||
@GetMapping("/page")
|
||||
@RequiresPermissions("lawss:sarFileSplitItemsVal:page")
|
||||
public Result<IPage<SarFileSplitItemsValEO>> page(SarFileSplitItemsValEOPage page) throws Exception {
|
||||
List<SarFileSplitItemsValEO> rows = sarFileSplitItemsValEOService.queryByPage(page);
|
||||
IPage<SarFileSplitItemsValEO> pageList = null;
|
||||
pageList.setRecords(rows);
|
||||
pageList.setCurrent(page.getPage());
|
||||
pageList.setSize(page.getPageSize());
|
||||
pageList.setTotal(sarFileSplitItemsValEOService.queryByCount(page));
|
||||
return Result.OK(pageList);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|SarFileSplitItemsValEO|查询")
|
||||
@GetMapping("/getItemsValList")
|
||||
// @RequiresPermissions("lawss:sarFileSplitItemsVal:list")
|
||||
public Result<List<SarFileSplitItemsValEO>> list(SarFileSplitItemsValEOPage page) throws Exception {
|
||||
page.setOrderBy("DISPLAY_SEQ,ID");
|
||||
List<SarFileSplitItemsValEO> getList = sarFileSplitItemsValEOService.queryByList(page);
|
||||
if (getList != null && !getList.isEmpty()) {
|
||||
for (SarFileSplitItemsValEO sarFileSplitItemsValEO : getList) {
|
||||
String imgPath = sarFileSplitItemsValEO.getItemContent();
|
||||
if ("IMG".equals(sarFileSplitItemsValEO.getType()) && StringUtils.isNotEmpty(imgPath)) {
|
||||
String imgName = imgPath.substring(imgPath.lastIndexOf("/")+1, imgPath.length());
|
||||
// String imgName = imgPath.substring(imgPath.lastIndexOf("/")+1, imgPath.lastIndexOf("’"));
|
||||
sarFileSplitItemsValEO.setImgName(imgName);
|
||||
}
|
||||
/*else if ("TABLE".equals(sarFileSplitItemsValEO.getType())) {
|
||||
SarFileSplitItemsTableEOPage tablePage = new SarFileSplitItemsTableEOPage();
|
||||
tablePage.setItemsValId(sarFileSplitItemsValEO.getId());
|
||||
List<SarFileSplitItemsTableEO> tableList = sarFileSplitItemsTableEOService.queryByList(tablePage);
|
||||
List<SarFileSplitItemsTableEO> tableListRow = sarFileSplitItemsTableEOService.queryByRowNum(tablePage);
|
||||
sarFileSplitItemsValEO.setTableList(tableList);
|
||||
if (tableListRow != null && !tableListRow.isEmpty()) {
|
||||
List<List<SarFileSplitItemsTableEO>> getTableList = new ArrayList<>();
|
||||
for (int i=1; i <= tableListRow.size();i++) {
|
||||
List<SarFileSplitItemsTableEO> rowList = new ArrayList<>();
|
||||
for (int j=0; j < tableList.size();j++) {
|
||||
if (tableList.get(j).getRowNum() == i) {
|
||||
rowList.add(tableList.get(j));
|
||||
}
|
||||
}
|
||||
getTableList.add(rowList);
|
||||
}
|
||||
sarFileSplitItemsValEO.setTableListShow(getTableList);
|
||||
}
|
||||
}*/
|
||||
}
|
||||
}
|
||||
return Result.OK(getList);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|SarFileSplitItemsValEO|详情")
|
||||
@GetMapping("/{id}")
|
||||
@RequiresPermissions("lawss:sarFileSplitItemsVal:get")
|
||||
public Result<SarFileSplitItemsValEO> find(@PathVariable String id) throws Exception {
|
||||
return Result.OK(sarFileSplitItemsValEOService.selectByPrimaryKey(id));
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|SarFileSplitItemsValEO|新增")
|
||||
@PostMapping(consumes = APPLICATION_JSON_UTF8_VALUE)
|
||||
@RequiresPermissions("lawss:sarFileSplitItemsVal:save")
|
||||
public Result<SarFileSplitItemsValEO> create(@RequestBody SarFileSplitItemsValEO sarFileSplitItemsValEO) throws Exception {
|
||||
sarFileSplitItemsValEOService.insertSelective(sarFileSplitItemsValEO);
|
||||
return Result.OK(sarFileSplitItemsValEO);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|SarFileSplitItemsValEO|修改")
|
||||
@PutMapping(consumes = APPLICATION_JSON_UTF8_VALUE)
|
||||
@RequiresPermissions("lawss:sarFileSplitItemsVal:update")
|
||||
public Result<SarFileSplitItemsValEO> update(@RequestBody SarFileSplitItemsValEO sarFileSplitItemsValEO) throws Exception {
|
||||
sarFileSplitItemsValEOService.updateByPrimaryKeySelective(sarFileSplitItemsValEO);
|
||||
return Result.OK(sarFileSplitItemsValEO);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|SarFileSplitItemsValEO|删除")
|
||||
@DeleteMapping("/{id}")
|
||||
@RequiresPermissions("lawss:sarFileSplitItemsVal:delete")
|
||||
public Result delete(@PathVariable String id) throws Exception {
|
||||
sarFileSplitItemsValEOService.deleteByPrimaryKey(id);
|
||||
logger.info("delete from SAR_FILE_SPLIT_ITEMS_VAL where id = {}", id);
|
||||
return Result.OK();
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|SarFileSplitItemsEO|根据目录查询")
|
||||
@GetMapping("/getSplitItemsByMenu")
|
||||
// @RequiresPermissions("lawss:sarFileSplitItems:page")
|
||||
public Result<List<SarFileSplitItemsValEO>> getSplitItemsByMenu(String menuId, String infoId) throws Exception {
|
||||
List<SarFileSplitItemsValEO> getList = sarFileSplitItemsValEOService.getSplitItemsByMenu(menuId,infoId);
|
||||
return Result.OK(getList);
|
||||
}
|
||||
|
||||
}
|
||||
+152
@@ -0,0 +1,152 @@
|
||||
package com.jero.modules.split.controller;
|
||||
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.jero.common.api.vo.Result;
|
||||
import com.jero.common.system.base.controller.JeroController;
|
||||
import com.jero.modules.split.entity.DrageMenuEO;
|
||||
import com.jero.modules.split.entity.SarFileSplitItemsEO;
|
||||
import com.jero.modules.split.entity.SarFileSplitMenuEO;
|
||||
import com.jero.modules.split.mapper.SarFileSplitItemsEOMapper;
|
||||
import com.jero.modules.split.page.SarFileSplitMenuEOPage;
|
||||
import com.jero.modules.split.service.ISarFileSplitMenuEOService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
@RestController
|
||||
@RequestMapping("/split/sarFileSplitMenu")
|
||||
@Api(tags = "文档拆分条款目录")
|
||||
public class SarFileSplitMenuEOController extends JeroController<SarFileSplitMenuEO, ISarFileSplitMenuEOService> {
|
||||
|
||||
private static final Logger logger = LoggerFactory.getLogger(SarFileSplitMenuEOController.class);
|
||||
|
||||
@Autowired
|
||||
private ISarFileSplitMenuEOService sarFileSplitMenuEOService;
|
||||
|
||||
@Autowired
|
||||
private SarFileSplitItemsEOMapper sarFileSplitItemsEOMapper;
|
||||
|
||||
@ApiOperation(value = "|SarFileSplitMenuEO|分页查询")
|
||||
@GetMapping("/page")
|
||||
@RequiresPermissions("lawss:sarFileSplitMenu:page")
|
||||
public Result<IPage<SarFileSplitMenuEO>> page(SarFileSplitMenuEOPage page) throws Exception {
|
||||
List<SarFileSplitMenuEO> rows = sarFileSplitMenuEOService.queryByPage(page);
|
||||
IPage<SarFileSplitMenuEO> pageList = null;
|
||||
pageList.setRecords(rows);
|
||||
pageList.setCurrent(page.getPage());
|
||||
pageList.setSize(page.getPageSize());
|
||||
pageList.setTotal(sarFileSplitMenuEOService.queryByCount(page));
|
||||
return Result.OK(pageList);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|SarFileSplitMenuEO|查询")
|
||||
@GetMapping("getSplitMenusByInfoId")
|
||||
//@RequiresPermissions("lawss:sarFileSplitMenu:list")
|
||||
public Result<List<SarFileSplitMenuEO>> list(SarFileSplitMenuEOPage page) throws Exception {
|
||||
page.setValidFlag("0");
|
||||
// page.setOrderBy("regexp_replace(replace('.'||NAME, '.', '.00000000'), '0+([^\\.]{8})', '\\1')");
|
||||
page.setOrderBy("display_seq asc");
|
||||
List<SarFileSplitMenuEO> getList = sarFileSplitMenuEOService.queryByList(page);
|
||||
return Result.OK(getList);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|SarFileSplitMenuEO|详情")
|
||||
@GetMapping("/{id}")
|
||||
@RequiresPermissions("lawss:sarFileSplitMenu:get")
|
||||
public Result<SarFileSplitMenuEO> find(@PathVariable String id) throws Exception {
|
||||
return Result.OK(sarFileSplitMenuEOService.selectByPrimaryKey(id));
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|SarFileSplitMenuEO|新增")
|
||||
@PostMapping("/addMenu")
|
||||
// @RequiresPermissions("lawss:sarFileSplitMenu:save")
|
||||
public Result<SarFileSplitMenuEO> create(SarFileSplitMenuEO sarFileSplitMenuEO) throws Exception {
|
||||
sarFileSplitMenuEOService.addMenu(sarFileSplitMenuEO);
|
||||
return Result.OK("新增成功",sarFileSplitMenuEO);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|SarFileSplitMenuEO|修改")
|
||||
@PutMapping("/updateMenu")
|
||||
// @RequiresPermissions("lawss:sarFileSplitMenu:update")
|
||||
public Result<SarFileSplitMenuEO> update(SarFileSplitMenuEO sarFileSplitMenuEO) throws Exception {
|
||||
sarFileSplitMenuEOService.updateByPrimaryKeySelective(sarFileSplitMenuEO);
|
||||
return Result.OK("修改成功",sarFileSplitMenuEO);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|SarFileSplitMenuEO|删除")
|
||||
@DeleteMapping("/deleteMenu")
|
||||
// @RequiresPermissions("lawss:sarFileSplitMenu:delete")
|
||||
public Result delete(String id) throws Exception {
|
||||
sarFileSplitMenuEOService.deleteMenu(id);
|
||||
return Result.OK("删除成功",null);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|SarFileSplitMenuEO|拖拽节点")
|
||||
@PostMapping("/dragMenu")
|
||||
public Result dragMenu(@RequestBody DrageMenuEO drageMenuEO) throws Exception {
|
||||
sarFileSplitMenuEOService.dragMenu(drageMenuEO);
|
||||
return Result.OK("修改成功",drageMenuEO);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "查询子节点")
|
||||
@PostMapping("/judgequeryMenuByPid")
|
||||
/*@RequiresPermissions("lawss:sarMenu:judgequeryMenuByPid")*/
|
||||
public Result<Boolean> judgequeryMenuByPid(SarFileSplitMenuEO sarMenuEO) throws Exception {
|
||||
return Result.OK(sarFileSplitMenuEOService.judgequeryMenuByPid(sarMenuEO));
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|SarFileSplitMenuEO|复制节点包括子节点")
|
||||
@PostMapping("/copyMenu")
|
||||
public Result copyMenu(@RequestBody SarFileSplitMenuEO sarMenuEO) throws Exception {
|
||||
int result = sarFileSplitMenuEOService.copyMenu(sarMenuEO);
|
||||
return Result.OK("复制成功",sarMenuEO);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|SarFileSplitMenuEO|复制节点不包括子节点")
|
||||
@PostMapping("/copyMenuNotChildren")
|
||||
public Result copyMenuNotChildren(@RequestBody SarFileSplitItemsEO sarFileSplitItemsEO) throws Exception {
|
||||
int result = sarFileSplitMenuEOService.copyMenuNotChildren(sarFileSplitItemsEO);
|
||||
return Result.OK("复制成功",sarFileSplitItemsEO);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "|SarFileSplitMenuEO|批量复制节点不包括子节点")
|
||||
@PostMapping("/copyMenuNotChildrenall")
|
||||
public Result<List<SarFileSplitItemsEO>> copyMenuNotChildrenall(@RequestParam(value = "ids",required = false) String ids,
|
||||
@RequestParam(value = "menuids",required = false) String menuids,
|
||||
@RequestParam(value = "infoIds",required = false) String infoIds) throws Exception {
|
||||
/*int result = sarFileSplitMenuEOService.copyMenuNotChildren(sarFileSplitItemsEO);
|
||||
return Result.OK("0","复制成功",sarFileSplitItemsEO);*/
|
||||
String idsl[] = ids.split(",");
|
||||
List<String> idlist =new ArrayList<>();
|
||||
idlist = Arrays.asList(idsl);
|
||||
|
||||
String menuidss[] = menuids.split(",");
|
||||
List<String> menuidslist =new ArrayList<>();
|
||||
menuidslist = Arrays.asList(menuidss);
|
||||
|
||||
|
||||
String infoIdss[] = infoIds.split(",");
|
||||
List<String> infoIdslist =new ArrayList<>();
|
||||
infoIdslist = Arrays.asList(infoIdss);
|
||||
List<SarFileSplitItemsEO> sarFileSplitItemsEOS = new ArrayList<>();
|
||||
for(int i=0;i<idlist.size();i++){
|
||||
SarFileSplitItemsEO sarFileSplitItemsEO = new SarFileSplitItemsEO();
|
||||
sarFileSplitItemsEO.setId(idlist.get(i));
|
||||
sarFileSplitItemsEO.setMenuId(menuidslist.get(i));
|
||||
sarFileSplitItemsEO.setInfoId(infoIdslist.get(i));
|
||||
int result = sarFileSplitMenuEOService.copyMenuNotChildren(sarFileSplitItemsEO);
|
||||
sarFileSplitItemsEO = sarFileSplitItemsEOMapper.selectByPrimaryKey(sarFileSplitItemsEO.getId());
|
||||
sarFileSplitItemsEOS.add(sarFileSplitItemsEO);
|
||||
}
|
||||
|
||||
return Result.OK("复制成功",sarFileSplitItemsEOS);
|
||||
}
|
||||
}
|
||||
+43
@@ -0,0 +1,43 @@
|
||||
package com.jero.modules.split.dto;
|
||||
|
||||
import com.jero.modules.split.entity.SarFileSplitItemsTableEO;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Description:
|
||||
* @Author: yangxuenan
|
||||
* date: 2020/2/14 10:06
|
||||
*/
|
||||
public class FileSpiltValTableExportDto {
|
||||
|
||||
private String tableName;
|
||||
|
||||
private List<List<SarFileSplitItemsTableEO>> tableEOList;
|
||||
|
||||
private String tableHtCon;
|
||||
|
||||
public String getTableName() {
|
||||
return tableName;
|
||||
}
|
||||
|
||||
public void setTableName(String tableName) {
|
||||
this.tableName = tableName;
|
||||
}
|
||||
|
||||
public List<List<SarFileSplitItemsTableEO>> getTableEOList() {
|
||||
return tableEOList;
|
||||
}
|
||||
|
||||
public void setTableEOList(List<List<SarFileSplitItemsTableEO>> tableEOList) {
|
||||
this.tableEOList = tableEOList;
|
||||
}
|
||||
|
||||
public String getTableHtCon() {
|
||||
return tableHtCon;
|
||||
}
|
||||
|
||||
public void setTableHtCon(String tableHtCon) {
|
||||
this.tableHtCon = tableHtCon;
|
||||
}
|
||||
}
|
||||
+138
@@ -0,0 +1,138 @@
|
||||
package com.jero.modules.split.dto;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Description:
|
||||
* @Author: yangxuenan
|
||||
* date: 2020/2/13 9:48
|
||||
*/
|
||||
public class FileSplitItemsExportDto {
|
||||
private String id;
|
||||
|
||||
private String itemsNum;
|
||||
|
||||
private String itemsName;
|
||||
|
||||
private String itermsConditions;
|
||||
|
||||
private String type;
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
|
||||
private Date newcarPutTime;
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
|
||||
private Date productPutTime;
|
||||
private String svpps;
|
||||
private String applyArctic;
|
||||
private String referenceStand;
|
||||
private String remarks;
|
||||
private String relevanceFile;
|
||||
|
||||
private List<FileSplitValExportDto> itemValContent;
|
||||
|
||||
public String getItemsNum() {
|
||||
return itemsNum;
|
||||
}
|
||||
|
||||
public void setItemsNum(String itemsNum) {
|
||||
this.itemsNum = itemsNum;
|
||||
}
|
||||
|
||||
public String getItemsName() {
|
||||
return itemsName;
|
||||
}
|
||||
|
||||
public void setItemsName(String itemsName) {
|
||||
this.itemsName = itemsName;
|
||||
}
|
||||
|
||||
public String getItermsConditions() {
|
||||
return itermsConditions;
|
||||
}
|
||||
|
||||
public void setItermsConditions(String itermsConditions) {
|
||||
this.itermsConditions = itermsConditions;
|
||||
}
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
public void setType(String type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public List<FileSplitValExportDto> getItemValContent() {
|
||||
return itemValContent;
|
||||
}
|
||||
|
||||
public void setItemValContent(List<FileSplitValExportDto> itemValContent) {
|
||||
this.itemValContent = itemValContent;
|
||||
}
|
||||
|
||||
public Date getNewcarPutTime() {
|
||||
return newcarPutTime;
|
||||
}
|
||||
|
||||
public void setNewcarPutTime(Date newcarPutTime) {
|
||||
this.newcarPutTime = newcarPutTime;
|
||||
}
|
||||
|
||||
public Date getProductPutTime() {
|
||||
return productPutTime;
|
||||
}
|
||||
|
||||
public void setProductPutTime(Date productPutTime) {
|
||||
this.productPutTime = productPutTime;
|
||||
}
|
||||
|
||||
public String getSvpps() {
|
||||
return svpps;
|
||||
}
|
||||
|
||||
public void setSvpps(String svpps) {
|
||||
this.svpps = svpps;
|
||||
}
|
||||
|
||||
public String getApplyArctic() {
|
||||
return applyArctic;
|
||||
}
|
||||
|
||||
public void setApplyArctic(String applyArctic) {
|
||||
this.applyArctic = applyArctic;
|
||||
}
|
||||
|
||||
public String getReferenceStand() {
|
||||
return referenceStand;
|
||||
}
|
||||
|
||||
public void setReferenceStand(String referenceStand) {
|
||||
this.referenceStand = referenceStand;
|
||||
}
|
||||
|
||||
public String getRemarks() {
|
||||
return remarks;
|
||||
}
|
||||
|
||||
public void setRemarks(String remarks) {
|
||||
this.remarks = remarks;
|
||||
}
|
||||
|
||||
public String getRelevanceFile() {
|
||||
return relevanceFile;
|
||||
}
|
||||
|
||||
public void setRelevanceFile(String relevanceFile) {
|
||||
this.relevanceFile = relevanceFile;
|
||||
}
|
||||
}
|
||||
+43
@@ -0,0 +1,43 @@
|
||||
package com.jero.modules.split.dto;
|
||||
|
||||
import com.jero.modules.split.entity.SarFileSplitItemsTableEO;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Description:
|
||||
* @Author: yangxuenan
|
||||
* date: 2020/2/14 9:18
|
||||
*/
|
||||
public class FileSplitValExportDto {
|
||||
|
||||
private String valType;
|
||||
|
||||
private String valContent;
|
||||
|
||||
private List<SarFileSplitItemsTableEO> tableEOList;
|
||||
|
||||
public String getValType() {
|
||||
return valType;
|
||||
}
|
||||
|
||||
public void setValType(String valType) {
|
||||
this.valType = valType;
|
||||
}
|
||||
|
||||
public String getValContent() {
|
||||
return valContent;
|
||||
}
|
||||
|
||||
public void setValContent(String valContent) {
|
||||
this.valContent = valContent;
|
||||
}
|
||||
|
||||
public List<SarFileSplitItemsTableEO> getTableEOList() {
|
||||
return tableEOList;
|
||||
}
|
||||
|
||||
public void setTableEOList(List<SarFileSplitItemsTableEO> tableEOList) {
|
||||
this.tableEOList = tableEOList;
|
||||
}
|
||||
}
|
||||
+29
@@ -0,0 +1,29 @@
|
||||
package com.jero.modules.split.dto;
|
||||
|
||||
/**
|
||||
* @Description:
|
||||
* @Author: yangxuenan
|
||||
* date: 2020/2/14 15:58
|
||||
*/
|
||||
public class FileSplitValImgExportDto {
|
||||
|
||||
private String imgName;
|
||||
|
||||
private String imgPath;
|
||||
|
||||
public String getImgName() {
|
||||
return imgName;
|
||||
}
|
||||
|
||||
public void setImgName(String imgName) {
|
||||
this.imgName = imgName;
|
||||
}
|
||||
|
||||
public String getImgPath() {
|
||||
return imgPath;
|
||||
}
|
||||
|
||||
public void setImgPath(String imgPath) {
|
||||
this.imgPath = imgPath;
|
||||
}
|
||||
}
|
||||
+132
@@ -0,0 +1,132 @@
|
||||
package com.jero.modules.split.dto;
|
||||
|
||||
import org.jeecgframework.poi.excel.annotation.Excel;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @Description:
|
||||
* @Author: yangxuenan
|
||||
* date: 2020/5/9 14:40
|
||||
*/
|
||||
public class SarFileSplitItemsImportDto {
|
||||
@Excel(name = "条款号", orderNum = "1")
|
||||
private String itemsNum;
|
||||
|
||||
@Excel(name = "条款名称", orderNum = "1")
|
||||
private String itemsName;
|
||||
|
||||
@Excel(name = "条款内容", orderNum = "1")
|
||||
private String itermsConditions;
|
||||
|
||||
@Excel(name = "新车型实施日期", orderNum = "1")
|
||||
private Date newcarPutTime;
|
||||
|
||||
@Excel(name = "在产车实施日期", orderNum = "1")
|
||||
private Date productPutTime;
|
||||
|
||||
@Excel(name = "关联零部件", orderNum = "1")
|
||||
private String svpps;
|
||||
|
||||
@Excel(name = "适用车型", orderNum = "1")
|
||||
private String applyArctic;
|
||||
|
||||
@Excel(name = "引用标准", orderNum = "1")
|
||||
private String referenceStand;
|
||||
|
||||
@Excel(name = "备注", orderNum = "1")
|
||||
private String remarks;
|
||||
|
||||
@Excel(name = "关联文件", orderNum = "1")
|
||||
private String relevanceFile;
|
||||
|
||||
private String relevanceFileName;
|
||||
|
||||
public String getItemsNum() {
|
||||
return itemsNum;
|
||||
}
|
||||
|
||||
public void setItemsNum(String itemsNum) {
|
||||
this.itemsNum = itemsNum;
|
||||
}
|
||||
|
||||
public String getItemsName() {
|
||||
return itemsName;
|
||||
}
|
||||
|
||||
public void setItemsName(String itemsName) {
|
||||
this.itemsName = itemsName;
|
||||
}
|
||||
|
||||
public String getItermsConditions() {
|
||||
return itermsConditions;
|
||||
}
|
||||
|
||||
public void setItermsConditions(String itermsConditions) {
|
||||
this.itermsConditions = itermsConditions;
|
||||
}
|
||||
|
||||
public String getRelevanceFile() {
|
||||
return relevanceFile;
|
||||
}
|
||||
|
||||
public void setRelevanceFile(String relevanceFile) {
|
||||
this.relevanceFile = relevanceFile;
|
||||
}
|
||||
|
||||
public Date getNewcarPutTime() {
|
||||
return newcarPutTime;
|
||||
}
|
||||
|
||||
public void setNewcarPutTime(Date newcarPutTime) {
|
||||
this.newcarPutTime = newcarPutTime;
|
||||
}
|
||||
|
||||
public Date getProductPutTime() {
|
||||
return productPutTime;
|
||||
}
|
||||
|
||||
public void setProductPutTime(Date productPutTime) {
|
||||
this.productPutTime = productPutTime;
|
||||
}
|
||||
|
||||
public String getSvpps() {
|
||||
return svpps;
|
||||
}
|
||||
|
||||
public void setSvpps(String svpps) {
|
||||
this.svpps = svpps;
|
||||
}
|
||||
|
||||
public String getApplyArctic() {
|
||||
return applyArctic;
|
||||
}
|
||||
|
||||
public void setApplyArctic(String applyArctic) {
|
||||
this.applyArctic = applyArctic;
|
||||
}
|
||||
|
||||
public String getReferenceStand() {
|
||||
return referenceStand;
|
||||
}
|
||||
|
||||
public void setReferenceStand(String referenceStand) {
|
||||
this.referenceStand = referenceStand;
|
||||
}
|
||||
|
||||
public String getRemarks() {
|
||||
return remarks;
|
||||
}
|
||||
|
||||
public void setRemarks(String remarks) {
|
||||
this.remarks = remarks;
|
||||
}
|
||||
|
||||
public String getRelevanceFileName() {
|
||||
return relevanceFileName;
|
||||
}
|
||||
|
||||
public void setRelevanceFileName(String relevanceFileName) {
|
||||
this.relevanceFileName = relevanceFileName;
|
||||
}
|
||||
}
|
||||
+85
@@ -0,0 +1,85 @@
|
||||
package com.jero.modules.split.entity;
|
||||
|
||||
/**
|
||||
* <b>功能:</b>MSG_BROWSE_INFO MsgBrowseInfoEOEntity<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2018-09-03 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
public class DrageMenuEO{
|
||||
|
||||
private String menuId;
|
||||
private String menuParentId;
|
||||
private Long menuDisplay;
|
||||
private String targetMenuId;
|
||||
private String targetParentId;
|
||||
private Long targetMenuDisplay;
|
||||
private String infoId;
|
||||
private String moveType;
|
||||
|
||||
public String getMenuId() {
|
||||
return menuId;
|
||||
}
|
||||
|
||||
public void setMenuId(String menuId) {
|
||||
this.menuId = menuId;
|
||||
}
|
||||
|
||||
public String getMenuParentId() {
|
||||
return menuParentId;
|
||||
}
|
||||
|
||||
public void setMenuParentId(String menuParentId) {
|
||||
this.menuParentId = menuParentId;
|
||||
}
|
||||
|
||||
|
||||
|
||||
public String getTargetMenuId() {
|
||||
return targetMenuId;
|
||||
}
|
||||
|
||||
public void setTargetMenuId(String targetMenuId) {
|
||||
this.targetMenuId = targetMenuId;
|
||||
}
|
||||
|
||||
public String getTargetParentId() {
|
||||
return targetParentId;
|
||||
}
|
||||
|
||||
public void setTargetParentId(String targetParentId) {
|
||||
this.targetParentId = targetParentId;
|
||||
}
|
||||
|
||||
public Long getMenuDisplay() {
|
||||
return menuDisplay;
|
||||
}
|
||||
|
||||
public void setMenuDisplay(Long menuDisplay) {
|
||||
this.menuDisplay = menuDisplay;
|
||||
}
|
||||
|
||||
public Long getTargetMenuDisplay() {
|
||||
return targetMenuDisplay;
|
||||
}
|
||||
|
||||
public void setTargetMenuDisplay(Long targetMenuDisplay) {
|
||||
this.targetMenuDisplay = targetMenuDisplay;
|
||||
}
|
||||
|
||||
public String getInfoId() {
|
||||
return infoId;
|
||||
}
|
||||
|
||||
public void setInfoId(String infoId) {
|
||||
this.infoId = infoId;
|
||||
}
|
||||
|
||||
public String getMoveType() {
|
||||
return moveType;
|
||||
}
|
||||
|
||||
public void setMoveType(String moveType) {
|
||||
this.moveType = moveType;
|
||||
}
|
||||
}
|
||||
+416
@@ -0,0 +1,416 @@
|
||||
package com.jero.modules.split.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* <b>功能:</b>SAR_FILE_SPLIT_ITEMS SarFileSplitItemsEOEntity<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2020-01-03 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
public class SarFileSplitItemsEO implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
private String id;
|
||||
private String infoId;
|
||||
private String itemsNum;
|
||||
private String itemsName;
|
||||
private String itermsConditions;
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date newcarPutTime;
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date productPutTime;
|
||||
private String menuId;
|
||||
private String svpps;
|
||||
private String applyArctic;
|
||||
private String referenceStand;
|
||||
private String specialRequest;
|
||||
private String relevanceFile;
|
||||
private String remarks;
|
||||
private Integer validFlag;
|
||||
private String creationUser;
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date creationTime;
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date modifyTime;
|
||||
private String modifyUser;
|
||||
private String[] infoIdList;
|
||||
private String[] idList;
|
||||
private List<SarFileSplitItemsValEO> itemValEOList;
|
||||
// 前台删除的VAL表条目内容ID
|
||||
private String delItemIds;
|
||||
private String sMenuId;
|
||||
//特殊参数要求
|
||||
private List<SarFileSplitItemsParamsEO> paramsList;
|
||||
private String relevanceFileAttid;
|
||||
private String issForce;
|
||||
|
||||
/**
|
||||
* java字段名转换为原始数据库列名。<b>如果不存在则返回null</b><br>
|
||||
* <p>字段列表:</p>
|
||||
* <li>id -> id</li>
|
||||
* <li>infoId -> info_id</li>
|
||||
* <li>itemsNum -> items_num</li>
|
||||
* <li>itemsName -> items_name</li>
|
||||
* <li>itermsConditions -> iterms_conditions</li>
|
||||
* <li>newcarPutTime -> newcar_put_time</li>
|
||||
* <li>productPutTime -> product_put_time</li>
|
||||
* <li>menuId -> menu_id</li>
|
||||
* <li>svpps -> svpps</li>
|
||||
* <li>applyArctic -> apply_arctic</li>
|
||||
* <li>referenceStand -> reference_stand</li>
|
||||
* <li>specialRequest -> special_request</li>
|
||||
* <li>relevanceFile -> relevance_file</li>
|
||||
* <li>remarks -> remarks</li>
|
||||
* <li>validFlag -> valid_flag</li>
|
||||
* <li>creationUser -> creation_user</li>
|
||||
* <li>creationTime -> creation_time</li>
|
||||
* <li>modifyTime -> modify_time</li>
|
||||
* <li>modifyUser -> modify_user</li>
|
||||
*/
|
||||
public static String fieldToColumn(String fieldName) {
|
||||
if (fieldName == null) return null;
|
||||
switch (fieldName) {
|
||||
case "id": return "id";
|
||||
case "infoId": return "info_id";
|
||||
case "itemsNum": return "items_num";
|
||||
case "itemsName": return "items_name";
|
||||
case "itermsConditions": return "iterms_conditions";
|
||||
case "newcarPutTime": return "newcar_put_time";
|
||||
case "productPutTime": return "product_put_time";
|
||||
case "menuId": return "menu_id";
|
||||
case "svpps": return "svpps";
|
||||
case "applyArctic": return "apply_arctic";
|
||||
case "referenceStand": return "reference_stand";
|
||||
case "specialRequest": return "special_request";
|
||||
case "relevanceFile": return "relevance_file";
|
||||
case "remarks": return "remarks";
|
||||
case "validFlag": return "valid_flag";
|
||||
case "creationUser": return "creation_user";
|
||||
case "creationTime": return "creation_time";
|
||||
case "modifyTime": return "modify_time";
|
||||
case "modifyUser": return "modify_user";
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 原始数据库列名转换为java字段名。<b>如果不存在则返回null</b><br>
|
||||
* <p>字段列表:</p>
|
||||
* <li>id -> id</li>
|
||||
* <li>info_id -> infoId</li>
|
||||
* <li>items_num -> itemsNum</li>
|
||||
* <li>items_name -> itemsName</li>
|
||||
* <li>iterms_conditions -> itermsConditions</li>
|
||||
* <li>newcar_put_time -> newcarPutTime</li>
|
||||
* <li>product_put_time -> productPutTime</li>
|
||||
* <li>menu_id -> menuId</li>
|
||||
* <li>svpps -> svpps</li>
|
||||
* <li>apply_arctic -> applyArctic</li>
|
||||
* <li>reference_stand -> referenceStand</li>
|
||||
* <li>special_request -> specialRequest</li>
|
||||
* <li>relevance_file -> relevanceFile</li>
|
||||
* <li>remarks -> remarks</li>
|
||||
* <li>valid_flag -> validFlag</li>
|
||||
* <li>creation_user -> creationUser</li>
|
||||
* <li>creation_time -> creationTime</li>
|
||||
* <li>modify_time -> modifyTime</li>
|
||||
* <li>modify_user -> modifyUser</li>
|
||||
*/
|
||||
public static String columnToField(String columnName) {
|
||||
if (columnName == null) return null;
|
||||
switch (columnName) {
|
||||
case "id": return "id";
|
||||
case "info_id": return "infoId";
|
||||
case "items_num": return "itemsNum";
|
||||
case "items_name": return "itemsName";
|
||||
case "iterms_conditions": return "itermsConditions";
|
||||
case "newcar_put_time": return "newcarPutTime";
|
||||
case "product_put_time": return "productPutTime";
|
||||
case "menu_id": return "menuId";
|
||||
case "svpps": return "svpps";
|
||||
case "apply_arctic": return "applyArctic";
|
||||
case "reference_stand": return "referenceStand";
|
||||
case "special_request": return "specialRequest";
|
||||
case "relevance_file": return "relevanceFile";
|
||||
case "remarks": return "remarks";
|
||||
case "valid_flag": return "validFlag";
|
||||
case "creation_user": return "creationUser";
|
||||
case "creation_time": return "creationTime";
|
||||
case "modify_time": return "modifyTime";
|
||||
case "modify_user": return "modifyUser";
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getInfoId() {
|
||||
return this.infoId;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setInfoId(String infoId) {
|
||||
this.infoId = infoId;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getItemsNum() {
|
||||
return this.itemsNum;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setItemsNum(String itemsNum) {
|
||||
this.itemsNum = itemsNum;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getItemsName() {
|
||||
return this.itemsName;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setItemsName(String itemsName) {
|
||||
this.itemsName = itemsName;
|
||||
}
|
||||
|
||||
public String getItermsConditions() {
|
||||
return itermsConditions;
|
||||
}
|
||||
|
||||
public void setItermsConditions(String itermsConditions) {
|
||||
this.itermsConditions = itermsConditions;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Date getNewcarPutTime() {
|
||||
return this.newcarPutTime;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setNewcarPutTime(Date newcarPutTime) {
|
||||
this.newcarPutTime = newcarPutTime;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Date getProductPutTime() {
|
||||
return this.productPutTime;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setProductPutTime(Date productPutTime) {
|
||||
this.productPutTime = productPutTime;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getMenuId() {
|
||||
return this.menuId;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setMenuId(String menuId) {
|
||||
this.menuId = menuId;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getSvpps() {
|
||||
return this.svpps;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setSvpps(String svpps) {
|
||||
this.svpps = svpps;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getApplyArctic() {
|
||||
return this.applyArctic;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setApplyArctic(String applyArctic) {
|
||||
this.applyArctic = applyArctic;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getReferenceStand() {
|
||||
return this.referenceStand;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setReferenceStand(String referenceStand) {
|
||||
this.referenceStand = referenceStand;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getSpecialRequest() {
|
||||
return this.specialRequest;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setSpecialRequest(String specialRequest) {
|
||||
this.specialRequest = specialRequest;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getRelevanceFile() {
|
||||
return this.relevanceFile;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setRelevanceFile(String relevanceFile) {
|
||||
this.relevanceFile = relevanceFile;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getRemarks() {
|
||||
return this.remarks;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setRemarks(String remarks) {
|
||||
this.remarks = remarks;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Integer getValidFlag() {
|
||||
return this.validFlag;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setValidFlag(Integer validFlag) {
|
||||
this.validFlag = validFlag;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getCreationUser() {
|
||||
return this.creationUser;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setCreationUser(String creationUser) {
|
||||
this.creationUser = creationUser;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Date getCreationTime() {
|
||||
return this.creationTime;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setCreationTime(Date creationTime) {
|
||||
this.creationTime = creationTime;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Date getModifyTime() {
|
||||
return this.modifyTime;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setModifyTime(Date modifyTime) {
|
||||
this.modifyTime = modifyTime;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getModifyUser() {
|
||||
return this.modifyUser;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setModifyUser(String modifyUser) {
|
||||
this.modifyUser = modifyUser;
|
||||
}
|
||||
|
||||
|
||||
List<String> itemsCondi;
|
||||
|
||||
public List<String> getItemsCondi() {
|
||||
return itemsCondi;
|
||||
}
|
||||
|
||||
public void setItemsCondi(List<String> itemsCondi) {
|
||||
this.itemsCondi = itemsCondi;
|
||||
}
|
||||
|
||||
public String[] getInfoIdList() {
|
||||
return infoIdList;
|
||||
}
|
||||
|
||||
public void setInfoIdList(String[] infoIdList) {
|
||||
this.infoIdList = infoIdList;
|
||||
}
|
||||
|
||||
public String[] getIdList() {
|
||||
return idList;
|
||||
}
|
||||
|
||||
public void setIdList(String[] idList) {
|
||||
this.idList = idList;
|
||||
}
|
||||
|
||||
public List<SarFileSplitItemsValEO> getItemValEOList() {
|
||||
return itemValEOList;
|
||||
}
|
||||
|
||||
public void setItemValEOList(List<SarFileSplitItemsValEO> itemValEOList) {
|
||||
this.itemValEOList = itemValEOList;
|
||||
}
|
||||
|
||||
public String getDelItemIds() {
|
||||
return delItemIds;
|
||||
}
|
||||
|
||||
public void setDelItemIds(String delItemIds) {
|
||||
this.delItemIds = delItemIds;
|
||||
}
|
||||
|
||||
public String getsMenuId() {
|
||||
return sMenuId;
|
||||
}
|
||||
|
||||
public void setsMenuId(String sMenuId) {
|
||||
this.sMenuId = sMenuId;
|
||||
}
|
||||
|
||||
public List<SarFileSplitItemsParamsEO> getParamsList() {
|
||||
return paramsList;
|
||||
}
|
||||
|
||||
public void setParamsList(List<SarFileSplitItemsParamsEO> paramsList) {
|
||||
this.paramsList = paramsList;
|
||||
}
|
||||
|
||||
public String getRelevanceFileAttid() {
|
||||
return relevanceFileAttid;
|
||||
}
|
||||
|
||||
public void setRelevanceFileAttid(String relevanceFileAttid) {
|
||||
this.relevanceFileAttid = relevanceFileAttid;
|
||||
}
|
||||
|
||||
public String getIssForce() {
|
||||
return issForce;
|
||||
}
|
||||
|
||||
public void setIssForce(String issForce) {
|
||||
this.issForce = issForce;
|
||||
}
|
||||
}
|
||||
+194
@@ -0,0 +1,194 @@
|
||||
package com.jero.modules.split.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* <b>功能:</b>SAR_FILE_SPLIT_ITEMS_FILE SarFileSplitItemsFileEOEntity<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2020-03-30 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
public class SarFileSplitItemsFileEO implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
private String id;
|
||||
private String standId;
|
||||
private String resId;
|
||||
private String attId;
|
||||
private String useModel;
|
||||
private Integer validFlag;
|
||||
@org.springframework.format.annotation.DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
private Date creationTime;
|
||||
@org.springframework.format.annotation.DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
private Date modifyTime;
|
||||
private Long pageCount;
|
||||
private List<String> idlist = new ArrayList<>();
|
||||
private String fileOldName;
|
||||
|
||||
/**
|
||||
* java字段名转换为原始数据库列名。<b>如果不存在则返回null</b><br>
|
||||
* <p>字段列表:</p>
|
||||
* <li>id -> id</li>
|
||||
* <li>standId -> stand_id</li>
|
||||
* <li>resId -> res_id</li>
|
||||
* <li>attId -> att_id</li>
|
||||
* <li>useModel -> use_model</li>
|
||||
* <li>validFlag -> valid_flag</li>
|
||||
* <li>creationTime -> creation_time</li>
|
||||
* <li>modifyTime -> modify_time</li>
|
||||
* <li>pageCount -> page_count</li>
|
||||
*/
|
||||
public static String fieldToColumn(String fieldName) {
|
||||
if (fieldName == null) return null;
|
||||
switch (fieldName) {
|
||||
case "id": return "id";
|
||||
case "standId": return "stand_id";
|
||||
case "resId": return "res_id";
|
||||
case "attId": return "att_id";
|
||||
case "useModel": return "use_model";
|
||||
case "validFlag": return "valid_flag";
|
||||
case "creationTime": return "creation_time";
|
||||
case "modifyTime": return "modify_time";
|
||||
case "pageCount": return "page_count";
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 原始数据库列名转换为java字段名。<b>如果不存在则返回null</b><br>
|
||||
* <p>字段列表:</p>
|
||||
* <li>id -> id</li>
|
||||
* <li>stand_id -> standId</li>
|
||||
* <li>res_id -> resId</li>
|
||||
* <li>att_id -> attId</li>
|
||||
* <li>use_model -> useModel</li>
|
||||
* <li>valid_flag -> validFlag</li>
|
||||
* <li>creation_time -> creationTime</li>
|
||||
* <li>modify_time -> modifyTime</li>
|
||||
* <li>page_count -> pageCount</li>
|
||||
*/
|
||||
public static String columnToField(String columnName) {
|
||||
if (columnName == null) return null;
|
||||
switch (columnName) {
|
||||
case "id": return "id";
|
||||
case "stand_id": return "standId";
|
||||
case "res_id": return "resId";
|
||||
case "att_id": return "attId";
|
||||
case "use_model": return "useModel";
|
||||
case "valid_flag": return "validFlag";
|
||||
case "creation_time": return "creationTime";
|
||||
case "modify_time": return "modifyTime";
|
||||
case "page_count": return "pageCount";
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getStandId() {
|
||||
return this.standId;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setStandId(String standId) {
|
||||
this.standId = standId;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getResId() {
|
||||
return this.resId;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setResId(String resId) {
|
||||
this.resId = resId;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getAttId() {
|
||||
return this.attId;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setAttId(String attId) {
|
||||
this.attId = attId;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getUseModel() {
|
||||
return this.useModel;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setUseModel(String useModel) {
|
||||
this.useModel = useModel;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Integer getValidFlag() {
|
||||
return this.validFlag;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setValidFlag(Integer validFlag) {
|
||||
this.validFlag = validFlag;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Date getCreationTime() {
|
||||
return this.creationTime;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setCreationTime(Date creationTime) {
|
||||
this.creationTime = creationTime;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Date getModifyTime() {
|
||||
return this.modifyTime;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setModifyTime(Date modifyTime) {
|
||||
this.modifyTime = modifyTime;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Long getPageCount() {
|
||||
return this.pageCount;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setPageCount(Long pageCount) {
|
||||
this.pageCount = pageCount;
|
||||
}
|
||||
|
||||
public List<String> getIdlist() {
|
||||
return idlist;
|
||||
}
|
||||
|
||||
public void setIdlist(List<String> idlist) {
|
||||
this.idlist = idlist;
|
||||
}
|
||||
|
||||
public String getFileOldName() {
|
||||
return fileOldName;
|
||||
}
|
||||
|
||||
public void setFileOldName(String fileOldName) {
|
||||
this.fileOldName = fileOldName;
|
||||
}
|
||||
}
|
||||
+160
@@ -0,0 +1,160 @@
|
||||
package com.jero.modules.split.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* <b>功能:</b>SAR_FILE_SPLIT_ITEMS_PARAMS SarFileSplitItemsParamsEOEntity<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2020-02-04 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
public class SarFileSplitItemsParamsEO implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
private String id;
|
||||
private String itemId;
|
||||
private String description;
|
||||
private String figure;
|
||||
private Integer validFlag;
|
||||
@org.springframework.format.annotation.DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
private Date creationTime;
|
||||
@org.springframework.format.annotation.DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
private Date modifyTime;
|
||||
private String infoId;
|
||||
|
||||
/**
|
||||
* java字段名转换为原始数据库列名。<b>如果不存在则返回null</b><br>
|
||||
* <p>字段列表:</p>
|
||||
* <li>id -> id</li>
|
||||
* <li>itemId -> item_id</li>
|
||||
* <li>description -> description</li>
|
||||
* <li>figure -> figure</li>
|
||||
* <li>validFlag -> valid_flag</li>
|
||||
* <li>creationTime -> creation_time</li>
|
||||
* <li>modifyTime -> modify_time</li>
|
||||
* <li>infoId -> info_id</li>
|
||||
*/
|
||||
public static String fieldToColumn(String fieldName) {
|
||||
if (fieldName == null) return null;
|
||||
switch (fieldName) {
|
||||
case "id": return "id";
|
||||
case "itemId": return "item_id";
|
||||
case "description": return "description";
|
||||
case "figure": return "figure";
|
||||
case "validFlag": return "valid_flag";
|
||||
case "creationTime": return "creation_time";
|
||||
case "modifyTime": return "modify_time";
|
||||
case "infoId": return "info_id";
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 原始数据库列名转换为java字段名。<b>如果不存在则返回null</b><br>
|
||||
* <p>字段列表:</p>
|
||||
* <li>id -> id</li>
|
||||
* <li>item_id -> itemId</li>
|
||||
* <li>description -> description</li>
|
||||
* <li>figure -> figure</li>
|
||||
* <li>valid_flag -> validFlag</li>
|
||||
* <li>creation_time -> creationTime</li>
|
||||
* <li>modify_time -> modifyTime</li>
|
||||
* <li>info_id -> infoId</li>
|
||||
*/
|
||||
public static String columnToField(String columnName) {
|
||||
if (columnName == null) return null;
|
||||
switch (columnName) {
|
||||
case "id": return "id";
|
||||
case "item_id": return "itemId";
|
||||
case "description": return "description";
|
||||
case "figure": return "figure";
|
||||
case "valid_flag": return "validFlag";
|
||||
case "creation_time": return "creationTime";
|
||||
case "modify_time": return "modifyTime";
|
||||
case "info_id": return "infoId";
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getItemId() {
|
||||
return this.itemId;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setItemId(String itemId) {
|
||||
this.itemId = itemId;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getDescription() {
|
||||
return this.description;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setDescription(String description) {
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getFigure() {
|
||||
return this.figure;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setFigure(String figure) {
|
||||
this.figure = figure;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Integer getValidFlag() {
|
||||
return this.validFlag;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setValidFlag(Integer validFlag) {
|
||||
this.validFlag = validFlag;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Date getCreationTime() {
|
||||
return this.creationTime;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setCreationTime(Date creationTime) {
|
||||
this.creationTime = creationTime;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Date getModifyTime() {
|
||||
return this.modifyTime;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setModifyTime(Date modifyTime) {
|
||||
this.modifyTime = modifyTime;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getInfoId() {
|
||||
return this.infoId;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setInfoId(String infoId) {
|
||||
this.infoId = infoId;
|
||||
}
|
||||
|
||||
}
|
||||
+171
@@ -0,0 +1,171 @@
|
||||
package com.jero.modules.split.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* <b>功能:</b>SAR_FILE_SPLIT_ITEMS_RES SarFileSplitItemsResEOEntity<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2020-03-30 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
public class SarFileSplitItemsResEO implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
private String id;
|
||||
private String standId;
|
||||
private String standFileClassify;
|
||||
private String fileName;
|
||||
private String fileSuffix;
|
||||
private Integer validFlag;
|
||||
@org.springframework.format.annotation.DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
private Date creationTime;
|
||||
@org.springframework.format.annotation.DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
private Date modifyTime;
|
||||
|
||||
private List<String> idlist = new ArrayList<>();
|
||||
|
||||
/**
|
||||
* java字段名转换为原始数据库列名。<b>如果不存在则返回null</b><br>
|
||||
* <p>字段列表:</p>
|
||||
* <li>id -> id</li>
|
||||
* <li>standId -> stand_id</li>
|
||||
* <li>standFileClassify -> stand_file_classify</li>
|
||||
* <li>fileName -> file_name</li>
|
||||
* <li>fileSuffix -> file_suffix</li>
|
||||
* <li>validFlag -> valid_flag</li>
|
||||
* <li>creationTime -> creation_time</li>
|
||||
* <li>modifyTime -> modify_time</li>
|
||||
*/
|
||||
public static String fieldToColumn(String fieldName) {
|
||||
if (fieldName == null) return null;
|
||||
switch (fieldName) {
|
||||
case "id": return "id";
|
||||
case "standId": return "stand_id";
|
||||
case "standFileClassify": return "stand_file_classify";
|
||||
case "fileName": return "file_name";
|
||||
case "fileSuffix": return "file_suffix";
|
||||
case "validFlag": return "valid_flag";
|
||||
case "creationTime": return "creation_time";
|
||||
case "modifyTime": return "modify_time";
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 原始数据库列名转换为java字段名。<b>如果不存在则返回null</b><br>
|
||||
* <p>字段列表:</p>
|
||||
* <li>id -> id</li>
|
||||
* <li>stand_id -> standId</li>
|
||||
* <li>stand_file_classify -> standFileClassify</li>
|
||||
* <li>file_name -> fileName</li>
|
||||
* <li>file_suffix -> fileSuffix</li>
|
||||
* <li>valid_flag -> validFlag</li>
|
||||
* <li>creation_time -> creationTime</li>
|
||||
* <li>modify_time -> modifyTime</li>
|
||||
*/
|
||||
public static String columnToField(String columnName) {
|
||||
if (columnName == null) return null;
|
||||
switch (columnName) {
|
||||
case "id": return "id";
|
||||
case "stand_id": return "standId";
|
||||
case "stand_file_classify": return "standFileClassify";
|
||||
case "file_name": return "fileName";
|
||||
case "file_suffix": return "fileSuffix";
|
||||
case "valid_flag": return "validFlag";
|
||||
case "creation_time": return "creationTime";
|
||||
case "modify_time": return "modifyTime";
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getStandId() {
|
||||
return this.standId;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setStandId(String standId) {
|
||||
this.standId = standId;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getStandFileClassify() {
|
||||
return this.standFileClassify;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setStandFileClassify(String standFileClassify) {
|
||||
this.standFileClassify = standFileClassify;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getFileName() {
|
||||
return this.fileName;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setFileName(String fileName) {
|
||||
this.fileName = fileName;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getFileSuffix() {
|
||||
return this.fileSuffix;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setFileSuffix(String fileSuffix) {
|
||||
this.fileSuffix = fileSuffix;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Integer getValidFlag() {
|
||||
return this.validFlag;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setValidFlag(Integer validFlag) {
|
||||
this.validFlag = validFlag;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Date getCreationTime() {
|
||||
return this.creationTime;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setCreationTime(Date creationTime) {
|
||||
this.creationTime = creationTime;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Date getModifyTime() {
|
||||
return this.modifyTime;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setModifyTime(Date modifyTime) {
|
||||
this.modifyTime = modifyTime;
|
||||
}
|
||||
|
||||
public List<String> getIdlist() {
|
||||
return idlist;
|
||||
}
|
||||
|
||||
public void setIdlist(List<String> idlist) {
|
||||
this.idlist = idlist;
|
||||
}
|
||||
}
|
||||
+190
@@ -0,0 +1,190 @@
|
||||
package com.jero.modules.split.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* <b>功能:</b>SAR_FILE_SPLIT_ITEMS_TABLE SarFileSplitItemsTableEOEntity<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2020-01-17 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
public class SarFileSplitItemsTableEO implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
private String id;
|
||||
private String itemsValId;
|
||||
private String itemsId;
|
||||
private Integer rowNum;
|
||||
private Integer colNum;
|
||||
private String content;
|
||||
private Integer validFlag;
|
||||
@org.springframework.format.annotation.DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
private Date creationTime;
|
||||
@org.springframework.format.annotation.DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
private Date modifyTime;
|
||||
private String modifyUser;
|
||||
|
||||
/**
|
||||
* java字段名转换为原始数据库列名。<b>如果不存在则返回null</b><br>
|
||||
* <p>字段列表:</p>
|
||||
* <li>id -> id</li>
|
||||
* <li>itemsValId -> items_val_id</li>
|
||||
* <li>itemsId -> items_id</li>
|
||||
* <li>rowNum -> row_num</li>
|
||||
* <li>colNum -> col_num</li>
|
||||
* <li>content -> content</li>
|
||||
* <li>validFlag -> valid_flag</li>
|
||||
* <li>creationTime -> creation_time</li>
|
||||
* <li>modifyTime -> modify_time</li>
|
||||
* <li>modifyUser -> modify_user</li>
|
||||
*/
|
||||
public static String fieldToColumn(String fieldName) {
|
||||
if (fieldName == null) return null;
|
||||
switch (fieldName) {
|
||||
case "id": return "id";
|
||||
case "itemsValId": return "items_val_id";
|
||||
case "itemsId": return "items_id";
|
||||
case "rowNum": return "row_num";
|
||||
case "colNum": return "col_num";
|
||||
case "content": return "content";
|
||||
case "validFlag": return "valid_flag";
|
||||
case "creationTime": return "creation_time";
|
||||
case "modifyTime": return "modify_time";
|
||||
case "modifyUser": return "modify_user";
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 原始数据库列名转换为java字段名。<b>如果不存在则返回null</b><br>
|
||||
* <p>字段列表:</p>
|
||||
* <li>id -> id</li>
|
||||
* <li>items_val_id -> itemsValId</li>
|
||||
* <li>items_id -> itemsId</li>
|
||||
* <li>row_num -> rowNum</li>
|
||||
* <li>col_num -> colNum</li>
|
||||
* <li>content -> content</li>
|
||||
* <li>valid_flag -> validFlag</li>
|
||||
* <li>creation_time -> creationTime</li>
|
||||
* <li>modify_time -> modifyTime</li>
|
||||
* <li>modify_user -> modifyUser</li>
|
||||
*/
|
||||
public static String columnToField(String columnName) {
|
||||
if (columnName == null) return null;
|
||||
switch (columnName) {
|
||||
case "id": return "id";
|
||||
case "items_val_id": return "itemsValId";
|
||||
case "items_id": return "itemsId";
|
||||
case "row_num": return "rowNum";
|
||||
case "col_num": return "colNum";
|
||||
case "content": return "content";
|
||||
case "valid_flag": return "validFlag";
|
||||
case "creation_time": return "creationTime";
|
||||
case "modify_time": return "modifyTime";
|
||||
case "modify_user": return "modifyUser";
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getItemsValId() {
|
||||
return this.itemsValId;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setItemsValId(String itemsValId) {
|
||||
this.itemsValId = itemsValId;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getItemsId() {
|
||||
return this.itemsId;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setItemsId(String itemsId) {
|
||||
this.itemsId = itemsId;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Integer getRowNum() {
|
||||
return this.rowNum;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setRowNum(Integer rowNum) {
|
||||
this.rowNum = rowNum;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Integer getColNum() {
|
||||
return this.colNum;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setColNum(Integer colNum) {
|
||||
this.colNum = colNum;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getContent() {
|
||||
return this.content;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setContent(String content) {
|
||||
this.content = content;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Integer getValidFlag() {
|
||||
return this.validFlag;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setValidFlag(Integer validFlag) {
|
||||
this.validFlag = validFlag;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Date getCreationTime() {
|
||||
return this.creationTime;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setCreationTime(Date creationTime) {
|
||||
this.creationTime = creationTime;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Date getModifyTime() {
|
||||
return this.modifyTime;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setModifyTime(Date modifyTime) {
|
||||
this.modifyTime = modifyTime;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getModifyUser() {
|
||||
return this.modifyUser;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setModifyUser(String modifyUser) {
|
||||
this.modifyUser = modifyUser;
|
||||
}
|
||||
|
||||
}
|
||||
+255
@@ -0,0 +1,255 @@
|
||||
package com.jero.modules.split.entity;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.jero.modules.split.common.UploadFileInfo;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* <b>功能:</b>SAR_FILE_SPLIT_ITEMS_VAL SarFileSplitItemsValEOEntity<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2020-01-07 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
public class SarFileSplitItemsValEO implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
private String id;
|
||||
private String type;
|
||||
private String itemId;
|
||||
private String itemContent;
|
||||
private Integer validFlag;
|
||||
private String creationUser;
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date creationTime;
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date modifyTime;
|
||||
private String modifyUser;
|
||||
private Integer displaySeq;
|
||||
private String[] idList;
|
||||
private List<UploadFileInfo> defaultFileList;
|
||||
private String imgName;
|
||||
private Integer indexItem;
|
||||
private List<SarFileSplitItemsTableEO> tableList;
|
||||
private List<List<SarFileSplitItemsTableEO>> tableListShow;
|
||||
private int rowCount;
|
||||
|
||||
/**
|
||||
* java字段名转换为原始数据库列名。<b>如果不存在则返回null</b><br>
|
||||
* <p>字段列表:</p>
|
||||
* <li>id -> id</li>
|
||||
* <li>type -> type</li>
|
||||
* <li>itemId -> item_id</li>
|
||||
* <li>itemContent -> item_content</li>
|
||||
* <li>validFlag -> valid_flag</li>
|
||||
* <li>creationUser -> creation_user</li>
|
||||
* <li>creationTime -> creation_time</li>
|
||||
* <li>modifyTime -> modify_time</li>
|
||||
* <li>modifyUser -> modify_user</li>
|
||||
* <li>displaySeq -> display_seq</li>
|
||||
*/
|
||||
public static String fieldToColumn(String fieldName) {
|
||||
if (fieldName == null) return null;
|
||||
switch (fieldName) {
|
||||
case "id": return "id";
|
||||
case "type": return "type";
|
||||
case "itemId": return "item_id";
|
||||
case "itemContent": return "item_content";
|
||||
case "validFlag": return "valid_flag";
|
||||
case "creationUser": return "creation_user";
|
||||
case "creationTime": return "creation_time";
|
||||
case "modifyTime": return "modify_time";
|
||||
case "modifyUser": return "modify_user";
|
||||
case "displaySeq": return "display_seq";
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 原始数据库列名转换为java字段名。<b>如果不存在则返回null</b><br>
|
||||
* <p>字段列表:</p>
|
||||
* <li>id -> id</li>
|
||||
* <li>type -> type</li>
|
||||
* <li>item_id -> itemId</li>
|
||||
* <li>item_content -> itemContent</li>
|
||||
* <li>valid_flag -> validFlag</li>
|
||||
* <li>creation_user -> creationUser</li>
|
||||
* <li>creation_time -> creationTime</li>
|
||||
* <li>modify_time -> modifyTime</li>
|
||||
* <li>modify_user -> modifyUser</li>
|
||||
* <li>display_seq -> displaySeq</li>
|
||||
*/
|
||||
public static String columnToField(String columnName) {
|
||||
if (columnName == null) return null;
|
||||
switch (columnName) {
|
||||
case "id": return "id";
|
||||
case "type": return "type";
|
||||
case "item_id": return "itemId";
|
||||
case "item_content": return "itemContent";
|
||||
case "valid_flag": return "validFlag";
|
||||
case "creation_user": return "creationUser";
|
||||
case "creation_time": return "creationTime";
|
||||
case "modify_time": return "modifyTime";
|
||||
case "modify_user": return "modifyUser";
|
||||
case "display_seq": return "displaySeq";
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
||||
public Integer getIndexItem() {
|
||||
return indexItem;
|
||||
}
|
||||
|
||||
public void setIndexItem(Integer indexItem) {
|
||||
this.indexItem = indexItem;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getType() {
|
||||
return this.type;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setType(String type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getItemId() {
|
||||
return this.itemId;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setItemId(String itemId) {
|
||||
this.itemId = itemId;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getItemContent() {
|
||||
return itemContent;
|
||||
}
|
||||
|
||||
public void setItemContent(String itemContent) {
|
||||
this.itemContent = itemContent;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Integer getValidFlag() {
|
||||
return this.validFlag;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setValidFlag(Integer validFlag) {
|
||||
this.validFlag = validFlag;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getCreationUser() {
|
||||
return this.creationUser;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setCreationUser(String creationUser) {
|
||||
this.creationUser = creationUser;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Date getCreationTime() {
|
||||
return this.creationTime;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setCreationTime(Date creationTime) {
|
||||
this.creationTime = creationTime;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Date getModifyTime() {
|
||||
return this.modifyTime;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setModifyTime(Date modifyTime) {
|
||||
this.modifyTime = modifyTime;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getModifyUser() {
|
||||
return this.modifyUser;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setModifyUser(String modifyUser) {
|
||||
this.modifyUser = modifyUser;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Integer getDisplaySeq() {
|
||||
return this.displaySeq;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setDisplaySeq(Integer displaySeq) {
|
||||
this.displaySeq = displaySeq;
|
||||
}
|
||||
|
||||
public String[] getIdList() {
|
||||
return idList;
|
||||
}
|
||||
|
||||
public void setIdList(String[] idList) {
|
||||
this.idList = idList;
|
||||
}
|
||||
|
||||
public List<UploadFileInfo> getDefaultFileList() {
|
||||
return defaultFileList;
|
||||
}
|
||||
|
||||
public void setDefaultFileList(List<UploadFileInfo> defaultFileList) {
|
||||
this.defaultFileList = defaultFileList;
|
||||
}
|
||||
|
||||
public String getImgName() {
|
||||
return imgName;
|
||||
}
|
||||
|
||||
public void setImgName(String imgName) {
|
||||
this.imgName = imgName;
|
||||
}
|
||||
|
||||
public List<SarFileSplitItemsTableEO> getTableList() {
|
||||
return tableList;
|
||||
}
|
||||
|
||||
public void setTableList(List<SarFileSplitItemsTableEO> tableList) {
|
||||
this.tableList = tableList;
|
||||
}
|
||||
|
||||
public int getRowCount() {
|
||||
return rowCount;
|
||||
}
|
||||
|
||||
public void setRowCount(int rowCount) {
|
||||
this.rowCount = rowCount;
|
||||
}
|
||||
|
||||
public List<List<SarFileSplitItemsTableEO>> getTableListShow() {
|
||||
return tableListShow;
|
||||
}
|
||||
|
||||
public void setTableListShow(List<List<SarFileSplitItemsTableEO>> tableListShow) {
|
||||
this.tableListShow = tableListShow;
|
||||
}
|
||||
}
|
||||
+306
@@ -0,0 +1,306 @@
|
||||
package com.jero.modules.split.entity;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import com.jero.common.system.vo.LoginUser;
|
||||
import org.apache.shiro.SecurityUtils;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* <b>功能:</b>SAR_FILE_SPLIT_MENU SarFileSplitMenuEOEntity<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2020-01-03 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
public class SarFileSplitMenuEO implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
private String id;
|
||||
private String infoId;
|
||||
private String name;
|
||||
private String pId;
|
||||
private Long displaySeq;
|
||||
private Integer validFlag;
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date creationTime;
|
||||
@JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
private Date modifyTime;
|
||||
private String remarks;
|
||||
private String creationUser;
|
||||
private String modifyUser;
|
||||
private String itemName;
|
||||
private String[] infoIdList;
|
||||
|
||||
private Long displaySeqStart;
|
||||
private Long displaySeqEnd;
|
||||
private Long childrenCount;
|
||||
|
||||
private List<SarFileSplitMenuEO> children = new ArrayList<>();
|
||||
/**
|
||||
* java字段名转换为原始数据库列名。<b>如果不存在则返回null</b><br>
|
||||
* <p>字段列表:</p>
|
||||
* <li>id -> id</li>
|
||||
* <li>infoId -> info_id</li>
|
||||
* <li>name -> name</li>
|
||||
* <li>pId -> p_id</li>
|
||||
* <li>displaySeq -> display_seq</li>
|
||||
* <li>validFlag -> valid_flag</li>
|
||||
* <li>creationTime -> creation_time</li>
|
||||
* <li>modifyTime -> modify_time</li>
|
||||
* <li>remarks -> remarks</li>
|
||||
* <li>creationUser -> creation_user</li>
|
||||
* <li>modifyUser -> modify_user</li>
|
||||
*/
|
||||
public static String fieldToColumn(String fieldName) {
|
||||
if (fieldName == null) return null;
|
||||
switch (fieldName) {
|
||||
case "id": return "id";
|
||||
case "infoId": return "info_id";
|
||||
case "name": return "name";
|
||||
case "pId": return "p_id";
|
||||
case "displaySeq": return "display_seq";
|
||||
case "validFlag": return "valid_flag";
|
||||
case "creationTime": return "creation_time";
|
||||
case "modifyTime": return "modify_time";
|
||||
case "remarks": return "remarks";
|
||||
case "creationUser": return "creation_user";
|
||||
case "modifyUser": return "modify_user";
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 原始数据库列名转换为java字段名。<b>如果不存在则返回null</b><br>
|
||||
* <p>字段列表:</p>
|
||||
* <li>id -> id</li>
|
||||
* <li>info_id -> infoId</li>
|
||||
* <li>name -> name</li>
|
||||
* <li>p_id -> pId</li>
|
||||
* <li>display_seq -> displaySeq</li>
|
||||
* <li>valid_flag -> validFlag</li>
|
||||
* <li>creation_time -> creationTime</li>
|
||||
* <li>modify_time -> modifyTime</li>
|
||||
* <li>remarks -> remarks</li>
|
||||
* <li>creation_user -> creationUser</li>
|
||||
* <li>modify_user -> modifyUser</li>
|
||||
*/
|
||||
public static String columnToField(String columnName) {
|
||||
if (columnName == null) return null;
|
||||
switch (columnName) {
|
||||
case "id": return "id";
|
||||
case "info_id": return "infoId";
|
||||
case "name": return "name";
|
||||
case "p_id": return "pId";
|
||||
case "display_seq": return "displaySeq";
|
||||
case "valid_flag": return "validFlag";
|
||||
case "creation_time": return "creationTime";
|
||||
case "modify_time": return "modifyTime";
|
||||
case "remarks": return "remarks";
|
||||
case "creation_user": return "creationUser";
|
||||
case "modify_user": return "modifyUser";
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getInfoId() {
|
||||
return this.infoId;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setInfoId(String infoId) {
|
||||
this.infoId = infoId;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getName() {
|
||||
return this.name;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getPId() {
|
||||
return this.pId;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setPId(String pId) {
|
||||
this.pId = pId;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Long getDisplaySeq() {
|
||||
return this.displaySeq;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setDisplaySeq(Long displaySeq) {
|
||||
this.displaySeq = displaySeq;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Integer getValidFlag() {
|
||||
return this.validFlag;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setValidFlag(Integer validFlag) {
|
||||
this.validFlag = validFlag;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Date getCreationTime() {
|
||||
return this.creationTime;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setCreationTime(Date creationTime) {
|
||||
this.creationTime = creationTime;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public Date getModifyTime() {
|
||||
return this.modifyTime;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setModifyTime(Date modifyTime) {
|
||||
this.modifyTime = modifyTime;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getRemarks() {
|
||||
return this.remarks;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setRemarks(String remarks) {
|
||||
this.remarks = remarks;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getCreationUser() {
|
||||
return this.creationUser;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setCreationUser(String creationUser) {
|
||||
this.creationUser = creationUser;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public String getModifyUser() {
|
||||
return this.modifyUser;
|
||||
}
|
||||
|
||||
/** **/
|
||||
public void setModifyUser(String modifyUser) {
|
||||
this.modifyUser = modifyUser;
|
||||
}
|
||||
|
||||
public String getpId() {
|
||||
return pId;
|
||||
}
|
||||
|
||||
public void setpId(String pId) {
|
||||
this.pId = pId;
|
||||
}
|
||||
|
||||
|
||||
public String[] getInfoIdList() {
|
||||
return infoIdList;
|
||||
}
|
||||
|
||||
public void setInfoIdList(String[] infoIdList) {
|
||||
this.infoIdList = infoIdList;
|
||||
}
|
||||
|
||||
public SarFileSplitMenuEO(){
|
||||
}
|
||||
|
||||
public SarFileSplitMenuEO(String id, String name, String parentId, String infoId, Long displaySeq,String itemName) {
|
||||
this.id = id;
|
||||
this.name = name;
|
||||
this.pId = parentId;
|
||||
this.infoId = infoId;
|
||||
this.displaySeq = displaySeq;
|
||||
this.validFlag = 0;
|
||||
this.creationTime = new Date();
|
||||
LoginUser sysUser = (LoginUser) SecurityUtils.getSubject().getPrincipal();
|
||||
this.creationUser = sysUser.getId();
|
||||
this.modifyTime = new Date();
|
||||
this.modifyUser = sysUser.getId();
|
||||
this.itemName = itemName;
|
||||
}
|
||||
|
||||
public SarFileSplitMenuEO(String id, String name, String infoId,Long displaySeq,String itemName) {
|
||||
this.id = id;
|
||||
this.name = name;
|
||||
this.infoId = infoId;
|
||||
this.displaySeq = displaySeq;
|
||||
this.validFlag = 0;
|
||||
this.creationTime = new Date();
|
||||
LoginUser sysUser = (LoginUser) SecurityUtils.getSubject().getPrincipal();
|
||||
this.creationUser = sysUser.getId();
|
||||
this.modifyTime = new Date();
|
||||
this.modifyUser = sysUser.getId();
|
||||
this.itemName = itemName;
|
||||
}
|
||||
|
||||
public Long getDisplaySeqStart() {
|
||||
return displaySeqStart;
|
||||
}
|
||||
|
||||
public void setDisplaySeqStart(Long displaySeqStart) {
|
||||
this.displaySeqStart = displaySeqStart;
|
||||
}
|
||||
|
||||
public Long getDisplaySeqEnd() {
|
||||
return displaySeqEnd;
|
||||
}
|
||||
|
||||
public void setDisplaySeqEnd(Long displaySeqEnd) {
|
||||
this.displaySeqEnd = displaySeqEnd;
|
||||
}
|
||||
|
||||
public String getItemName() {
|
||||
return itemName;
|
||||
}
|
||||
|
||||
public void setItemName(String itemName) {
|
||||
this.itemName = itemName;
|
||||
}
|
||||
|
||||
public Long getChildrenCount() {
|
||||
return childrenCount;
|
||||
}
|
||||
|
||||
public void setChildrenCount(Long childrenCount) {
|
||||
this.childrenCount = childrenCount;
|
||||
}
|
||||
|
||||
public List<SarFileSplitMenuEO> getChildren() {
|
||||
return children;
|
||||
}
|
||||
|
||||
public void setChildren(List<SarFileSplitMenuEO> children) {
|
||||
this.children = children;
|
||||
}
|
||||
}
|
||||
+84
@@ -0,0 +1,84 @@
|
||||
package com.jero.modules.split.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 标准拆分,存储树形结构实体。
|
||||
*/
|
||||
public class SarFileSplitMenuTreeModel implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
private String id;
|
||||
private String parendId;
|
||||
private String itemNum;
|
||||
private String itemName;
|
||||
private String itermsConditions;
|
||||
private String name;
|
||||
|
||||
private List<SarFileSplitMenuTreeModel> children = new ArrayList<>();
|
||||
|
||||
public SarFileSplitMenuTreeModel() {
|
||||
}
|
||||
|
||||
public static long getSerialVersionUID() {
|
||||
return serialVersionUID;
|
||||
}
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getParendId() {
|
||||
return parendId;
|
||||
}
|
||||
|
||||
public void setParendId(String parendId) {
|
||||
this.parendId = parendId;
|
||||
}
|
||||
|
||||
public String getItemNum() {
|
||||
return itemNum;
|
||||
}
|
||||
|
||||
public void setItemNum(String itemNum) {
|
||||
this.itemNum = itemNum;
|
||||
}
|
||||
|
||||
public String getItemName() {
|
||||
return itemName;
|
||||
}
|
||||
|
||||
public void setItemName(String itemName) {
|
||||
this.itemName = itemName;
|
||||
}
|
||||
|
||||
public String getItermsConditions() {
|
||||
return itermsConditions;
|
||||
}
|
||||
|
||||
public void setItermsConditions(String itermsConditions) {
|
||||
this.itermsConditions = itermsConditions;
|
||||
}
|
||||
|
||||
public List<SarFileSplitMenuTreeModel> getChildren() {
|
||||
return children;
|
||||
}
|
||||
|
||||
public void setChildren(List<SarFileSplitMenuTreeModel> children) {
|
||||
this.children = children;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
package com.jero.modules.split.entity;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class SarFileSplitMenuTreeNode {
|
||||
private String id;
|
||||
private String name;
|
||||
private String parentId;
|
||||
private String parentName;
|
||||
private Long orderNum;
|
||||
private String itemName;
|
||||
private String itemId;
|
||||
}
|
||||
+44
@@ -0,0 +1,44 @@
|
||||
package com.jero.modules.split.enums;
|
||||
|
||||
/**
|
||||
* 资源库文件分类枚举设置
|
||||
* @author gaoyan
|
||||
* date 2018/09/03
|
||||
*/
|
||||
public enum StandFileClassifyEnum {
|
||||
|
||||
STAND_FILE("STAND_FILE","标准文本/法规文件"),STAND_MODIFY_FILE("STAND_MODIFY_FILE","标准译文"),
|
||||
DRAFT_FILE("DRAFT_FILE","草案文件"),OPINION_FILE("OPINION_FILE","解读报告"),
|
||||
SENT_SCREEN_FILE("SENT_SCREEN_FILE","送审稿"), REPORT_FILE("REPORT_FILE","报批稿"),
|
||||
RELEVANCE_FILE("RELEVANCE_FILE","关联文件"),LAWS_FILE("LAWS_FILE","法规文件"),
|
||||
RELEVANT_FILE("RELEVANT_FILE","相关附件")
|
||||
;
|
||||
|
||||
private String value;
|
||||
private String lable;
|
||||
|
||||
private StandFileClassifyEnum(String value, String lable) {
|
||||
this.value = value;
|
||||
this.lable = lable;
|
||||
}
|
||||
public String getValue() {
|
||||
return value;
|
||||
}
|
||||
public String getLable() {
|
||||
return lable;
|
||||
}
|
||||
|
||||
|
||||
public static StandFileClassifyEnum getLableByValue(String value){
|
||||
StandFileClassifyEnum[] values = values();
|
||||
for (StandFileClassifyEnum standFileClassifyEnum : values) {
|
||||
if(standFileClassifyEnum.getValue().equals(value)){
|
||||
return standFileClassifyEnum ;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
+26
@@ -0,0 +1,26 @@
|
||||
package com.jero.modules.split.enums;
|
||||
|
||||
/**
|
||||
* 标准库参数类型枚举设置
|
||||
* @author gaoyan
|
||||
* date 2018/09/03
|
||||
*/
|
||||
public enum UseModuleEnum {
|
||||
|
||||
SOURCE_FILE("SOURCE_FILE","源文件"),WEB_FILE("WEB_FILE","PC预览文件"),MOBLE_FILE("MOBLE_FILE","手机预览文件");
|
||||
|
||||
private String value;
|
||||
private String lable;
|
||||
|
||||
private UseModuleEnum(String value, String lable) {
|
||||
this.value = value;
|
||||
this.lable = lable;
|
||||
}
|
||||
public String getValue() {
|
||||
return value;
|
||||
}
|
||||
public String getLable() {
|
||||
return lable;
|
||||
}
|
||||
|
||||
}
|
||||
+28
@@ -0,0 +1,28 @@
|
||||
package com.jero.modules.split.enums;
|
||||
|
||||
public enum ValueStateEnum {
|
||||
|
||||
VALUE_TRUE(0,"TRUE"),VALUE_FALSE(1,"FALSE");
|
||||
|
||||
private int value;
|
||||
private String lable;
|
||||
|
||||
|
||||
private ValueStateEnum(int value, String lable) {
|
||||
this.value = value;
|
||||
this.lable = lable;
|
||||
}
|
||||
|
||||
|
||||
public int getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
|
||||
public String getLable() {
|
||||
return lable;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
+57
@@ -0,0 +1,57 @@
|
||||
package com.jero.modules.split.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.jero.modules.split.dto.FileSplitItemsExportDto;
|
||||
import com.jero.modules.split.entity.SarFileSplitItemsEO;
|
||||
import com.jero.modules.split.page.SarFileSplitItemsEOPage;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
* <br>
|
||||
* <b>功能:</b>SAR_FILE_SPLIT_ITEMS SarFileSplitItemsEODao<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2020-01-03 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
public interface SarFileSplitItemsEOMapper extends BaseMapper<SarFileSplitItemsEO> {
|
||||
|
||||
int insertForeach(List<SarFileSplitItemsEO> list);
|
||||
|
||||
int deleteByIds(SarFileSplitItemsEO sarFileSplitItemsEO);
|
||||
|
||||
int deleteByItemsIds(SarFileSplitItemsEO sarFileSplitItemsEO);
|
||||
|
||||
int deleteByMenuIds(@Param("idList") List<String> idList);
|
||||
|
||||
int deleteByItemsIdList(@Param("idList") List<String> idList);
|
||||
|
||||
List<SarFileSplitItemsEO> queryItemsByMenuId(@Param("menuId") String menuId);
|
||||
|
||||
List<SarFileSplitItemsEO> queryByItemsIds(@Param("idList") List<String> idList);
|
||||
|
||||
List<FileSplitItemsExportDto> queryByOrdersForExport(SarFileSplitItemsEOPage page);
|
||||
|
||||
List<SarFileSplitItemsEO> queryByList2(SarFileSplitItemsEOPage page);
|
||||
|
||||
|
||||
int insert(SarFileSplitItemsEO SarFileSplitItemsEO);
|
||||
|
||||
int insertSelective(SarFileSplitItemsEO SarFileSplitItemsEO);
|
||||
|
||||
int updateByPrimaryKey(SarFileSplitItemsEO SarFileSplitItemsEO);
|
||||
|
||||
int updateByPrimaryKeySelective(SarFileSplitItemsEO SarFileSplitItemsEO);
|
||||
|
||||
SarFileSplitItemsEO selectByPrimaryKey(String value);
|
||||
|
||||
int deleteByPrimaryKey(String value);
|
||||
|
||||
List<SarFileSplitItemsEO> queryByList(SarFileSplitItemsEOPage page);
|
||||
|
||||
int queryByCount(SarFileSplitItemsEOPage page);
|
||||
|
||||
List<SarFileSplitItemsEO> queryByPage(SarFileSplitItemsEOPage page);
|
||||
}
|
||||
+46
@@ -0,0 +1,46 @@
|
||||
package com.jero.modules.split.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.jero.modules.split.entity.SarFileSplitItemsFileEO;
|
||||
import com.jero.modules.split.page.SarFileSplitItemsFileEOPage;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
* <br>
|
||||
* <b>功能:</b>SAR_FILE_SPLIT_ITEMS_FILE SarFileSplitItemsFileEODao<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2020-03-30 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
public interface SarFileSplitItemsFileEOMapper extends BaseMapper<SarFileSplitItemsFileEO> {
|
||||
|
||||
List<SarFileSplitItemsFileEO> selectFileByItemsIdAndId(SarFileSplitItemsFileEO sarStandFileEO);
|
||||
|
||||
List<SarFileSplitItemsFileEO> selectFileMsgByAttId(String attId);
|
||||
|
||||
List<SarFileSplitItemsFileEO> selectFileByAttId(String attId);
|
||||
|
||||
int deleteByItemIds(@Param("idList") List<String> idList);
|
||||
|
||||
|
||||
int insert(SarFileSplitItemsFileEO sarFileSplitItemsFileEO);
|
||||
|
||||
int insertSelective(SarFileSplitItemsFileEO sarFileSplitItemsFileEO);
|
||||
|
||||
int updateByPrimaryKey(SarFileSplitItemsFileEO sarFileSplitItemsFileEO);
|
||||
|
||||
int updateByPrimaryKeySelective(SarFileSplitItemsFileEO sarFileSplitItemsFileEO);
|
||||
|
||||
SarFileSplitItemsFileEO selectByPrimaryKey(String value);
|
||||
|
||||
int deleteByPrimaryKey(String value);
|
||||
|
||||
List<SarFileSplitItemsFileEO> queryByList(SarFileSplitItemsFileEOPage page);
|
||||
|
||||
int queryByCount(SarFileSplitItemsFileEOPage page);
|
||||
|
||||
List<SarFileSplitItemsFileEO> queryByPage(SarFileSplitItemsFileEOPage page);
|
||||
}
|
||||
+47
@@ -0,0 +1,47 @@
|
||||
package com.jero.modules.split.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.jero.modules.split.entity.SarFileSplitItemsParamsEO;
|
||||
import com.jero.modules.split.page.SarFileSplitItemsParamsEOPage;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
* <br>
|
||||
* <b>功能:</b>SAR_FILE_SPLIT_ITEMS_PARAMS SarFileSplitItemsParamsEODao<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2020-02-04 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
public interface SarFileSplitItemsParamsMapper extends BaseMapper<SarFileSplitItemsParamsEO> {
|
||||
|
||||
int deleteByItemIds(@Param("idList") List<String> idList);
|
||||
|
||||
int deleteByInfoIds(@Param("idList") List<String> idList);
|
||||
|
||||
int insertForeach(List<SarFileSplitItemsParamsEO> list);
|
||||
|
||||
List<SarFileSplitItemsParamsEO> queryItemsParamsByMenuId(@Param("idList") List<String> idList);
|
||||
|
||||
|
||||
int insert(SarFileSplitItemsParamsEO sarFileSplitItemsParamsEO);
|
||||
|
||||
int insertSelective(SarFileSplitItemsParamsEO sarFileSplitItemsParamsEO);
|
||||
|
||||
int updateByPrimaryKey(SarFileSplitItemsParamsEO sarFileSplitItemsParamsEO);
|
||||
|
||||
int updateByPrimaryKeySelective(SarFileSplitItemsParamsEO sarFileSplitItemsParamsEO);
|
||||
|
||||
SarFileSplitItemsParamsEO selectByPrimaryKey(String value);
|
||||
|
||||
int deleteByPrimaryKey(String value);
|
||||
|
||||
List<SarFileSplitItemsParamsEO> queryByList(SarFileSplitItemsParamsEOPage page);
|
||||
|
||||
int queryByCount(SarFileSplitItemsParamsEOPage page);
|
||||
|
||||
List<SarFileSplitItemsParamsEO> queryByPage(SarFileSplitItemsParamsEOPage page);
|
||||
|
||||
}
|
||||
+42
@@ -0,0 +1,42 @@
|
||||
package com.jero.modules.split.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.jero.modules.split.entity.SarFileSplitItemsResEO;
|
||||
import com.jero.modules.split.page.SarFileSplitItemsResEOPage;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
* <br>
|
||||
* <b>功能:</b>SAR_FILE_SPLIT_ITEMS_RES SarFileSplitItemsResEODao<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2020-03-30 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
public interface SarFileSplitItemsResEOMapper extends BaseMapper<SarFileSplitItemsResEO> {
|
||||
|
||||
List<SarFileSplitItemsResEO> selectByItemsIdAndId(SarFileSplitItemsResEO stand);
|
||||
|
||||
int deleteByItemIds(@Param("idList") List<String> idList);
|
||||
|
||||
int insert(SarFileSplitItemsResEO sarFileSplitItemsResEO);
|
||||
|
||||
int insertSelective(SarFileSplitItemsResEO sarFileSplitItemsResEO);
|
||||
|
||||
int updateByPrimaryKey(SarFileSplitItemsResEO sarFileSplitItemsResEO);
|
||||
|
||||
int updateByPrimaryKeySelective(SarFileSplitItemsResEO sarFileSplitItemsResEO);
|
||||
|
||||
SarFileSplitItemsResEO selectByPrimaryKey(String value);
|
||||
|
||||
int deleteByPrimaryKey(String value);
|
||||
|
||||
List<SarFileSplitItemsResEO> queryByList(SarFileSplitItemsResEOPage page);
|
||||
|
||||
int queryByCount(SarFileSplitItemsResEOPage page);
|
||||
|
||||
List<SarFileSplitItemsResEO> queryByPage(SarFileSplitItemsResEOPage page);
|
||||
|
||||
}
|
||||
+50
@@ -0,0 +1,50 @@
|
||||
package com.jero.modules.split.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.jero.modules.split.entity.SarFileSplitItemsTableEO;
|
||||
import com.jero.modules.split.page.SarFileSplitItemsTableEOPage;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
* <br>
|
||||
* <b>功能:</b>SAR_FILE_SPLIT_ITEMS_TABLE SarFileSplitItemsTableEODao<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2020-01-17 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
public interface SarFileSplitItemsTableEOMapper extends BaseMapper<SarFileSplitItemsTableEO> {
|
||||
|
||||
int insertForeach(List<SarFileSplitItemsTableEO> list);
|
||||
|
||||
List<SarFileSplitItemsTableEO> queryByRowNum(SarFileSplitItemsTableEOPage page);
|
||||
|
||||
int deleteByitemValIds(@Param("idList") List<String> idList);
|
||||
|
||||
int deleteTableByMenuIds(@Param("idList") List<String> idList);
|
||||
|
||||
int deleteByitemIds(@Param("idList") List<String> idList);
|
||||
|
||||
List<SarFileSplitItemsTableEO> queryItemsTableByMenuId(@Param("idList") List<String> idList);
|
||||
|
||||
|
||||
int insert(SarFileSplitItemsTableEO sarFileSplitItemsTableEO);
|
||||
|
||||
int insertSelective(SarFileSplitItemsTableEO sarFileSplitItemsTableEO);
|
||||
|
||||
int updateByPrimaryKey(SarFileSplitItemsTableEO sarFileSplitItemsTableEO);
|
||||
|
||||
int updateByPrimaryKeySelective(SarFileSplitItemsTableEO sarFileSplitItemsTableEO);
|
||||
|
||||
SarFileSplitItemsTableEO selectByPrimaryKey(String value);
|
||||
|
||||
int deleteByPrimaryKey(String value);
|
||||
|
||||
List<SarFileSplitItemsTableEO> queryByList(SarFileSplitItemsTableEOPage page);
|
||||
|
||||
int queryByCount(SarFileSplitItemsTableEOPage page);
|
||||
|
||||
List<SarFileSplitItemsTableEO> queryByPage(SarFileSplitItemsTableEOPage page);
|
||||
}
|
||||
+55
@@ -0,0 +1,55 @@
|
||||
package com.jero.modules.split.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.jero.modules.split.entity.SarFileSplitItemsValEO;
|
||||
import com.jero.modules.split.page.SarFileSplitItemsValEOPage;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
* <br>
|
||||
* <b>功能:</b>SAR_FILE_SPLIT_ITEMS_VAL SarFileSplitItemsValEODao<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2020-01-07 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
public interface SarFileSplitItemsValEOMapper extends BaseMapper<SarFileSplitItemsValEO> {
|
||||
|
||||
int deleteByIds(SarFileSplitItemsValEO sarFileSplitItemsValEO);
|
||||
|
||||
int deleteByitemId(String id);
|
||||
|
||||
int insertForeach(List<SarFileSplitItemsValEO> list);
|
||||
|
||||
int updateForeach(List<SarFileSplitItemsValEO> list);
|
||||
|
||||
int deleteValByInfoIds(@Param("idList") List<String> idList);
|
||||
|
||||
int deleteValByitemIds(@Param("idList") List<String> idList);
|
||||
|
||||
int deleteValByMenuIds(@Param("idList") List<String> idList);
|
||||
|
||||
List<SarFileSplitItemsValEO> queryItemsValByMenuId(@Param("idList") List<String> idList);
|
||||
|
||||
|
||||
int insert(SarFileSplitItemsValEO sarFileSplitItemsValEO);
|
||||
|
||||
int insertSelective(SarFileSplitItemsValEO sarFileSplitItemsValEO);
|
||||
|
||||
int updateByPrimaryKey(SarFileSplitItemsValEO sarFileSplitItemsValEO);
|
||||
|
||||
int updateByPrimaryKeySelective(SarFileSplitItemsValEO sarFileSplitItemsValEO);
|
||||
|
||||
SarFileSplitItemsValEO selectByPrimaryKey(String value);
|
||||
|
||||
int deleteByPrimaryKey(String value);
|
||||
|
||||
List<SarFileSplitItemsValEO> queryByList(SarFileSplitItemsValEOPage page);
|
||||
|
||||
int queryByCount(SarFileSplitItemsValEOPage page);
|
||||
|
||||
List<SarFileSplitItemsValEO> queryByPage(SarFileSplitItemsValEOPage page);
|
||||
|
||||
}
|
||||
+70
@@ -0,0 +1,70 @@
|
||||
package com.jero.modules.split.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.jero.modules.split.entity.SarFileSplitMenuEO;
|
||||
import com.jero.modules.split.page.SarFileSplitMenuEOPage;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
* <br>
|
||||
* <b>功能:</b>SAR_FILE_SPLIT_MENU SarFileSplitMenuEODao<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2020-01-03 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
public interface SarFileSplitMenuEOMapper extends BaseMapper<SarFileSplitMenuEO> {
|
||||
|
||||
int insertForeach(List<SarFileSplitMenuEO> list);
|
||||
|
||||
int deleteByIds(SarFileSplitMenuEO sarFileSplitMenuEO);
|
||||
|
||||
int updateDisplaySeqAdd(SarFileSplitMenuEO sarFileSplitMenuEO);
|
||||
|
||||
int updateDisplaySeqCut(SarFileSplitMenuEO sarFileSplitMenuEO);
|
||||
|
||||
List<SarFileSplitMenuEO> queryByPidExcpetSelf(SarFileSplitMenuEO sarFileSplitMenuEO);
|
||||
|
||||
int deleteByPId(@Param("id") String id);
|
||||
|
||||
int getMaxDisplayByid(@Param("id") String id);
|
||||
|
||||
int getMaxDisplayByidNextLevel(@Param("id") String id);
|
||||
|
||||
int getChildrenCountByParentId(@Param("id") String id);
|
||||
|
||||
int updateChildrenDisplaySeqByIDAdd(SarFileSplitMenuEO childrenUpdateEO);
|
||||
|
||||
int updateChildrenDisplaySeqByIDCut(SarFileSplitMenuEO childrenUpdateEO);
|
||||
|
||||
/**
|
||||
* 根据ID查询所有的子节点包括父节点
|
||||
* @param sarFileSplitMenuEO
|
||||
* @return
|
||||
*/
|
||||
List<SarFileSplitMenuEO> queryAllChildrenByid(SarFileSplitMenuEO sarFileSplitMenuEO);
|
||||
|
||||
int deleteByIdList(@Param("idList") List<String> idList);
|
||||
|
||||
|
||||
|
||||
int insert(SarFileSplitMenuEO sarFileSplitMenuEO);
|
||||
|
||||
int insertSelective(SarFileSplitMenuEO sarFileSplitMenuEO);
|
||||
|
||||
int updateByPrimaryKey(SarFileSplitMenuEO sarFileSplitMenuEO);
|
||||
|
||||
int updateByPrimaryKeySelective(SarFileSplitMenuEO sarFileSplitMenuEO);
|
||||
|
||||
SarFileSplitMenuEO selectByPrimaryKey(String value);
|
||||
|
||||
int deleteByPrimaryKey(String value);
|
||||
|
||||
List<SarFileSplitMenuEO> queryByList(SarFileSplitMenuEOPage page);
|
||||
|
||||
int queryByCount(SarFileSplitMenuEOPage page);
|
||||
|
||||
List<SarFileSplitMenuEO> queryByPage(SarFileSplitMenuEOPage page);
|
||||
}
|
||||
+455
@@ -0,0 +1,455 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.jero.modules.split.mapper.SarFileSplitItemsEOMapper" >
|
||||
<!-- Result Map-->
|
||||
<resultMap id="BaseResultMap" type="com.jero.modules.split.entity.SarFileSplitItemsEO" >
|
||||
<id column="id" property="id" />
|
||||
<result column="info_id" property="infoId" />
|
||||
<result column="items_num" property="itemsNum" />
|
||||
<result column="items_name" property="itemsName" />
|
||||
<result column="iterms_conditions" property="itermsConditions" />
|
||||
<result column="newcar_put_time" property="newcarPutTime" />
|
||||
<result column="product_put_time" property="productPutTime" />
|
||||
<result column="menu_id" property="menuId" />
|
||||
<result column="svpps" property="svpps" />
|
||||
<result column="apply_arctic" property="applyArctic" />
|
||||
<result column="reference_stand" property="referenceStand" />
|
||||
<result column="special_request" property="specialRequest" />
|
||||
<result column="relevance_file" property="relevanceFile" />
|
||||
<result column="remarks" property="remarks" />
|
||||
<result column="valid_flag" property="validFlag" />
|
||||
<result column="creation_user" property="creationUser" />
|
||||
<result column="creation_time" property="creationTime" />
|
||||
<result column="modify_time" property="modifyTime" />
|
||||
<result column="modify_user" property="modifyUser" />
|
||||
<result column="iss_force" property="issForce" />
|
||||
</resultMap>
|
||||
<resultMap id="BaseResultMapExport" type="com.jero.modules.split.dto.FileSplitItemsExportDto" >
|
||||
<result column="id" property="id" />
|
||||
<result column="items_num" property="itemsNum" />
|
||||
<result column="items_name" property="itemsName" />
|
||||
<result column="iterms_conditions" property="itermsConditions" />
|
||||
<result column="newcar_put_time" property="newcarPutTime" />
|
||||
<result column="product_put_time" property="productPutTime" />
|
||||
<result column="svpps" property="svpps" />
|
||||
<result column="apply_arctic" property="applyArctic" />
|
||||
<result column="reference_stand" property="referenceStand" />
|
||||
<result column="remarks" property="remarks" />
|
||||
<result column="relevance_file" property="relevanceFile" />
|
||||
|
||||
</resultMap>
|
||||
|
||||
<!-- SAR_FILE_SPLIT_ITEMS table all fields -->
|
||||
<sql id="Base_Column_List" >
|
||||
SAR_FILE_SPLIT_ITEMS.id, SAR_FILE_SPLIT_ITEMS.info_id, SAR_FILE_SPLIT_ITEMS.items_num, items_name, iterms_conditions, newcar_put_time, product_put_time, menu_id, svpps, apply_arctic, reference_stand, special_request, relevance_file, SAR_FILE_SPLIT_ITEMS.remarks, SAR_FILE_SPLIT_ITEMS.valid_flag, SAR_FILE_SPLIT_ITEMS.creation_user, SAR_FILE_SPLIT_ITEMS.creation_time, SAR_FILE_SPLIT_ITEMS.modify_time, SAR_FILE_SPLIT_ITEMS.modify_user,SAR_FILE_SPLIT_ITEMS.iss_force
|
||||
</sql>
|
||||
|
||||
<!-- 查询条件 -->
|
||||
<sql id="Base_Where_Clause">
|
||||
where 1=1
|
||||
<trim suffixOverrides="," >
|
||||
<if test="id != null" >
|
||||
and SAR_FILE_SPLIT_ITEMS.id ${idOperator} #{id}
|
||||
</if>
|
||||
<if test="infoId != null" >
|
||||
and SAR_FILE_SPLIT_ITEMS.info_id ${infoIdOperator} #{infoId}
|
||||
</if>
|
||||
<if test="itemsNum != null" >
|
||||
and SAR_FILE_SPLIT_ITEMS.items_num ${itemsNumOperator} #{itemsNum}
|
||||
</if>
|
||||
<if test="itemsName != null" >
|
||||
and SAR_FILE_SPLIT_ITEMS.items_name ${itemsNameOperator} #{itemsName}
|
||||
</if>
|
||||
<if test="itermsConditions != null" >
|
||||
and SAR_FILE_SPLIT_ITEMS.iterms_conditions ${itermsConditionsOperator} #{itermsConditions}
|
||||
</if>
|
||||
<if test="newcarPutTime != null" >
|
||||
and SAR_FILE_SPLIT_ITEMS.newcar_put_time ${newcarPutTimeOperator} #{newcarPutTime}
|
||||
</if>
|
||||
<if test="newcarPutTime1 != null" >
|
||||
and SAR_FILE_SPLIT_ITEMS.newcar_put_time >= #{newcarPutTime1}
|
||||
</if>
|
||||
<if test="newcarPutTime2 != null" >
|
||||
and SAR_FILE_SPLIT_ITEMS.newcar_put_time <= #{newcarPutTime2}
|
||||
</if>
|
||||
<if test="productPutTime != null" >
|
||||
and SAR_FILE_SPLIT_ITEMS.product_put_time ${productPutTimeOperator} #{productPutTime}
|
||||
</if>
|
||||
<if test="productPutTime1 != null" >
|
||||
and SAR_FILE_SPLIT_ITEMS.product_put_time >= #{productPutTime1}
|
||||
</if>
|
||||
<if test="productPutTime2 != null" >
|
||||
and SAR_FILE_SPLIT_ITEMS.product_put_time <= #{productPutTime2}
|
||||
</if>
|
||||
<if test="sMenuId != null" >
|
||||
and menu_id = #{sMenuId}
|
||||
</if>
|
||||
<if test="svpps != null" >
|
||||
and svpps ${svppsOperator} #{svpps}
|
||||
</if>
|
||||
<if test="applyArctic != null" >
|
||||
and apply_arctic ${applyArcticOperator} #{applyArctic}
|
||||
</if>
|
||||
<if test="referenceStand != null" >
|
||||
and reference_stand ${referenceStandOperator} #{referenceStand}
|
||||
</if>
|
||||
<if test="specialRequest != null" >
|
||||
and special_request ${specialRequestOperator} #{specialRequest}
|
||||
</if>
|
||||
<if test="relevanceFile != null" >
|
||||
and relevance_file ${relevanceFileOperator} #{relevanceFile}
|
||||
</if>
|
||||
<if test="remarks != null" >
|
||||
and SAR_FILE_SPLIT_ITEMS.remarks ${remarksOperator} #{remarks}
|
||||
</if>
|
||||
<if test="validFlag != null" >
|
||||
and SAR_FILE_SPLIT_ITEMS.valid_flag ${validFlagOperator} #{validFlag}
|
||||
</if>
|
||||
<if test="creationUser != null" >
|
||||
and SAR_FILE_SPLIT_ITEMS.creation_user ${creationUserOperator} #{creationUser}
|
||||
</if>
|
||||
<if test="creationTime != null" >
|
||||
and SAR_FILE_SPLIT_ITEMS.creation_time ${creationTimeOperator} #{creationTime}
|
||||
</if>
|
||||
<if test="creationTime1 != null" >
|
||||
and SAR_FILE_SPLIT_ITEMS.creation_time >= #{creationTime1}
|
||||
</if>
|
||||
<if test="creationTime2 != null" >
|
||||
and SAR_FILE_SPLIT_ITEMS.creation_time <= #{creationTime2}
|
||||
</if>
|
||||
<if test="modifyTime != null" >
|
||||
and SAR_FILE_SPLIT_ITEMS.modify_time ${modifyTimeOperator} #{modifyTime}
|
||||
</if>
|
||||
<if test="modifyTime1 != null" >
|
||||
and SAR_FILE_SPLIT_ITEMS.modify_time >= #{modifyTime1}
|
||||
</if>
|
||||
<if test="modifyTime2 != null" >
|
||||
and SAR_FILE_SPLIT_ITEMS.modify_time <= #{modifyTime2}
|
||||
</if>
|
||||
<if test="modifyUser != null" >
|
||||
and SAR_FILE_SPLIT_ITEMS.modify_user ${modifyUserOperator} #{modifyUser}
|
||||
</if>
|
||||
</trim>
|
||||
</sql>
|
||||
|
||||
<!-- 插入记录 -->
|
||||
<insert id="insert" parameterType="com.jero.modules.split.entity.SarFileSplitItemsEO" >
|
||||
<!-- <selectKey resultType="java.lang.String" order="BEFORE" keyProperty="id">
|
||||
SELECT SEQ_SAR_FILE_SPLIT_ITEMS.NEXTVAL FROM DUAL
|
||||
</selectKey> -->
|
||||
insert into SAR_FILE_SPLIT_ITEMS(<include refid="Base_Column_List" />)
|
||||
values (#{id, jdbcType=VARCHAR}, #{infoId, jdbcType=VARCHAR}, #{itemsNum, jdbcType=VARCHAR}, #{itemsName, jdbcType=VARCHAR}, #{itermsConditions, jdbcType=CLOB}, #{newcarPutTime, jdbcType=TIMESTAMP}, #{productPutTime, jdbcType=TIMESTAMP}, #{menuId, jdbcType=VARCHAR}, #{svpps, jdbcType=VARCHAR}, #{applyArctic, jdbcType=VARCHAR}, #{referenceStand, jdbcType=VARCHAR}, #{specialRequest, jdbcType=VARCHAR}, #{relevanceFile, jdbcType=VARCHAR}, #{remarks, jdbcType=VARCHAR}, #{validFlag, jdbcType=INTEGER}, #{creationUser, jdbcType=VARCHAR}, #{creationTime, jdbcType=TIMESTAMP}, #{modifyTime, jdbcType=TIMESTAMP}, #{modifyUser, jdbcType=VARCHAR})
|
||||
</insert>
|
||||
|
||||
<!-- 动态插入记录 主键是序列 -->
|
||||
<insert id="insertSelective" parameterType="com.jero.modules.split.entity.SarFileSplitItemsEO" >
|
||||
<!-- <selectKey resultType="java.lang.String" order="BEFORE" keyProperty="id">
|
||||
SELECT SEQ_SAR_FILE_SPLIT_ITEMS.NEXTVAL FROM DUAL
|
||||
</selectKey> -->
|
||||
insert into SAR_FILE_SPLIT_ITEMS
|
||||
<trim prefix="(" suffix=")" suffixOverrides="," >
|
||||
<if test="id != null" >id,</if>
|
||||
<if test="infoId != null" >info_id,</if>
|
||||
<if test="itemsNum != null" >items_num,</if>
|
||||
<if test="itemsName != null" >items_name,</if>
|
||||
<if test="itermsConditions != null" >iterms_conditions,</if>
|
||||
<if test="newcarPutTime != null" >newcar_put_time,</if>
|
||||
<if test="productPutTime != null" >product_put_time,</if>
|
||||
<if test="menuId != null" >menu_id,</if>
|
||||
<if test="svpps != null" >svpps,</if>
|
||||
<if test="applyArctic != null" >apply_arctic,</if>
|
||||
<if test="referenceStand != null" >reference_stand,</if>
|
||||
<if test="specialRequest != null" >special_request,</if>
|
||||
<if test="relevanceFile != null" >relevance_file,</if>
|
||||
<if test="remarks != null" >remarks,</if>
|
||||
<if test="validFlag != null" >valid_flag,</if>
|
||||
<if test="creationUser != null" >creation_user,</if>
|
||||
<if test="creationTime != null" >creation_time,</if>
|
||||
<if test="modifyTime != null" >modify_time,</if>
|
||||
<if test="modifyUser != null" >modify_user,</if>
|
||||
<if test="issForce != null" >iss_force,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
||||
<if test="id != null" >#{id, jdbcType=VARCHAR},</if>
|
||||
<if test="infoId != null" >#{infoId, jdbcType=VARCHAR},</if>
|
||||
<if test="itemsNum != null" >#{itemsNum, jdbcType=VARCHAR},</if>
|
||||
<if test="itemsName != null" >#{itemsName, jdbcType=VARCHAR},</if>
|
||||
<if test="itermsConditions != null" >#{itermsConditions, jdbcType=CLOB},</if>
|
||||
<if test="newcarPutTime != null" >#{newcarPutTime, jdbcType=TIMESTAMP},</if>
|
||||
<if test="productPutTime != null" >#{productPutTime, jdbcType=TIMESTAMP},</if>
|
||||
<if test="menuId != null" >#{menuId, jdbcType=VARCHAR},</if>
|
||||
<if test="svpps != null" >#{svpps, jdbcType=VARCHAR},</if>
|
||||
<if test="applyArctic != null" >#{applyArctic, jdbcType=VARCHAR},</if>
|
||||
<if test="referenceStand != null" >#{referenceStand, jdbcType=VARCHAR},</if>
|
||||
<if test="specialRequest != null" >#{specialRequest, jdbcType=VARCHAR},</if>
|
||||
<if test="relevanceFile != null" >#{relevanceFile, jdbcType=VARCHAR},</if>
|
||||
<if test="remarks != null" >#{remarks, jdbcType=VARCHAR},</if>
|
||||
<if test="validFlag != null" >#{validFlag, jdbcType=INTEGER},</if>
|
||||
<if test="creationUser != null" >#{creationUser, jdbcType=VARCHAR},</if>
|
||||
<if test="creationTime != null" >#{creationTime, jdbcType=TIMESTAMP},</if>
|
||||
<if test="modifyTime != null" >#{modifyTime, jdbcType=TIMESTAMP},</if>
|
||||
<if test="modifyUser != null" >#{modifyUser, jdbcType=VARCHAR},</if>
|
||||
<if test="issForce != null" >#{issForce, jdbcType=INTEGER},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<!-- 根据pk,修改记录-->
|
||||
<update id="updateByPrimaryKey" parameterType="com.jero.modules.split.entity.SarFileSplitItemsEO" >
|
||||
update SAR_FILE_SPLIT_ITEMS
|
||||
set info_id = #{infoId},
|
||||
items_num = #{itemsNum},
|
||||
items_name = #{itemsName},
|
||||
iterms_conditions = #{itermsConditions},
|
||||
newcar_put_time = #{newcarPutTime},
|
||||
product_put_time = #{productPutTime},
|
||||
menu_id = #{menuId},
|
||||
svpps = #{svpps},
|
||||
apply_arctic = #{applyArctic},
|
||||
reference_stand = #{referenceStand},
|
||||
special_request = #{specialRequest},
|
||||
relevance_file = #{relevanceFile},
|
||||
remarks = #{remarks},
|
||||
valid_flag = #{validFlag},
|
||||
creation_user = #{creationUser},
|
||||
creation_time = #{creationTime},
|
||||
modify_time = #{modifyTime},
|
||||
modify_user = #{modifyUser}
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<!-- 修改记录,只修改只不为空的字段 -->
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.jero.modules.split.entity.SarFileSplitItemsEO" >
|
||||
update SAR_FILE_SPLIT_ITEMS
|
||||
<set >
|
||||
<if test="infoId != null" >
|
||||
info_id = #{infoId},
|
||||
</if>
|
||||
<if test="itemsNum != null" >
|
||||
items_num = #{itemsNum},
|
||||
</if>
|
||||
<if test="itemsName != null" >
|
||||
items_name = #{itemsName},
|
||||
</if>
|
||||
<if test="itermsConditions != null" >
|
||||
iterms_conditions = #{itermsConditions},
|
||||
</if>
|
||||
<if test="newcarPutTime != null" >
|
||||
newcar_put_time = #{newcarPutTime},
|
||||
</if>
|
||||
<if test="newcarPutTime == null" >
|
||||
newcar_put_time = null,
|
||||
</if>
|
||||
<if test="productPutTime != null" >
|
||||
product_put_time = #{productPutTime},
|
||||
</if>
|
||||
<if test="productPutTime == null" >
|
||||
product_put_time = null,
|
||||
</if>
|
||||
<if test="menuId != null" >
|
||||
menu_id = #{menuId},
|
||||
</if>
|
||||
<if test="svpps != null" >
|
||||
svpps = #{svpps},
|
||||
</if>
|
||||
<if test="applyArctic != null" >
|
||||
apply_arctic = #{applyArctic},
|
||||
</if>
|
||||
<if test="referenceStand != null" >
|
||||
reference_stand = #{referenceStand},
|
||||
</if>
|
||||
<if test="specialRequest != null" >
|
||||
special_request = #{specialRequest},
|
||||
</if>
|
||||
<if test="relevanceFile != null" >
|
||||
relevance_file = #{relevanceFile},
|
||||
</if>
|
||||
<if test="remarks != null" >
|
||||
remarks = #{remarks},
|
||||
</if>
|
||||
<if test="validFlag != null" >
|
||||
valid_flag = #{validFlag},
|
||||
</if>
|
||||
<if test="creationUser != null" >
|
||||
creation_user = #{creationUser},
|
||||
</if>
|
||||
<if test="creationTime != null" >
|
||||
creation_time = #{creationTime},
|
||||
</if>
|
||||
<if test="modifyTime != null" >
|
||||
modify_time = #{modifyTime},
|
||||
</if>
|
||||
<if test="modifyUser != null" >
|
||||
modify_user = #{modifyUser},
|
||||
</if>
|
||||
<if test="issForce != null" >
|
||||
iss_force = #{issForce},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<!-- 根据id查询 SAR_FILE_SPLIT_ITEMS -->
|
||||
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String">
|
||||
select <include refid="Base_Column_List" />
|
||||
from SAR_FILE_SPLIT_ITEMS
|
||||
where id = #{value}
|
||||
|
||||
</select>
|
||||
|
||||
<!-- 删除记录 -->
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
||||
delete from SAR_FILE_SPLIT_ITEMS
|
||||
where id = #{value}
|
||||
|
||||
</delete>
|
||||
|
||||
<!-- SAR_FILE_SPLIT_ITEMS 列表总数-->
|
||||
<select id="queryByCount" resultType="java.lang.Integer" parameterType="com.jero.modules.split.common.BasePage">
|
||||
select count(1) from SAR_FILE_SPLIT_ITEMS
|
||||
<include refid="Base_Where_Clause"/>
|
||||
<if test="menuId != null">
|
||||
and SAR_FILE_SPLIT_ITEMS.MENU_ID in (
|
||||
select SAR_FILE_SPLIT_MENU.id from SAR_FILE_SPLIT_MENU start with id=#{menuId} connect by prior id= p_id
|
||||
)
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<!-- 查询SAR_FILE_SPLIT_ITEMS列表 -->
|
||||
<select id="queryByPage" resultMap="BaseResultMap" parameterType="com.jero.modules.split.page.SarFileSplitItemsEOPage">
|
||||
select * from
|
||||
(select tmp_tb.* , rownum rn from
|
||||
(select <include refid="Base_Column_List" /> from SAR_FILE_SPLIT_ITEMS left join SAR_FILE_SPLIT_MENU on SAR_FILE_SPLIT_ITEMS.MENU_ID = SAR_FILE_SPLIT_MENU.id
|
||||
<include refid="Base_Where_Clause"/>
|
||||
<if test="menuId != null">
|
||||
and SAR_FILE_SPLIT_ITEMS.MENU_ID in (
|
||||
select SAR_FILE_SPLIT_MENU.id from SAR_FILE_SPLIT_MENU start with id=#{menuId} connect by prior id= p_id
|
||||
)
|
||||
</if>
|
||||
<if test="pager.orderCondition != null and pager.orderCondition != ''" >
|
||||
${pager.orderCondition}
|
||||
</if>
|
||||
) tmp_tb where rownum <= ${pager.endIndex})
|
||||
where rn >= ${pager.startIndex}
|
||||
</select>
|
||||
|
||||
<select id="queryByList2" resultMap="BaseResultMap" parameterType="com.jero.modules.split.page.SarFileSplitItemsEOPage">
|
||||
select <include refid="Base_Column_List" /> from SAR_FILE_SPLIT_ITEMS left join SAR_FILE_SPLIT_MENU on SAR_FILE_SPLIT_ITEMS.MENU_ID = SAR_FILE_SPLIT_MENU.id
|
||||
<include refid="Base_Where_Clause"/>
|
||||
<if test="menuId != null">
|
||||
and SAR_FILE_SPLIT_ITEMS.MENU_ID in (
|
||||
select SAR_FILE_SPLIT_MENU.id from SAR_FILE_SPLIT_MENU start with id=#{menuId} connect by prior id= p_id
|
||||
)
|
||||
</if>
|
||||
<if test="pager.orderCondition != null and pager.orderCondition != ''" >
|
||||
${pager.orderCondition}
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<select id="queryByList" resultMap="BaseResultMap" parameterType="com.jero.modules.split.common.BasePage">
|
||||
select <include refid="Base_Column_List"/> from SAR_FILE_SPLIT_ITEMS
|
||||
<include refid="Base_Where_Clause"/>
|
||||
<if test="pager.orderCondition != null and pager.orderCondition != ''" >
|
||||
${pager.orderCondition}
|
||||
</if>
|
||||
</select>
|
||||
|
||||
|
||||
<!-- 批量插入接口 -->
|
||||
<insert id="insertForeach" parameterType="java.util.List">
|
||||
begin
|
||||
<foreach collection="list" item="item" index="index" separator=";">
|
||||
insert into SAR_FILE_SPLIT_ITEMS
|
||||
(id, info_id, items_num, items_name, newcar_put_time, product_put_time, menu_id, svpps, apply_arctic, reference_stand, special_request, relevance_file, remarks, valid_flag, creation_user, creation_time, modify_time,
|
||||
modify_user, iterms_conditions)
|
||||
values (
|
||||
#{item.id, jdbcType=VARCHAR}, #{item.infoId, jdbcType=VARCHAR}, #{item.itemsNum, jdbcType=VARCHAR},
|
||||
#{item.itemsName, jdbcType=VARCHAR},
|
||||
#{item.newcarPutTime, jdbcType=TIMESTAMP}, #{item.productPutTime, jdbcType=TIMESTAMP},
|
||||
#{item.menuId, jdbcType=VARCHAR}, #{item.svpps, jdbcType=VARCHAR}, #{item.applyArctic, jdbcType=VARCHAR},
|
||||
#{item.referenceStand, jdbcType=VARCHAR}, #{item.specialRequest, jdbcType=VARCHAR},
|
||||
#{item.relevanceFile, jdbcType=VARCHAR}, #{item.remarks, jdbcType=VARCHAR},
|
||||
#{item.validFlag, jdbcType=INTEGER}, #{item.creationUser, jdbcType=VARCHAR},
|
||||
#{item.creationTime, jdbcType=TIMESTAMP}, #{item.modifyTime, jdbcType=TIMESTAMP},
|
||||
#{item.modifyUser, jdbcType=VARCHAR}, #{item.itermsConditions, jdbcType=CLOB}
|
||||
)
|
||||
</foreach>
|
||||
;end;
|
||||
</insert>
|
||||
|
||||
<delete id="deleteByIds" parameterType="com.jero.modules.split.entity.SarFileSplitItemsEO">
|
||||
delete from SAR_FILE_SPLIT_ITEMS
|
||||
where info_id in
|
||||
<foreach collection="infoIdList" index="index" item="item" open="(" separator="," close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
<delete id="deleteByItemsIds" parameterType="com.jero.modules.split.entity.SarFileSplitItemsEO">
|
||||
delete from SAR_FILE_SPLIT_ITEMS
|
||||
where id in
|
||||
<foreach collection="idList" index="index" item="item" open="(" separator="," close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
<delete id="deleteByMenuIds" parameterType="java.util.List">
|
||||
delete from SAR_FILE_SPLIT_ITEMS
|
||||
where menu_id in
|
||||
<foreach collection="idList" index="index" item="item" open="(" separator="," close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
<!-- 通过menuid 查询目录下所有的条目 -->
|
||||
<select id="queryItemsByMenuId" resultMap="BaseResultMap" parameterType="com.jero.modules.split.common.BasePage">
|
||||
select <include refid="Base_Column_List"/> from SAR_FILE_SPLIT_ITEMS
|
||||
left join SAR_FILE_SPLIT_MENU on SAR_FILE_SPLIT_ITEMS.MENU_ID = SAR_FILE_SPLIT_MENU.id
|
||||
where SAR_FILE_SPLIT_ITEMS.valid_flag = '0' and menu_id in (
|
||||
select SAR_FILE_SPLIT_MENU.id from SAR_FILE_SPLIT_MENU
|
||||
where valid_flag=0
|
||||
start with id=#{menuId} connect by prior id= p_id
|
||||
)
|
||||
order by SAR_FILE_SPLIT_MENU.display_seq asc
|
||||
</select>
|
||||
|
||||
<select id="queryByItemsIds" resultMap="BaseResultMap" parameterType="com.jero.modules.split.entity.SarFileSplitItemsEO">
|
||||
select menu_id from SAR_FILE_SPLIT_ITEMS
|
||||
where id in
|
||||
<foreach collection="idList" index="index" item="item" open="(" separator="," close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
group by menu_id
|
||||
</select>
|
||||
|
||||
<delete id="deleteByItemsIdList" parameterType="java.util.List">
|
||||
delete from SAR_FILE_SPLIT_ITEMS
|
||||
where id in
|
||||
<foreach collection="idList" index="index" item="item" open="(" separator="," close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
<select id="queryByOrdersForExport" resultMap="BaseResultMapExport" parameterType="com.jero.modules.split.page.SarFileSplitItemsEOPage">
|
||||
select SAR_FILE_SPLIT_ITEMS.id,SAR_FILE_SPLIT_ITEMS.items_num,SAR_FILE_SPLIT_ITEMS.items_name,
|
||||
newcar_put_time,product_put_time,svpps,apply_arctic,reference_stand,SAR_FILE_SPLIT_ITEMS.remarks,
|
||||
relevance_file
|
||||
from SAR_FILE_SPLIT_ITEMS
|
||||
left join SAR_FILE_SPLIT_MENU on SAR_FILE_SPLIT_ITEMS.MENU_ID = SAR_FILE_SPLIT_MENU.id
|
||||
<include refid="Base_Where_Clause"/>
|
||||
<if test="menuId != null">
|
||||
and SAR_FILE_SPLIT_ITEMS.MENU_ID in (
|
||||
select SAR_FILE_SPLIT_MENU.id from SAR_FILE_SPLIT_MENU start with id=#{menuId} connect by prior id= p_id
|
||||
)
|
||||
</if>
|
||||
<if test="idList != null">
|
||||
and SAR_FILE_SPLIT_ITEMS.id in
|
||||
<foreach collection="idList" index="index" item="item" open="(" separator="," close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
</if>
|
||||
<if test="pager.orderCondition != null and pager.orderCondition != ''" >
|
||||
${pager.orderCondition}
|
||||
</if>
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
+243
@@ -0,0 +1,243 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.jero.modules.split.mapper.SarFileSplitItemsFileEOMapper" >
|
||||
<!-- Result Map-->
|
||||
<resultMap id="BaseResultMap" type="com.jero.modules.split.entity.SarFileSplitItemsFileEO" >
|
||||
<id column="id" property="id" />
|
||||
<result column="stand_id" property="standId" />
|
||||
<result column="res_id" property="resId" />
|
||||
<result column="att_id" property="attId" />
|
||||
<result column="use_model" property="useModel" />
|
||||
<result column="valid_flag" property="validFlag" />
|
||||
<result column="creation_time" property="creationTime" />
|
||||
<result column="modify_time" property="modifyTime" />
|
||||
<result column="page_count" property="pageCount" />
|
||||
</resultMap>
|
||||
|
||||
<!-- SAR_FILE_SPLIT_ITEMS_FILE table all fields -->
|
||||
<sql id="Base_Column_List" >
|
||||
id, stand_id, res_id, att_id, use_model, valid_flag, creation_time, modify_time, page_count
|
||||
</sql>
|
||||
|
||||
<!-- 查询条件 -->
|
||||
<sql id="Base_Where_Clause">
|
||||
where 1=1
|
||||
<trim suffixOverrides="," >
|
||||
<if test="id != null" >
|
||||
and id ${idOperator} #{id}
|
||||
</if>
|
||||
<if test="standId != null" >
|
||||
and stand_id ${standIdOperator} #{standId}
|
||||
</if>
|
||||
<if test="resId != null" >
|
||||
and res_id ${resIdOperator} #{resId}
|
||||
</if>
|
||||
<if test="attId != null" >
|
||||
and att_id ${attIdOperator} #{attId}
|
||||
</if>
|
||||
<if test="useModel != null" >
|
||||
and use_model ${useModelOperator} #{useModel}
|
||||
</if>
|
||||
<if test="validFlag != null" >
|
||||
and valid_flag ${validFlagOperator} #{validFlag}
|
||||
</if>
|
||||
<if test="creationTime != null" >
|
||||
and creation_time ${creationTimeOperator} #{creationTime}
|
||||
</if>
|
||||
<if test="creationTime1 != null" >
|
||||
and creation_time >= #{creationTime1}
|
||||
</if>
|
||||
<if test="creationTime2 != null" >
|
||||
and creation_time <= #{creationTime2}
|
||||
</if>
|
||||
<if test="modifyTime != null" >
|
||||
and modify_time ${modifyTimeOperator} #{modifyTime}
|
||||
</if>
|
||||
<if test="modifyTime1 != null" >
|
||||
and modify_time >= #{modifyTime1}
|
||||
</if>
|
||||
<if test="modifyTime2 != null" >
|
||||
and modify_time <= #{modifyTime2}
|
||||
</if>
|
||||
<if test="pageCount != null" >
|
||||
and page_count ${pageCountOperator} #{pageCount}
|
||||
</if>
|
||||
</trim>
|
||||
</sql>
|
||||
|
||||
<!-- 插入记录 -->
|
||||
<insert id="insert" parameterType="com.jero.modules.split.entity.SarFileSplitItemsFileEO" >
|
||||
<!-- <selectKey resultType="java.lang.String" order="BEFORE" keyProperty="id">
|
||||
SELECT SEQ_SAR_FILE_SPLIT_ITEMS_FILE.NEXTVAL FROM DUAL
|
||||
</selectKey> -->
|
||||
insert into SAR_FILE_SPLIT_ITEMS_FILE(<include refid="Base_Column_List" />)
|
||||
values (#{id, jdbcType=VARCHAR}, #{standId, jdbcType=VARCHAR}, #{resId, jdbcType=VARCHAR}, #{attId, jdbcType=VARCHAR}, #{useModel, jdbcType=VARCHAR}, #{validFlag, jdbcType=INTEGER}, #{creationTime, jdbcType=TIMESTAMP}, #{modifyTime, jdbcType=TIMESTAMP}, #{pageCount, jdbcType=VARCHAR})
|
||||
</insert>
|
||||
|
||||
<!-- 动态插入记录 主键是序列 -->
|
||||
<insert id="insertSelective" parameterType="com.jero.modules.split.entity.SarFileSplitItemsFileEO" >
|
||||
<!-- <selectKey resultType="java.lang.String" order="BEFORE" keyProperty="id">
|
||||
SELECT SEQ_SAR_FILE_SPLIT_ITEMS_FILE.NEXTVAL FROM DUAL
|
||||
</selectKey> -->
|
||||
insert into SAR_FILE_SPLIT_ITEMS_FILE
|
||||
<trim prefix="(" suffix=")" suffixOverrides="," >
|
||||
<if test="id != null" >id,</if>
|
||||
<if test="standId != null" >stand_id,</if>
|
||||
<if test="resId != null" >res_id,</if>
|
||||
<if test="attId != null" >att_id,</if>
|
||||
<if test="useModel != null" >use_model,</if>
|
||||
<if test="validFlag != null" >valid_flag,</if>
|
||||
<if test="creationTime != null" >creation_time,</if>
|
||||
<if test="modifyTime != null" >modify_time,</if>
|
||||
<if test="pageCount != null" >page_count,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
||||
<if test="id != null" >#{id, jdbcType=VARCHAR},</if>
|
||||
<if test="standId != null" >#{standId, jdbcType=VARCHAR},</if>
|
||||
<if test="resId != null" >#{resId, jdbcType=VARCHAR},</if>
|
||||
<if test="attId != null" >#{attId, jdbcType=VARCHAR},</if>
|
||||
<if test="useModel != null" >#{useModel, jdbcType=VARCHAR},</if>
|
||||
<if test="validFlag != null" >#{validFlag, jdbcType=INTEGER},</if>
|
||||
<if test="creationTime != null" >#{creationTime, jdbcType=TIMESTAMP},</if>
|
||||
<if test="modifyTime != null" >#{modifyTime, jdbcType=TIMESTAMP},</if>
|
||||
<if test="pageCount != null" >#{pageCount, jdbcType=VARCHAR},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<!-- 根据pk,修改记录-->
|
||||
<update id="updateByPrimaryKey" parameterType="com.jero.modules.split.entity.SarFileSplitItemsFileEO" >
|
||||
update SAR_FILE_SPLIT_ITEMS_FILE
|
||||
set stand_id = #{standId},
|
||||
res_id = #{resId},
|
||||
att_id = #{attId},
|
||||
use_model = #{useModel},
|
||||
valid_flag = #{validFlag},
|
||||
creation_time = #{creationTime},
|
||||
modify_time = #{modifyTime},
|
||||
page_count = #{pageCount}
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<!-- 修改记录,只修改只不为空的字段 -->
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.jero.modules.split.entity.SarFileSplitItemsFileEO" >
|
||||
update SAR_FILE_SPLIT_ITEMS_FILE
|
||||
<set >
|
||||
<if test="standId != null" >
|
||||
stand_id = #{standId},
|
||||
</if>
|
||||
<if test="resId != null" >
|
||||
res_id = #{resId},
|
||||
</if>
|
||||
<if test="attId != null" >
|
||||
att_id = #{attId},
|
||||
</if>
|
||||
<if test="useModel != null" >
|
||||
use_model = #{useModel},
|
||||
</if>
|
||||
<if test="validFlag != null" >
|
||||
valid_flag = #{validFlag},
|
||||
</if>
|
||||
<if test="creationTime != null" >
|
||||
creation_time = #{creationTime},
|
||||
</if>
|
||||
<if test="modifyTime != null" >
|
||||
modify_time = #{modifyTime},
|
||||
</if>
|
||||
<if test="pageCount != null" >
|
||||
page_count = #{pageCount},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<!-- 根据id查询 SAR_FILE_SPLIT_ITEMS_FILE -->
|
||||
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String">
|
||||
select <include refid="Base_Column_List" />
|
||||
from SAR_FILE_SPLIT_ITEMS_FILE
|
||||
where id = #{value}
|
||||
|
||||
</select>
|
||||
|
||||
<!-- 删除记录 -->
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
||||
delete from SAR_FILE_SPLIT_ITEMS_FILE
|
||||
where id = #{value}
|
||||
|
||||
</delete>
|
||||
|
||||
<!-- SAR_FILE_SPLIT_ITEMS_FILE 列表总数-->
|
||||
<select id="queryByCount" resultType="java.lang.Integer" parameterType="com.jero.modules.split.common.BasePage">
|
||||
select count(1) from SAR_FILE_SPLIT_ITEMS_FILE
|
||||
<include refid="Base_Where_Clause"/>
|
||||
</select>
|
||||
|
||||
<!-- 查询SAR_FILE_SPLIT_ITEMS_FILE列表 -->
|
||||
<select id="queryByPage" resultMap="BaseResultMap" parameterType="com.jero.modules.split.common.BasePage">
|
||||
select <include refid="Base_Column_List" /> from
|
||||
(select tmp_tb.* , rownum rn from
|
||||
(select <include refid="Base_Column_List" /> from SAR_FILE_SPLIT_ITEMS_FILE
|
||||
<include refid="Base_Where_Clause"/>
|
||||
<if test="pager.orderCondition != null and pager.orderCondition != ''" >
|
||||
${pager.orderCondition}
|
||||
</if>
|
||||
) tmp_tb where rownum <= ${pager.endIndex})
|
||||
where rn >= ${pager.startIndex}
|
||||
</select>
|
||||
|
||||
<select id="queryByList" resultMap="BaseResultMap" parameterType="com.jero.modules.split.common.BasePage">
|
||||
select <include refid="Base_Column_List"/> from SAR_FILE_SPLIT_ITEMS_FILE
|
||||
<include refid="Base_Where_Clause"/>
|
||||
<if test="pager.orderCondition != null and pager.orderCondition != ''" >
|
||||
${pager.orderCondition}
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<select id="selectFileMsgByAttId" resultMap="BaseResultMap" parameterType="java.lang.String">
|
||||
select <include refid="Base_Column_List" />
|
||||
from SAR_FILE_SPLIT_ITEMS_FILE
|
||||
where valid_flag = 0
|
||||
and att_id = #{value}
|
||||
</select>
|
||||
|
||||
<select id="selectFileByItemsIdAndId" resultMap="BaseResultMap" parameterType="com.jero.modules.split.entity.SarFileSplitItemsFileEO">
|
||||
select <include refid="Base_Column_List" />
|
||||
from SAR_FILE_SPLIT_ITEMS_FILE
|
||||
where valid_flag = 0
|
||||
<if test="standId != null" >
|
||||
and stand_id = #{standId}
|
||||
</if>
|
||||
<if test="idlist != null">
|
||||
and id not in
|
||||
<foreach collection="idlist" index="index" item="item" open="(" separator="," close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<select id="selectFileByAttId" resultMap="BaseResultMap" parameterType="java.lang.String">
|
||||
select <include refid="Base_Column_List" />
|
||||
from SAR_FILE_SPLIT_ITEMS_FILE
|
||||
where valid_flag = 0
|
||||
and stand_id = (
|
||||
select stand_id
|
||||
from SAR_FILE_SPLIT_ITEMS_FILE
|
||||
where att_id = #{value} and valid_flag = 0 and use_model = 'SOURCE_FILE'
|
||||
)
|
||||
and res_id = (
|
||||
select res_id
|
||||
from SAR_FILE_SPLIT_ITEMS_FILE
|
||||
where att_id = #{value} and valid_flag = 0 and use_model = 'SOURCE_FILE'
|
||||
)
|
||||
and use_model = 'WEB_FILE'
|
||||
order by modify_time desc
|
||||
</select>
|
||||
|
||||
<delete id="deleteByItemIds" parameterType="java.lang.String">
|
||||
delete from SAR_FILE_SPLIT_ITEMS_FILE
|
||||
where stand_id in
|
||||
<foreach collection="idList" index="index" item="item" open="(" separator="," close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
</mapper>
|
||||
+219
@@ -0,0 +1,219 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.jero.modules.split.mapper.SarFileSplitItemsParamsMapper" >
|
||||
<!-- Result Map-->
|
||||
<resultMap id="BaseResultMap" type="com.jero.modules.split.entity.SarFileSplitItemsParamsEO" >
|
||||
<id column="id" property="id" />
|
||||
<result column="item_id" property="itemId" />
|
||||
<result column="description" property="description" />
|
||||
<result column="figure" property="figure" />
|
||||
<result column="valid_flag" property="validFlag" />
|
||||
<result column="creation_time" property="creationTime" />
|
||||
<result column="modify_time" property="modifyTime" />
|
||||
<result column="info_id" property="infoId" />
|
||||
</resultMap>
|
||||
|
||||
<!-- SAR_FILE_SPLIT_ITEMS_PARAMS table all fields -->
|
||||
<sql id="Base_Column_List" >
|
||||
id, item_id, description, figure, valid_flag, creation_time, modify_time, info_id
|
||||
</sql>
|
||||
|
||||
<!-- 查询条件 -->
|
||||
<sql id="Base_Where_Clause">
|
||||
where 1=1
|
||||
<trim suffixOverrides="," >
|
||||
<if test="id != null" >
|
||||
and id ${idOperator} #{id}
|
||||
</if>
|
||||
<if test="itemId != null" >
|
||||
and item_id ${itemIdOperator} #{itemId}
|
||||
</if>
|
||||
<if test="description != null" >
|
||||
and description ${descriptionOperator} #{description}
|
||||
</if>
|
||||
<if test="figure != null" >
|
||||
and figure ${figureOperator} #{figure}
|
||||
</if>
|
||||
<if test="validFlag != null" >
|
||||
and valid_flag ${validFlagOperator} #{validFlag}
|
||||
</if>
|
||||
<if test="creationTime != null" >
|
||||
and creation_time ${creationTimeOperator} #{creationTime}
|
||||
</if>
|
||||
<if test="creationTime1 != null" >
|
||||
and creation_time >= #{creationTime1}
|
||||
</if>
|
||||
<if test="creationTime2 != null" >
|
||||
and creation_time <= #{creationTime2}
|
||||
</if>
|
||||
<if test="modifyTime != null" >
|
||||
and modify_time ${modifyTimeOperator} #{modifyTime}
|
||||
</if>
|
||||
<if test="modifyTime1 != null" >
|
||||
and modify_time >= #{modifyTime1}
|
||||
</if>
|
||||
<if test="modifyTime2 != null" >
|
||||
and modify_time <= #{modifyTime2}
|
||||
</if>
|
||||
<if test="infoId != null" >
|
||||
and info_id ${infoIdOperator} #{infoId}
|
||||
</if>
|
||||
</trim>
|
||||
</sql>
|
||||
|
||||
<!-- 插入记录 -->
|
||||
<insert id="insert" parameterType="com.jero.modules.split.entity.SarFileSplitItemsParamsEO" >
|
||||
<!-- <selectKey resultType="java.lang.String" order="BEFORE" keyProperty="id">
|
||||
SELECT SEQ_SAR_FILE_SPLIT_ITEMS_PARAMS.NEXTVAL FROM DUAL
|
||||
</selectKey> -->
|
||||
insert into SAR_FILE_SPLIT_ITEMS_PARAMS(<include refid="Base_Column_List" />)
|
||||
values (#{id, jdbcType=VARCHAR}, #{itemId, jdbcType=VARCHAR}, #{description, jdbcType=VARCHAR}, #{figure, jdbcType=VARCHAR}, #{validFlag, jdbcType=INTEGER}, #{creationTime, jdbcType=TIMESTAMP}, #{modifyTime, jdbcType=TIMESTAMP}, #{infoId, jdbcType=VARCHAR})
|
||||
</insert>
|
||||
|
||||
<!-- 动态插入记录 主键是序列 -->
|
||||
<insert id="insertSelective" parameterType="com.jero.modules.split.entity.SarFileSplitItemsParamsEO" >
|
||||
<!-- <selectKey resultType="java.lang.String" order="BEFORE" keyProperty="id">
|
||||
SELECT SEQ_SAR_FILE_SPLIT_ITEMS_PARAMS.NEXTVAL FROM DUAL
|
||||
</selectKey> -->
|
||||
insert into SAR_FILE_SPLIT_ITEMS_PARAMS
|
||||
<trim prefix="(" suffix=")" suffixOverrides="," >
|
||||
<if test="id != null" >id,</if>
|
||||
<if test="itemId != null" >item_id,</if>
|
||||
<if test="description != null" >description,</if>
|
||||
<if test="figure != null" >figure,</if>
|
||||
<if test="validFlag != null" >valid_flag,</if>
|
||||
<if test="creationTime != null" >creation_time,</if>
|
||||
<if test="modifyTime != null" >modify_time,</if>
|
||||
<if test="infoId != null" >info_id,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
||||
<if test="id != null" >#{id, jdbcType=VARCHAR},</if>
|
||||
<if test="itemId != null" >#{itemId, jdbcType=VARCHAR},</if>
|
||||
<if test="description != null" >#{description, jdbcType=VARCHAR},</if>
|
||||
<if test="figure != null" >#{figure, jdbcType=VARCHAR},</if>
|
||||
<if test="validFlag != null" >#{validFlag, jdbcType=INTEGER},</if>
|
||||
<if test="creationTime != null" >#{creationTime, jdbcType=TIMESTAMP},</if>
|
||||
<if test="modifyTime != null" >#{modifyTime, jdbcType=TIMESTAMP},</if>
|
||||
<if test="infoId != null" >#{infoId, jdbcType=VARCHAR},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<!-- 根据pk,修改记录-->
|
||||
<update id="updateByPrimaryKey" parameterType="com.jero.modules.split.entity.SarFileSplitItemsParamsEO" >
|
||||
update SAR_FILE_SPLIT_ITEMS_PARAMS
|
||||
set item_id = #{itemId},
|
||||
description = #{description},
|
||||
figure = #{figure},
|
||||
valid_flag = #{validFlag},
|
||||
creation_time = #{creationTime},
|
||||
modify_time = #{modifyTime},
|
||||
info_id = #{infoId}
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<!-- 修改记录,只修改只不为空的字段 -->
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.jero.modules.split.entity.SarFileSplitItemsParamsEO" >
|
||||
update SAR_FILE_SPLIT_ITEMS_PARAMS
|
||||
<set >
|
||||
<if test="itemId != null" >
|
||||
item_id = #{itemId},
|
||||
</if>
|
||||
<if test="description != null" >
|
||||
description = #{description},
|
||||
</if>
|
||||
<if test="figure != null" >
|
||||
figure = #{figure},
|
||||
</if>
|
||||
<if test="validFlag != null" >
|
||||
valid_flag = #{validFlag},
|
||||
</if>
|
||||
<if test="creationTime != null" >
|
||||
creation_time = #{creationTime},
|
||||
</if>
|
||||
<if test="modifyTime != null" >
|
||||
modify_time = #{modifyTime},
|
||||
</if>
|
||||
<if test="infoId != null" >
|
||||
info_id = #{infoId},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<!-- 根据id查询 SAR_FILE_SPLIT_ITEMS_PARAMS -->
|
||||
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String">
|
||||
select <include refid="Base_Column_List" />
|
||||
from SAR_FILE_SPLIT_ITEMS_PARAMS
|
||||
where id = #{value}
|
||||
|
||||
</select>
|
||||
|
||||
<!-- 删除记录 -->
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
||||
delete from SAR_FILE_SPLIT_ITEMS_PARAMS
|
||||
where id = #{value}
|
||||
|
||||
</delete>
|
||||
|
||||
<!-- SAR_FILE_SPLIT_ITEMS_PARAMS 列表总数-->
|
||||
<select id="queryByCount" resultType="java.lang.Integer" parameterType="com.jero.modules.split.common.BasePage">
|
||||
select count(1) from SAR_FILE_SPLIT_ITEMS_PARAMS
|
||||
<include refid="Base_Where_Clause"/>
|
||||
</select>
|
||||
|
||||
<!-- 查询SAR_FILE_SPLIT_ITEMS_PARAMS列表 -->
|
||||
<select id="queryByPage" resultMap="BaseResultMap" parameterType="com.jero.modules.split.common.BasePage">
|
||||
select <include refid="Base_Column_List" /> from
|
||||
(select tmp_tb.* , rownum rn from
|
||||
(select <include refid="Base_Column_List" /> from SAR_FILE_SPLIT_ITEMS_PARAMS
|
||||
<include refid="Base_Where_Clause"/>
|
||||
<if test="pager.orderCondition != null and pager.orderCondition != ''" >
|
||||
${pager.orderCondition}
|
||||
</if>
|
||||
) tmp_tb where rownum <= ${pager.endIndex})
|
||||
where rn >= ${pager.startIndex}
|
||||
</select>
|
||||
|
||||
<select id="queryByList" resultMap="BaseResultMap" parameterType="com.jero.modules.split.common.BasePage">
|
||||
select <include refid="Base_Column_List"/> from SAR_FILE_SPLIT_ITEMS_PARAMS
|
||||
<include refid="Base_Where_Clause"/>
|
||||
<if test="pager.orderCondition != null and pager.orderCondition != ''" >
|
||||
${pager.orderCondition}
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<delete id="deleteByItemIds" parameterType="java.lang.String">
|
||||
delete from SAR_FILE_SPLIT_ITEMS_PARAMS
|
||||
where item_id in
|
||||
<foreach collection="idList" index="index" item="item" open="(" separator="," close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
<insert id="insertForeach" parameterType="java.util.List">
|
||||
begin
|
||||
<foreach collection="list" item="item" index="index" separator=";">
|
||||
insert into SAR_FILE_SPLIT_ITEMS_PARAMS(<include refid="Base_Column_List" />)
|
||||
values (#{item.id, jdbcType=VARCHAR}, #{item.itemId, jdbcType=VARCHAR}, #{item.description, jdbcType=VARCHAR}, #{item.figure, jdbcType=VARCHAR}, #{item.validFlag, jdbcType=INTEGER}, #{item.creationTime, jdbcType=TIMESTAMP}, #{item.modifyTime, jdbcType=TIMESTAMP}, #{item.infoId, jdbcType=VARCHAR})
|
||||
</foreach>
|
||||
;end;
|
||||
</insert>
|
||||
|
||||
<delete id="deleteByInfoIds" parameterType="java.lang.String">
|
||||
delete from SAR_FILE_SPLIT_ITEMS_PARAMS
|
||||
where info_id in
|
||||
<foreach collection="idList" index="index" item="item" open="(" separator="," close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
<!-- 通过menuid 查询目录下所有的条目 -->
|
||||
<select id="queryItemsParamsByMenuId" resultMap="BaseResultMap" parameterType="java.lang.String">
|
||||
select <include refid="Base_Column_List"/> from SAR_FILE_SPLIT_ITEMS_PARAMS
|
||||
where valid_flag = '0' and ITEM_ID in
|
||||
<foreach collection="idList" index="index" item="item" open="(" separator="," close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
+209
@@ -0,0 +1,209 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.jero.modules.split.mapper.SarFileSplitItemsResEOMapper" >
|
||||
<!-- Result Map-->
|
||||
<resultMap id="BaseResultMap" type="com.jero.modules.split.entity.SarFileSplitItemsResEO" >
|
||||
<id column="id" property="id" />
|
||||
<result column="stand_id" property="standId" />
|
||||
<result column="stand_file_classify" property="standFileClassify" />
|
||||
<result column="file_name" property="fileName" />
|
||||
<result column="file_suffix" property="fileSuffix" />
|
||||
<result column="valid_flag" property="validFlag" />
|
||||
<result column="creation_time" property="creationTime" />
|
||||
<result column="modify_time" property="modifyTime" />
|
||||
</resultMap>
|
||||
|
||||
<!-- SAR_FILE_SPLIT_ITEMS_RES table all fields -->
|
||||
<sql id="Base_Column_List" >
|
||||
id, stand_id, stand_file_classify, file_name, file_suffix, valid_flag, creation_time, modify_time
|
||||
</sql>
|
||||
|
||||
<!-- 查询条件 -->
|
||||
<sql id="Base_Where_Clause">
|
||||
where 1=1
|
||||
<trim suffixOverrides="," >
|
||||
<if test="id != null" >
|
||||
and id ${idOperator} #{id}
|
||||
</if>
|
||||
<if test="standId != null" >
|
||||
and stand_id ${standIdOperator} #{standId}
|
||||
</if>
|
||||
<if test="standFileClassify != null" >
|
||||
and stand_file_classify ${standFileClassifyOperator} #{standFileClassify}
|
||||
</if>
|
||||
<if test="fileName != null" >
|
||||
and file_name ${fileNameOperator} #{fileName}
|
||||
</if>
|
||||
<if test="fileSuffix != null" >
|
||||
and file_suffix ${fileSuffixOperator} #{fileSuffix}
|
||||
</if>
|
||||
<if test="validFlag != null" >
|
||||
and valid_flag ${validFlagOperator} #{validFlag}
|
||||
</if>
|
||||
<if test="creationTime != null" >
|
||||
and creation_time ${creationTimeOperator} #{creationTime}
|
||||
</if>
|
||||
<if test="creationTime1 != null" >
|
||||
and creation_time >= #{creationTime1}
|
||||
</if>
|
||||
<if test="creationTime2 != null" >
|
||||
and creation_time <= #{creationTime2}
|
||||
</if>
|
||||
<if test="modifyTime != null" >
|
||||
and modify_time ${modifyTimeOperator} #{modifyTime}
|
||||
</if>
|
||||
<if test="modifyTime1 != null" >
|
||||
and modify_time >= #{modifyTime1}
|
||||
</if>
|
||||
<if test="modifyTime2 != null" >
|
||||
and modify_time <= #{modifyTime2}
|
||||
</if>
|
||||
</trim>
|
||||
</sql>
|
||||
|
||||
<!-- 插入记录 -->
|
||||
<insert id="insert" parameterType="com.jero.modules.split.entity.SarFileSplitItemsResEO" >
|
||||
<!-- <selectKey resultType="java.lang.String" order="BEFORE" keyProperty="id">
|
||||
SELECT SEQ_SAR_FILE_SPLIT_ITEMS_RES.NEXTVAL FROM DUAL
|
||||
</selectKey> -->
|
||||
insert into SAR_FILE_SPLIT_ITEMS_RES(<include refid="Base_Column_List" />)
|
||||
values (#{id, jdbcType=VARCHAR}, #{standId, jdbcType=VARCHAR}, #{standFileClassify, jdbcType=VARCHAR}, #{fileName, jdbcType=VARCHAR}, #{fileSuffix, jdbcType=VARCHAR}, #{validFlag, jdbcType=INTEGER}, #{creationTime, jdbcType=TIMESTAMP}, #{modifyTime, jdbcType=TIMESTAMP})
|
||||
</insert>
|
||||
|
||||
<!-- 动态插入记录 主键是序列 -->
|
||||
<insert id="insertSelective" parameterType="com.jero.modules.split.entity.SarFileSplitItemsResEO" >
|
||||
<!-- <selectKey resultType="java.lang.String" order="BEFORE" keyProperty="id">
|
||||
SELECT SEQ_SAR_FILE_SPLIT_ITEMS_RES.NEXTVAL FROM DUAL
|
||||
</selectKey> -->
|
||||
insert into SAR_FILE_SPLIT_ITEMS_RES
|
||||
<trim prefix="(" suffix=")" suffixOverrides="," >
|
||||
<if test="id != null" >id,</if>
|
||||
<if test="standId != null" >stand_id,</if>
|
||||
<if test="standFileClassify != null" >stand_file_classify,</if>
|
||||
<if test="fileName != null" >file_name,</if>
|
||||
<if test="fileSuffix != null" >file_suffix,</if>
|
||||
<if test="validFlag != null" >valid_flag,</if>
|
||||
<if test="creationTime != null" >creation_time,</if>
|
||||
<if test="modifyTime != null" >modify_time,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
||||
<if test="id != null" >#{id, jdbcType=VARCHAR},</if>
|
||||
<if test="standId != null" >#{standId, jdbcType=VARCHAR},</if>
|
||||
<if test="standFileClassify != null" >#{standFileClassify, jdbcType=VARCHAR},</if>
|
||||
<if test="fileName != null" >#{fileName, jdbcType=VARCHAR},</if>
|
||||
<if test="fileSuffix != null" >#{fileSuffix, jdbcType=VARCHAR},</if>
|
||||
<if test="validFlag != null" >#{validFlag, jdbcType=INTEGER},</if>
|
||||
<if test="creationTime != null" >#{creationTime, jdbcType=TIMESTAMP},</if>
|
||||
<if test="modifyTime != null" >#{modifyTime, jdbcType=TIMESTAMP},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<!-- 根据pk,修改记录-->
|
||||
<update id="updateByPrimaryKey" parameterType="com.jero.modules.split.entity.SarFileSplitItemsResEO" >
|
||||
update SAR_FILE_SPLIT_ITEMS_RES
|
||||
set stand_id = #{standId},
|
||||
stand_file_classify = #{standFileClassify},
|
||||
file_name = #{fileName},
|
||||
file_suffix = #{fileSuffix},
|
||||
valid_flag = #{validFlag},
|
||||
creation_time = #{creationTime},
|
||||
modify_time = #{modifyTime}
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<!-- 修改记录,只修改只不为空的字段 -->
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.jero.modules.split.entity.SarFileSplitItemsResEO" >
|
||||
update SAR_FILE_SPLIT_ITEMS_RES
|
||||
<set >
|
||||
<if test="standId != null" >
|
||||
stand_id = #{standId},
|
||||
</if>
|
||||
<if test="standFileClassify != null" >
|
||||
stand_file_classify = #{standFileClassify},
|
||||
</if>
|
||||
<if test="fileName != null" >
|
||||
file_name = #{fileName},
|
||||
</if>
|
||||
<if test="fileSuffix != null" >
|
||||
file_suffix = #{fileSuffix},
|
||||
</if>
|
||||
<if test="validFlag != null" >
|
||||
valid_flag = #{validFlag},
|
||||
</if>
|
||||
<if test="creationTime != null" >
|
||||
creation_time = #{creationTime},
|
||||
</if>
|
||||
<if test="modifyTime != null" >
|
||||
modify_time = #{modifyTime},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<!-- 根据id查询 SAR_FILE_SPLIT_ITEMS_RES -->
|
||||
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String">
|
||||
select <include refid="Base_Column_List" />
|
||||
from SAR_FILE_SPLIT_ITEMS_RES
|
||||
where id = #{value}
|
||||
|
||||
</select>
|
||||
|
||||
<!-- 删除记录 -->
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
||||
delete from SAR_FILE_SPLIT_ITEMS_RES
|
||||
where id = #{value}
|
||||
|
||||
</delete>
|
||||
|
||||
<!-- SAR_FILE_SPLIT_ITEMS_RES 列表总数-->
|
||||
<select id="queryByCount" resultType="java.lang.Integer" parameterType="com.jero.modules.split.common.BasePage">
|
||||
select count(1) from SAR_FILE_SPLIT_ITEMS_RES
|
||||
<include refid="Base_Where_Clause"/>
|
||||
</select>
|
||||
|
||||
<!-- 查询SAR_FILE_SPLIT_ITEMS_RES列表 -->
|
||||
<select id="queryByPage" resultMap="BaseResultMap" parameterType="com.jero.modules.split.common.BasePage">
|
||||
select <include refid="Base_Column_List" /> from
|
||||
(select tmp_tb.* , rownum rn from
|
||||
(select <include refid="Base_Column_List" /> from SAR_FILE_SPLIT_ITEMS_RES
|
||||
<include refid="Base_Where_Clause"/>
|
||||
<if test="pager.orderCondition != null and pager.orderCondition != ''" >
|
||||
${pager.orderCondition}
|
||||
</if>
|
||||
) tmp_tb where rownum <= ${pager.endIndex})
|
||||
where rn >= ${pager.startIndex}
|
||||
</select>
|
||||
|
||||
<select id="queryByList" resultMap="BaseResultMap" parameterType="com.jero.modules.split.common.BasePage">
|
||||
select <include refid="Base_Column_List"/> from SAR_FILE_SPLIT_ITEMS_RES
|
||||
<include refid="Base_Where_Clause"/>
|
||||
<if test="pager.orderCondition != null and pager.orderCondition != ''" >
|
||||
${pager.orderCondition}
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<select id="selectByItemsIdAndId" resultMap="BaseResultMap" parameterType="com.jero.modules.split.entity.SarFileSplitItemsResEO">
|
||||
select <include refid="Base_Column_List" />
|
||||
from SAR_FILE_SPLIT_ITEMS_RES
|
||||
where valid_flag = 0
|
||||
<if test="standId != null" >
|
||||
and stand_id = #{standId}
|
||||
</if>
|
||||
<if test="idlist != null">
|
||||
and id not in
|
||||
<foreach collection="idlist" index="index" item="item" open="(" separator="," close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
</if>
|
||||
|
||||
</select>
|
||||
|
||||
<delete id="deleteByItemIds" parameterType="java.lang.String">
|
||||
delete from SAR_FILE_SPLIT_ITEMS_RES
|
||||
where stand_id in
|
||||
<foreach collection="idList" index="index" item="item" open="(" separator="," close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
</mapper>
|
||||
+260
@@ -0,0 +1,260 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.jero.modules.split.mapper.SarFileSplitItemsTableEOMapper" >
|
||||
<!-- Result Map-->
|
||||
<resultMap id="BaseResultMap" type="com.jero.modules.split.entity.SarFileSplitItemsTableEO" >
|
||||
<id column="id" property="id" />
|
||||
<result column="items_val_id" property="itemsValId" />
|
||||
<result column="items_id" property="itemsId" />
|
||||
<result column="row_num" property="rowNum" />
|
||||
<result column="col_num" property="colNum" />
|
||||
<result column="content" property="content" />
|
||||
<result column="valid_flag" property="validFlag" />
|
||||
<result column="creation_time" property="creationTime" />
|
||||
<result column="modify_time" property="modifyTime" />
|
||||
<result column="modify_user" property="modifyUser" />
|
||||
</resultMap>
|
||||
|
||||
<!-- SAR_FILE_SPLIT_ITEMS_TABLE table all fields -->
|
||||
<sql id="Base_Column_List" >
|
||||
id, items_val_id, items_id, row_num, col_num, content, valid_flag, creation_time, modify_time, modify_user
|
||||
</sql>
|
||||
|
||||
<!-- 查询条件 -->
|
||||
<sql id="Base_Where_Clause">
|
||||
where 1=1
|
||||
<trim suffixOverrides="," >
|
||||
<if test="id != null" >
|
||||
and id ${idOperator} #{id}
|
||||
</if>
|
||||
<if test="itemsValId != null" >
|
||||
and items_val_id ${itemsValIdOperator} #{itemsValId}
|
||||
</if>
|
||||
<if test="itemsId != null" >
|
||||
and items_id ${itemsIdOperator} #{itemsId}
|
||||
</if>
|
||||
<if test="rowNum != null" >
|
||||
and row_num ${rowNumOperator} #{rowNum}
|
||||
</if>
|
||||
<if test="colNum != null" >
|
||||
and col_num ${colNumOperator} #{colNum}
|
||||
</if>
|
||||
<if test="content != null" >
|
||||
and content ${contentOperator} #{content}
|
||||
</if>
|
||||
<if test="validFlag != null" >
|
||||
and valid_flag ${validFlagOperator} #{validFlag}
|
||||
</if>
|
||||
<if test="creationTime != null" >
|
||||
and creation_time ${creationTimeOperator} #{creationTime}
|
||||
</if>
|
||||
<if test="creationTime1 != null" >
|
||||
and creation_time >= #{creationTime1}
|
||||
</if>
|
||||
<if test="creationTime2 != null" >
|
||||
and creation_time <= #{creationTime2}
|
||||
</if>
|
||||
<if test="modifyTime != null" >
|
||||
and modify_time ${modifyTimeOperator} #{modifyTime}
|
||||
</if>
|
||||
<if test="modifyTime1 != null" >
|
||||
and modify_time >= #{modifyTime1}
|
||||
</if>
|
||||
<if test="modifyTime2 != null" >
|
||||
and modify_time <= #{modifyTime2}
|
||||
</if>
|
||||
<if test="modifyUser != null" >
|
||||
and modify_user ${modifyUserOperator} #{modifyUser}
|
||||
</if>
|
||||
</trim>
|
||||
</sql>
|
||||
|
||||
<!-- 插入记录 -->
|
||||
<insert id="insert" parameterType="com.jero.modules.split.entity.SarFileSplitItemsTableEO" >
|
||||
<!-- <selectKey resultType="java.lang.String" order="BEFORE" keyProperty="id">
|
||||
SELECT SEQ_SAR_FILE_SPLIT_ITEMS_TABLE.NEXTVAL FROM DUAL
|
||||
</selectKey> -->
|
||||
insert into SAR_FILE_SPLIT_ITEMS_TABLE(<include refid="Base_Column_List" />)
|
||||
values (#{id, jdbcType=VARCHAR}, #{itemsValId, jdbcType=VARCHAR}, #{itemsId, jdbcType=VARCHAR}, #{rowNum, jdbcType=INTEGER}, #{colNum, jdbcType=INTEGER}, #{content, jdbcType=VARCHAR}, #{validFlag, jdbcType=INTEGER}, #{creationTime, jdbcType=TIMESTAMP}, #{modifyTime, jdbcType=TIMESTAMP}, #{modifyUser, jdbcType=VARCHAR})
|
||||
</insert>
|
||||
|
||||
<!-- 动态插入记录 主键是序列 -->
|
||||
<insert id="insertSelective" parameterType="com.jero.modules.split.entity.SarFileSplitItemsTableEO" >
|
||||
<!-- <selectKey resultType="java.lang.String" order="BEFORE" keyProperty="id">
|
||||
SELECT SEQ_SAR_FILE_SPLIT_ITEMS_TABLE.NEXTVAL FROM DUAL
|
||||
</selectKey> -->
|
||||
insert into SAR_FILE_SPLIT_ITEMS_TABLE
|
||||
<trim prefix="(" suffix=")" suffixOverrides="," >
|
||||
<if test="id != null" >id,</if>
|
||||
<if test="itemsValId != null" >items_val_id,</if>
|
||||
<if test="itemsId != null" >items_id,</if>
|
||||
<if test="rowNum != null" >row_num,</if>
|
||||
<if test="colNum != null" >col_num,</if>
|
||||
<if test="content != null" >content,</if>
|
||||
<if test="validFlag != null" >valid_flag,</if>
|
||||
<if test="creationTime != null" >creation_time,</if>
|
||||
<if test="modifyTime != null" >modify_time,</if>
|
||||
<if test="modifyUser != null" >modify_user,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
||||
<if test="id != null" >#{id, jdbcType=VARCHAR},</if>
|
||||
<if test="itemsValId != null" >#{itemsValId, jdbcType=VARCHAR},</if>
|
||||
<if test="itemsId != null" >#{itemsId, jdbcType=VARCHAR},</if>
|
||||
<if test="rowNum != null" >#{rowNum, jdbcType=INTEGER},</if>
|
||||
<if test="colNum != null" >#{colNum, jdbcType=INTEGER},</if>
|
||||
<if test="content != null" >#{content, jdbcType=VARCHAR},</if>
|
||||
<if test="validFlag != null" >#{validFlag, jdbcType=INTEGER},</if>
|
||||
<if test="creationTime != null" >#{creationTime, jdbcType=TIMESTAMP},</if>
|
||||
<if test="modifyTime != null" >#{modifyTime, jdbcType=TIMESTAMP},</if>
|
||||
<if test="modifyUser != null" >#{modifyUser, jdbcType=VARCHAR},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<!-- 根据pk,修改记录-->
|
||||
<update id="updateByPrimaryKey" parameterType="com.jero.modules.split.entity.SarFileSplitItemsTableEO" >
|
||||
update SAR_FILE_SPLIT_ITEMS_TABLE
|
||||
set items_val_id = #{itemsValId},
|
||||
items_id = #{itemsId},
|
||||
row_num = #{rowNum},
|
||||
col_num = #{colNum},
|
||||
content = #{content},
|
||||
valid_flag = #{validFlag},
|
||||
creation_time = #{creationTime},
|
||||
modify_time = #{modifyTime},
|
||||
modify_user = #{modifyUser}
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<!-- 修改记录,只修改只不为空的字段 -->
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.jero.modules.split.entity.SarFileSplitItemsTableEO" >
|
||||
update SAR_FILE_SPLIT_ITEMS_TABLE
|
||||
<set >
|
||||
<if test="itemsValId != null" >
|
||||
items_val_id = #{itemsValId},
|
||||
</if>
|
||||
<if test="itemsId != null" >
|
||||
items_id = #{itemsId},
|
||||
</if>
|
||||
<if test="rowNum != null" >
|
||||
row_num = #{rowNum},
|
||||
</if>
|
||||
<if test="colNum != null" >
|
||||
col_num = #{colNum},
|
||||
</if>
|
||||
<if test="content != null" >
|
||||
content = #{content},
|
||||
</if>
|
||||
<if test="validFlag != null" >
|
||||
valid_flag = #{validFlag},
|
||||
</if>
|
||||
<if test="creationTime != null" >
|
||||
creation_time = #{creationTime},
|
||||
</if>
|
||||
<if test="modifyTime != null" >
|
||||
modify_time = #{modifyTime},
|
||||
</if>
|
||||
<if test="modifyUser != null" >
|
||||
modify_user = #{modifyUser},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<!-- 根据id查询 SAR_FILE_SPLIT_ITEMS_TABLE -->
|
||||
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String">
|
||||
select <include refid="Base_Column_List" />
|
||||
from SAR_FILE_SPLIT_ITEMS_TABLE
|
||||
where id = #{value}
|
||||
|
||||
</select>
|
||||
|
||||
<!-- 删除记录 -->
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
||||
delete from SAR_FILE_SPLIT_ITEMS_TABLE
|
||||
where id = #{value}
|
||||
|
||||
</delete>
|
||||
|
||||
<!-- SAR_FILE_SPLIT_ITEMS_TABLE 列表总数-->
|
||||
<select id="queryByCount" resultType="java.lang.Integer" parameterType="com.jero.modules.split.common.BasePage">
|
||||
select count(1) from SAR_FILE_SPLIT_ITEMS_TABLE
|
||||
<include refid="Base_Where_Clause"/>
|
||||
</select>
|
||||
|
||||
<!-- 查询SAR_FILE_SPLIT_ITEMS_TABLE列表 -->
|
||||
<select id="queryByPage" resultMap="BaseResultMap" parameterType="com.jero.modules.split.common.BasePage">
|
||||
select <include refid="Base_Column_List" /> from
|
||||
(select tmp_tb.* , rownum rn from
|
||||
(select <include refid="Base_Column_List" /> from SAR_FILE_SPLIT_ITEMS_TABLE
|
||||
<include refid="Base_Where_Clause"/>
|
||||
<if test="pager.orderCondition != null and pager.orderCondition != ''" >
|
||||
${pager.orderCondition}
|
||||
</if>
|
||||
) tmp_tb where rownum <= ${pager.endIndex})
|
||||
where rn >= ${pager.startIndex}
|
||||
</select>
|
||||
|
||||
<select id="queryByList" resultMap="BaseResultMap" parameterType="com.jero.modules.split.common.BasePage">
|
||||
select <include refid="Base_Column_List"/> from SAR_FILE_SPLIT_ITEMS_TABLE
|
||||
<include refid="Base_Where_Clause"/>
|
||||
<if test="pager.orderCondition != null and pager.orderCondition != ''" >
|
||||
${pager.orderCondition}
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<insert id="insertForeach" parameterType="java.util.List">
|
||||
begin
|
||||
<foreach collection="list" item="item" index="index" separator=";">
|
||||
insert into SAR_FILE_SPLIT_ITEMS_TABLE(<include refid="Base_Column_List" />)
|
||||
values (#{item.id, jdbcType=VARCHAR}, #{item.itemsValId, jdbcType=VARCHAR},
|
||||
#{item.itemsId, jdbcType=VARCHAR}, #{item.rowNum, jdbcType=INTEGER}, #{item.colNum, jdbcType=INTEGER},
|
||||
#{item.content, jdbcType=VARCHAR}, #{item.validFlag, jdbcType=INTEGER}, #{item.creationTime, jdbcType=TIMESTAMP}, #{item.modifyTime, jdbcType=TIMESTAMP}, #{item.modifyUser, jdbcType=VARCHAR})
|
||||
</foreach>
|
||||
;end;
|
||||
</insert>
|
||||
|
||||
<select id="queryByRowNum" resultMap="BaseResultMap" parameterType="com.jero.modules.split.common.BasePage">
|
||||
select row_num from SAR_FILE_SPLIT_ITEMS_TABLE
|
||||
<include refid="Base_Where_Clause"/>
|
||||
group by row_num
|
||||
order by row_num
|
||||
</select>
|
||||
|
||||
<delete id="deleteByitemValIds" parameterType="java.lang.String">
|
||||
delete from SAR_FILE_SPLIT_ITEMS_TABLE
|
||||
where ITEMS_VAL_ID in
|
||||
<foreach collection="idList" index="index" item="item" open="(" separator="," close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
<delete id="deleteTableByMenuIds" parameterType="java.lang.String">
|
||||
delete from SAR_FILE_SPLIT_ITEMS_TABLE
|
||||
where EXISTS (
|
||||
select 1 from SAR_FILE_SPLIT_ITEMS
|
||||
where SAR_FILE_SPLIT_ITEMS_TABLE.ITEMS_ID=SAR_FILE_SPLIT_ITEMS.id
|
||||
and SAR_FILE_SPLIT_ITEMS.MENU_ID in
|
||||
<foreach collection="idList" index="index" item="item" open="(" separator="," close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
)
|
||||
</delete>
|
||||
|
||||
<delete id="deleteByitemIds" parameterType="java.lang.String">
|
||||
delete from SAR_FILE_SPLIT_ITEMS_TABLE
|
||||
where ITEMS_ID in
|
||||
<foreach collection="idList" index="index" item="item" open="(" separator="," close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
<!-- 通过menuid 查询目录下所有的条目 -->
|
||||
<select id="queryItemsTableByMenuId" resultMap="BaseResultMap" parameterType="java.lang.String">
|
||||
select <include refid="Base_Column_List"/> from SAR_FILE_SPLIT_ITEMS_TABLE
|
||||
where valid_flag = '0' and ITEMS_ID in
|
||||
<foreach collection="idList" index="index" item="item" open="(" separator="," close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
+303
@@ -0,0 +1,303 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.jero.modules.split.mapper.SarFileSplitItemsValEOMapper" >
|
||||
<!-- Result Map-->
|
||||
<resultMap id="BaseResultMap" type="com.jero.modules.split.entity.SarFileSplitItemsValEO" >
|
||||
<id column="id" property="id" />
|
||||
<result column="type" property="type" />
|
||||
<result column="item_id" property="itemId" />
|
||||
<result column="item_content" property="itemContent" />
|
||||
<result column="valid_flag" property="validFlag" />
|
||||
<result column="creation_user" property="creationUser" />
|
||||
<result column="creation_time" property="creationTime" />
|
||||
<result column="modify_time" property="modifyTime" />
|
||||
<result column="modify_user" property="modifyUser" />
|
||||
<result column="display_seq" property="displaySeq" />
|
||||
<result column="img_name" property="imgName" />
|
||||
<result column="index_item" property="indexItem" />
|
||||
</resultMap>
|
||||
|
||||
<!-- SAR_FILE_SPLIT_ITEMS_VAL table all fields -->
|
||||
<sql id="Base_Column_List" >
|
||||
id, type, item_id, item_content, valid_flag, creation_user, creation_time, modify_time, modify_user, display_seq,img_name,index_item
|
||||
</sql>
|
||||
|
||||
<!-- 查询条件 -->
|
||||
<sql id="Base_Where_Clause">
|
||||
where 1=1
|
||||
<trim suffixOverrides="," >
|
||||
<if test="id != null" >
|
||||
and id ${idOperator} #{id}
|
||||
</if>
|
||||
<if test="type != null" >
|
||||
and type ${typeOperator} #{type}
|
||||
</if>
|
||||
<if test="itemId != null" >
|
||||
and item_id ${itemIdOperator} #{itemId}
|
||||
</if>
|
||||
<if test="itemContent != null" >
|
||||
and item_content ${itemContentOperator} #{itemContent}
|
||||
</if>
|
||||
<if test="validFlag != null" >
|
||||
and valid_flag ${validFlagOperator} #{validFlag}
|
||||
</if>
|
||||
<if test="creationUser != null" >
|
||||
and creation_user ${creationUserOperator} #{creationUser}
|
||||
</if>
|
||||
<if test="creationTime != null" >
|
||||
and creation_time ${creationTimeOperator} #{creationTime}
|
||||
</if>
|
||||
<if test="creationTime1 != null" >
|
||||
and creation_time >= #{creationTime1}
|
||||
</if>
|
||||
<if test="creationTime2 != null" >
|
||||
and creation_time <= #{creationTime2}
|
||||
</if>
|
||||
<if test="modifyTime != null" >
|
||||
and modify_time ${modifyTimeOperator} #{modifyTime}
|
||||
</if>
|
||||
<if test="modifyTime1 != null" >
|
||||
and modify_time >= #{modifyTime1}
|
||||
</if>
|
||||
<if test="modifyTime2 != null" >
|
||||
and modify_time <= #{modifyTime2}
|
||||
</if>
|
||||
<if test="modifyUser != null" >
|
||||
and modify_user ${modifyUserOperator} #{modifyUser}
|
||||
</if>
|
||||
<if test="displaySeq != null" >
|
||||
and display_seq ${displaySeqOperator} #{displaySeq}
|
||||
</if>
|
||||
</trim>
|
||||
</sql>
|
||||
|
||||
<!-- 插入记录 -->
|
||||
<insert id="insert" parameterType="com.jero.modules.split.entity.SarFileSplitItemsValEO" >
|
||||
<!-- <selectKey resultType="java.lang.String" order="BEFORE" keyProperty="id">
|
||||
SELECT SEQ_SAR_FILE_SPLIT_ITEMS_VAL.NEXTVAL FROM DUAL
|
||||
</selectKey> -->
|
||||
insert into SAR_FILE_SPLIT_ITEMS_VAL(<include refid="Base_Column_List" />)
|
||||
values (#{id, jdbcType=VARCHAR}, #{type, jdbcType=VARCHAR}, #{itemId, jdbcType=VARCHAR}, #{itemContent, jdbcType=CLOB}, #{validFlag, jdbcType=INTEGER}, #{creationUser, jdbcType=VARCHAR}, #{creationTime, jdbcType=TIMESTAMP}, #{modifyTime, jdbcType=TIMESTAMP}, #{modifyUser, jdbcType=VARCHAR}, #{displaySeq, jdbcType=INTEGER})
|
||||
</insert>
|
||||
|
||||
<!-- 动态插入记录 主键是序列 -->
|
||||
<insert id="insertSelective" parameterType="com.jero.modules.split.entity.SarFileSplitItemsValEO" >
|
||||
<!-- <selectKey resultType="java.lang.String" order="BEFORE" keyProperty="id">
|
||||
SELECT SEQ_SAR_FILE_SPLIT_ITEMS_VAL.NEXTVAL FROM DUAL
|
||||
</selectKey> -->
|
||||
insert into SAR_FILE_SPLIT_ITEMS_VAL
|
||||
<trim prefix="(" suffix=")" suffixOverrides="," >
|
||||
<if test="id != null" >id,</if>
|
||||
<if test="type != null" >type,</if>
|
||||
<if test="itemId != null" >item_id,</if>
|
||||
<if test="itemContent != null" >item_content,</if>
|
||||
<if test="validFlag != null" >valid_flag,</if>
|
||||
<if test="creationUser != null" >creation_user,</if>
|
||||
<if test="creationTime != null" >creation_time,</if>
|
||||
<if test="modifyTime != null" >modify_time,</if>
|
||||
<if test="modifyUser != null" >modify_user,</if>
|
||||
<if test="displaySeq != null" >display_seq,</if>
|
||||
<if test="imgName != null" >img_name,</if>
|
||||
<if test="indexItem != null" >index_item,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
||||
<if test="id != null" >#{id, jdbcType=VARCHAR},</if>
|
||||
<if test="type != null" >#{type, jdbcType=VARCHAR},</if>
|
||||
<if test="itemId != null" >#{itemId, jdbcType=VARCHAR},</if>
|
||||
<if test="itemContent != null" >#{itemContent, jdbcType=CLOB},</if>
|
||||
<if test="validFlag != null" >#{validFlag, jdbcType=INTEGER},</if>
|
||||
<if test="creationUser != null" >#{creationUser, jdbcType=VARCHAR},</if>
|
||||
<if test="creationTime != null" >#{creationTime, jdbcType=TIMESTAMP},</if>
|
||||
<if test="modifyTime != null" >#{modifyTime, jdbcType=TIMESTAMP},</if>
|
||||
<if test="modifyUser != null" >#{modifyUser, jdbcType=VARCHAR},</if>
|
||||
<if test="displaySeq != null" >#{displaySeq, jdbcType=INTEGER},</if>
|
||||
<if test="imgName != null" >#{imgName, jdbcType=VARCHAR},</if>
|
||||
<if test="indexItem != null" >#{indexItem, jdbcType=INTEGER},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<!-- 根据pk,修改记录-->
|
||||
<update id="updateByPrimaryKey" parameterType="com.jero.modules.split.entity.SarFileSplitItemsValEO" >
|
||||
update SAR_FILE_SPLIT_ITEMS_VAL
|
||||
set type = #{type},
|
||||
item_id = #{itemId},
|
||||
item_content = #{itemContent},
|
||||
valid_flag = #{validFlag},
|
||||
creation_user = #{creationUser},
|
||||
creation_time = #{creationTime},
|
||||
modify_time = #{modifyTime},
|
||||
modify_user = #{modifyUser},
|
||||
display_seq = #{displaySeq}
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<!-- 修改记录,只修改只不为空的字段 -->
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.jero.modules.split.entity.SarFileSplitItemsValEO" >
|
||||
update SAR_FILE_SPLIT_ITEMS_VAL
|
||||
<set >
|
||||
<if test="type != null" >
|
||||
type = #{type},
|
||||
</if>
|
||||
<if test="itemId != null" >
|
||||
item_id = #{itemId},
|
||||
</if>
|
||||
<if test="itemContent != null" >
|
||||
item_content = #{itemContent},
|
||||
</if>
|
||||
<if test="validFlag != null" >
|
||||
valid_flag = #{validFlag},
|
||||
</if>
|
||||
<if test="creationUser != null" >
|
||||
creation_user = #{creationUser},
|
||||
</if>
|
||||
<if test="creationTime != null" >
|
||||
creation_time = #{creationTime},
|
||||
</if>
|
||||
<if test="modifyTime != null" >
|
||||
modify_time = #{modifyTime},
|
||||
</if>
|
||||
<if test="modifyUser != null" >
|
||||
modify_user = #{modifyUser},
|
||||
</if>
|
||||
<if test="displaySeq != null" >
|
||||
display_seq = #{displaySeq},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<!-- 根据id查询 SAR_FILE_SPLIT_ITEMS_VAL -->
|
||||
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String">
|
||||
select <include refid="Base_Column_List" />
|
||||
from SAR_FILE_SPLIT_ITEMS_VAL
|
||||
where id = #{value}
|
||||
|
||||
</select>
|
||||
|
||||
<!-- 删除记录 -->
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
||||
delete from SAR_FILE_SPLIT_ITEMS_VAL
|
||||
where id = #{value}
|
||||
|
||||
</delete>
|
||||
|
||||
<!-- SAR_FILE_SPLIT_ITEMS_VAL 列表总数-->
|
||||
<select id="queryByCount" resultType="java.lang.Integer" parameterType="com.jero.modules.split.common.BasePage">
|
||||
select count(1) from SAR_FILE_SPLIT_ITEMS_VAL
|
||||
<include refid="Base_Where_Clause"/>
|
||||
</select>
|
||||
|
||||
<!-- 查询SAR_FILE_SPLIT_ITEMS_VAL列表 -->
|
||||
<select id="queryByPage" resultMap="BaseResultMap" parameterType="com.jero.modules.split.common.BasePage">
|
||||
select <include refid="Base_Column_List" /> from
|
||||
(select tmp_tb.* , rownum rn from
|
||||
(select <include refid="Base_Column_List" /> from SAR_FILE_SPLIT_ITEMS_VAL
|
||||
<include refid="Base_Where_Clause"/>
|
||||
<if test="pager.orderCondition != null and pager.orderCondition != ''" >
|
||||
${pager.orderCondition}
|
||||
</if>
|
||||
) tmp_tb where rownum <= ${pager.endIndex})
|
||||
where rn >= ${pager.startIndex}
|
||||
</select>
|
||||
|
||||
<select id="queryByList" resultMap="BaseResultMap" parameterType="com.jero.modules.split.common.BasePage">
|
||||
select <include refid="Base_Column_List"/> from SAR_FILE_SPLIT_ITEMS_VAL
|
||||
<include refid="Base_Where_Clause"/>
|
||||
<if test="pager.orderCondition != null and pager.orderCondition != ''" >
|
||||
${pager.orderCondition}
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<delete id="deleteByIds" parameterType="com.jero.modules.split.entity.SarFileSplitItemsValEO">
|
||||
delete from SAR_FILE_SPLIT_ITEMS_VAL
|
||||
where id in
|
||||
<foreach collection="idList" index="index" item="item" open="(" separator="," close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
|
||||
</delete>
|
||||
|
||||
<delete id="deleteByitemId" parameterType="java.lang.String">
|
||||
delete from SAR_FILE_SPLIT_ITEMS_VAL
|
||||
where item_id = #{value}
|
||||
</delete>
|
||||
|
||||
|
||||
<!-- 批量插入接口 -->
|
||||
<insert id="insertForeach" parameterType="java.util.List">
|
||||
begin
|
||||
<foreach collection="list" item="item" index="index" separator=";">
|
||||
insert into SAR_FILE_SPLIT_ITEMS_VAL
|
||||
(id, type, item_id, valid_flag, creation_user, creation_time, modify_time, modify_user, display_seq, img_name, item_content, index_item)
|
||||
values (
|
||||
#{item.id, jdbcType=VARCHAR}, #{item.type, jdbcType=VARCHAR},
|
||||
#{item.itemId, jdbcType=VARCHAR},
|
||||
#{item.validFlag, jdbcType=INTEGER}, #{item.creationUser, jdbcType=VARCHAR},
|
||||
#{item.creationTime, jdbcType=TIMESTAMP}, #{item.modifyTime, jdbcType=TIMESTAMP},
|
||||
#{item.modifyUser, jdbcType=VARCHAR}, #{item.displaySeq, jdbcType=INTEGER},
|
||||
#{item.imgName, jdbcType=INTEGER},
|
||||
#{item.itemContent, jdbcType=CLOB},
|
||||
#{item.indexItem, jdbcType=INTEGER})
|
||||
</foreach>
|
||||
;end;
|
||||
</insert>
|
||||
|
||||
<delete id="deleteValByInfoIds" parameterType="java.lang.String">
|
||||
delete from SAR_FILE_SPLIT_ITEMS_VAL
|
||||
where EXISTS (
|
||||
select 1 from SAR_FILE_SPLIT_ITEMS
|
||||
where SAR_FILE_SPLIT_ITEMS_VAL.ITEM_ID=SAR_FILE_SPLIT_ITEMS.id
|
||||
and SAR_FILE_SPLIT_ITEMS.INFO_ID in
|
||||
<foreach collection="idList" index="index" item="item" open="(" separator="," close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
)
|
||||
</delete>
|
||||
|
||||
<delete id="deleteValByitemIds" parameterType="java.lang.String">
|
||||
delete from SAR_FILE_SPLIT_ITEMS_VAL
|
||||
where ITEM_ID in
|
||||
<foreach collection="idList" index="index" item="item" open="(" separator="," close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
<update id="updateForeach" parameterType="java.util.List">
|
||||
begin
|
||||
<foreach collection="list" item="item" index="index" separator=";">
|
||||
update SAR_FILE_SPLIT_ITEMS_VAL
|
||||
<set >
|
||||
item_content = #{item.itemContent, jdbcType=VARCHAR},
|
||||
modify_time = #{item.modifyTime, jdbcType=TIMESTAMP},
|
||||
modify_user = #{item.modifyUser, jdbcType=VARCHAR},
|
||||
display_seq = #{item.displaySeq, jdbcType=INTEGER},
|
||||
index_item = #{item.indexItem, jdbcType=INTEGER},
|
||||
</set>
|
||||
where id = #{item.id, jdbcType=VARCHAR}
|
||||
</foreach>
|
||||
;end;
|
||||
</update>
|
||||
|
||||
<delete id="deleteValByMenuIds" parameterType="java.lang.String">
|
||||
delete from SAR_FILE_SPLIT_ITEMS_VAL
|
||||
where EXISTS (
|
||||
select 1 from SAR_FILE_SPLIT_ITEMS
|
||||
where SAR_FILE_SPLIT_ITEMS_VAL.ITEM_ID=SAR_FILE_SPLIT_ITEMS.id
|
||||
and SAR_FILE_SPLIT_ITEMS.MENU_ID in
|
||||
<foreach collection="idList" index="index" item="item" open="(" separator="," close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
)
|
||||
</delete>
|
||||
|
||||
<!-- 通过menuid 查询目录下所有的条目 -->
|
||||
<select id="queryItemsValByMenuId" resultMap="BaseResultMap" parameterType="java.lang.String">
|
||||
select <include refid="Base_Column_List"/> from SAR_FILE_SPLIT_ITEMS_VAL
|
||||
where valid_flag = '0' and ITEM_ID in
|
||||
<foreach collection="idList" index="index" item="item" open="(" separator="," close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
</select>
|
||||
|
||||
|
||||
</mapper>
|
||||
+325
@@ -0,0 +1,325 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.jero.modules.split.mapper.SarFileSplitMenuEOMapper" >
|
||||
<!-- Result Map-->
|
||||
<resultMap id="BaseResultMap" type="com.jero.modules.split.entity.SarFileSplitMenuEO" >
|
||||
<id column="id" property="id" />
|
||||
<result column="info_id" property="infoId" />
|
||||
<result column="name" property="name" />
|
||||
<result column="parent_id" property="pId" />
|
||||
<result column="display_seq" property="displaySeq" />
|
||||
<result column="valid_flag" property="validFlag" />
|
||||
<result column="creation_time" property="creationTime" />
|
||||
<result column="modify_time" property="modifyTime" />
|
||||
<result column="remarks" property="remarks" />
|
||||
<result column="creation_user" property="creationUser" />
|
||||
<result column="modify_user" property="modifyUser" />
|
||||
<result column="item_name" property="itemName" />
|
||||
</resultMap>
|
||||
|
||||
<!-- SAR_FILE_SPLIT_MENU table all fields -->
|
||||
<sql id="Base_Column_List" >
|
||||
id, info_id, name, p_id, display_seq, valid_flag, creation_time, modify_time, remarks, creation_user, modify_user,item_name
|
||||
</sql>
|
||||
|
||||
<!-- 查询条件 -->
|
||||
<sql id="Base_Where_Clause">
|
||||
where 1=1
|
||||
<trim suffixOverrides="," >
|
||||
<if test="id != null" >
|
||||
and id ${idOperator} #{id}
|
||||
</if>
|
||||
<if test="infoId != null" >
|
||||
and info_id ${infoIdOperator} #{infoId}
|
||||
</if>
|
||||
<if test="name != null" >
|
||||
and name ${nameOperator} #{name}
|
||||
</if>
|
||||
<if test="pId != null" >
|
||||
and p_id ${pIdOperator} #{pId}
|
||||
</if>
|
||||
<if test="displaySeq != null" >
|
||||
and display_seq ${displaySeqOperator} #{displaySeq}
|
||||
</if>
|
||||
<if test="validFlag != null" >
|
||||
and valid_flag ${validFlagOperator} #{validFlag}
|
||||
</if>
|
||||
<if test="creationTime != null" >
|
||||
and creation_time ${creationTimeOperator} #{creationTime}
|
||||
</if>
|
||||
<if test="creationTime1 != null" >
|
||||
and creation_time >= #{creationTime1}
|
||||
</if>
|
||||
<if test="creationTime2 != null" >
|
||||
and creation_time <= #{creationTime2}
|
||||
</if>
|
||||
<if test="modifyTime != null" >
|
||||
and modify_time ${modifyTimeOperator} #{modifyTime}
|
||||
</if>
|
||||
<if test="modifyTime1 != null" >
|
||||
and modify_time >= #{modifyTime1}
|
||||
</if>
|
||||
<if test="modifyTime2 != null" >
|
||||
and modify_time <= #{modifyTime2}
|
||||
</if>
|
||||
<if test="remarks != null" >
|
||||
and remarks ${remarksOperator} #{remarks}
|
||||
</if>
|
||||
<if test="creationUser != null" >
|
||||
and creation_user ${creationUserOperator} #{creationUser}
|
||||
</if>
|
||||
<if test="modifyUser != null" >
|
||||
and modify_user ${modifyUserOperator} #{modifyUser}
|
||||
</if>
|
||||
</trim>
|
||||
</sql>
|
||||
|
||||
<!-- 插入记录 -->
|
||||
<insert id="insert" parameterType="com.jero.modules.split.entity.SarFileSplitMenuEO" >
|
||||
<!-- <selectKey resultType="java.lang.String" order="BEFORE" keyProperty="id">
|
||||
SELECT SEQ_SAR_FILE_SPLIT_MENU.NEXTVAL FROM DUAL
|
||||
</selectKey> -->
|
||||
insert into SAR_FILE_SPLIT_MENU(<include refid="Base_Column_List" />)
|
||||
values (#{id, jdbcType=VARCHAR}, #{infoId, jdbcType=VARCHAR}, #{name, jdbcType=VARCHAR}, #{pId, jdbcType=VARCHAR}, #{displaySeq, jdbcType=VARCHAR}, #{validFlag, jdbcType=INTEGER}, #{creationTime, jdbcType=TIMESTAMP}, #{modifyTime, jdbcType=TIMESTAMP}, #{remarks, jdbcType=VARCHAR}, #{creationUser, jdbcType=VARCHAR}, #{modifyUser, jdbcType=VARCHAR})
|
||||
</insert>
|
||||
|
||||
<!-- 动态插入记录 主键是序列 -->
|
||||
<insert id="insertSelective" parameterType="com.jero.modules.split.entity.SarFileSplitMenuEO" >
|
||||
<!-- <selectKey resultType="java.lang.String" order="BEFORE" keyProperty="id">
|
||||
SELECT SEQ_SAR_FILE_SPLIT_MENU.NEXTVAL FROM DUAL
|
||||
</selectKey> -->
|
||||
insert into SAR_FILE_SPLIT_MENU
|
||||
<trim prefix="(" suffix=")" suffixOverrides="," >
|
||||
<if test="id != null" >id,</if>
|
||||
<if test="infoId != null" >info_id,</if>
|
||||
<if test="name != null" >name,</if>
|
||||
<if test="pId != null" >p_id,</if>
|
||||
<if test="displaySeq != null" >display_seq,</if>
|
||||
<if test="validFlag != null" >valid_flag,</if>
|
||||
<if test="creationTime != null" >creation_time,</if>
|
||||
<if test="modifyTime != null" >modify_time,</if>
|
||||
<if test="remarks != null" >remarks,</if>
|
||||
<if test="creationUser != null" >creation_user,</if>
|
||||
<if test="modifyUser != null" >modify_user,</if>
|
||||
<if test="itemName != null" >item_name,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
||||
<if test="id != null" >#{id, jdbcType=VARCHAR},</if>
|
||||
<if test="infoId != null" >#{infoId, jdbcType=VARCHAR},</if>
|
||||
<if test="name != null" >#{name, jdbcType=VARCHAR},</if>
|
||||
<if test="pId != null" >#{pId, jdbcType=VARCHAR},</if>
|
||||
<if test="displaySeq != null" >#{displaySeq, jdbcType=VARCHAR},</if>
|
||||
<if test="validFlag != null" >#{validFlag, jdbcType=INTEGER},</if>
|
||||
<if test="creationTime != null" >#{creationTime, jdbcType=TIMESTAMP},</if>
|
||||
<if test="modifyTime != null" >#{modifyTime, jdbcType=TIMESTAMP},</if>
|
||||
<if test="remarks != null" >#{remarks, jdbcType=VARCHAR},</if>
|
||||
<if test="creationUser != null" >#{creationUser, jdbcType=VARCHAR},</if>
|
||||
<if test="modifyUser != null" >#{modifyUser, jdbcType=VARCHAR},</if>
|
||||
<if test="itemName != null" >#{itemName, jdbcType=VARCHAR},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<!-- 根据pk,修改记录-->
|
||||
<update id="updateByPrimaryKey" parameterType="com.jero.modules.split.entity.SarFileSplitMenuEO" >
|
||||
update SAR_FILE_SPLIT_MENU
|
||||
set info_id = #{infoId},
|
||||
name = #{name},
|
||||
p_id = #{pId},
|
||||
display_seq = #{displaySeq},
|
||||
valid_flag = #{validFlag},
|
||||
creation_time = #{creationTime},
|
||||
modify_time = #{modifyTime},
|
||||
remarks = #{remarks},
|
||||
creation_user = #{creationUser},
|
||||
modify_user = #{modifyUser}
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<!-- 修改记录,只修改只不为空的字段 -->
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.jero.modules.split.entity.SarFileSplitMenuEO" >
|
||||
update SAR_FILE_SPLIT_MENU
|
||||
<set >
|
||||
<if test="infoId != null" >
|
||||
info_id = #{infoId},
|
||||
</if>
|
||||
<if test="name != null" >
|
||||
name = #{name},
|
||||
</if>
|
||||
<if test="pId != null" >
|
||||
p_id = #{pId},
|
||||
</if>
|
||||
<if test="displaySeq != null" >
|
||||
display_seq = #{displaySeq},
|
||||
</if>
|
||||
<if test="validFlag != null" >
|
||||
valid_flag = #{validFlag},
|
||||
</if>
|
||||
<if test="creationTime != null" >
|
||||
creation_time = #{creationTime},
|
||||
</if>
|
||||
<if test="modifyTime != null" >
|
||||
modify_time = #{modifyTime},
|
||||
</if>
|
||||
<if test="remarks != null" >
|
||||
remarks = #{remarks},
|
||||
</if>
|
||||
<if test="creationUser != null" >
|
||||
creation_user = #{creationUser},
|
||||
</if>
|
||||
<if test="modifyUser != null" >
|
||||
modify_user = #{modifyUser},
|
||||
</if>
|
||||
<if test="itemName != null" >
|
||||
item_name = #{itemName},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<!-- 根据id查询 SAR_FILE_SPLIT_MENU -->
|
||||
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String">
|
||||
select <include refid="Base_Column_List" />
|
||||
from SAR_FILE_SPLIT_MENU
|
||||
where id = #{value}
|
||||
|
||||
</select>
|
||||
|
||||
<!-- 删除记录 -->
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
||||
delete from SAR_FILE_SPLIT_MENU
|
||||
where id = #{value}
|
||||
|
||||
</delete>
|
||||
|
||||
<!-- SAR_FILE_SPLIT_MENU 列表总数-->
|
||||
<select id="queryByCount" resultType="java.lang.Integer" parameterType="com.jero.modules.split.common.BasePage">
|
||||
select count(1) from SAR_FILE_SPLIT_MENU
|
||||
<include refid="Base_Where_Clause"/>
|
||||
</select>
|
||||
|
||||
<!-- 查询SAR_FILE_SPLIT_MENU列表 -->
|
||||
<select id="queryByPage" resultMap="BaseResultMap" parameterType="com.jero.modules.split.common.BasePage">
|
||||
select <include refid="Base_Column_List" /> from
|
||||
(select tmp_tb.* , rownum rn from
|
||||
(select <include refid="Base_Column_List" /> from SAR_FILE_SPLIT_MENU
|
||||
<include refid="Base_Where_Clause"/>
|
||||
<if test="pager.orderCondition != null and pager.orderCondition != ''" >
|
||||
${pager.orderCondition}
|
||||
</if>
|
||||
) tmp_tb where rownum <= ${pager.endIndex})
|
||||
where rn >= ${pager.startIndex}
|
||||
</select>
|
||||
|
||||
<select id="queryByList" resultMap="BaseResultMap" parameterType="com.jero.modules.split.common.BasePage">
|
||||
select <include refid="Base_Column_List"/> from SAR_FILE_SPLIT_MENU
|
||||
<include refid="Base_Where_Clause"/>
|
||||
<if test="pager.orderCondition != null and pager.orderCondition != ''" >
|
||||
${pager.orderCondition}
|
||||
</if>
|
||||
</select>
|
||||
|
||||
|
||||
<!-- 批量插入接口 -->
|
||||
<insert id="insertForeach" parameterType="java.util.List">
|
||||
insert into SAR_FILE_SPLIT_MENU(<include refid="Base_Column_List" />) (
|
||||
<foreach collection="list" item="item" index="index" separator="UNION ALL">
|
||||
select
|
||||
#{item.id, jdbcType=VARCHAR},
|
||||
#{item.infoId, jdbcType=VARCHAR},
|
||||
#{item.name, jdbcType=VARCHAR},
|
||||
#{item.pId, jdbcType=VARCHAR},
|
||||
#{item.displaySeq, jdbcType=VARCHAR},
|
||||
#{item.validFlag, jdbcType=INTEGER},
|
||||
#{item.creationTime, jdbcType=TIMESTAMP},
|
||||
#{item.modifyTime, jdbcType=TIMESTAMP}, #{item.remarks, jdbcType=VARCHAR},
|
||||
#{item.creationUser, jdbcType=VARCHAR}, #{item.modifyUser, jdbcType=VARCHAR} , #{item.itemName, jdbcType=VARCHAR} from dual
|
||||
</foreach>
|
||||
)
|
||||
</insert>
|
||||
|
||||
<delete id="deleteByIds" parameterType="com.jero.modules.split.entity.SarFileSplitMenuEO">
|
||||
delete from SAR_FILE_SPLIT_MENU
|
||||
where info_id in
|
||||
<foreach collection="infoIdList" index="index" item="item" open="(" separator="," close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
|
||||
<update id="updateDisplaySeqAdd" parameterType="com.jero.modules.split.entity.SarFileSplitMenuEO" >
|
||||
update SAR_FILE_SPLIT_MENU
|
||||
set display_seq = display_seq+#{childrenCount},
|
||||
modify_time = #{modifyTime},
|
||||
modify_user = #{modifyUser}
|
||||
where display_seq >= #{displaySeqStart} and display_seq < #{displaySeqEnd} and valid_flag = 0 and info_id = #{infoId}
|
||||
</update>
|
||||
|
||||
<update id="updateDisplaySeqCut" parameterType="com.jero.modules.split.entity.SarFileSplitMenuEO" >
|
||||
update SAR_FILE_SPLIT_MENU
|
||||
set display_seq = display_seq-#{childrenCount},
|
||||
modify_time = #{modifyTime},
|
||||
modify_user = #{modifyUser}
|
||||
where display_seq <= #{displaySeqEnd} and display_seq > #{displaySeqStart} and valid_flag = 0 and info_id = #{infoId}
|
||||
</update>
|
||||
|
||||
<select id="queryByPidExcpetSelf" resultMap="BaseResultMap" parameterType="com.jero.modules.split.entity.SarFileSplitMenuEO">
|
||||
select SAR_FILE_SPLIT_MENU.* from SAR_FILE_SPLIT_MENU
|
||||
where valid_flag=0 and id != #{id}
|
||||
start with id=#{id} connect by prior id= p_id
|
||||
</select>
|
||||
|
||||
<delete id="deleteByPId" parameterType="java.lang.String">
|
||||
delete from SAR_FILE_SPLIT_MENU where id in (
|
||||
select id from SAR_FILE_SPLIT_MENU start with id=#{id} connect by prior id= p_id
|
||||
)
|
||||
|
||||
</delete>
|
||||
|
||||
<select id="getMaxDisplayByid" resultType="java.lang.Integer" parameterType="com.jero.modules.split.common.BasePage">
|
||||
SELECT max(SAR_FILE_SPLIT_MENU.DISPLAY_SEQ) FROM
|
||||
SAR_FILE_SPLIT_MENU START WITH id = #{id} CONNECT BY PRIOR id = p_id
|
||||
</select>
|
||||
|
||||
<select id="getMaxDisplayByidNextLevel" resultType="java.lang.Integer" parameterType="java.lang.String">
|
||||
SELECT max(SAR_FILE_SPLIT_MENU.DISPLAY_SEQ) FROM
|
||||
SAR_FILE_SPLIT_MENU where P_ID = #{id}
|
||||
</select>
|
||||
|
||||
<select id="getChildrenCountByParentId" resultType="java.lang.Integer" parameterType="com.jero.modules.split.common.BasePage">
|
||||
SELECT count(*) FROM
|
||||
SAR_FILE_SPLIT_MENU START WITH id = #{id} CONNECT BY PRIOR id = p_id
|
||||
</select>
|
||||
|
||||
<update id="updateChildrenDisplaySeqByIDAdd" parameterType="com.jero.modules.split.entity.SarFileSplitMenuEO" >
|
||||
update SAR_FILE_SPLIT_MENU
|
||||
set display_seq = display_seq + #{childrenCount},
|
||||
modify_time = #{modifyTime},
|
||||
modify_user = #{modifyUser}
|
||||
where id in ( SELECT id FROM
|
||||
SAR_FILE_SPLIT_MENU START WITH id = #{id} CONNECT BY PRIOR id = p_id)
|
||||
</update>
|
||||
|
||||
<update id="updateChildrenDisplaySeqByIDCut" parameterType="com.jero.modules.split.entity.SarFileSplitMenuEO" >
|
||||
update SAR_FILE_SPLIT_MENU
|
||||
set display_seq = display_seq - #{childrenCount},
|
||||
modify_time = #{modifyTime},
|
||||
modify_user = #{modifyUser}
|
||||
where id in ( SELECT id FROM
|
||||
SAR_FILE_SPLIT_MENU START WITH id = #{id} CONNECT BY PRIOR id = p_id)
|
||||
</update>
|
||||
|
||||
<select id="queryAllChildrenByid" resultMap="BaseResultMap" parameterType="com.jero.modules.split.entity.SarFileSplitMenuEO">
|
||||
select SAR_FILE_SPLIT_MENU.* from SAR_FILE_SPLIT_MENU
|
||||
where valid_flag=0
|
||||
start with id=#{id} connect by prior id= p_id
|
||||
</select>
|
||||
|
||||
<delete id="deleteByIdList" parameterType="java.util.List">
|
||||
delete from SAR_FILE_SPLIT_MENU
|
||||
where id in
|
||||
<foreach collection="idList" index="index" item="item" open="(" separator="," close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
</mapper>
|
||||
+303
@@ -0,0 +1,303 @@
|
||||
package com.jero.modules.split.page;
|
||||
|
||||
import com.jero.modules.split.common.BasePage;
|
||||
|
||||
/**
|
||||
* <b>功能:</b>SAR_FILE_SPLIT_INFO SarFileSplitInfoEOPage<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2020-01-03 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
public class SarFileSplitInfoEOPage extends BasePage {
|
||||
|
||||
private String sarType;
|
||||
private String sarTypeOperator = "=";
|
||||
private String fileName;
|
||||
private String fileNameOperator = "=";
|
||||
private String id;
|
||||
private String idOperator = "=";
|
||||
private String standId;
|
||||
private String standIdOperator = "=";
|
||||
private String fileType;
|
||||
private String fileTypeOperator = "=";
|
||||
private String attId;
|
||||
private String attIdOperator = "=";
|
||||
private String validFlag;
|
||||
private String validFlagOperator = "=";
|
||||
private String creationTime;
|
||||
private String creationTime1;
|
||||
private String creationTime2;
|
||||
private String creationTimeOperator = "=";
|
||||
private String creationUser;
|
||||
private String creationUserOperator = "=";
|
||||
private String modifyTime;
|
||||
private String modifyTime1;
|
||||
private String modifyTime2;
|
||||
private String modifyTimeOperator = "=";
|
||||
private String modifyUser;
|
||||
private String modifyUserOperator = "=";
|
||||
|
||||
private String numOrName;
|
||||
|
||||
private String standNumber;
|
||||
private String fileSplitState;
|
||||
private String standExecuteState;
|
||||
private String[] idList;
|
||||
private String userName; //姓名
|
||||
|
||||
public String getStandExecuteState() {
|
||||
return standExecuteState;
|
||||
}
|
||||
|
||||
public void setStandExecuteState(String standExecuteState) {
|
||||
this.standExecuteState = standExecuteState;
|
||||
}
|
||||
|
||||
public String getUserName() {
|
||||
return userName;
|
||||
}
|
||||
|
||||
public void setUserName(String userName) {
|
||||
this.userName = userName;
|
||||
}
|
||||
|
||||
public String[] getIdList() {
|
||||
return idList;
|
||||
}
|
||||
|
||||
public void setIdList(String[] idList) {
|
||||
this.idList = idList;
|
||||
}
|
||||
|
||||
public String getFileSplitState() {
|
||||
return fileSplitState;
|
||||
}
|
||||
|
||||
public void setFileSplitState(String fileSplitState) {
|
||||
this.fileSplitState = fileSplitState;
|
||||
}
|
||||
|
||||
public String getSarType() {
|
||||
return this.sarType;
|
||||
}
|
||||
|
||||
public void setSarType(String sarType) {
|
||||
this.sarType = sarType;
|
||||
}
|
||||
|
||||
public String getSarTypeOperator() {
|
||||
return this.sarTypeOperator;
|
||||
}
|
||||
|
||||
public void setSarTypeOperator(String sarTypeOperator) {
|
||||
this.sarTypeOperator = sarTypeOperator;
|
||||
}
|
||||
|
||||
public String getFileName() {
|
||||
return this.fileName;
|
||||
}
|
||||
|
||||
public void setFileName(String fileName) {
|
||||
this.fileName = fileName;
|
||||
}
|
||||
|
||||
public String getFileNameOperator() {
|
||||
return this.fileNameOperator;
|
||||
}
|
||||
|
||||
public void setFileNameOperator(String fileNameOperator) {
|
||||
this.fileNameOperator = fileNameOperator;
|
||||
}
|
||||
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getIdOperator() {
|
||||
return this.idOperator;
|
||||
}
|
||||
|
||||
public void setIdOperator(String idOperator) {
|
||||
this.idOperator = idOperator;
|
||||
}
|
||||
|
||||
public String getStandId() {
|
||||
return this.standId;
|
||||
}
|
||||
|
||||
public void setStandId(String standId) {
|
||||
this.standId = standId;
|
||||
}
|
||||
|
||||
public String getStandIdOperator() {
|
||||
return this.standIdOperator;
|
||||
}
|
||||
|
||||
public void setStandIdOperator(String standIdOperator) {
|
||||
this.standIdOperator = standIdOperator;
|
||||
}
|
||||
|
||||
public String getFileType() {
|
||||
return this.fileType;
|
||||
}
|
||||
|
||||
public void setFileType(String fileType) {
|
||||
this.fileType = fileType;
|
||||
}
|
||||
|
||||
public String getFileTypeOperator() {
|
||||
return this.fileTypeOperator;
|
||||
}
|
||||
|
||||
public void setFileTypeOperator(String fileTypeOperator) {
|
||||
this.fileTypeOperator = fileTypeOperator;
|
||||
}
|
||||
|
||||
public String getAttId() {
|
||||
return this.attId;
|
||||
}
|
||||
|
||||
public void setAttId(String attId) {
|
||||
this.attId = attId;
|
||||
}
|
||||
|
||||
public String getAttIdOperator() {
|
||||
return this.attIdOperator;
|
||||
}
|
||||
|
||||
public void setAttIdOperator(String attIdOperator) {
|
||||
this.attIdOperator = attIdOperator;
|
||||
}
|
||||
|
||||
public String getValidFlag() {
|
||||
return this.validFlag;
|
||||
}
|
||||
|
||||
public void setValidFlag(String validFlag) {
|
||||
this.validFlag = validFlag;
|
||||
}
|
||||
|
||||
public String getValidFlagOperator() {
|
||||
return this.validFlagOperator;
|
||||
}
|
||||
|
||||
public void setValidFlagOperator(String validFlagOperator) {
|
||||
this.validFlagOperator = validFlagOperator;
|
||||
}
|
||||
|
||||
public String getCreationTime() {
|
||||
return this.creationTime;
|
||||
}
|
||||
|
||||
public void setCreationTime(String creationTime) {
|
||||
this.creationTime = creationTime;
|
||||
}
|
||||
|
||||
public String getCreationTime1() {
|
||||
return this.creationTime1;
|
||||
}
|
||||
|
||||
public void setCreationTime1(String creationTime1) {
|
||||
this.creationTime1 = creationTime1;
|
||||
}
|
||||
|
||||
public String getCreationTime2() {
|
||||
return this.creationTime2;
|
||||
}
|
||||
|
||||
public void setCreationTime2(String creationTime2) {
|
||||
this.creationTime2 = creationTime2;
|
||||
}
|
||||
|
||||
public String getCreationTimeOperator() {
|
||||
return this.creationTimeOperator;
|
||||
}
|
||||
|
||||
public void setCreationTimeOperator(String creationTimeOperator) {
|
||||
this.creationTimeOperator = creationTimeOperator;
|
||||
}
|
||||
|
||||
public String getCreationUser() {
|
||||
return this.creationUser;
|
||||
}
|
||||
|
||||
public void setCreationUser(String creationUser) {
|
||||
this.creationUser = creationUser;
|
||||
}
|
||||
|
||||
public String getCreationUserOperator() {
|
||||
return this.creationUserOperator;
|
||||
}
|
||||
|
||||
public void setCreationUserOperator(String creationUserOperator) {
|
||||
this.creationUserOperator = creationUserOperator;
|
||||
}
|
||||
|
||||
public String getModifyTime() {
|
||||
return this.modifyTime;
|
||||
}
|
||||
|
||||
public void setModifyTime(String modifyTime) {
|
||||
this.modifyTime = modifyTime;
|
||||
}
|
||||
|
||||
public String getModifyTime1() {
|
||||
return this.modifyTime1;
|
||||
}
|
||||
|
||||
public void setModifyTime1(String modifyTime1) {
|
||||
this.modifyTime1 = modifyTime1;
|
||||
}
|
||||
|
||||
public String getModifyTime2() {
|
||||
return this.modifyTime2;
|
||||
}
|
||||
|
||||
public void setModifyTime2(String modifyTime2) {
|
||||
this.modifyTime2 = modifyTime2;
|
||||
}
|
||||
|
||||
public String getModifyTimeOperator() {
|
||||
return this.modifyTimeOperator;
|
||||
}
|
||||
|
||||
public void setModifyTimeOperator(String modifyTimeOperator) {
|
||||
this.modifyTimeOperator = modifyTimeOperator;
|
||||
}
|
||||
|
||||
public String getModifyUser() {
|
||||
return this.modifyUser;
|
||||
}
|
||||
|
||||
public void setModifyUser(String modifyUser) {
|
||||
this.modifyUser = modifyUser;
|
||||
}
|
||||
|
||||
public String getModifyUserOperator() {
|
||||
return this.modifyUserOperator;
|
||||
}
|
||||
|
||||
public void setModifyUserOperator(String modifyUserOperator) {
|
||||
this.modifyUserOperator = modifyUserOperator;
|
||||
}
|
||||
|
||||
public String getNumOrName() {
|
||||
return numOrName;
|
||||
}
|
||||
|
||||
public void setNumOrName(String numOrName) {
|
||||
this.numOrName = numOrName;
|
||||
}
|
||||
|
||||
public String getStandNumber() {
|
||||
return standNumber;
|
||||
}
|
||||
|
||||
public void setStandNumber(String standNumber) {
|
||||
this.standNumber = standNumber;
|
||||
}
|
||||
}
|
||||
+486
@@ -0,0 +1,486 @@
|
||||
package com.jero.modules.split.page;
|
||||
|
||||
import com.jero.modules.split.common.BasePage;
|
||||
import com.jero.modules.split.entity.SarFileSplitItemsValEO;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* <b>功能:</b>SAR_FILE_SPLIT_ITEMS SarFileSplitItemsEOPage<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2020-01-03 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
public class SarFileSplitItemsEOPage extends BasePage {
|
||||
|
||||
private String id;
|
||||
private String idOperator = "=";
|
||||
private String infoId;
|
||||
private String infoIdOperator = "=";
|
||||
private String itemsNum;
|
||||
private String itemsNumOperator = "=";
|
||||
private String itemsName;
|
||||
private String itemsNameOperator = "=";
|
||||
private String itermsConditions;
|
||||
private String itermsConditionsOperator = "=";
|
||||
private String newcarPutTime;
|
||||
private String newcarPutTime1;
|
||||
private String newcarPutTime2;
|
||||
private String newcarPutTimeOperator = "=";
|
||||
private String productPutTime;
|
||||
private String productPutTime1;
|
||||
private String productPutTime2;
|
||||
private String productPutTimeOperator = "=";
|
||||
private String menuId;
|
||||
private String menuIdOperator = "=";
|
||||
private String svpps;
|
||||
private String svppsOperator = "=";
|
||||
private String applyArctic;
|
||||
private String applyArcticOperator = "=";
|
||||
private String referenceStand;
|
||||
private String referenceStandOperator = "=";
|
||||
private String specialRequest;
|
||||
private String specialRequestOperator = "=";
|
||||
private String relevanceFile;
|
||||
private String relevanceFileOperator = "=";
|
||||
private String remarks;
|
||||
private String remarksOperator = "=";
|
||||
private String validFlag;
|
||||
private String validFlagOperator = "=";
|
||||
private String creationUser;
|
||||
private String creationUserOperator = "=";
|
||||
private String creationTime;
|
||||
private String creationTime1;
|
||||
private String creationTime2;
|
||||
private String creationTimeOperator = "=";
|
||||
private String modifyTime;
|
||||
private String modifyTime1;
|
||||
private String modifyTime2;
|
||||
private String modifyTimeOperator = "=";
|
||||
private String modifyUser;
|
||||
private String modifyUserOperator = "=";
|
||||
private String sMenuId;
|
||||
private List<String> idList;
|
||||
|
||||
private int tableIndex = 1;
|
||||
private int imgIndex = 1;
|
||||
|
||||
private List<SarFileSplitItemsValEO> targetItemValEOList;
|
||||
private String targetMenuId;
|
||||
|
||||
public List<SarFileSplitItemsValEO> getTargetItemValEOList() {
|
||||
return targetItemValEOList;
|
||||
}
|
||||
|
||||
public void setTargetItemValEOList(List<SarFileSplitItemsValEO> targetItemValEOList) {
|
||||
this.targetItemValEOList = targetItemValEOList;
|
||||
}
|
||||
|
||||
public String getTargetMenuId() {
|
||||
return targetMenuId;
|
||||
}
|
||||
|
||||
public void setTargetMenuId(String targetMenuId) {
|
||||
this.targetMenuId = targetMenuId;
|
||||
}
|
||||
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getIdOperator() {
|
||||
return this.idOperator;
|
||||
}
|
||||
|
||||
public void setIdOperator(String idOperator) {
|
||||
this.idOperator = idOperator;
|
||||
}
|
||||
|
||||
public String getInfoId() {
|
||||
return this.infoId;
|
||||
}
|
||||
|
||||
public void setInfoId(String infoId) {
|
||||
this.infoId = infoId;
|
||||
}
|
||||
|
||||
public String getInfoIdOperator() {
|
||||
return this.infoIdOperator;
|
||||
}
|
||||
|
||||
public void setInfoIdOperator(String infoIdOperator) {
|
||||
this.infoIdOperator = infoIdOperator;
|
||||
}
|
||||
|
||||
public String getItemsNum() {
|
||||
return this.itemsNum;
|
||||
}
|
||||
|
||||
public void setItemsNum(String itemsNum) {
|
||||
this.itemsNum = itemsNum;
|
||||
}
|
||||
|
||||
public String getItemsNumOperator() {
|
||||
return this.itemsNumOperator;
|
||||
}
|
||||
|
||||
public void setItemsNumOperator(String itemsNumOperator) {
|
||||
this.itemsNumOperator = itemsNumOperator;
|
||||
}
|
||||
|
||||
public String getItemsName() {
|
||||
return this.itemsName;
|
||||
}
|
||||
|
||||
public void setItemsName(String itemsName) {
|
||||
this.itemsName = itemsName;
|
||||
}
|
||||
|
||||
public String getItemsNameOperator() {
|
||||
return this.itemsNameOperator;
|
||||
}
|
||||
|
||||
public void setItemsNameOperator(String itemsNameOperator) {
|
||||
this.itemsNameOperator = itemsNameOperator;
|
||||
}
|
||||
|
||||
public String getItermsConditions() {
|
||||
return this.itermsConditions;
|
||||
}
|
||||
|
||||
public void setItermsConditions(String itermsConditions) {
|
||||
this.itermsConditions = itermsConditions;
|
||||
}
|
||||
|
||||
public String getItermsConditionsOperator() {
|
||||
return this.itermsConditionsOperator;
|
||||
}
|
||||
|
||||
public void setItermsConditionsOperator(String itermsConditionsOperator) {
|
||||
this.itermsConditionsOperator = itermsConditionsOperator;
|
||||
}
|
||||
|
||||
public String getNewcarPutTime() {
|
||||
return this.newcarPutTime;
|
||||
}
|
||||
|
||||
public void setNewcarPutTime(String newcarPutTime) {
|
||||
this.newcarPutTime = newcarPutTime;
|
||||
}
|
||||
|
||||
public String getNewcarPutTime1() {
|
||||
return this.newcarPutTime1;
|
||||
}
|
||||
|
||||
public void setNewcarPutTime1(String newcarPutTime1) {
|
||||
this.newcarPutTime1 = newcarPutTime1;
|
||||
}
|
||||
|
||||
public String getNewcarPutTime2() {
|
||||
return this.newcarPutTime2;
|
||||
}
|
||||
|
||||
public void setNewcarPutTime2(String newcarPutTime2) {
|
||||
this.newcarPutTime2 = newcarPutTime2;
|
||||
}
|
||||
|
||||
public String getNewcarPutTimeOperator() {
|
||||
return this.newcarPutTimeOperator;
|
||||
}
|
||||
|
||||
public void setNewcarPutTimeOperator(String newcarPutTimeOperator) {
|
||||
this.newcarPutTimeOperator = newcarPutTimeOperator;
|
||||
}
|
||||
|
||||
public String getProductPutTime() {
|
||||
return this.productPutTime;
|
||||
}
|
||||
|
||||
public void setProductPutTime(String productPutTime) {
|
||||
this.productPutTime = productPutTime;
|
||||
}
|
||||
|
||||
public String getProductPutTime1() {
|
||||
return this.productPutTime1;
|
||||
}
|
||||
|
||||
public void setProductPutTime1(String productPutTime1) {
|
||||
this.productPutTime1 = productPutTime1;
|
||||
}
|
||||
|
||||
public String getProductPutTime2() {
|
||||
return this.productPutTime2;
|
||||
}
|
||||
|
||||
public void setProductPutTime2(String productPutTime2) {
|
||||
this.productPutTime2 = productPutTime2;
|
||||
}
|
||||
|
||||
public String getProductPutTimeOperator() {
|
||||
return this.productPutTimeOperator;
|
||||
}
|
||||
|
||||
public void setProductPutTimeOperator(String productPutTimeOperator) {
|
||||
this.productPutTimeOperator = productPutTimeOperator;
|
||||
}
|
||||
|
||||
public String getMenuId() {
|
||||
return this.menuId;
|
||||
}
|
||||
|
||||
public void setMenuId(String menuId) {
|
||||
this.menuId = menuId;
|
||||
}
|
||||
|
||||
public String getMenuIdOperator() {
|
||||
return this.menuIdOperator;
|
||||
}
|
||||
|
||||
public void setMenuIdOperator(String menuIdOperator) {
|
||||
this.menuIdOperator = menuIdOperator;
|
||||
}
|
||||
|
||||
public String getSvpps() {
|
||||
return this.svpps;
|
||||
}
|
||||
|
||||
public void setSvpps(String svpps) {
|
||||
this.svpps = svpps;
|
||||
}
|
||||
|
||||
public String getSvppsOperator() {
|
||||
return this.svppsOperator;
|
||||
}
|
||||
|
||||
public void setSvppsOperator(String svppsOperator) {
|
||||
this.svppsOperator = svppsOperator;
|
||||
}
|
||||
|
||||
public String getApplyArctic() {
|
||||
return this.applyArctic;
|
||||
}
|
||||
|
||||
public void setApplyArctic(String applyArctic) {
|
||||
this.applyArctic = applyArctic;
|
||||
}
|
||||
|
||||
public String getApplyArcticOperator() {
|
||||
return this.applyArcticOperator;
|
||||
}
|
||||
|
||||
public void setApplyArcticOperator(String applyArcticOperator) {
|
||||
this.applyArcticOperator = applyArcticOperator;
|
||||
}
|
||||
|
||||
public String getReferenceStand() {
|
||||
return this.referenceStand;
|
||||
}
|
||||
|
||||
public void setReferenceStand(String referenceStand) {
|
||||
this.referenceStand = referenceStand;
|
||||
}
|
||||
|
||||
public String getReferenceStandOperator() {
|
||||
return this.referenceStandOperator;
|
||||
}
|
||||
|
||||
public void setReferenceStandOperator(String referenceStandOperator) {
|
||||
this.referenceStandOperator = referenceStandOperator;
|
||||
}
|
||||
|
||||
public String getSpecialRequest() {
|
||||
return this.specialRequest;
|
||||
}
|
||||
|
||||
public void setSpecialRequest(String specialRequest) {
|
||||
this.specialRequest = specialRequest;
|
||||
}
|
||||
|
||||
public String getSpecialRequestOperator() {
|
||||
return this.specialRequestOperator;
|
||||
}
|
||||
|
||||
public void setSpecialRequestOperator(String specialRequestOperator) {
|
||||
this.specialRequestOperator = specialRequestOperator;
|
||||
}
|
||||
|
||||
public String getRelevanceFile() {
|
||||
return this.relevanceFile;
|
||||
}
|
||||
|
||||
public void setRelevanceFile(String relevanceFile) {
|
||||
this.relevanceFile = relevanceFile;
|
||||
}
|
||||
|
||||
public String getRelevanceFileOperator() {
|
||||
return this.relevanceFileOperator;
|
||||
}
|
||||
|
||||
public void setRelevanceFileOperator(String relevanceFileOperator) {
|
||||
this.relevanceFileOperator = relevanceFileOperator;
|
||||
}
|
||||
|
||||
public String getRemarks() {
|
||||
return this.remarks;
|
||||
}
|
||||
|
||||
public void setRemarks(String remarks) {
|
||||
this.remarks = remarks;
|
||||
}
|
||||
|
||||
public String getRemarksOperator() {
|
||||
return this.remarksOperator;
|
||||
}
|
||||
|
||||
public void setRemarksOperator(String remarksOperator) {
|
||||
this.remarksOperator = remarksOperator;
|
||||
}
|
||||
|
||||
public String getValidFlag() {
|
||||
return this.validFlag;
|
||||
}
|
||||
|
||||
public void setValidFlag(String validFlag) {
|
||||
this.validFlag = validFlag;
|
||||
}
|
||||
|
||||
public String getValidFlagOperator() {
|
||||
return this.validFlagOperator;
|
||||
}
|
||||
|
||||
public void setValidFlagOperator(String validFlagOperator) {
|
||||
this.validFlagOperator = validFlagOperator;
|
||||
}
|
||||
|
||||
public String getCreationUser() {
|
||||
return this.creationUser;
|
||||
}
|
||||
|
||||
public void setCreationUser(String creationUser) {
|
||||
this.creationUser = creationUser;
|
||||
}
|
||||
|
||||
public String getCreationUserOperator() {
|
||||
return this.creationUserOperator;
|
||||
}
|
||||
|
||||
public void setCreationUserOperator(String creationUserOperator) {
|
||||
this.creationUserOperator = creationUserOperator;
|
||||
}
|
||||
|
||||
public String getCreationTime() {
|
||||
return this.creationTime;
|
||||
}
|
||||
|
||||
public void setCreationTime(String creationTime) {
|
||||
this.creationTime = creationTime;
|
||||
}
|
||||
|
||||
public String getCreationTime1() {
|
||||
return this.creationTime1;
|
||||
}
|
||||
|
||||
public void setCreationTime1(String creationTime1) {
|
||||
this.creationTime1 = creationTime1;
|
||||
}
|
||||
|
||||
public String getCreationTime2() {
|
||||
return this.creationTime2;
|
||||
}
|
||||
|
||||
public void setCreationTime2(String creationTime2) {
|
||||
this.creationTime2 = creationTime2;
|
||||
}
|
||||
|
||||
public String getCreationTimeOperator() {
|
||||
return this.creationTimeOperator;
|
||||
}
|
||||
|
||||
public void setCreationTimeOperator(String creationTimeOperator) {
|
||||
this.creationTimeOperator = creationTimeOperator;
|
||||
}
|
||||
|
||||
public String getModifyTime() {
|
||||
return this.modifyTime;
|
||||
}
|
||||
|
||||
public void setModifyTime(String modifyTime) {
|
||||
this.modifyTime = modifyTime;
|
||||
}
|
||||
|
||||
public String getModifyTime1() {
|
||||
return this.modifyTime1;
|
||||
}
|
||||
|
||||
public void setModifyTime1(String modifyTime1) {
|
||||
this.modifyTime1 = modifyTime1;
|
||||
}
|
||||
|
||||
public String getModifyTime2() {
|
||||
return this.modifyTime2;
|
||||
}
|
||||
|
||||
public void setModifyTime2(String modifyTime2) {
|
||||
this.modifyTime2 = modifyTime2;
|
||||
}
|
||||
|
||||
public String getModifyTimeOperator() {
|
||||
return this.modifyTimeOperator;
|
||||
}
|
||||
|
||||
public void setModifyTimeOperator(String modifyTimeOperator) {
|
||||
this.modifyTimeOperator = modifyTimeOperator;
|
||||
}
|
||||
|
||||
public String getModifyUser() {
|
||||
return this.modifyUser;
|
||||
}
|
||||
|
||||
public void setModifyUser(String modifyUser) {
|
||||
this.modifyUser = modifyUser;
|
||||
}
|
||||
|
||||
public String getModifyUserOperator() {
|
||||
return this.modifyUserOperator;
|
||||
}
|
||||
|
||||
public void setModifyUserOperator(String modifyUserOperator) {
|
||||
this.modifyUserOperator = modifyUserOperator;
|
||||
}
|
||||
|
||||
public String getsMenuId() {
|
||||
return sMenuId;
|
||||
}
|
||||
|
||||
public void setsMenuId(String sMenuId) {
|
||||
this.sMenuId = sMenuId;
|
||||
}
|
||||
|
||||
public List<String> getIdList() {
|
||||
return idList;
|
||||
}
|
||||
|
||||
public void setIdList(List<String> idList) {
|
||||
this.idList = idList;
|
||||
}
|
||||
|
||||
public int getTableIndex() {
|
||||
return tableIndex;
|
||||
}
|
||||
|
||||
public void setTableIndex(int tableIndex) {
|
||||
this.tableIndex = tableIndex;
|
||||
}
|
||||
|
||||
public int getImgIndex() {
|
||||
return imgIndex;
|
||||
}
|
||||
|
||||
public void setImgIndex(int imgIndex) {
|
||||
this.imgIndex = imgIndex;
|
||||
}
|
||||
}
|
||||
+212
@@ -0,0 +1,212 @@
|
||||
package com.jero.modules.split.page;
|
||||
|
||||
import com.jero.modules.split.common.BasePage;
|
||||
|
||||
/**
|
||||
* <b>功能:</b>SAR_FILE_SPLIT_ITEMS_FILE SarFileSplitItemsFileEOPage<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2020-03-30 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
public class SarFileSplitItemsFileEOPage extends BasePage {
|
||||
|
||||
private String id;
|
||||
private String idOperator = "=";
|
||||
private String standId;
|
||||
private String standIdOperator = "=";
|
||||
private String resId;
|
||||
private String resIdOperator = "=";
|
||||
private String attId;
|
||||
private String attIdOperator = "=";
|
||||
private String useModel;
|
||||
private String useModelOperator = "=";
|
||||
private String validFlag;
|
||||
private String validFlagOperator = "=";
|
||||
private String creationTime;
|
||||
private String creationTime1;
|
||||
private String creationTime2;
|
||||
private String creationTimeOperator = "=";
|
||||
private String modifyTime;
|
||||
private String modifyTime1;
|
||||
private String modifyTime2;
|
||||
private String modifyTimeOperator = "=";
|
||||
private String pageCount;
|
||||
private String pageCountOperator = "=";
|
||||
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getIdOperator() {
|
||||
return this.idOperator;
|
||||
}
|
||||
|
||||
public void setIdOperator(String idOperator) {
|
||||
this.idOperator = idOperator;
|
||||
}
|
||||
|
||||
public String getStandId() {
|
||||
return this.standId;
|
||||
}
|
||||
|
||||
public void setStandId(String standId) {
|
||||
this.standId = standId;
|
||||
}
|
||||
|
||||
public String getStandIdOperator() {
|
||||
return this.standIdOperator;
|
||||
}
|
||||
|
||||
public void setStandIdOperator(String standIdOperator) {
|
||||
this.standIdOperator = standIdOperator;
|
||||
}
|
||||
|
||||
public String getResId() {
|
||||
return this.resId;
|
||||
}
|
||||
|
||||
public void setResId(String resId) {
|
||||
this.resId = resId;
|
||||
}
|
||||
|
||||
public String getResIdOperator() {
|
||||
return this.resIdOperator;
|
||||
}
|
||||
|
||||
public void setResIdOperator(String resIdOperator) {
|
||||
this.resIdOperator = resIdOperator;
|
||||
}
|
||||
|
||||
public String getAttId() {
|
||||
return this.attId;
|
||||
}
|
||||
|
||||
public void setAttId(String attId) {
|
||||
this.attId = attId;
|
||||
}
|
||||
|
||||
public String getAttIdOperator() {
|
||||
return this.attIdOperator;
|
||||
}
|
||||
|
||||
public void setAttIdOperator(String attIdOperator) {
|
||||
this.attIdOperator = attIdOperator;
|
||||
}
|
||||
|
||||
public String getUseModel() {
|
||||
return this.useModel;
|
||||
}
|
||||
|
||||
public void setUseModel(String useModel) {
|
||||
this.useModel = useModel;
|
||||
}
|
||||
|
||||
public String getUseModelOperator() {
|
||||
return this.useModelOperator;
|
||||
}
|
||||
|
||||
public void setUseModelOperator(String useModelOperator) {
|
||||
this.useModelOperator = useModelOperator;
|
||||
}
|
||||
|
||||
public String getValidFlag() {
|
||||
return this.validFlag;
|
||||
}
|
||||
|
||||
public void setValidFlag(String validFlag) {
|
||||
this.validFlag = validFlag;
|
||||
}
|
||||
|
||||
public String getValidFlagOperator() {
|
||||
return this.validFlagOperator;
|
||||
}
|
||||
|
||||
public void setValidFlagOperator(String validFlagOperator) {
|
||||
this.validFlagOperator = validFlagOperator;
|
||||
}
|
||||
|
||||
public String getCreationTime() {
|
||||
return this.creationTime;
|
||||
}
|
||||
|
||||
public void setCreationTime(String creationTime) {
|
||||
this.creationTime = creationTime;
|
||||
}
|
||||
|
||||
public String getCreationTime1() {
|
||||
return this.creationTime1;
|
||||
}
|
||||
|
||||
public void setCreationTime1(String creationTime1) {
|
||||
this.creationTime1 = creationTime1;
|
||||
}
|
||||
|
||||
public String getCreationTime2() {
|
||||
return this.creationTime2;
|
||||
}
|
||||
|
||||
public void setCreationTime2(String creationTime2) {
|
||||
this.creationTime2 = creationTime2;
|
||||
}
|
||||
|
||||
public String getCreationTimeOperator() {
|
||||
return this.creationTimeOperator;
|
||||
}
|
||||
|
||||
public void setCreationTimeOperator(String creationTimeOperator) {
|
||||
this.creationTimeOperator = creationTimeOperator;
|
||||
}
|
||||
|
||||
public String getModifyTime() {
|
||||
return this.modifyTime;
|
||||
}
|
||||
|
||||
public void setModifyTime(String modifyTime) {
|
||||
this.modifyTime = modifyTime;
|
||||
}
|
||||
|
||||
public String getModifyTime1() {
|
||||
return this.modifyTime1;
|
||||
}
|
||||
|
||||
public void setModifyTime1(String modifyTime1) {
|
||||
this.modifyTime1 = modifyTime1;
|
||||
}
|
||||
|
||||
public String getModifyTime2() {
|
||||
return this.modifyTime2;
|
||||
}
|
||||
|
||||
public void setModifyTime2(String modifyTime2) {
|
||||
this.modifyTime2 = modifyTime2;
|
||||
}
|
||||
|
||||
public String getModifyTimeOperator() {
|
||||
return this.modifyTimeOperator;
|
||||
}
|
||||
|
||||
public void setModifyTimeOperator(String modifyTimeOperator) {
|
||||
this.modifyTimeOperator = modifyTimeOperator;
|
||||
}
|
||||
|
||||
public String getPageCount() {
|
||||
return this.pageCount;
|
||||
}
|
||||
|
||||
public void setPageCount(String pageCount) {
|
||||
this.pageCount = pageCount;
|
||||
}
|
||||
|
||||
public String getPageCountOperator() {
|
||||
return this.pageCountOperator;
|
||||
}
|
||||
|
||||
public void setPageCountOperator(String pageCountOperator) {
|
||||
this.pageCountOperator = pageCountOperator;
|
||||
}
|
||||
|
||||
}
|
||||
+194
@@ -0,0 +1,194 @@
|
||||
package com.jero.modules.split.page;
|
||||
|
||||
import com.jero.modules.split.common.BasePage;
|
||||
|
||||
/**
|
||||
* <b>功能:</b>SAR_FILE_SPLIT_ITEMS_PARAMS SarFileSplitItemsParamsEOPage<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2020-02-04 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
public class SarFileSplitItemsParamsEOPage extends BasePage {
|
||||
|
||||
private String id;
|
||||
private String idOperator = "=";
|
||||
private String itemId;
|
||||
private String itemIdOperator = "=";
|
||||
private String description;
|
||||
private String descriptionOperator = "=";
|
||||
private String figure;
|
||||
private String figureOperator = "=";
|
||||
private String validFlag;
|
||||
private String validFlagOperator = "=";
|
||||
private String creationTime;
|
||||
private String creationTime1;
|
||||
private String creationTime2;
|
||||
private String creationTimeOperator = "=";
|
||||
private String modifyTime;
|
||||
private String modifyTime1;
|
||||
private String modifyTime2;
|
||||
private String modifyTimeOperator = "=";
|
||||
private String infoId;
|
||||
private String infoIdOperator = "=";
|
||||
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getIdOperator() {
|
||||
return this.idOperator;
|
||||
}
|
||||
|
||||
public void setIdOperator(String idOperator) {
|
||||
this.idOperator = idOperator;
|
||||
}
|
||||
|
||||
public String getItemId() {
|
||||
return this.itemId;
|
||||
}
|
||||
|
||||
public void setItemId(String itemId) {
|
||||
this.itemId = itemId;
|
||||
}
|
||||
|
||||
public String getItemIdOperator() {
|
||||
return this.itemIdOperator;
|
||||
}
|
||||
|
||||
public void setItemIdOperator(String itemIdOperator) {
|
||||
this.itemIdOperator = itemIdOperator;
|
||||
}
|
||||
|
||||
public String getDescription() {
|
||||
return this.description;
|
||||
}
|
||||
|
||||
public void setDescription(String description) {
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
public String getDescriptionOperator() {
|
||||
return this.descriptionOperator;
|
||||
}
|
||||
|
||||
public void setDescriptionOperator(String descriptionOperator) {
|
||||
this.descriptionOperator = descriptionOperator;
|
||||
}
|
||||
|
||||
public String getFigure() {
|
||||
return this.figure;
|
||||
}
|
||||
|
||||
public void setFigure(String figure) {
|
||||
this.figure = figure;
|
||||
}
|
||||
|
||||
public String getFigureOperator() {
|
||||
return this.figureOperator;
|
||||
}
|
||||
|
||||
public void setFigureOperator(String figureOperator) {
|
||||
this.figureOperator = figureOperator;
|
||||
}
|
||||
|
||||
public String getValidFlag() {
|
||||
return this.validFlag;
|
||||
}
|
||||
|
||||
public void setValidFlag(String validFlag) {
|
||||
this.validFlag = validFlag;
|
||||
}
|
||||
|
||||
public String getValidFlagOperator() {
|
||||
return this.validFlagOperator;
|
||||
}
|
||||
|
||||
public void setValidFlagOperator(String validFlagOperator) {
|
||||
this.validFlagOperator = validFlagOperator;
|
||||
}
|
||||
|
||||
public String getCreationTime() {
|
||||
return this.creationTime;
|
||||
}
|
||||
|
||||
public void setCreationTime(String creationTime) {
|
||||
this.creationTime = creationTime;
|
||||
}
|
||||
|
||||
public String getCreationTime1() {
|
||||
return this.creationTime1;
|
||||
}
|
||||
|
||||
public void setCreationTime1(String creationTime1) {
|
||||
this.creationTime1 = creationTime1;
|
||||
}
|
||||
|
||||
public String getCreationTime2() {
|
||||
return this.creationTime2;
|
||||
}
|
||||
|
||||
public void setCreationTime2(String creationTime2) {
|
||||
this.creationTime2 = creationTime2;
|
||||
}
|
||||
|
||||
public String getCreationTimeOperator() {
|
||||
return this.creationTimeOperator;
|
||||
}
|
||||
|
||||
public void setCreationTimeOperator(String creationTimeOperator) {
|
||||
this.creationTimeOperator = creationTimeOperator;
|
||||
}
|
||||
|
||||
public String getModifyTime() {
|
||||
return this.modifyTime;
|
||||
}
|
||||
|
||||
public void setModifyTime(String modifyTime) {
|
||||
this.modifyTime = modifyTime;
|
||||
}
|
||||
|
||||
public String getModifyTime1() {
|
||||
return this.modifyTime1;
|
||||
}
|
||||
|
||||
public void setModifyTime1(String modifyTime1) {
|
||||
this.modifyTime1 = modifyTime1;
|
||||
}
|
||||
|
||||
public String getModifyTime2() {
|
||||
return this.modifyTime2;
|
||||
}
|
||||
|
||||
public void setModifyTime2(String modifyTime2) {
|
||||
this.modifyTime2 = modifyTime2;
|
||||
}
|
||||
|
||||
public String getModifyTimeOperator() {
|
||||
return this.modifyTimeOperator;
|
||||
}
|
||||
|
||||
public void setModifyTimeOperator(String modifyTimeOperator) {
|
||||
this.modifyTimeOperator = modifyTimeOperator;
|
||||
}
|
||||
|
||||
public String getInfoId() {
|
||||
return this.infoId;
|
||||
}
|
||||
|
||||
public void setInfoId(String infoId) {
|
||||
this.infoId = infoId;
|
||||
}
|
||||
|
||||
public String getInfoIdOperator() {
|
||||
return this.infoIdOperator;
|
||||
}
|
||||
|
||||
public void setInfoIdOperator(String infoIdOperator) {
|
||||
this.infoIdOperator = infoIdOperator;
|
||||
}
|
||||
|
||||
}
|
||||
+194
@@ -0,0 +1,194 @@
|
||||
package com.jero.modules.split.page;
|
||||
|
||||
import com.jero.modules.split.common.BasePage;
|
||||
|
||||
/**
|
||||
* <b>功能:</b>SAR_FILE_SPLIT_ITEMS_RES SarFileSplitItemsResEOPage<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2020-03-30 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
public class SarFileSplitItemsResEOPage extends BasePage {
|
||||
|
||||
private String id;
|
||||
private String idOperator = "=";
|
||||
private String standId;
|
||||
private String standIdOperator = "=";
|
||||
private String standFileClassify;
|
||||
private String standFileClassifyOperator = "=";
|
||||
private String fileName;
|
||||
private String fileNameOperator = "=";
|
||||
private String fileSuffix;
|
||||
private String fileSuffixOperator = "=";
|
||||
private String validFlag;
|
||||
private String validFlagOperator = "=";
|
||||
private String creationTime;
|
||||
private String creationTime1;
|
||||
private String creationTime2;
|
||||
private String creationTimeOperator = "=";
|
||||
private String modifyTime;
|
||||
private String modifyTime1;
|
||||
private String modifyTime2;
|
||||
private String modifyTimeOperator = "=";
|
||||
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getIdOperator() {
|
||||
return this.idOperator;
|
||||
}
|
||||
|
||||
public void setIdOperator(String idOperator) {
|
||||
this.idOperator = idOperator;
|
||||
}
|
||||
|
||||
public String getStandId() {
|
||||
return this.standId;
|
||||
}
|
||||
|
||||
public void setStandId(String standId) {
|
||||
this.standId = standId;
|
||||
}
|
||||
|
||||
public String getStandIdOperator() {
|
||||
return this.standIdOperator;
|
||||
}
|
||||
|
||||
public void setStandIdOperator(String standIdOperator) {
|
||||
this.standIdOperator = standIdOperator;
|
||||
}
|
||||
|
||||
public String getStandFileClassify() {
|
||||
return this.standFileClassify;
|
||||
}
|
||||
|
||||
public void setStandFileClassify(String standFileClassify) {
|
||||
this.standFileClassify = standFileClassify;
|
||||
}
|
||||
|
||||
public String getStandFileClassifyOperator() {
|
||||
return this.standFileClassifyOperator;
|
||||
}
|
||||
|
||||
public void setStandFileClassifyOperator(String standFileClassifyOperator) {
|
||||
this.standFileClassifyOperator = standFileClassifyOperator;
|
||||
}
|
||||
|
||||
public String getFileName() {
|
||||
return this.fileName;
|
||||
}
|
||||
|
||||
public void setFileName(String fileName) {
|
||||
this.fileName = fileName;
|
||||
}
|
||||
|
||||
public String getFileNameOperator() {
|
||||
return this.fileNameOperator;
|
||||
}
|
||||
|
||||
public void setFileNameOperator(String fileNameOperator) {
|
||||
this.fileNameOperator = fileNameOperator;
|
||||
}
|
||||
|
||||
public String getFileSuffix() {
|
||||
return this.fileSuffix;
|
||||
}
|
||||
|
||||
public void setFileSuffix(String fileSuffix) {
|
||||
this.fileSuffix = fileSuffix;
|
||||
}
|
||||
|
||||
public String getFileSuffixOperator() {
|
||||
return this.fileSuffixOperator;
|
||||
}
|
||||
|
||||
public void setFileSuffixOperator(String fileSuffixOperator) {
|
||||
this.fileSuffixOperator = fileSuffixOperator;
|
||||
}
|
||||
|
||||
public String getValidFlag() {
|
||||
return this.validFlag;
|
||||
}
|
||||
|
||||
public void setValidFlag(String validFlag) {
|
||||
this.validFlag = validFlag;
|
||||
}
|
||||
|
||||
public String getValidFlagOperator() {
|
||||
return this.validFlagOperator;
|
||||
}
|
||||
|
||||
public void setValidFlagOperator(String validFlagOperator) {
|
||||
this.validFlagOperator = validFlagOperator;
|
||||
}
|
||||
|
||||
public String getCreationTime() {
|
||||
return this.creationTime;
|
||||
}
|
||||
|
||||
public void setCreationTime(String creationTime) {
|
||||
this.creationTime = creationTime;
|
||||
}
|
||||
|
||||
public String getCreationTime1() {
|
||||
return this.creationTime1;
|
||||
}
|
||||
|
||||
public void setCreationTime1(String creationTime1) {
|
||||
this.creationTime1 = creationTime1;
|
||||
}
|
||||
|
||||
public String getCreationTime2() {
|
||||
return this.creationTime2;
|
||||
}
|
||||
|
||||
public void setCreationTime2(String creationTime2) {
|
||||
this.creationTime2 = creationTime2;
|
||||
}
|
||||
|
||||
public String getCreationTimeOperator() {
|
||||
return this.creationTimeOperator;
|
||||
}
|
||||
|
||||
public void setCreationTimeOperator(String creationTimeOperator) {
|
||||
this.creationTimeOperator = creationTimeOperator;
|
||||
}
|
||||
|
||||
public String getModifyTime() {
|
||||
return this.modifyTime;
|
||||
}
|
||||
|
||||
public void setModifyTime(String modifyTime) {
|
||||
this.modifyTime = modifyTime;
|
||||
}
|
||||
|
||||
public String getModifyTime1() {
|
||||
return this.modifyTime1;
|
||||
}
|
||||
|
||||
public void setModifyTime1(String modifyTime1) {
|
||||
this.modifyTime1 = modifyTime1;
|
||||
}
|
||||
|
||||
public String getModifyTime2() {
|
||||
return this.modifyTime2;
|
||||
}
|
||||
|
||||
public void setModifyTime2(String modifyTime2) {
|
||||
this.modifyTime2 = modifyTime2;
|
||||
}
|
||||
|
||||
public String getModifyTimeOperator() {
|
||||
return this.modifyTimeOperator;
|
||||
}
|
||||
|
||||
public void setModifyTimeOperator(String modifyTimeOperator) {
|
||||
this.modifyTimeOperator = modifyTimeOperator;
|
||||
}
|
||||
|
||||
}
|
||||
+230
@@ -0,0 +1,230 @@
|
||||
package com.jero.modules.split.page;
|
||||
|
||||
import com.jero.modules.split.common.BasePage;
|
||||
|
||||
/**
|
||||
* <b>功能:</b>SAR_FILE_SPLIT_ITEMS_TABLE SarFileSplitItemsTableEOPage<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2020-01-17 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
public class SarFileSplitItemsTableEOPage extends BasePage {
|
||||
|
||||
private String id;
|
||||
private String idOperator = "=";
|
||||
private String itemsValId;
|
||||
private String itemsValIdOperator = "=";
|
||||
private String itemsId;
|
||||
private String itemsIdOperator = "=";
|
||||
private String rowNum;
|
||||
private String rowNumOperator = "=";
|
||||
private String colNum;
|
||||
private String colNumOperator = "=";
|
||||
private String content;
|
||||
private String contentOperator = "=";
|
||||
private String validFlag;
|
||||
private String validFlagOperator = "=";
|
||||
private String creationTime;
|
||||
private String creationTime1;
|
||||
private String creationTime2;
|
||||
private String creationTimeOperator = "=";
|
||||
private String modifyTime;
|
||||
private String modifyTime1;
|
||||
private String modifyTime2;
|
||||
private String modifyTimeOperator = "=";
|
||||
private String modifyUser;
|
||||
private String modifyUserOperator = "=";
|
||||
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getIdOperator() {
|
||||
return this.idOperator;
|
||||
}
|
||||
|
||||
public void setIdOperator(String idOperator) {
|
||||
this.idOperator = idOperator;
|
||||
}
|
||||
|
||||
public String getItemsValId() {
|
||||
return this.itemsValId;
|
||||
}
|
||||
|
||||
public void setItemsValId(String itemsValId) {
|
||||
this.itemsValId = itemsValId;
|
||||
}
|
||||
|
||||
public String getItemsValIdOperator() {
|
||||
return this.itemsValIdOperator;
|
||||
}
|
||||
|
||||
public void setItemsValIdOperator(String itemsValIdOperator) {
|
||||
this.itemsValIdOperator = itemsValIdOperator;
|
||||
}
|
||||
|
||||
public String getItemsId() {
|
||||
return this.itemsId;
|
||||
}
|
||||
|
||||
public void setItemsId(String itemsId) {
|
||||
this.itemsId = itemsId;
|
||||
}
|
||||
|
||||
public String getItemsIdOperator() {
|
||||
return this.itemsIdOperator;
|
||||
}
|
||||
|
||||
public void setItemsIdOperator(String itemsIdOperator) {
|
||||
this.itemsIdOperator = itemsIdOperator;
|
||||
}
|
||||
|
||||
public String getRowNum() {
|
||||
return this.rowNum;
|
||||
}
|
||||
|
||||
public void setRowNum(String rowNum) {
|
||||
this.rowNum = rowNum;
|
||||
}
|
||||
|
||||
public String getRowNumOperator() {
|
||||
return this.rowNumOperator;
|
||||
}
|
||||
|
||||
public void setRowNumOperator(String rowNumOperator) {
|
||||
this.rowNumOperator = rowNumOperator;
|
||||
}
|
||||
|
||||
public String getColNum() {
|
||||
return this.colNum;
|
||||
}
|
||||
|
||||
public void setColNum(String colNum) {
|
||||
this.colNum = colNum;
|
||||
}
|
||||
|
||||
public String getColNumOperator() {
|
||||
return this.colNumOperator;
|
||||
}
|
||||
|
||||
public void setColNumOperator(String colNumOperator) {
|
||||
this.colNumOperator = colNumOperator;
|
||||
}
|
||||
|
||||
public String getContent() {
|
||||
return this.content;
|
||||
}
|
||||
|
||||
public void setContent(String content) {
|
||||
this.content = content;
|
||||
}
|
||||
|
||||
public String getContentOperator() {
|
||||
return this.contentOperator;
|
||||
}
|
||||
|
||||
public void setContentOperator(String contentOperator) {
|
||||
this.contentOperator = contentOperator;
|
||||
}
|
||||
|
||||
public String getValidFlag() {
|
||||
return this.validFlag;
|
||||
}
|
||||
|
||||
public void setValidFlag(String validFlag) {
|
||||
this.validFlag = validFlag;
|
||||
}
|
||||
|
||||
public String getValidFlagOperator() {
|
||||
return this.validFlagOperator;
|
||||
}
|
||||
|
||||
public void setValidFlagOperator(String validFlagOperator) {
|
||||
this.validFlagOperator = validFlagOperator;
|
||||
}
|
||||
|
||||
public String getCreationTime() {
|
||||
return this.creationTime;
|
||||
}
|
||||
|
||||
public void setCreationTime(String creationTime) {
|
||||
this.creationTime = creationTime;
|
||||
}
|
||||
|
||||
public String getCreationTime1() {
|
||||
return this.creationTime1;
|
||||
}
|
||||
|
||||
public void setCreationTime1(String creationTime1) {
|
||||
this.creationTime1 = creationTime1;
|
||||
}
|
||||
|
||||
public String getCreationTime2() {
|
||||
return this.creationTime2;
|
||||
}
|
||||
|
||||
public void setCreationTime2(String creationTime2) {
|
||||
this.creationTime2 = creationTime2;
|
||||
}
|
||||
|
||||
public String getCreationTimeOperator() {
|
||||
return this.creationTimeOperator;
|
||||
}
|
||||
|
||||
public void setCreationTimeOperator(String creationTimeOperator) {
|
||||
this.creationTimeOperator = creationTimeOperator;
|
||||
}
|
||||
|
||||
public String getModifyTime() {
|
||||
return this.modifyTime;
|
||||
}
|
||||
|
||||
public void setModifyTime(String modifyTime) {
|
||||
this.modifyTime = modifyTime;
|
||||
}
|
||||
|
||||
public String getModifyTime1() {
|
||||
return this.modifyTime1;
|
||||
}
|
||||
|
||||
public void setModifyTime1(String modifyTime1) {
|
||||
this.modifyTime1 = modifyTime1;
|
||||
}
|
||||
|
||||
public String getModifyTime2() {
|
||||
return this.modifyTime2;
|
||||
}
|
||||
|
||||
public void setModifyTime2(String modifyTime2) {
|
||||
this.modifyTime2 = modifyTime2;
|
||||
}
|
||||
|
||||
public String getModifyTimeOperator() {
|
||||
return this.modifyTimeOperator;
|
||||
}
|
||||
|
||||
public void setModifyTimeOperator(String modifyTimeOperator) {
|
||||
this.modifyTimeOperator = modifyTimeOperator;
|
||||
}
|
||||
|
||||
public String getModifyUser() {
|
||||
return this.modifyUser;
|
||||
}
|
||||
|
||||
public void setModifyUser(String modifyUser) {
|
||||
this.modifyUser = modifyUser;
|
||||
}
|
||||
|
||||
public String getModifyUserOperator() {
|
||||
return this.modifyUserOperator;
|
||||
}
|
||||
|
||||
public void setModifyUserOperator(String modifyUserOperator) {
|
||||
this.modifyUserOperator = modifyUserOperator;
|
||||
}
|
||||
|
||||
}
|
||||
+230
@@ -0,0 +1,230 @@
|
||||
package com.jero.modules.split.page;
|
||||
|
||||
import com.jero.modules.split.common.BasePage;
|
||||
|
||||
/**
|
||||
* <b>功能:</b>SAR_FILE_SPLIT_ITEMS_VAL SarFileSplitItemsValEOPage<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2020-01-07 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
public class SarFileSplitItemsValEOPage extends BasePage {
|
||||
|
||||
private String id;
|
||||
private String idOperator = "=";
|
||||
private String type;
|
||||
private String typeOperator = "=";
|
||||
private String itemId;
|
||||
private String itemIdOperator = "=";
|
||||
private String itemContent;
|
||||
private String itemContentOperator = "=";
|
||||
private String validFlag;
|
||||
private String validFlagOperator = "=";
|
||||
private String creationUser;
|
||||
private String creationUserOperator = "=";
|
||||
private String creationTime;
|
||||
private String creationTime1;
|
||||
private String creationTime2;
|
||||
private String creationTimeOperator = "=";
|
||||
private String modifyTime;
|
||||
private String modifyTime1;
|
||||
private String modifyTime2;
|
||||
private String modifyTimeOperator = "=";
|
||||
private String modifyUser;
|
||||
private String modifyUserOperator = "=";
|
||||
private String displaySeq;
|
||||
private String displaySeqOperator = "=";
|
||||
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getIdOperator() {
|
||||
return this.idOperator;
|
||||
}
|
||||
|
||||
public void setIdOperator(String idOperator) {
|
||||
this.idOperator = idOperator;
|
||||
}
|
||||
|
||||
public String getType() {
|
||||
return this.type;
|
||||
}
|
||||
|
||||
public void setType(String type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public String getTypeOperator() {
|
||||
return this.typeOperator;
|
||||
}
|
||||
|
||||
public void setTypeOperator(String typeOperator) {
|
||||
this.typeOperator = typeOperator;
|
||||
}
|
||||
|
||||
public String getItemId() {
|
||||
return this.itemId;
|
||||
}
|
||||
|
||||
public void setItemId(String itemId) {
|
||||
this.itemId = itemId;
|
||||
}
|
||||
|
||||
public String getItemIdOperator() {
|
||||
return this.itemIdOperator;
|
||||
}
|
||||
|
||||
public void setItemIdOperator(String itemIdOperator) {
|
||||
this.itemIdOperator = itemIdOperator;
|
||||
}
|
||||
|
||||
public String getItemContent() {
|
||||
return this.itemContent;
|
||||
}
|
||||
|
||||
public void setItemContent(String itemContent) {
|
||||
this.itemContent = itemContent;
|
||||
}
|
||||
|
||||
public String getItemContentOperator() {
|
||||
return this.itemContentOperator;
|
||||
}
|
||||
|
||||
public void setItemContentOperator(String itemContentOperator) {
|
||||
this.itemContentOperator = itemContentOperator;
|
||||
}
|
||||
|
||||
public String getValidFlag() {
|
||||
return this.validFlag;
|
||||
}
|
||||
|
||||
public void setValidFlag(String validFlag) {
|
||||
this.validFlag = validFlag;
|
||||
}
|
||||
|
||||
public String getValidFlagOperator() {
|
||||
return this.validFlagOperator;
|
||||
}
|
||||
|
||||
public void setValidFlagOperator(String validFlagOperator) {
|
||||
this.validFlagOperator = validFlagOperator;
|
||||
}
|
||||
|
||||
public String getCreationUser() {
|
||||
return this.creationUser;
|
||||
}
|
||||
|
||||
public void setCreationUser(String creationUser) {
|
||||
this.creationUser = creationUser;
|
||||
}
|
||||
|
||||
public String getCreationUserOperator() {
|
||||
return this.creationUserOperator;
|
||||
}
|
||||
|
||||
public void setCreationUserOperator(String creationUserOperator) {
|
||||
this.creationUserOperator = creationUserOperator;
|
||||
}
|
||||
|
||||
public String getCreationTime() {
|
||||
return this.creationTime;
|
||||
}
|
||||
|
||||
public void setCreationTime(String creationTime) {
|
||||
this.creationTime = creationTime;
|
||||
}
|
||||
|
||||
public String getCreationTime1() {
|
||||
return this.creationTime1;
|
||||
}
|
||||
|
||||
public void setCreationTime1(String creationTime1) {
|
||||
this.creationTime1 = creationTime1;
|
||||
}
|
||||
|
||||
public String getCreationTime2() {
|
||||
return this.creationTime2;
|
||||
}
|
||||
|
||||
public void setCreationTime2(String creationTime2) {
|
||||
this.creationTime2 = creationTime2;
|
||||
}
|
||||
|
||||
public String getCreationTimeOperator() {
|
||||
return this.creationTimeOperator;
|
||||
}
|
||||
|
||||
public void setCreationTimeOperator(String creationTimeOperator) {
|
||||
this.creationTimeOperator = creationTimeOperator;
|
||||
}
|
||||
|
||||
public String getModifyTime() {
|
||||
return this.modifyTime;
|
||||
}
|
||||
|
||||
public void setModifyTime(String modifyTime) {
|
||||
this.modifyTime = modifyTime;
|
||||
}
|
||||
|
||||
public String getModifyTime1() {
|
||||
return this.modifyTime1;
|
||||
}
|
||||
|
||||
public void setModifyTime1(String modifyTime1) {
|
||||
this.modifyTime1 = modifyTime1;
|
||||
}
|
||||
|
||||
public String getModifyTime2() {
|
||||
return this.modifyTime2;
|
||||
}
|
||||
|
||||
public void setModifyTime2(String modifyTime2) {
|
||||
this.modifyTime2 = modifyTime2;
|
||||
}
|
||||
|
||||
public String getModifyTimeOperator() {
|
||||
return this.modifyTimeOperator;
|
||||
}
|
||||
|
||||
public void setModifyTimeOperator(String modifyTimeOperator) {
|
||||
this.modifyTimeOperator = modifyTimeOperator;
|
||||
}
|
||||
|
||||
public String getModifyUser() {
|
||||
return this.modifyUser;
|
||||
}
|
||||
|
||||
public void setModifyUser(String modifyUser) {
|
||||
this.modifyUser = modifyUser;
|
||||
}
|
||||
|
||||
public String getModifyUserOperator() {
|
||||
return this.modifyUserOperator;
|
||||
}
|
||||
|
||||
public void setModifyUserOperator(String modifyUserOperator) {
|
||||
this.modifyUserOperator = modifyUserOperator;
|
||||
}
|
||||
|
||||
public String getDisplaySeq() {
|
||||
return this.displaySeq;
|
||||
}
|
||||
|
||||
public void setDisplaySeq(String displaySeq) {
|
||||
this.displaySeq = displaySeq;
|
||||
}
|
||||
|
||||
public String getDisplaySeqOperator() {
|
||||
return this.displaySeqOperator;
|
||||
}
|
||||
|
||||
public void setDisplaySeqOperator(String displaySeqOperator) {
|
||||
this.displaySeqOperator = displaySeqOperator;
|
||||
}
|
||||
|
||||
}
|
||||
+248
@@ -0,0 +1,248 @@
|
||||
package com.jero.modules.split.page;
|
||||
|
||||
import com.jero.modules.split.common.BasePage;
|
||||
|
||||
/**
|
||||
* <b>功能:</b>SAR_FILE_SPLIT_MENU SarFileSplitMenuEOPage<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2020-01-03 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
public class SarFileSplitMenuEOPage extends BasePage {
|
||||
|
||||
private String id;
|
||||
private String idOperator = "=";
|
||||
private String infoId;
|
||||
private String infoIdOperator = "=";
|
||||
private String name;
|
||||
private String nameOperator = "=";
|
||||
private String pId;
|
||||
private String pIdOperator = "=";
|
||||
private String displaySeq;
|
||||
private String displaySeqOperator = "=";
|
||||
private String validFlag;
|
||||
private String validFlagOperator = "=";
|
||||
private String creationTime;
|
||||
private String creationTime1;
|
||||
private String creationTime2;
|
||||
private String creationTimeOperator = "=";
|
||||
private String modifyTime;
|
||||
private String modifyTime1;
|
||||
private String modifyTime2;
|
||||
private String modifyTimeOperator = "=";
|
||||
private String remarks;
|
||||
private String remarksOperator = "=";
|
||||
private String creationUser;
|
||||
private String creationUserOperator = "=";
|
||||
private String modifyUser;
|
||||
private String modifyUserOperator = "=";
|
||||
|
||||
public String getId() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getIdOperator() {
|
||||
return this.idOperator;
|
||||
}
|
||||
|
||||
public void setIdOperator(String idOperator) {
|
||||
this.idOperator = idOperator;
|
||||
}
|
||||
|
||||
public String getInfoId() {
|
||||
return this.infoId;
|
||||
}
|
||||
|
||||
public void setInfoId(String infoId) {
|
||||
this.infoId = infoId;
|
||||
}
|
||||
|
||||
public String getInfoIdOperator() {
|
||||
return this.infoIdOperator;
|
||||
}
|
||||
|
||||
public void setInfoIdOperator(String infoIdOperator) {
|
||||
this.infoIdOperator = infoIdOperator;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return this.name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getNameOperator() {
|
||||
return this.nameOperator;
|
||||
}
|
||||
|
||||
public void setNameOperator(String nameOperator) {
|
||||
this.nameOperator = nameOperator;
|
||||
}
|
||||
|
||||
public String getPId() {
|
||||
return this.pId;
|
||||
}
|
||||
|
||||
public void setPId(String pId) {
|
||||
this.pId = pId;
|
||||
}
|
||||
|
||||
public String getPIdOperator() {
|
||||
return this.pIdOperator;
|
||||
}
|
||||
|
||||
public void setPIdOperator(String pIdOperator) {
|
||||
this.pIdOperator = pIdOperator;
|
||||
}
|
||||
|
||||
public String getDisplaySeq() {
|
||||
return this.displaySeq;
|
||||
}
|
||||
|
||||
public void setDisplaySeq(String displaySeq) {
|
||||
this.displaySeq = displaySeq;
|
||||
}
|
||||
|
||||
public String getDisplaySeqOperator() {
|
||||
return this.displaySeqOperator;
|
||||
}
|
||||
|
||||
public void setDisplaySeqOperator(String displaySeqOperator) {
|
||||
this.displaySeqOperator = displaySeqOperator;
|
||||
}
|
||||
|
||||
public String getValidFlag() {
|
||||
return this.validFlag;
|
||||
}
|
||||
|
||||
public void setValidFlag(String validFlag) {
|
||||
this.validFlag = validFlag;
|
||||
}
|
||||
|
||||
public String getValidFlagOperator() {
|
||||
return this.validFlagOperator;
|
||||
}
|
||||
|
||||
public void setValidFlagOperator(String validFlagOperator) {
|
||||
this.validFlagOperator = validFlagOperator;
|
||||
}
|
||||
|
||||
public String getCreationTime() {
|
||||
return this.creationTime;
|
||||
}
|
||||
|
||||
public void setCreationTime(String creationTime) {
|
||||
this.creationTime = creationTime;
|
||||
}
|
||||
|
||||
public String getCreationTime1() {
|
||||
return this.creationTime1;
|
||||
}
|
||||
|
||||
public void setCreationTime1(String creationTime1) {
|
||||
this.creationTime1 = creationTime1;
|
||||
}
|
||||
|
||||
public String getCreationTime2() {
|
||||
return this.creationTime2;
|
||||
}
|
||||
|
||||
public void setCreationTime2(String creationTime2) {
|
||||
this.creationTime2 = creationTime2;
|
||||
}
|
||||
|
||||
public String getCreationTimeOperator() {
|
||||
return this.creationTimeOperator;
|
||||
}
|
||||
|
||||
public void setCreationTimeOperator(String creationTimeOperator) {
|
||||
this.creationTimeOperator = creationTimeOperator;
|
||||
}
|
||||
|
||||
public String getModifyTime() {
|
||||
return this.modifyTime;
|
||||
}
|
||||
|
||||
public void setModifyTime(String modifyTime) {
|
||||
this.modifyTime = modifyTime;
|
||||
}
|
||||
|
||||
public String getModifyTime1() {
|
||||
return this.modifyTime1;
|
||||
}
|
||||
|
||||
public void setModifyTime1(String modifyTime1) {
|
||||
this.modifyTime1 = modifyTime1;
|
||||
}
|
||||
|
||||
public String getModifyTime2() {
|
||||
return this.modifyTime2;
|
||||
}
|
||||
|
||||
public void setModifyTime2(String modifyTime2) {
|
||||
this.modifyTime2 = modifyTime2;
|
||||
}
|
||||
|
||||
public String getModifyTimeOperator() {
|
||||
return this.modifyTimeOperator;
|
||||
}
|
||||
|
||||
public void setModifyTimeOperator(String modifyTimeOperator) {
|
||||
this.modifyTimeOperator = modifyTimeOperator;
|
||||
}
|
||||
|
||||
public String getRemarks() {
|
||||
return this.remarks;
|
||||
}
|
||||
|
||||
public void setRemarks(String remarks) {
|
||||
this.remarks = remarks;
|
||||
}
|
||||
|
||||
public String getRemarksOperator() {
|
||||
return this.remarksOperator;
|
||||
}
|
||||
|
||||
public void setRemarksOperator(String remarksOperator) {
|
||||
this.remarksOperator = remarksOperator;
|
||||
}
|
||||
|
||||
public String getCreationUser() {
|
||||
return this.creationUser;
|
||||
}
|
||||
|
||||
public void setCreationUser(String creationUser) {
|
||||
this.creationUser = creationUser;
|
||||
}
|
||||
|
||||
public String getCreationUserOperator() {
|
||||
return this.creationUserOperator;
|
||||
}
|
||||
|
||||
public void setCreationUserOperator(String creationUserOperator) {
|
||||
this.creationUserOperator = creationUserOperator;
|
||||
}
|
||||
|
||||
public String getModifyUser() {
|
||||
return this.modifyUser;
|
||||
}
|
||||
|
||||
public void setModifyUser(String modifyUser) {
|
||||
this.modifyUser = modifyUser;
|
||||
}
|
||||
|
||||
public String getModifyUserOperator() {
|
||||
return this.modifyUserOperator;
|
||||
}
|
||||
|
||||
public void setModifyUserOperator(String modifyUserOperator) {
|
||||
this.modifyUserOperator = modifyUserOperator;
|
||||
}
|
||||
|
||||
}
|
||||
+115
@@ -0,0 +1,115 @@
|
||||
package com.jero.modules.split.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.jero.common.api.vo.Result;
|
||||
import com.jero.modules.oss.entity.OSSFile;
|
||||
import com.jero.modules.split.common.SplitTableInfo;
|
||||
import com.jero.modules.split.dto.*;
|
||||
import com.jero.modules.split.entity.SarFileSplitItemsEO;
|
||||
import com.jero.modules.split.entity.SarFileSplitItemsTableEO;
|
||||
import com.jero.modules.split.entity.SarFileSplitItemsValEO;
|
||||
import com.jero.modules.split.entity.SarFileSplitMenuTreeNode;
|
||||
import com.jero.modules.split.page.SarFileSplitItemsEOPage;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* <br>
|
||||
* <b>功能:</b>SAR_FILE_SPLIT_ITEMS SarFileSplitItemsEOService<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2020-01-03 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
public interface ISarFileSplitItemsEOService extends IService<SarFileSplitItemsEO> {
|
||||
|
||||
int deleteByItemsIds(SarFileSplitItemsEO sarFileSplitItemsEO);
|
||||
|
||||
int addItemContent(SarFileSplitItemsEO sarFileSplitItemsEO) throws Exception;
|
||||
|
||||
int updateItemContent(SarFileSplitItemsEO sarFileSplitItemsEO) throws Exception;
|
||||
|
||||
int updateItemContentAfterBathDel(SarFileSplitItemsEO sarFileSplitItemsEO) throws Exception;
|
||||
|
||||
Map<String,String> moveSplitItemsVal(SarFileSplitItemsEOPage page) throws Exception ;
|
||||
|
||||
void saveFileInfo (SarFileSplitItemsEO sarFileSplitItemsEO) throws Exception;
|
||||
|
||||
|
||||
int insert(SarFileSplitItemsEO SarFileSplitItemsEO);
|
||||
|
||||
int insertSelective(SarFileSplitItemsEO SarFileSplitItemsEO);
|
||||
|
||||
int updateByPrimaryKey(SarFileSplitItemsEO SarFileSplitItemsEO);
|
||||
|
||||
int updateByPrimaryKeySelective(SarFileSplitItemsEO SarFileSplitItemsEO);
|
||||
|
||||
SarFileSplitItemsEO selectByPrimaryKey(String value);
|
||||
|
||||
int deleteByPrimaryKey(String value);
|
||||
|
||||
List<SarFileSplitItemsEO> queryByList(SarFileSplitItemsEOPage page);
|
||||
|
||||
int queryByCount(SarFileSplitItemsEOPage page);
|
||||
|
||||
List<SarFileSplitItemsEO> queryByPage(SarFileSplitItemsEOPage page);
|
||||
|
||||
public String insertSarStandFile(String standId, List<OSSFile> list, String standFileClassify,String newFiles) throws Exception ;
|
||||
|
||||
public Map<String,List<String>> getNotDeleteMsgFile(SarFileSplitItemsEO sarFileSplitItemsEO);
|
||||
|
||||
public String getNotDelFile(String fileAttIds,List<String> getNotDeleteResId,List<String> getNotDeleteFileId);
|
||||
|
||||
public String insertItemTable(List<SarFileSplitItemsValEO> getValList,String itemId);
|
||||
|
||||
/**
|
||||
* @Author yangxuenan
|
||||
* @Description 添加特殊参数要求内容
|
||||
* Date 2020/2/4 15:56
|
||||
* @Param [sarFileSplitItemsEO]
|
||||
* @return void
|
||||
**/
|
||||
public void addParamsContent(SarFileSplitItemsEO sarFileSplitItemsEO);
|
||||
|
||||
/**
|
||||
* @Author yangxuenan
|
||||
* @Description 修改特殊参数要求内容
|
||||
* Date 2020/2/4 15:56
|
||||
* @Param [sarFileSplitItemsEO]
|
||||
* @return void
|
||||
**/
|
||||
public void updateParamsContent(SarFileSplitItemsEO sarFileSplitItemsEO);
|
||||
|
||||
public List<SarFileSplitItemsEO> queryByItemsIds(List<String> idList);
|
||||
|
||||
public int batchDeleteItems(String ids);
|
||||
|
||||
public Map<String,Object> judgeContaintChilds(String ids) throws Exception ;
|
||||
|
||||
public List<FileSplitItemsExportDto> queryByOrdersForExport(SarFileSplitItemsEOPage page);
|
||||
|
||||
public List<FileSplitValExportDto> combineItemValInfo(List<SarFileSplitItemsValEO> getValList, List<FileSpiltValTableExportDto> allTableList, List<FileSplitValImgExportDto> allImgList, SarFileSplitItemsEOPage page) throws Exception;
|
||||
|
||||
public List<List<SarFileSplitItemsTableEO>> combineTableList(SarFileSplitItemsValEO itemsValEO) throws Exception;
|
||||
|
||||
public void downLoadImgList(List<FileSplitValImgExportDto> allImgList,String fileNowPath) throws IOException ;
|
||||
|
||||
public void downLoadFileList(List<OSSFile> allRelevFileList, String fileNowPath) throws IOException ;
|
||||
|
||||
public void copyFile1(String srcPath, String destPath) throws IOException ;
|
||||
|
||||
public List<SarFileSplitItemsEO> queryByList2(SarFileSplitItemsEOPage page);
|
||||
|
||||
public Result<?> importSplitItems(List<SarFileSplitItemsImportDto> list, String menuId, String filepath, String infoId, List<SplitTableInfo> getSheetTableList);
|
||||
|
||||
public List<SarFileSplitMenuTreeNode> buildTree(List<SarFileSplitItemsEO> addItemsEOList, Long treeListDisplay, String menuId);
|
||||
|
||||
public Map validateImportDatas(List<SarFileSplitItemsImportDto> datas, String filepath) throws Exception ;
|
||||
|
||||
public void createItemsInfo(SarFileSplitItemsEO sarFileSplitItemsEO,String menuId,String infoId);
|
||||
|
||||
|
||||
}
|
||||
+39
@@ -0,0 +1,39 @@
|
||||
package com.jero.modules.split.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.jero.modules.split.entity.SarFileSplitItemsFileEO;
|
||||
import com.jero.modules.split.page.SarFileSplitItemsFileEOPage;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* <br>
|
||||
* <b>功能:</b>SAR_FILE_SPLIT_ITEMS_FILE SarFileSplitItemsFileEOService<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2020-03-30 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
public interface ISarFileSplitItemsFileEOService extends IService<SarFileSplitItemsFileEO> {
|
||||
List<SarFileSplitItemsFileEO> selectFileByAttId(String attId);
|
||||
|
||||
int insert(SarFileSplitItemsFileEO sarFileSplitItemsFileEO);
|
||||
|
||||
int insertSelective(SarFileSplitItemsFileEO sarFileSplitItemsFileEO);
|
||||
|
||||
int updateByPrimaryKey(SarFileSplitItemsFileEO sarFileSplitItemsFileEO);
|
||||
|
||||
int updateByPrimaryKeySelective(SarFileSplitItemsFileEO sarFileSplitItemsFileEO);
|
||||
|
||||
SarFileSplitItemsFileEO selectByPrimaryKey(String value);
|
||||
|
||||
int deleteByPrimaryKey(String value);
|
||||
|
||||
List<SarFileSplitItemsFileEO> queryByList(SarFileSplitItemsFileEOPage page);
|
||||
|
||||
int queryByCount(SarFileSplitItemsFileEOPage page);
|
||||
|
||||
List<SarFileSplitItemsFileEO> queryByPage(SarFileSplitItemsFileEOPage page);
|
||||
|
||||
}
|
||||
+38
@@ -0,0 +1,38 @@
|
||||
package com.jero.modules.split.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.jero.modules.split.entity.SarFileSplitItemsParamsEO;
|
||||
import com.jero.modules.split.page.SarFileSplitItemsParamsEOPage;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* <br>
|
||||
* <b>功能:</b>SAR_FILE_SPLIT_ITEMS_PARAMS SarFileSplitItemsParamsEOService<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2020-02-04 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
public interface ISarFileSplitItemsParamsEOService extends IService<SarFileSplitItemsParamsEO> {
|
||||
int deleteByItemIds(List<String> idList);
|
||||
|
||||
int insert(SarFileSplitItemsParamsEO sarFileSplitItemsParamsEO);
|
||||
|
||||
int insertSelective(SarFileSplitItemsParamsEO sarFileSplitItemsParamsEO);
|
||||
|
||||
int updateByPrimaryKey(SarFileSplitItemsParamsEO sarFileSplitItemsParamsEO);
|
||||
|
||||
int updateByPrimaryKeySelective(SarFileSplitItemsParamsEO sarFileSplitItemsParamsEO);
|
||||
|
||||
SarFileSplitItemsParamsEO selectByPrimaryKey(String value);
|
||||
|
||||
int deleteByPrimaryKey(String value);
|
||||
|
||||
List<SarFileSplitItemsParamsEO> queryByList(SarFileSplitItemsParamsEOPage page);
|
||||
|
||||
int queryByCount(SarFileSplitItemsParamsEOPage page);
|
||||
|
||||
List<SarFileSplitItemsParamsEO> queryByPage(SarFileSplitItemsParamsEOPage page);
|
||||
}
|
||||
+37
@@ -0,0 +1,37 @@
|
||||
package com.jero.modules.split.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.jero.modules.split.entity.SarFileSplitItemsResEO;
|
||||
import com.jero.modules.split.page.SarFileSplitItemsResEOPage;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* <br>
|
||||
* <b>功能:</b>SAR_FILE_SPLIT_ITEMS_RES SarFileSplitItemsResEOService<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2020-03-30 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
public interface ISarFileSplitItemsResEOService extends IService<SarFileSplitItemsResEO> {
|
||||
|
||||
int insert(SarFileSplitItemsResEO sarFileSplitItemsResEO);
|
||||
|
||||
int insertSelective(SarFileSplitItemsResEO sarFileSplitItemsResEO);
|
||||
|
||||
int updateByPrimaryKey(SarFileSplitItemsResEO sarFileSplitItemsResEO);
|
||||
|
||||
int updateByPrimaryKeySelective(SarFileSplitItemsResEO sarFileSplitItemsResEO);
|
||||
|
||||
SarFileSplitItemsResEO selectByPrimaryKey(String value);
|
||||
|
||||
int deleteByPrimaryKey(String value);
|
||||
|
||||
List<SarFileSplitItemsResEO> queryByList(SarFileSplitItemsResEOPage page);
|
||||
|
||||
int queryByCount(SarFileSplitItemsResEOPage page);
|
||||
|
||||
List<SarFileSplitItemsResEO> queryByPage(SarFileSplitItemsResEOPage page);
|
||||
}
|
||||
+49
@@ -0,0 +1,49 @@
|
||||
package com.jero.modules.split.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.jero.modules.split.entity.SarFileSplitItemsTableEO;
|
||||
import com.jero.modules.split.page.SarFileSplitItemsTableEOPage;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Propagation;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* <br>
|
||||
* <b>功能:</b>SAR_FILE_SPLIT_ITEMS_TABLE SarFileSplitItemsTableEOService<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2020-01-17 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
@Service("sarFileSplitItemsTableEOService")
|
||||
@Transactional(value = "transactionManager", readOnly = false, propagation = Propagation.REQUIRED, rollbackFor = Throwable.class)
|
||||
public interface ISarFileSplitItemsTableEOService extends IService<SarFileSplitItemsTableEO> {
|
||||
|
||||
List<SarFileSplitItemsTableEO> queryByRowNum(SarFileSplitItemsTableEOPage page);
|
||||
|
||||
int deleteByitemIds(List<String> idList);
|
||||
|
||||
|
||||
int insert(SarFileSplitItemsTableEO sarFileSplitItemsTableEO);
|
||||
|
||||
int insertSelective(SarFileSplitItemsTableEO sarFileSplitItemsTableEO);
|
||||
|
||||
int updateByPrimaryKey(SarFileSplitItemsTableEO sarFileSplitItemsTableEO);
|
||||
|
||||
int updateByPrimaryKeySelective(SarFileSplitItemsTableEO sarFileSplitItemsTableEO);
|
||||
|
||||
SarFileSplitItemsTableEO selectByPrimaryKey(String value);
|
||||
|
||||
int deleteByPrimaryKey(String value);
|
||||
|
||||
List<SarFileSplitItemsTableEO> queryByList(SarFileSplitItemsTableEOPage page);
|
||||
|
||||
int queryByCount(SarFileSplitItemsTableEOPage page);
|
||||
|
||||
List<SarFileSplitItemsTableEO> queryByPage(SarFileSplitItemsTableEOPage page);
|
||||
|
||||
|
||||
}
|
||||
+43
@@ -0,0 +1,43 @@
|
||||
package com.jero.modules.split.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.jero.modules.split.entity.SarFileSplitItemsValEO;
|
||||
import com.jero.modules.split.page.SarFileSplitItemsValEOPage;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* <br>
|
||||
* <b>功能:</b>SAR_FILE_SPLIT_ITEMS_VAL SarFileSplitItemsValEOService<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2020-01-07 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
public interface ISarFileSplitItemsValEOService extends IService<SarFileSplitItemsValEO> {
|
||||
|
||||
int deleteValByitemIds(List<String> idList);
|
||||
|
||||
List<SarFileSplitItemsValEO> getSplitItemsByMenu(String menuId,String infoId);
|
||||
|
||||
|
||||
int insert(SarFileSplitItemsValEO sarFileSplitItemsValEO);
|
||||
|
||||
int insertSelective(SarFileSplitItemsValEO sarFileSplitItemsValEO);
|
||||
|
||||
int updateByPrimaryKey(SarFileSplitItemsValEO sarFileSplitItemsValEO);
|
||||
|
||||
int updateByPrimaryKeySelective(SarFileSplitItemsValEO sarFileSplitItemsValEO);
|
||||
|
||||
SarFileSplitItemsValEO selectByPrimaryKey(String value);
|
||||
|
||||
int deleteByPrimaryKey(String value);
|
||||
|
||||
List<SarFileSplitItemsValEO> queryByList(SarFileSplitItemsValEOPage page);
|
||||
|
||||
int queryByCount(SarFileSplitItemsValEOPage page);
|
||||
|
||||
List<SarFileSplitItemsValEO> queryByPage(SarFileSplitItemsValEOPage page);
|
||||
|
||||
}
|
||||
+57
@@ -0,0 +1,57 @@
|
||||
package com.jero.modules.split.service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.jero.modules.split.entity.DrageMenuEO;
|
||||
import com.jero.modules.split.entity.SarFileSplitItemsEO;
|
||||
import com.jero.modules.split.entity.SarFileSplitMenuEO;
|
||||
import com.jero.modules.split.page.SarFileSplitMenuEOPage;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* <br>
|
||||
* <b>功能:</b>SAR_FILE_SPLIT_MENU SarFileSplitMenuEOService<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2020-01-03 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
public interface ISarFileSplitMenuEOService extends IService<SarFileSplitMenuEO> {
|
||||
|
||||
int dragMenu(DrageMenuEO drageMenuEO);
|
||||
// 通过ID查询该结点及结点下所有的节点排序的最大值
|
||||
int getMaxDisplayByid(String menuID) ;
|
||||
|
||||
int addMenu(SarFileSplitMenuEO sarFileSplitMenuEO);
|
||||
|
||||
boolean judgequeryMenuByPid(SarFileSplitMenuEO sarMenuEO) throws Exception ;
|
||||
|
||||
void deleteMenu(String id);
|
||||
|
||||
int copyMenu (SarFileSplitMenuEO sarMenuEO) ;
|
||||
|
||||
int copyMenuNotChildren(SarFileSplitItemsEO sarFileSplitItemsEO) ;
|
||||
|
||||
String addMenuForImport(SarFileSplitMenuEO sarFileSplitMenuEO);
|
||||
|
||||
|
||||
|
||||
int insert(SarFileSplitMenuEO sarFileSplitMenuEO);
|
||||
|
||||
int insertSelective(SarFileSplitMenuEO sarFileSplitMenuEO);
|
||||
|
||||
int updateByPrimaryKey(SarFileSplitMenuEO sarFileSplitMenuEO);
|
||||
|
||||
int updateByPrimaryKeySelective(SarFileSplitMenuEO sarFileSplitMenuEO);
|
||||
|
||||
SarFileSplitMenuEO selectByPrimaryKey(String value);
|
||||
|
||||
int deleteByPrimaryKey(String value);
|
||||
|
||||
List<SarFileSplitMenuEO> queryByList(SarFileSplitMenuEOPage page);
|
||||
|
||||
int queryByCount(SarFileSplitMenuEOPage page);
|
||||
|
||||
List<SarFileSplitMenuEO> queryByPage(SarFileSplitMenuEOPage page);
|
||||
}
|
||||
+1470
File diff suppressed because it is too large
Load Diff
+84
@@ -0,0 +1,84 @@
|
||||
package com.jero.modules.split.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.jero.modules.split.entity.SarFileSplitItemsFileEO;
|
||||
import com.jero.modules.split.mapper.SarFileSplitItemsFileEOMapper;
|
||||
import com.jero.modules.split.page.SarFileSplitItemsFileEOPage;
|
||||
import com.jero.modules.split.service.ISarFileSplitItemsFileEOService;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Propagation;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* <br>
|
||||
* <b>功能:</b>SAR_FILE_SPLIT_ITEMS_FILE SarFileSplitItemsFileEOService<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2020-03-30 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
@Service("sarFileSplitItemsFileEOService")
|
||||
@Transactional(value = "transactionManager", readOnly = false, propagation = Propagation.REQUIRED, rollbackFor = Throwable.class)
|
||||
public class SarFileSplitItemsFileEOServiceImpl extends ServiceImpl<SarFileSplitItemsFileEOMapper, SarFileSplitItemsFileEO> implements ISarFileSplitItemsFileEOService {
|
||||
|
||||
private static final Logger logger = LoggerFactory.getLogger(SarFileSplitItemsFileEOServiceImpl.class);
|
||||
|
||||
@Autowired
|
||||
private SarFileSplitItemsFileEOMapper dao;
|
||||
|
||||
public List<SarFileSplitItemsFileEO> selectFileByAttId(String attId){
|
||||
return dao.selectFileByAttId(attId);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int insert(SarFileSplitItemsFileEO sarFileSplitItemsFileEO) {
|
||||
return dao.insert(sarFileSplitItemsFileEO);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int insertSelective(SarFileSplitItemsFileEO sarFileSplitItemsFileEO) {
|
||||
return dao.insertSelective(sarFileSplitItemsFileEO);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int updateByPrimaryKey(SarFileSplitItemsFileEO sarFileSplitItemsFileEO) {
|
||||
return dao.updateByPrimaryKey(sarFileSplitItemsFileEO);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int updateByPrimaryKeySelective(SarFileSplitItemsFileEO sarFileSplitItemsFileEO) {
|
||||
return dao.updateByPrimaryKeySelective(sarFileSplitItemsFileEO);
|
||||
}
|
||||
|
||||
@Override
|
||||
public SarFileSplitItemsFileEO selectByPrimaryKey(String value) {
|
||||
return dao.selectByPrimaryKey(value);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int deleteByPrimaryKey(String value) {
|
||||
return dao.deleteByPrimaryKey(value);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<SarFileSplitItemsFileEO> queryByList(SarFileSplitItemsFileEOPage page) {
|
||||
return dao.queryByList(page);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int queryByCount(SarFileSplitItemsFileEOPage page) {
|
||||
return dao.queryByCount(page);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<SarFileSplitItemsFileEO> queryByPage(SarFileSplitItemsFileEOPage page) {
|
||||
return dao.queryByPage(page);
|
||||
}
|
||||
|
||||
}
|
||||
+84
@@ -0,0 +1,84 @@
|
||||
package com.jero.modules.split.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.jero.modules.split.entity.SarFileSplitItemsParamsEO;
|
||||
import com.jero.modules.split.mapper.SarFileSplitItemsParamsMapper;
|
||||
import com.jero.modules.split.page.SarFileSplitItemsParamsEOPage;
|
||||
import com.jero.modules.split.service.ISarFileSplitItemsParamsEOService;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Propagation;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* <br>
|
||||
* <b>功能:</b>SAR_FILE_SPLIT_ITEMS_PARAMS SarFileSplitItemsParamsEOService<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2020-02-04 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
@Service("sarFileSplitItemsParamsEOService")
|
||||
@Transactional(value = "transactionManager", readOnly = false, propagation = Propagation.REQUIRED, rollbackFor = Throwable.class)
|
||||
public class SarFileSplitItemsParamsEOServiceImpl extends ServiceImpl<SarFileSplitItemsParamsMapper, SarFileSplitItemsParamsEO> implements ISarFileSplitItemsParamsEOService {
|
||||
|
||||
private static final Logger logger = LoggerFactory.getLogger(SarFileSplitItemsParamsEOServiceImpl.class);
|
||||
|
||||
@Autowired
|
||||
private SarFileSplitItemsParamsMapper dao;
|
||||
|
||||
public int deleteByItemIds(List<String> idList){
|
||||
return dao.deleteByItemIds(idList);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int insert(SarFileSplitItemsParamsEO sarFileSplitItemsParamsEO) {
|
||||
return dao.insert(sarFileSplitItemsParamsEO);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int insertSelective(SarFileSplitItemsParamsEO sarFileSplitItemsParamsEO) {
|
||||
return dao.insertSelective(sarFileSplitItemsParamsEO);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int updateByPrimaryKey(SarFileSplitItemsParamsEO sarFileSplitItemsParamsEO) {
|
||||
return dao.updateByPrimaryKey(sarFileSplitItemsParamsEO);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int updateByPrimaryKeySelective(SarFileSplitItemsParamsEO sarFileSplitItemsParamsEO) {
|
||||
return dao.updateByPrimaryKeySelective(sarFileSplitItemsParamsEO);
|
||||
}
|
||||
|
||||
@Override
|
||||
public SarFileSplitItemsParamsEO selectByPrimaryKey(String value) {
|
||||
return dao.selectByPrimaryKey(value);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int deleteByPrimaryKey(String value) {
|
||||
return dao.deleteByPrimaryKey(value);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<SarFileSplitItemsParamsEO> queryByList(SarFileSplitItemsParamsEOPage page) {
|
||||
return dao.queryByList(page);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int queryByCount(SarFileSplitItemsParamsEOPage page) {
|
||||
return dao.queryByCount(page);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<SarFileSplitItemsParamsEO> queryByPage(SarFileSplitItemsParamsEOPage page) {
|
||||
return dao.queryByPage(page);
|
||||
}
|
||||
|
||||
}
|
||||
+80
@@ -0,0 +1,80 @@
|
||||
package com.jero.modules.split.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.jero.modules.split.entity.SarFileSplitItemsResEO;
|
||||
import com.jero.modules.split.mapper.SarFileSplitItemsResEOMapper;
|
||||
import com.jero.modules.split.page.SarFileSplitItemsResEOPage;
|
||||
import com.jero.modules.split.service.ISarFileSplitItemsResEOService;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Propagation;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* <br>
|
||||
* <b>功能:</b>SAR_FILE_SPLIT_ITEMS_RES SarFileSplitItemsResEOService<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2020-03-30 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
@Service("sarFileSplitItemsResEOService")
|
||||
@Transactional(value = "transactionManager", readOnly = false, propagation = Propagation.REQUIRED, rollbackFor = Throwable.class)
|
||||
public class SarFileSplitItemsResEOServiceImpl extends ServiceImpl<SarFileSplitItemsResEOMapper, SarFileSplitItemsResEO> implements ISarFileSplitItemsResEOService {
|
||||
|
||||
private static final Logger logger = LoggerFactory.getLogger(SarFileSplitItemsResEOServiceImpl.class);
|
||||
|
||||
@Autowired
|
||||
private SarFileSplitItemsResEOMapper dao;
|
||||
|
||||
|
||||
@Override
|
||||
public int insert(SarFileSplitItemsResEO sarFileSplitItemsResEO) {
|
||||
return dao.insert(sarFileSplitItemsResEO);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int insertSelective(SarFileSplitItemsResEO sarFileSplitItemsResEO) {
|
||||
return dao.insertSelective(sarFileSplitItemsResEO);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int updateByPrimaryKey(SarFileSplitItemsResEO sarFileSplitItemsResEO) {
|
||||
return dao.updateByPrimaryKey(sarFileSplitItemsResEO);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int updateByPrimaryKeySelective(SarFileSplitItemsResEO sarFileSplitItemsResEO) {
|
||||
return dao.updateByPrimaryKeySelective(sarFileSplitItemsResEO);
|
||||
}
|
||||
|
||||
@Override
|
||||
public SarFileSplitItemsResEO selectByPrimaryKey(String value) {
|
||||
return dao.selectByPrimaryKey(value);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int deleteByPrimaryKey(String value) {
|
||||
return dao.deleteByPrimaryKey(value);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<SarFileSplitItemsResEO> queryByList(SarFileSplitItemsResEOPage page) {
|
||||
return dao.queryByList(page);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int queryByCount(SarFileSplitItemsResEOPage page) {
|
||||
return dao.queryByCount(page);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<SarFileSplitItemsResEO> queryByPage(SarFileSplitItemsResEOPage page) {
|
||||
return dao.queryByPage(page);
|
||||
}
|
||||
}
|
||||
+87
@@ -0,0 +1,87 @@
|
||||
package com.jero.modules.split.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.jero.modules.split.entity.SarFileSplitItemsTableEO;
|
||||
import com.jero.modules.split.mapper.SarFileSplitItemsTableEOMapper;
|
||||
import com.jero.modules.split.page.SarFileSplitItemsTableEOPage;
|
||||
import com.jero.modules.split.service.ISarFileSplitItemsTableEOService;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Propagation;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* <br>
|
||||
* <b>功能:</b>SAR_FILE_SPLIT_ITEMS_TABLE SarFileSplitItemsTableEOService<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2020-01-17 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
@Service("sarFileSplitItemsTableEOService")
|
||||
@Transactional(value = "transactionManager", readOnly = false, propagation = Propagation.REQUIRED, rollbackFor = Throwable.class)
|
||||
public class SarFileSplitItemsTableEOServiceImpl extends ServiceImpl<SarFileSplitItemsTableEOMapper, SarFileSplitItemsTableEO> implements ISarFileSplitItemsTableEOService {
|
||||
|
||||
private static final Logger logger = LoggerFactory.getLogger(SarFileSplitItemsTableEOServiceImpl.class);
|
||||
|
||||
@Autowired
|
||||
private SarFileSplitItemsTableEOMapper dao;
|
||||
|
||||
public List<SarFileSplitItemsTableEO> queryByRowNum(SarFileSplitItemsTableEOPage page){
|
||||
return dao.queryByRowNum(page);
|
||||
}
|
||||
|
||||
public int deleteByitemIds(List<String> idList){
|
||||
return dao.deleteByitemIds(idList);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int insert(SarFileSplitItemsTableEO sarFileSplitItemsTableEO) {
|
||||
return dao.insert(sarFileSplitItemsTableEO);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int insertSelective(SarFileSplitItemsTableEO sarFileSplitItemsTableEO) {
|
||||
return dao.insertSelective(sarFileSplitItemsTableEO);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int updateByPrimaryKey(SarFileSplitItemsTableEO sarFileSplitItemsTableEO) {
|
||||
return dao.updateByPrimaryKey(sarFileSplitItemsTableEO);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int updateByPrimaryKeySelective(SarFileSplitItemsTableEO sarFileSplitItemsTableEO) {
|
||||
return dao.updateByPrimaryKeySelective(sarFileSplitItemsTableEO);
|
||||
}
|
||||
|
||||
@Override
|
||||
public SarFileSplitItemsTableEO selectByPrimaryKey(String value) {
|
||||
return dao.selectByPrimaryKey(value);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int deleteByPrimaryKey(String value) {
|
||||
return dao.deleteByPrimaryKey(value);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<SarFileSplitItemsTableEO> queryByList(SarFileSplitItemsTableEOPage page) {
|
||||
return dao.queryByList(page);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int queryByCount(SarFileSplitItemsTableEOPage page) {
|
||||
return dao.queryByCount(page);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<SarFileSplitItemsTableEO> queryByPage(SarFileSplitItemsTableEOPage page) {
|
||||
return dao.queryByPage(page);
|
||||
}
|
||||
}
|
||||
+140
@@ -0,0 +1,140 @@
|
||||
package com.jero.modules.split.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.jero.modules.split.entity.SarFileSplitItemsEO;
|
||||
import com.jero.modules.split.entity.SarFileSplitItemsTableEO;
|
||||
import com.jero.modules.split.entity.SarFileSplitItemsValEO;
|
||||
import com.jero.modules.split.mapper.SarFileSplitItemsEOMapper;
|
||||
import com.jero.modules.split.mapper.SarFileSplitItemsTableEOMapper;
|
||||
import com.jero.modules.split.mapper.SarFileSplitItemsValEOMapper;
|
||||
import com.jero.modules.split.page.SarFileSplitItemsTableEOPage;
|
||||
import com.jero.modules.split.page.SarFileSplitItemsValEOPage;
|
||||
import com.jero.modules.split.service.ISarFileSplitItemsValEOService;
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Propagation;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* <br>
|
||||
* <b>功能:</b>SAR_FILE_SPLIT_ITEMS_VAL SarFileSplitItemsValEOService<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2020-01-07 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
@Service("sarFileSplitItemsValEOService")
|
||||
@Transactional(value = "transactionManager", readOnly = false, propagation = Propagation.REQUIRED, rollbackFor = Throwable.class)
|
||||
public class SarFileSplitItemsValEOServiceImpl extends ServiceImpl<SarFileSplitItemsValEOMapper, SarFileSplitItemsValEO> implements ISarFileSplitItemsValEOService {
|
||||
|
||||
private static final Logger logger = LoggerFactory.getLogger(SarFileSplitItemsValEOServiceImpl.class);
|
||||
|
||||
@Autowired
|
||||
private SarFileSplitItemsValEOMapper dao;
|
||||
|
||||
@Autowired
|
||||
private SarFileSplitItemsEOMapper sarFileSplitItemsEOMapper;
|
||||
|
||||
@Autowired
|
||||
private SarFileSplitItemsTableEOMapper sarFileSplitItemsTableEOMapper;
|
||||
|
||||
public int deleteValByitemIds(List<String> idList){
|
||||
return dao.deleteValByitemIds(idList);
|
||||
}
|
||||
|
||||
public List<SarFileSplitItemsValEO> getSplitItemsByMenu(String menuId,String infoId){
|
||||
List<SarFileSplitItemsEO> rows = sarFileSplitItemsEOMapper.queryItemsByMenuId(menuId);;
|
||||
List<SarFileSplitItemsValEO> getList = new ArrayList<>();
|
||||
if (rows != null && !rows.isEmpty()) {
|
||||
for (SarFileSplitItemsEO sarFileSplitItemsEO : rows) {
|
||||
SarFileSplitItemsValEOPage valpage = new SarFileSplitItemsValEOPage();
|
||||
valpage.setItemId(sarFileSplitItemsEO.getId());
|
||||
valpage.setOrderBy("DISPLAY_SEQ,ID");
|
||||
List<SarFileSplitItemsValEO> getListVal = dao.queryByList(valpage);
|
||||
if (getList != null && !getList.isEmpty()) {
|
||||
for (SarFileSplitItemsValEO sarFileSplitItemsValEO : getList) {
|
||||
String imgPath = sarFileSplitItemsValEO.getItemContent();
|
||||
if ("IMG".equals(sarFileSplitItemsValEO.getType()) && StringUtils.isNotEmpty(imgPath)) {
|
||||
String imgName = imgPath.substring(imgPath.lastIndexOf("/")+1, imgPath.length());
|
||||
sarFileSplitItemsValEO.setImgName(imgName);
|
||||
} else if ("TABLE".equals(sarFileSplitItemsValEO.getType())) {
|
||||
SarFileSplitItemsTableEOPage tablePage = new SarFileSplitItemsTableEOPage();
|
||||
tablePage.setItemsValId(sarFileSplitItemsValEO.getId());
|
||||
List<SarFileSplitItemsTableEO> tableList = sarFileSplitItemsTableEOMapper.queryByList(tablePage);
|
||||
List<SarFileSplitItemsTableEO> tableListRow = sarFileSplitItemsTableEOMapper.queryByRowNum(tablePage);
|
||||
sarFileSplitItemsValEO.setTableList(tableList);
|
||||
if (tableListRow != null && !tableListRow.isEmpty()) {
|
||||
List<List<SarFileSplitItemsTableEO>> getTableList = new ArrayList<>();
|
||||
for (int i=1; i <= tableListRow.size();i++) {
|
||||
List<SarFileSplitItemsTableEO> rowList = new ArrayList<>();
|
||||
for (int j=0; j < tableList.size();j++) {
|
||||
if (tableList.get(j).getRowNum() == i) {
|
||||
rowList.add(tableList.get(j));
|
||||
}
|
||||
}
|
||||
getTableList.add(rowList);
|
||||
}
|
||||
sarFileSplitItemsValEO.setTableListShow(getTableList);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
getList.addAll(getListVal);
|
||||
}
|
||||
}
|
||||
return getList;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int insert(SarFileSplitItemsValEO sarFileSplitItemsValEO) {
|
||||
return dao.insert(sarFileSplitItemsValEO);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int insertSelective(SarFileSplitItemsValEO sarFileSplitItemsValEO) {
|
||||
return dao.insertSelective(sarFileSplitItemsValEO);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int updateByPrimaryKey(SarFileSplitItemsValEO sarFileSplitItemsValEO) {
|
||||
return dao.updateByPrimaryKey(sarFileSplitItemsValEO);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int updateByPrimaryKeySelective(SarFileSplitItemsValEO sarFileSplitItemsValEO) {
|
||||
return dao.updateByPrimaryKeySelective(sarFileSplitItemsValEO);
|
||||
}
|
||||
|
||||
@Override
|
||||
public SarFileSplitItemsValEO selectByPrimaryKey(String value) {
|
||||
return dao.selectByPrimaryKey(value);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int deleteByPrimaryKey(String value) {
|
||||
return dao.deleteByPrimaryKey(value);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<SarFileSplitItemsValEO> queryByList(SarFileSplitItemsValEOPage page) {
|
||||
return dao.queryByList(page);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int queryByCount(SarFileSplitItemsValEOPage page) {
|
||||
return dao.queryByCount(page);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<SarFileSplitItemsValEO> queryByPage(SarFileSplitItemsValEOPage page) {
|
||||
return dao.queryByPage(page);
|
||||
}
|
||||
|
||||
}
|
||||
+519
@@ -0,0 +1,519 @@
|
||||
package com.jero.modules.split.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.jero.common.system.vo.LoginUser;
|
||||
import com.jero.modules.split.entity.*;
|
||||
import com.jero.modules.split.mapper.*;
|
||||
import com.jero.modules.split.page.SarFileSplitItemsEOPage;
|
||||
import com.jero.modules.split.page.SarFileSplitMenuEOPage;
|
||||
import com.jero.modules.split.service.ISarFileSplitMenuEOService;
|
||||
import com.jero.modules.system.util.UserUtils;
|
||||
import org.apache.shiro.SecurityUtils;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Propagation;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* <br>
|
||||
* <b>功能:</b>SAR_FILE_SPLIT_MENU SarFileSplitMenuEOService<br>
|
||||
* <b>作者:</b>code generator<br>
|
||||
* <b>日期:</b> 2020-01-03 <br>
|
||||
* <b>版权所有:<b>版权归北京卡达克数据技术中心所有。<br>
|
||||
*/
|
||||
@Service("sarFileSplitMenuEOService")
|
||||
@Transactional(value = "transactionManager", readOnly = false, propagation = Propagation.REQUIRED, rollbackFor = Throwable.class)
|
||||
public class SarFileSplitMenuEOServiceImpl extends ServiceImpl<SarFileSplitMenuEOMapper, SarFileSplitMenuEO> implements ISarFileSplitMenuEOService {
|
||||
|
||||
private static final Logger logger = LoggerFactory.getLogger(SarFileSplitMenuEOServiceImpl.class);
|
||||
|
||||
@Autowired
|
||||
private SarFileSplitMenuEOMapper dao;
|
||||
|
||||
@Autowired
|
||||
private SarFileSplitItemsEOMapper sarFileSplitItemsEOMapper;
|
||||
|
||||
@Autowired
|
||||
private SarFileSplitItemsValEOMapper sarFileSplitItemsValEOMapper;
|
||||
|
||||
@Autowired
|
||||
private SarFileSplitItemsTableEOMapper sarFileSplitItemsTableEOMapper;
|
||||
|
||||
@Autowired
|
||||
private SarFileSplitItemsParamsMapper sarFileSplitItemsParamsMapper;
|
||||
|
||||
public int dragMenu(DrageMenuEO drageMenuEO){
|
||||
|
||||
SarFileSplitMenuEO sarFileSplitMenuEO = new SarFileSplitMenuEO();
|
||||
sarFileSplitMenuEO.setInfoId(drageMenuEO.getInfoId());
|
||||
LoginUser loginUser = (LoginUser) SecurityUtils.getSubject().getPrincipal();
|
||||
sarFileSplitMenuEO.setModifyUser(loginUser.getId());
|
||||
sarFileSplitMenuEO.setModifyTime(new Date());
|
||||
sarFileSplitMenuEO.setId(drageMenuEO.getMenuId());
|
||||
int result = 0;
|
||||
|
||||
|
||||
if (drageMenuEO.getMoveType().equals("inner")) {
|
||||
sarFileSplitMenuEO.setPId(drageMenuEO.getTargetMenuId());
|
||||
if (drageMenuEO.getMenuDisplay()>drageMenuEO.getTargetMenuDisplay()) {
|
||||
// 修改被影响的其他节点的排序,修改时间,修改人
|
||||
long childrenCount = dao.getChildrenCountByParentId(drageMenuEO.getMenuId());
|
||||
sarFileSplitMenuEO.setChildrenCount(childrenCount);
|
||||
sarFileSplitMenuEO.setDisplaySeqStart(drageMenuEO.getTargetMenuDisplay()+1);
|
||||
sarFileSplitMenuEO.setDisplaySeqEnd(drageMenuEO.getMenuDisplay());
|
||||
result += dao.updateDisplaySeqAdd(sarFileSplitMenuEO);
|
||||
// 如果子节点个数多,都需修改
|
||||
if (childrenCount>1) {
|
||||
// 计算移动节点前后排序差
|
||||
long betwttenNum = drageMenuEO.getMenuDisplay()-drageMenuEO.getTargetMenuDisplay()-1;
|
||||
SarFileSplitMenuEO childrenUpdateEO = new SarFileSplitMenuEO();
|
||||
childrenUpdateEO.setId(drageMenuEO.getMenuId());
|
||||
childrenUpdateEO.setChildrenCount(betwttenNum);
|
||||
childrenUpdateEO.setModifyTime(new Date());
|
||||
childrenUpdateEO.setModifyUser(loginUser.getId());
|
||||
result += dao.updateChildrenDisplaySeqByIDCut(childrenUpdateEO);
|
||||
}
|
||||
sarFileSplitMenuEO.setDisplaySeq(drageMenuEO.getTargetMenuDisplay()+1);
|
||||
} else {
|
||||
// 修改被影响的其他节点的排序,修改时间,修改人
|
||||
long childrenCount = dao.getChildrenCountByParentId(drageMenuEO.getMenuId());
|
||||
sarFileSplitMenuEO.setChildrenCount(childrenCount);
|
||||
sarFileSplitMenuEO.setDisplaySeqStart(drageMenuEO.getMenuDisplay()+childrenCount-1);
|
||||
sarFileSplitMenuEO.setDisplaySeqEnd(drageMenuEO.getTargetMenuDisplay());
|
||||
result += dao.updateDisplaySeqCut(sarFileSplitMenuEO);
|
||||
// 如果子节点个数多,都需修改
|
||||
if (childrenCount>1) {
|
||||
// 计算移动节点前后排序差
|
||||
long betwttenNum = drageMenuEO.getTargetMenuDisplay()-childrenCount+1- drageMenuEO.getMenuDisplay();
|
||||
SarFileSplitMenuEO childrenUpdateEO = new SarFileSplitMenuEO();
|
||||
childrenUpdateEO.setId(drageMenuEO.getMenuId());
|
||||
childrenUpdateEO.setChildrenCount(betwttenNum);
|
||||
childrenUpdateEO.setModifyTime(new Date());
|
||||
childrenUpdateEO.setModifyUser(loginUser.getId());
|
||||
result += dao.updateChildrenDisplaySeqByIDAdd(childrenUpdateEO);
|
||||
}
|
||||
sarFileSplitMenuEO.setDisplaySeq(drageMenuEO.getTargetMenuDisplay()-childrenCount+1);
|
||||
}
|
||||
} else if (drageMenuEO.getMoveType().equals("prev")) {
|
||||
sarFileSplitMenuEO.setPId(drageMenuEO.getTargetParentId());
|
||||
if (drageMenuEO.getMenuDisplay()>drageMenuEO.getTargetMenuDisplay()) {
|
||||
// 修改被影响的其他节点的排序,修改时间,修改人
|
||||
long childrenCount = dao.getChildrenCountByParentId(drageMenuEO.getMenuId());
|
||||
sarFileSplitMenuEO.setChildrenCount(childrenCount);
|
||||
sarFileSplitMenuEO.setDisplaySeqStart(drageMenuEO.getTargetMenuDisplay());
|
||||
sarFileSplitMenuEO.setDisplaySeqEnd(drageMenuEO.getMenuDisplay());
|
||||
result += dao.updateDisplaySeqAdd(sarFileSplitMenuEO);
|
||||
// 如果子节点个数多,都需修改
|
||||
if (childrenCount>1) {
|
||||
// 计算移动节点前后排序差
|
||||
long betwttenNum = drageMenuEO.getMenuDisplay()-drageMenuEO.getTargetMenuDisplay();
|
||||
SarFileSplitMenuEO childrenUpdateEO = new SarFileSplitMenuEO();
|
||||
childrenUpdateEO.setId(drageMenuEO.getMenuId());
|
||||
childrenUpdateEO.setChildrenCount(betwttenNum);
|
||||
childrenUpdateEO.setModifyTime(new Date());
|
||||
childrenUpdateEO.setModifyUser(loginUser.getId());
|
||||
result += dao.updateChildrenDisplaySeqByIDCut(childrenUpdateEO);
|
||||
}
|
||||
sarFileSplitMenuEO.setDisplaySeq(drageMenuEO.getTargetMenuDisplay());
|
||||
} else {
|
||||
// 修改被影响的其他节点的排序,修改时间,修改人
|
||||
long childrenCount = dao.getChildrenCountByParentId(drageMenuEO.getMenuId());
|
||||
sarFileSplitMenuEO.setDisplaySeqStart(drageMenuEO.getMenuDisplay()+childrenCount-1);
|
||||
sarFileSplitMenuEO.setDisplaySeqEnd(drageMenuEO.getTargetMenuDisplay()-1);
|
||||
sarFileSplitMenuEO.setChildrenCount(childrenCount);
|
||||
result += dao.updateDisplaySeqCut(sarFileSplitMenuEO);
|
||||
// 如果子节点个数多,都需修改
|
||||
if (childrenCount>1) {
|
||||
// 计算移动节点前后排序差
|
||||
long betwttenNum = drageMenuEO.getTargetMenuDisplay()- childrenCount - drageMenuEO.getMenuDisplay();
|
||||
SarFileSplitMenuEO childrenUpdateEO = new SarFileSplitMenuEO();
|
||||
childrenUpdateEO.setId(drageMenuEO.getMenuId());
|
||||
childrenUpdateEO.setChildrenCount(betwttenNum);
|
||||
childrenUpdateEO.setModifyTime(new Date());
|
||||
childrenUpdateEO.setModifyUser(loginUser.getId());
|
||||
result += dao.updateChildrenDisplaySeqByIDAdd(childrenUpdateEO);
|
||||
}
|
||||
|
||||
sarFileSplitMenuEO.setDisplaySeq(drageMenuEO.getTargetMenuDisplay()-childrenCount);
|
||||
}
|
||||
|
||||
} else {
|
||||
sarFileSplitMenuEO.setPId(drageMenuEO.getTargetParentId());
|
||||
if (drageMenuEO.getMenuDisplay()>drageMenuEO.getTargetMenuDisplay()) {
|
||||
// 修改被影响的其他节点的排序,修改时间,修改人 往上移动
|
||||
// 查询目标最大的排序
|
||||
long targetDisplay = getMaxDisplayByid(drageMenuEO.getTargetMenuId());
|
||||
// 查询移动节点包括子节点一共有多少个
|
||||
long childrenCount = dao.getChildrenCountByParentId(drageMenuEO.getMenuId());
|
||||
sarFileSplitMenuEO.setDisplaySeqStart(targetDisplay+1);
|
||||
sarFileSplitMenuEO.setChildrenCount(childrenCount);
|
||||
sarFileSplitMenuEO.setDisplaySeqEnd(drageMenuEO.getMenuDisplay());
|
||||
result += dao.updateDisplaySeqAdd(sarFileSplitMenuEO);
|
||||
// 如果子节点个数多,都需修改
|
||||
if (childrenCount>1) {
|
||||
// 计算移动节点前后排序差
|
||||
long betwttenNum = drageMenuEO.getMenuDisplay()-targetDisplay-1;
|
||||
SarFileSplitMenuEO childrenUpdateEO = new SarFileSplitMenuEO();
|
||||
childrenUpdateEO.setId(drageMenuEO.getMenuId());
|
||||
childrenUpdateEO.setChildrenCount(betwttenNum);
|
||||
childrenUpdateEO.setModifyTime(new Date());
|
||||
childrenUpdateEO.setModifyUser(loginUser.getId());
|
||||
result += dao.updateChildrenDisplaySeqByIDCut(childrenUpdateEO);
|
||||
}
|
||||
sarFileSplitMenuEO.setDisplaySeq(targetDisplay+1);
|
||||
} else {
|
||||
// 修改被影响的其他节点的排序,修改时间,修改人 往下移动
|
||||
// 如果该节点下有字节点,寻找该节点包括所有子节点的最大排序
|
||||
// 查询目标最大的排序
|
||||
long targetDisplay = getMaxDisplayByid(drageMenuEO.getTargetMenuId());
|
||||
long menuMaxDisplay = getMaxDisplayByid(drageMenuEO.getMenuId());
|
||||
// 查询移动节点包括子节点一共有多少个
|
||||
long childrenCount = dao.getChildrenCountByParentId(drageMenuEO.getMenuId());
|
||||
sarFileSplitMenuEO.setDisplaySeqStart(menuMaxDisplay);
|
||||
sarFileSplitMenuEO.setChildrenCount(childrenCount);
|
||||
sarFileSplitMenuEO.setDisplaySeqEnd(targetDisplay);
|
||||
result += dao.updateDisplaySeqCut(sarFileSplitMenuEO);
|
||||
// 如果子节点个数多,都需修改
|
||||
if (childrenCount>1) {
|
||||
// 计算移动节点前后排序差
|
||||
long betwttenNum = targetDisplay-childrenCount+1 - drageMenuEO.getMenuDisplay();
|
||||
SarFileSplitMenuEO childrenUpdateEO = new SarFileSplitMenuEO();
|
||||
childrenUpdateEO.setId(drageMenuEO.getMenuId());
|
||||
childrenUpdateEO.setChildrenCount(betwttenNum);
|
||||
childrenUpdateEO.setModifyTime(new Date());
|
||||
childrenUpdateEO.setModifyUser(loginUser.getId());
|
||||
result += dao.updateChildrenDisplaySeqByIDAdd(childrenUpdateEO);
|
||||
}
|
||||
sarFileSplitMenuEO.setDisplaySeq(targetDisplay-childrenCount+1);
|
||||
// 修改字节的的排序
|
||||
}
|
||||
}
|
||||
// 修改当前节点,父亲Id,排序,修改时间,修改人
|
||||
result += dao.updateByPrimaryKeySelective(sarFileSplitMenuEO);
|
||||
return result;
|
||||
}
|
||||
|
||||
// 通过ID查询该结点及结点下所有的节点排序的最大值
|
||||
public int getMaxDisplayByid(String menuID) {
|
||||
return dao.getMaxDisplayByid(menuID);
|
||||
}
|
||||
|
||||
public int addMenu(SarFileSplitMenuEO sarFileSplitMenuEO){
|
||||
sarFileSplitMenuEO.setId(UUID.randomUUID().toString().replace("-", ""));
|
||||
sarFileSplitMenuEO.setValidFlag(0);
|
||||
sarFileSplitMenuEO.setCreationTime(new Date());
|
||||
sarFileSplitMenuEO.setModifyTime(new Date());
|
||||
int count = dao.insertSelective(sarFileSplitMenuEO);
|
||||
// 之后的所有节点序号增加
|
||||
SarFileSplitMenuEOPage page = new SarFileSplitMenuEOPage();
|
||||
page.setPId(sarFileSplitMenuEO.getPId());
|
||||
List<SarFileSplitMenuEO> getList = dao.queryByList(page);
|
||||
if (getList != null && !getList.isEmpty()) {
|
||||
for(SarFileSplitMenuEO menu : getList){
|
||||
Long olgSeq = menu.getDisplaySeq();
|
||||
if (olgSeq >= sarFileSplitMenuEO.getDisplaySeq()) {
|
||||
menu.setDisplaySeq(olgSeq + 1);
|
||||
dao.updateByPrimaryKeySelective(menu);
|
||||
}
|
||||
}
|
||||
}
|
||||
return count;
|
||||
}
|
||||
|
||||
public boolean judgequeryMenuByPid(SarFileSplitMenuEO sarMenuEO) throws Exception {
|
||||
boolean result = false; //true 表示有记录,false表示无记录
|
||||
//先判断目录下是否有子节点
|
||||
List<SarFileSplitMenuEO> list = dao.queryByPidExcpetSelf(sarMenuEO);
|
||||
if(list.size()<=0){
|
||||
//再查节点下是否有标准,法规,企业标准记录
|
||||
SarFileSplitItemsEOPage itemEO = new SarFileSplitItemsEOPage();
|
||||
itemEO.setMenuId(sarMenuEO.getId());
|
||||
itemEO.setValidFlag("0");
|
||||
List<SarFileSplitItemsEO> listresult = sarFileSplitItemsEOMapper.queryByList(itemEO);
|
||||
if(listresult !=null && listresult.size()>0){
|
||||
result=true;
|
||||
}
|
||||
}
|
||||
else{
|
||||
result=true;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
public void deleteMenu(String id){
|
||||
List<String> menuIds = new ArrayList<>();
|
||||
menuIds.add(id);
|
||||
// dao.deleteByPrimaryKey(id);
|
||||
// 删除节点及子节点
|
||||
dao.deleteByPId(id);
|
||||
// 删除条款
|
||||
SarFileSplitMenuEO sarMenuEO = new SarFileSplitMenuEO();
|
||||
sarMenuEO.setId(id);
|
||||
List<SarFileSplitMenuEO> list = dao.queryByPidExcpetSelf(sarMenuEO);
|
||||
if (list != null && !list.isEmpty()) {
|
||||
for(SarFileSplitMenuEO menu : list){
|
||||
menuIds.add(menu.getId());
|
||||
}
|
||||
}
|
||||
sarFileSplitItemsValEOMapper.deleteValByMenuIds(menuIds);
|
||||
sarFileSplitItemsTableEOMapper.deleteTableByMenuIds(menuIds);
|
||||
sarFileSplitItemsEOMapper.deleteByMenuIds(menuIds);
|
||||
}
|
||||
|
||||
public int copyMenu (SarFileSplitMenuEO sarMenuEO) {
|
||||
int result = 0;
|
||||
// 用来存放item的新旧ID,key:旧ID,value:新ID
|
||||
Map itemIdMap = new HashMap<>();
|
||||
List<String> oldItemIdList = new ArrayList<>();
|
||||
Map itemValIdMap = new HashMap<>();
|
||||
Map menuIdMap = new HashMap<>();
|
||||
// 根据目录ID查询相关信息
|
||||
sarMenuEO = dao.selectByPrimaryKey(sarMenuEO.getId());
|
||||
// 查询该节点下所有的 子节点 并修改排序
|
||||
List<SarFileSplitMenuEO> sarFileSplitMenuEOList = dao.queryAllChildrenByid(sarMenuEO);
|
||||
int maxDisplay = dao.getMaxDisplayByid(sarMenuEO.getId());
|
||||
SarFileSplitMenuEO sarFileSplitMenuEO = new SarFileSplitMenuEO();
|
||||
sarFileSplitMenuEO.setDisplaySeqStart(Long.valueOf(maxDisplay + 1));
|
||||
sarFileSplitMenuEO.setDisplaySeqEnd(10000L);
|
||||
sarFileSplitMenuEO.setChildrenCount(Long.valueOf(sarFileSplitMenuEOList.size()));
|
||||
sarFileSplitMenuEO.setModifyUser(UserUtils.getUserId());
|
||||
sarFileSplitMenuEO.setModifyTime(new Date());
|
||||
sarFileSplitMenuEO.setInfoId(sarMenuEO.getInfoId());
|
||||
dao.updateDisplaySeqAdd(sarFileSplitMenuEO);
|
||||
for (SarFileSplitMenuEO sarFileSplitMenuEOfor : sarFileSplitMenuEOList) {
|
||||
menuIdMap.put(sarFileSplitMenuEOfor.getId(),UUID.randomUUID().toString().replace("-", ""));
|
||||
}
|
||||
for (SarFileSplitMenuEO sarFileSplitMenuEOfor : sarFileSplitMenuEOList) {
|
||||
sarFileSplitMenuEOfor.setId(menuIdMap.get(sarFileSplitMenuEOfor.getId()).toString());
|
||||
if (menuIdMap.containsKey(sarFileSplitMenuEOfor.getpId())){
|
||||
sarFileSplitMenuEOfor.setpId(menuIdMap.get(sarFileSplitMenuEOfor.getpId()).toString());
|
||||
}
|
||||
sarFileSplitMenuEOfor.setDisplaySeq(sarFileSplitMenuEOfor.getDisplaySeq() + sarFileSplitMenuEOList.size());
|
||||
sarFileSplitMenuEOfor.setCreationTime(new Date());
|
||||
sarFileSplitMenuEOfor.setModifyTime(new Date());
|
||||
sarFileSplitMenuEOfor.setCreationUser(UserUtils.getUserId());
|
||||
sarFileSplitMenuEOfor.setModifyUser(UserUtils.getUserId());
|
||||
}
|
||||
// SAR_FILE_ITEMS_MENU 添加数据,
|
||||
result = dao.insertForeach(sarFileSplitMenuEOList);
|
||||
// SAR_FILE_ITEMS 添加数据,
|
||||
List<SarFileSplitItemsEO> sarFileSplitItemsEOList = sarFileSplitItemsEOMapper.queryItemsByMenuId(sarMenuEO.getId());
|
||||
for (SarFileSplitItemsEO sarFileSplitItemsEO : sarFileSplitItemsEOList) {
|
||||
String newItemId = UUID.randomUUID().toString().replace("-", "");
|
||||
oldItemIdList.add(sarFileSplitItemsEO.getId());
|
||||
itemIdMap.put(sarFileSplitItemsEO.getId(), newItemId);
|
||||
sarFileSplitItemsEO.setId(newItemId);
|
||||
sarFileSplitItemsEO.setMenuId(menuIdMap.get(sarFileSplitItemsEO.getMenuId()).toString());
|
||||
sarFileSplitItemsEO.setCreationTime(new Date());
|
||||
sarFileSplitItemsEO.setModifyTime(new Date());
|
||||
sarFileSplitItemsEO.setCreationUser(UserUtils.getUserId());
|
||||
sarFileSplitItemsEO.setModifyUser(UserUtils.getUserId());
|
||||
}
|
||||
if(sarFileSplitItemsEOList.size()>0){
|
||||
result += sarFileSplitItemsEOMapper.insertForeach(sarFileSplitItemsEOList);
|
||||
}
|
||||
|
||||
// SAR_FILE_ITEMS_VAL 添加数据,
|
||||
if(oldItemIdList.size()>0){
|
||||
List<SarFileSplitItemsValEO> sarFileSplitItemsValEOList = sarFileSplitItemsValEOMapper.queryItemsValByMenuId(oldItemIdList);
|
||||
for (SarFileSplitItemsValEO sarFileSplitItemsValEO : sarFileSplitItemsValEOList) {
|
||||
String newItemValId = UUID.randomUUID().toString().replace("-", "");
|
||||
itemValIdMap.put(sarFileSplitItemsValEO.getId(), newItemValId);
|
||||
sarFileSplitItemsValEO.setId(newItemValId);
|
||||
sarFileSplitItemsValEO.setItemId(itemIdMap.get(sarFileSplitItemsValEO.getItemId()).toString());
|
||||
sarFileSplitItemsValEO.setCreationTime(new Date());
|
||||
sarFileSplitItemsValEO.setModifyTime(new Date());
|
||||
sarFileSplitItemsValEO.setCreationUser(UserUtils.getUserId());
|
||||
sarFileSplitItemsValEO.setModifyUser(UserUtils.getUserId());
|
||||
}
|
||||
if (sarFileSplitItemsValEOList.size()>0) {
|
||||
result += sarFileSplitItemsValEOMapper.insertForeach(sarFileSplitItemsValEOList);
|
||||
}
|
||||
// SAR_FILE_ITEMS_PARAMS 添加数据,
|
||||
List<SarFileSplitItemsParamsEO> sarFileSplitItemsParamsEOList = sarFileSplitItemsParamsMapper.queryItemsParamsByMenuId(oldItemIdList);
|
||||
for (SarFileSplitItemsParamsEO sarFileSplitItemsParamsEO : sarFileSplitItemsParamsEOList) {
|
||||
sarFileSplitItemsParamsEO.setId(UUID.randomUUID().toString().replace("-", ""));
|
||||
sarFileSplitItemsParamsEO.setItemId(itemIdMap.get(sarFileSplitItemsParamsEO.getItemId()).toString());
|
||||
sarFileSplitItemsParamsEO.setCreationTime(new Date());
|
||||
sarFileSplitItemsParamsEO.setModifyTime(new Date());
|
||||
}
|
||||
if (sarFileSplitItemsParamsEOList.size()>0){
|
||||
result += sarFileSplitItemsParamsMapper.insertForeach(sarFileSplitItemsParamsEOList);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// SAR_FILE_ITEMS_TABLE 添加数据,
|
||||
// List<SarFileSplitItemsTableEO> sarFileSplitItemsTableEOList = sarFileSplitItemsTableEODao.queryItemsTableByMenuId(oldItemIdList);
|
||||
// for (SarFileSplitItemsTableEO sarFileSplitItemsTableEO : sarFileSplitItemsTableEOList) {
|
||||
// sarFileSplitItemsTableEO.setId(UUID.randomUUID().toString().replace("-", ""));
|
||||
// sarFileSplitItemsTableEO.setItemsId(itemIdMap.get(sarFileSplitItemsTableEO.getItemsId()).toString());
|
||||
// sarFileSplitItemsTableEO.setItemsValId(itemValIdMap.get(sarFileSplitItemsTableEO.getItemsValId()).toString());
|
||||
// sarFileSplitItemsTableEO.setCreationTime(new Date());
|
||||
// sarFileSplitItemsTableEO.setModifyTime(new Date());
|
||||
// sarFileSplitItemsTableEO.setModifyUser(UserUtils.getUserId());
|
||||
// }
|
||||
// if (sarFileSplitItemsTableEOList.size()>0){
|
||||
// result += sarFileSplitItemsTableEODao.insertForeach(sarFileSplitItemsTableEOList);
|
||||
// }
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
public int copyMenuNotChildren(SarFileSplitItemsEO sarFileSplitItemsEO) {
|
||||
int result =0;
|
||||
List<String> oldItemIdList = new ArrayList<>();
|
||||
Map itemValIdMap = new HashMap<>();
|
||||
oldItemIdList.add(sarFileSplitItemsEO.getId());
|
||||
|
||||
sarFileSplitItemsEO = sarFileSplitItemsEOMapper.selectByPrimaryKey(sarFileSplitItemsEO.getId());
|
||||
|
||||
// 查询该节点下所有的 子节点 并修改排序
|
||||
SarFileSplitMenuEO sarMenuEO = new SarFileSplitMenuEO();
|
||||
sarMenuEO.setId(sarFileSplitItemsEO.getMenuId());
|
||||
List<SarFileSplitMenuEO> sarFileSplitMenuEOList = dao.queryAllChildrenByid(sarMenuEO);
|
||||
sarMenuEO = dao.selectByPrimaryKey(sarMenuEO.getId());
|
||||
int maxDisplay = dao.getMaxDisplayByid(sarMenuEO.getId());
|
||||
SarFileSplitMenuEO sarFileSplitMenuEO = new SarFileSplitMenuEO();
|
||||
sarFileSplitMenuEO.setDisplaySeqStart(Long.valueOf(maxDisplay + 1));
|
||||
sarFileSplitMenuEO.setDisplaySeqEnd(10000L);
|
||||
sarFileSplitMenuEO.setChildrenCount(1L);
|
||||
sarFileSplitMenuEO.setModifyUser(UserUtils.getUserId());
|
||||
sarFileSplitMenuEO.setModifyTime(new Date());
|
||||
sarFileSplitMenuEO.setInfoId(sarFileSplitItemsEO.getInfoId());
|
||||
dao.updateDisplaySeqAdd(sarFileSplitMenuEO);
|
||||
|
||||
// SAR_FILE_ITEMS_MENU 添加数据,
|
||||
sarMenuEO.setId(UUID.randomUUID().toString().replace("-", ""));
|
||||
sarMenuEO.setDisplaySeq(Long.valueOf(maxDisplay + 1));
|
||||
sarMenuEO.setCreationTime(new Date());
|
||||
sarMenuEO.setModifyTime(new Date());
|
||||
sarMenuEO.setCreationUser(UserUtils.getUserId());
|
||||
sarMenuEO.setModifyUser(UserUtils.getUserId());
|
||||
result = dao.insertSelective(sarMenuEO);
|
||||
|
||||
// SAR_FILE_ITEMS 添加数据,
|
||||
sarFileSplitItemsEO.setId(UUID.randomUUID().toString().replace("-", ""));
|
||||
sarFileSplitItemsEO.setMenuId(sarMenuEO.getId());
|
||||
sarFileSplitItemsEO.setCreationTime(new Date());
|
||||
sarFileSplitItemsEO.setModifyTime(new Date());
|
||||
sarFileSplitItemsEO.setCreationUser(UserUtils.getUserId());
|
||||
sarFileSplitItemsEO.setModifyUser(UserUtils.getUserId());
|
||||
result += sarFileSplitItemsEOMapper.insertSelective(sarFileSplitItemsEO);
|
||||
|
||||
// SAR_FILE_ITEMS_VAL 添加数据,
|
||||
List<SarFileSplitItemsValEO> sarFileSplitItemsValEOList = sarFileSplitItemsValEOMapper.queryItemsValByMenuId(oldItemIdList);
|
||||
for (SarFileSplitItemsValEO sarFileSplitItemsValEO : sarFileSplitItemsValEOList) {
|
||||
String newItemValId = UUID.randomUUID().toString().replace("-", "");
|
||||
itemValIdMap.put(sarFileSplitItemsValEO.getId(), newItemValId);
|
||||
sarFileSplitItemsValEO.setId(newItemValId);
|
||||
sarFileSplitItemsValEO.setItemId(sarFileSplitItemsEO.getId());
|
||||
sarFileSplitItemsValEO.setCreationTime(new Date());
|
||||
sarFileSplitItemsValEO.setModifyTime(new Date());
|
||||
sarFileSplitItemsValEO.setCreationUser(UserUtils.getUserId());
|
||||
sarFileSplitItemsValEO.setModifyUser(UserUtils.getUserId());
|
||||
}
|
||||
if (sarFileSplitItemsValEOList.size()>0) {
|
||||
result += sarFileSplitItemsValEOMapper.insertForeach(sarFileSplitItemsValEOList);
|
||||
}
|
||||
// SAR_FILE_ITEMS_PARAMS 添加数据,
|
||||
List<SarFileSplitItemsParamsEO> sarFileSplitItemsParamsEOList = sarFileSplitItemsParamsMapper.queryItemsParamsByMenuId(oldItemIdList);
|
||||
for (SarFileSplitItemsParamsEO sarFileSplitItemsParamsEO : sarFileSplitItemsParamsEOList) {
|
||||
sarFileSplitItemsParamsEO.setId(UUID.randomUUID().toString().replace("-", ""));
|
||||
sarFileSplitItemsParamsEO.setItemId(sarFileSplitItemsEO.getId());
|
||||
sarFileSplitItemsParamsEO.setCreationTime(new Date());
|
||||
sarFileSplitItemsParamsEO.setModifyTime(new Date());
|
||||
}
|
||||
if (sarFileSplitItemsParamsEOList.size()>0){
|
||||
result += sarFileSplitItemsParamsMapper.insertForeach(sarFileSplitItemsParamsEOList);
|
||||
}
|
||||
// SAR_FILE_ITEMS_TABLE 添加数据,
|
||||
List<SarFileSplitItemsTableEO> sarFileSplitItemsTableEOList = sarFileSplitItemsTableEOMapper.queryItemsTableByMenuId(oldItemIdList);
|
||||
for (SarFileSplitItemsTableEO sarFileSplitItemsTableEO : sarFileSplitItemsTableEOList) {
|
||||
sarFileSplitItemsTableEO.setId(UUID.randomUUID().toString().replace("-", ""));
|
||||
sarFileSplitItemsTableEO.setItemsId(sarFileSplitItemsEO.getId());
|
||||
sarFileSplitItemsTableEO.setItemsValId(itemValIdMap.get(sarFileSplitItemsTableEO.getItemsValId()).toString());
|
||||
sarFileSplitItemsTableEO.setCreationTime(new Date());
|
||||
sarFileSplitItemsTableEO.setModifyTime(new Date());
|
||||
sarFileSplitItemsTableEO.setModifyUser(UserUtils.getUserId());
|
||||
}
|
||||
if (sarFileSplitItemsTableEOList.size()>0){
|
||||
result += sarFileSplitItemsTableEOMapper.insertForeach(sarFileSplitItemsTableEOList);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
public String addMenuForImport(SarFileSplitMenuEO sarFileSplitMenuEO){
|
||||
sarFileSplitMenuEO.setId(UUID.randomUUID().toString().replace("-", ""));
|
||||
sarFileSplitMenuEO.setValidFlag(0);
|
||||
sarFileSplitMenuEO.setCreationTime(new Date());
|
||||
sarFileSplitMenuEO.setModifyTime(new Date());
|
||||
int count = dao.insertSelective(sarFileSplitMenuEO);
|
||||
// 之后的所有节点序号增加
|
||||
SarFileSplitMenuEOPage page = new SarFileSplitMenuEOPage();
|
||||
page.setPId(sarFileSplitMenuEO.getPId());
|
||||
List<SarFileSplitMenuEO> getList = dao.queryByList(page);
|
||||
if (getList != null && !getList.isEmpty()) {
|
||||
for(SarFileSplitMenuEO menu : getList){
|
||||
Long olgSeq = menu.getDisplaySeq();
|
||||
if (olgSeq >= sarFileSplitMenuEO.getDisplaySeq()) {
|
||||
menu.setDisplaySeq(olgSeq + 1);
|
||||
dao.updateByPrimaryKeySelective(menu);
|
||||
}
|
||||
}
|
||||
}
|
||||
return sarFileSplitMenuEO.getId();
|
||||
}
|
||||
|
||||
@Override
|
||||
public int insert(SarFileSplitMenuEO sarFileSplitMenuEO) {
|
||||
return dao.insert(sarFileSplitMenuEO);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int insertSelective(SarFileSplitMenuEO sarFileSplitMenuEO) {
|
||||
return dao.insertSelective(sarFileSplitMenuEO);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int updateByPrimaryKey(SarFileSplitMenuEO sarFileSplitMenuEO) {
|
||||
return dao.updateByPrimaryKey(sarFileSplitMenuEO);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int updateByPrimaryKeySelective(SarFileSplitMenuEO sarFileSplitMenuEO) {
|
||||
return dao.updateByPrimaryKeySelective(sarFileSplitMenuEO);
|
||||
}
|
||||
|
||||
@Override
|
||||
public SarFileSplitMenuEO selectByPrimaryKey(String value) {
|
||||
return dao.selectByPrimaryKey(value);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int deleteByPrimaryKey(String value) {
|
||||
return dao.deleteByPrimaryKey(value);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<SarFileSplitMenuEO> queryByList(SarFileSplitMenuEOPage page) {
|
||||
return dao.queryByList(page);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int queryByCount(SarFileSplitMenuEOPage page) {
|
||||
return dao.queryByCount(page);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<SarFileSplitMenuEO> queryByPage(SarFileSplitMenuEOPage page) {
|
||||
return dao.queryByPage(page);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,199 @@
|
||||
package com.jero.modules.split.util;/**
|
||||
* Created by Administrator on 2018/12/20 16:42
|
||||
*/
|
||||
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
|
||||
import org.apache.poi.ss.usermodel.*;
|
||||
import org.apache.poi.xssf.usermodel.XSSFWorkbook;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
|
||||
import java.io.FileNotFoundException;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.lang.reflect.Field;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import static java.sql.Types.NUMERIC;
|
||||
import static org.apache.poi.ss.usermodel.DataValidationConstraint.ValidationType.FORMULA;
|
||||
import static org.apache.xmlbeans.impl.piccolo.xml.Piccolo.STRING;
|
||||
|
||||
/**
|
||||
* @Author Administrator
|
||||
* @Description TODO
|
||||
* Date 2018/12/20 16:42
|
||||
* @Param
|
||||
* @return
|
||||
**/
|
||||
public class ExcelUtil {
|
||||
|
||||
private static final Logger logger = LoggerFactory.getLogger(ExcelUtil.class);
|
||||
/**
|
||||
*
|
||||
* @param filePath 需要读取的文件路径
|
||||
* @param column 指定需要获取的列数,例如第一列 1
|
||||
* @param startRow 指定从第几行开始读取数据
|
||||
* @param endRow 指定结束行
|
||||
* @return 返回读取列数据的set
|
||||
*/
|
||||
public static List<String> getColumnSet(String fileOrginName, MultipartFile file, int column, int startRow , int endRow) throws IOException {
|
||||
Workbook wb = readExcel(fileOrginName,file.getInputStream()); //文件
|
||||
Sheet sheet = wb.getSheetAt(0); //sheet
|
||||
int rownum = sheet.getPhysicalNumberOfRows(); //行数
|
||||
Row row = null;
|
||||
List<String> result = new ArrayList<>();
|
||||
String cellData = null;
|
||||
if(wb != null){
|
||||
for (int i=startRow-1; i<=endRow; i++){
|
||||
System.out.println(i);
|
||||
row = sheet.getRow(i);
|
||||
if(row !=null){
|
||||
if(row.getCell(column-1)!=null){//单元格为空,不进入
|
||||
row.getCell(column-1).setCellType(Cell.CELL_TYPE_STRING);//设置单元格类型
|
||||
cellData = row.getCell(column-1).getStringCellValue();
|
||||
result.add(cellData);
|
||||
}else{
|
||||
result.add("");
|
||||
}
|
||||
}else{
|
||||
|
||||
break;
|
||||
}
|
||||
System.out.println(cellData);
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @param filePath 需要读取的文件路径
|
||||
* @param column 指定需要获取的列数,例如第一列 1
|
||||
* @param startRow 指定从第几行开始读取数据
|
||||
* @return 返回读取列数据的set
|
||||
*/
|
||||
public static List<String> getColumnSet(String fileOrginName, MultipartFile file, int column, int startRow) throws IOException {
|
||||
Workbook wb = readExcel(fileOrginName,file.getInputStream()); //文件
|
||||
Sheet sheet = wb.getSheetAt(0); //sheet
|
||||
int rownum = sheet.getPhysicalNumberOfRows(); //行数
|
||||
System.out.println("sumrows " + rownum);
|
||||
|
||||
return getColumnSet(fileOrginName,file, column, startRow , rownum-1);
|
||||
}
|
||||
|
||||
|
||||
|
||||
//读取excel
|
||||
public static Workbook readExcel(String fileOrginName,InputStream is){
|
||||
Workbook wb = null;
|
||||
String extString = fileOrginName.substring(fileOrginName.lastIndexOf("."));
|
||||
try {
|
||||
if(".xls".equals(extString)){
|
||||
return wb = new HSSFWorkbook(is);
|
||||
}else if(".xlsx".equals(extString)){
|
||||
return wb = new XSSFWorkbook(is);
|
||||
}else{
|
||||
return wb = null;
|
||||
}
|
||||
} catch (FileNotFoundException e) {
|
||||
logger.error("异常:",e);
|
||||
} catch (IOException e) {
|
||||
logger.error("异常:",e);
|
||||
}
|
||||
return wb;
|
||||
}
|
||||
|
||||
public static Object getCellFormatValue(Cell cell){
|
||||
Object cellValue = null;
|
||||
if(cell!=null){
|
||||
//判断cell类型
|
||||
switch(cell.getCellType()){
|
||||
case NUMERIC:{
|
||||
cell.setCellType(CellType.STRING); //将数值型cell设置为string型
|
||||
cellValue = cell.getStringCellValue();
|
||||
break;
|
||||
}
|
||||
case FORMULA:{
|
||||
//判断cell是否为日期格式
|
||||
if(DateUtil.isCellDateFormatted(cell)){
|
||||
//转换为日期格式YYYY-mm-dd
|
||||
cellValue = cell.getDateCellValue();
|
||||
}else{
|
||||
//数字
|
||||
cellValue = String.valueOf(cell.getNumericCellValue());
|
||||
}
|
||||
break;
|
||||
}
|
||||
case STRING:{
|
||||
cellValue = cell.getRichStringCellValue().getString();
|
||||
break;
|
||||
}
|
||||
default:
|
||||
cellValue = "";
|
||||
}
|
||||
}else{
|
||||
cellValue = "";
|
||||
}
|
||||
return cellValue;
|
||||
}
|
||||
|
||||
public static String validatePattern(String fileName){
|
||||
if(StringUtils.isNotEmpty(fileName)){
|
||||
Boolean isOk = false;
|
||||
if(fileName.lastIndexOf(".docx") != -1){
|
||||
isOk = true;
|
||||
}
|
||||
if(fileName.lastIndexOf(".pdf") != -1){
|
||||
isOk = true;
|
||||
}
|
||||
if(fileName.lastIndexOf(".doc") != -1){
|
||||
isOk = true;
|
||||
}
|
||||
if(fileName.lastIndexOf(".PDF") != -1){
|
||||
isOk = true;
|
||||
}
|
||||
if(fileName.lastIndexOf(".ppt") != -1){
|
||||
isOk = true;
|
||||
}
|
||||
if(fileName.lastIndexOf(".pptx") != -1){
|
||||
isOk = true;
|
||||
}
|
||||
if(isOk){
|
||||
//其格式满足条件,无需提示
|
||||
return null;
|
||||
}else {
|
||||
return "请上传pdf、doc、docx、ppt、pptx文件;";
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* 判断对象中属性值是否全为空
|
||||
*
|
||||
* @param object
|
||||
* @return
|
||||
*/
|
||||
public static boolean checkObjAllFieldsIsNull(Object object) {
|
||||
if (null == object) {
|
||||
return true;
|
||||
}
|
||||
|
||||
try {
|
||||
for (Field f : object.getClass().getDeclaredFields()) {
|
||||
f.setAccessible(true);
|
||||
|
||||
if (f.get(object) != null && StringUtils.isNotBlank(f.get(object).toString())) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
+649
@@ -0,0 +1,649 @@
|
||||
package com.jero.modules.split.util;
|
||||
|
||||
import org.apache.poi.POIXMLDocumentPart;
|
||||
import org.apache.poi.hssf.usermodel.*;
|
||||
import org.apache.poi.hssf.util.HSSFColor;
|
||||
import org.apache.poi.ss.usermodel.*;
|
||||
import org.apache.poi.ss.util.CellRangeAddress;
|
||||
import org.apache.poi.xssf.usermodel.*;
|
||||
import org.openxmlformats.schemas.drawingml.x2006.spreadsheetDrawing.CTMarker;
|
||||
|
||||
import java.io.*;
|
||||
import java.text.DecimalFormat;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.Date;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* @Description:
|
||||
* @Author: yangxuenan
|
||||
* date: 2020/5/11 10:39
|
||||
*/
|
||||
public class POIReadExcelToHtml {
|
||||
private static Map<String, Object> map[];
|
||||
|
||||
/**
|
||||
* 程序入口方法(将excel文件读取成字符串)
|
||||
* @param isWithStyle 是否需要表格样式 包含 字体 颜色 边框 对齐方式
|
||||
* @return <table>...</table> 字符串
|
||||
*/
|
||||
public static String readExcelToHtml(XSSFWorkbook xWb,int sheetNum,boolean isWithStyle){
|
||||
String htmlExcel = null;
|
||||
htmlExcel = readWorkbook(xWb,sheetNum,isWithStyle);
|
||||
/*try {
|
||||
// Workbook wb = WorkbookFactory.create(is);
|
||||
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}finally{
|
||||
try {
|
||||
is.close();
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}*/
|
||||
return htmlExcel;
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据excel的版本分配不同的读取方法进行处理
|
||||
* @param wb
|
||||
* @param isWithStyle
|
||||
* @return
|
||||
*/
|
||||
private static String readWorkbook(Workbook wb,int sheetNum,boolean isWithStyle){
|
||||
String htmlExcel = "";
|
||||
if (wb instanceof XSSFWorkbook) {
|
||||
XSSFWorkbook xWb = (XSSFWorkbook) wb;
|
||||
htmlExcel = getExcelInfo(xWb,sheetNum, isWithStyle);
|
||||
}else if(wb instanceof HSSFWorkbook){
|
||||
HSSFWorkbook hWb = (HSSFWorkbook) wb;
|
||||
htmlExcel = getExcelInfo(hWb,sheetNum, isWithStyle);
|
||||
}
|
||||
return htmlExcel;
|
||||
}
|
||||
|
||||
/**
|
||||
* 读取excel成string
|
||||
* @param wb
|
||||
* @param isWithStyle
|
||||
* @return
|
||||
*/
|
||||
public static String getExcelInfo(Workbook wb,int sheetNum, boolean isWithStyle){
|
||||
|
||||
StringBuffer sb = new StringBuffer();
|
||||
Sheet sheet = wb.getSheetAt(sheetNum);//获取第一个Sheet的内容
|
||||
// map等待存储excel图片
|
||||
// Map<String, PictureData> sheetIndexPicMap = getSheetPictrues(0, sheet, wb);
|
||||
//临时保存位置,正式环境根据部署环境存放其他位置
|
||||
// try {
|
||||
// if(sheetIndexPicMap != null)
|
||||
// printImg(sheetIndexPicMap);
|
||||
// } catch (IOException e) {
|
||||
// e.printStackTrace();
|
||||
// }
|
||||
|
||||
//读取excel拼装html
|
||||
int lastRowNum = sheet.getLastRowNum();
|
||||
map = getRowSpanColSpanMap(sheet);
|
||||
sb.append("<table style='border-collapse:collapse;width:100%;'>");
|
||||
Row row = null; //兼容
|
||||
Cell cell = null; //兼容
|
||||
|
||||
for (int rowNum = sheet.getFirstRowNum(); rowNum <= lastRowNum; rowNum ++) {
|
||||
if(rowNum > 1000) break;
|
||||
row = sheet.getRow(rowNum);
|
||||
|
||||
int lastColNum = POIReadExcelToHtml.getColsOfTable(sheet)[0];
|
||||
int rowHeight = POIReadExcelToHtml.getColsOfTable(sheet)[1];
|
||||
|
||||
if(null != row) {
|
||||
lastColNum = row.getLastCellNum();
|
||||
rowHeight = row.getHeight();
|
||||
}
|
||||
|
||||
if (null == row) {
|
||||
sb.append("<tr><td > </td></tr>");
|
||||
continue;
|
||||
}else if(row.getZeroHeight()){
|
||||
continue;
|
||||
}else if(0 == rowHeight){
|
||||
continue; //针对jxl的隐藏行(此类隐藏行只是把高度设置为0,单getZeroHeight无法识别)
|
||||
}
|
||||
sb.append("<tr>");
|
||||
|
||||
for (int colNum = 0; colNum < lastColNum; colNum ++) {
|
||||
if(sheet.isColumnHidden(colNum)) continue;
|
||||
String imageRowNum = "0_" + rowNum + "_" + colNum;
|
||||
String imageHtml = "";
|
||||
cell = row.getCell(colNum);
|
||||
/*if ((sheetIndexPicMap != null && !sheetIndexPicMap.containsKey(imageRowNum) || sheetIndexPicMap == null) && cell == null) { //特殊情况 空白的单元格会返回null+//判断该单元格是否包含图片,为空时也可能包含图片
|
||||
sb.append("<td> </td>");
|
||||
continue;
|
||||
}
|
||||
if(sheetIndexPicMap!=null && sheetIndexPicMap.containsKey(imageRowNum)){
|
||||
//待修改路径
|
||||
String imagePath = "D:\\pic" + imageRowNum + ".jpeg";
|
||||
|
||||
imageHtml = "<img src='" + imagePath + "' style='height:" + rowHeight / 20 + "px;'>";
|
||||
}*/
|
||||
String stringValue = getCellValue(cell);
|
||||
if (map[0].containsKey(rowNum + "," + colNum)) {
|
||||
String pointString = (String)map[0].get(rowNum + "," + colNum);
|
||||
int bottomeRow = Integer.valueOf(pointString.split(",")[0]);
|
||||
int bottomeCol = Integer.valueOf(pointString.split(",")[1]);
|
||||
int rowSpan = bottomeRow - rowNum + 1;
|
||||
int colSpan = bottomeCol - colNum + 1;
|
||||
if(map[2].containsKey(rowNum + "," + colNum)){
|
||||
rowSpan = rowSpan - (Integer)map[2].get(rowNum + "," + colNum);
|
||||
}
|
||||
sb.append("<td rowspan= '" + rowSpan + "' colspan= '"+ colSpan + "' ");
|
||||
if(map.length > 3 && map[3].containsKey(rowNum + "," + colNum)){
|
||||
//此类数据首行被隐藏,value为空,需使用其他方式获取值
|
||||
stringValue = getMergedRegionValue(sheet, rowNum, colNum);
|
||||
}
|
||||
} else if (map[1].containsKey(rowNum + "," + colNum)) {
|
||||
map[1].remove(rowNum + "," + colNum);
|
||||
continue;
|
||||
} else {
|
||||
sb.append("<td ");
|
||||
}
|
||||
|
||||
//判断是否需要样式
|
||||
if(isWithStyle){
|
||||
dealExcelStyle(wb, sheet, cell, sb);//处理单元格样式
|
||||
}
|
||||
|
||||
sb.append(">");
|
||||
// if(sheetIndexPicMap!=null && sheetIndexPicMap.containsKey(imageRowNum)) sb.append(imageHtml);
|
||||
if (stringValue == null || "".equals(stringValue.trim())) {
|
||||
sb.append(" ");
|
||||
} else {
|
||||
// 将ascii码为160的空格转换为html下的空格( )
|
||||
sb.append(stringValue.replace(String.valueOf((char) 160)," "));
|
||||
}
|
||||
sb.append("</td>");
|
||||
}
|
||||
sb.append("</tr>");
|
||||
continue;
|
||||
}
|
||||
sb.append("</table>");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* 分析excel表格,记录合并单元格相关的参数,用于之后html页面元素的合并操作
|
||||
* @param sheet
|
||||
* @return
|
||||
*/
|
||||
private static Map<String, Object>[] getRowSpanColSpanMap(Sheet sheet) {
|
||||
Map<String, String> map0 = new HashMap<String, String>(); //保存合并单元格的对应起始和截止单元格
|
||||
Map<String, String> map1 = new HashMap<String, String>(); //保存被合并的那些单元格
|
||||
Map<String, Integer> map2 = new HashMap<String, Integer>(); //记录被隐藏的单元格个数
|
||||
Map<String, String> map3 = new HashMap<String, String>(); //记录合并了单元格,但是合并的首行被隐藏的情况
|
||||
int mergedNum = sheet.getNumMergedRegions();
|
||||
CellRangeAddress range = null;
|
||||
Row row = null;
|
||||
for (int i = 0; i < mergedNum; i++) {
|
||||
range = sheet.getMergedRegion(i);
|
||||
int topRow = range.getFirstRow();
|
||||
int topCol = range.getFirstColumn();
|
||||
int bottomRow = range.getLastRow();
|
||||
int bottomCol = range.getLastColumn();
|
||||
/**
|
||||
* 此类数据为合并了单元格的数据
|
||||
* 1.处理隐藏(只处理行隐藏,列隐藏poi已经处理)
|
||||
*/
|
||||
if(topRow != bottomRow){
|
||||
int zeroRoleNum = 0;
|
||||
int tempRow = topRow;
|
||||
for(int j = topRow; j <= bottomRow; j ++){
|
||||
row = sheet.getRow(j);
|
||||
if(row.getZeroHeight() || row.getHeight() == 0){
|
||||
if(j == tempRow){
|
||||
//首行就进行隐藏,将rowTop向后移
|
||||
tempRow ++;
|
||||
continue;//由于top下移,后面计算rowSpan时会扣除移走的列,所以不必增加zeroRoleNum;
|
||||
}
|
||||
zeroRoleNum ++;
|
||||
}
|
||||
}
|
||||
if(tempRow != topRow){
|
||||
map3.put(tempRow + "," + topCol,topRow + "," + topCol);
|
||||
topRow = tempRow;
|
||||
}
|
||||
if(zeroRoleNum!=0) map2.put(topRow + "," + topCol, zeroRoleNum);
|
||||
}
|
||||
map0.put(topRow + "," + topCol, bottomRow + "," + bottomCol);
|
||||
int tempRow = topRow;
|
||||
while (tempRow <= bottomRow) {
|
||||
int tempCol = topCol;
|
||||
while (tempCol <= bottomCol) {
|
||||
map1.put(tempRow + "," + tempCol, topRow + "," + topCol);
|
||||
tempCol++;
|
||||
}
|
||||
tempRow++;
|
||||
}
|
||||
map1.remove(topRow + "," + topCol);
|
||||
}
|
||||
Map[] map = { map0, map1 ,map2,map3};
|
||||
System.err.println(map0);
|
||||
return map;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 获取合并单元格的值
|
||||
* @param sheet
|
||||
* @param row
|
||||
* @param column
|
||||
* @return
|
||||
*/
|
||||
public static String getMergedRegionValue(Sheet sheet, int row, int column){
|
||||
int sheetMergeCount = sheet.getNumMergedRegions();
|
||||
for(int i = 0 ; i < sheetMergeCount ; i++){
|
||||
CellRangeAddress ca = sheet.getMergedRegion(i);
|
||||
int firstColumn = ca.getFirstColumn();
|
||||
int lastColumn = ca.getLastColumn();
|
||||
int firstRow = ca.getFirstRow();
|
||||
int lastRow = ca.getLastRow();
|
||||
|
||||
if(row >= firstRow && row <= lastRow){
|
||||
|
||||
if(column >= firstColumn && column <= lastColumn){
|
||||
Row fRow = sheet.getRow(firstRow);
|
||||
Cell fCell = fRow.getCell(firstColumn);
|
||||
|
||||
return getCellValue(fCell) ;
|
||||
}
|
||||
}
|
||||
}
|
||||
return null ;
|
||||
}
|
||||
/**
|
||||
* 获取表格单元格Cell内容
|
||||
* @param cell
|
||||
* @return
|
||||
*/
|
||||
private static String getCellValue(Cell cell) {
|
||||
String result = new String();
|
||||
switch (cell.getCellType()) {
|
||||
case Cell.CELL_TYPE_NUMERIC:// 数字类型
|
||||
if (HSSFDateUtil.isCellDateFormatted(cell)) {// 处理日期格式、时间格式
|
||||
SimpleDateFormat sdf = null;
|
||||
if (cell.getCellStyle().getDataFormat() == HSSFDataFormat.getBuiltinFormat("h:mm")) {
|
||||
sdf = new SimpleDateFormat("HH:mm");
|
||||
} else {// 日期
|
||||
sdf = new SimpleDateFormat("yyyy-MM-dd");
|
||||
}
|
||||
Date date = cell.getDateCellValue();
|
||||
result = sdf.format(date);
|
||||
} else if (cell.getCellStyle().getDataFormat() == 58) {
|
||||
// 处理自定义日期格式:m月d日(通过判断单元格的格式id解决,id的值是58)
|
||||
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
|
||||
double value = cell.getNumericCellValue();
|
||||
Date date = DateUtil
|
||||
.getJavaDate(value);
|
||||
result = sdf.format(date);
|
||||
} else {
|
||||
double value = cell.getNumericCellValue();
|
||||
CellStyle style = cell.getCellStyle();
|
||||
DecimalFormat format = new DecimalFormat();
|
||||
String temp = style.getDataFormatString();
|
||||
// 单元格设置成常规
|
||||
if (temp.equals("General")) {
|
||||
format.applyPattern("#");
|
||||
}
|
||||
result = format.format(value);
|
||||
}
|
||||
break;
|
||||
case Cell.CELL_TYPE_STRING:// String类型
|
||||
result = cell.getRichStringCellValue().toString();
|
||||
break;
|
||||
case Cell.CELL_TYPE_BLANK:
|
||||
result = "";
|
||||
break;
|
||||
default:
|
||||
result = "";
|
||||
break;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
/**
|
||||
* 处理表格样式
|
||||
* @param wb
|
||||
* @param sheet
|
||||
* @param cell
|
||||
* @param sb
|
||||
*/
|
||||
private static void dealExcelStyle(Workbook wb, Sheet sheet, Cell cell, StringBuffer sb){
|
||||
CellStyle cellStyle = cell.getCellStyle();
|
||||
if (cellStyle != null) {
|
||||
short alignment = cellStyle.getAlignment();
|
||||
sb.append("align='" + convertAlignToHtml(alignment) + "' ");//单元格内容的水平对齐方式
|
||||
short verticalAlignment = cellStyle.getVerticalAlignment();
|
||||
sb.append("valign='"+ convertVerticalAlignToHtml(verticalAlignment)+ "' ");//单元格中内容的垂直排列方式
|
||||
|
||||
if (wb instanceof XSSFWorkbook) {
|
||||
|
||||
XSSFFont xf = ((XSSFCellStyle) cellStyle).getFont();
|
||||
short boldWeight = xf.getBoldweight();
|
||||
sb.append("style='");
|
||||
sb.append("font-weight:" + boldWeight + ";"); // 字体加粗
|
||||
sb.append("font-size: " + xf.getFontHeight() / 2 + "%;"); // 字体大小
|
||||
|
||||
int topRow = cell.getRowIndex(),topColumn = cell.getColumnIndex();
|
||||
if(map[0].containsKey(topRow+","+topColumn)){//该单元格为合并单元格,宽度需要获取所有单元格宽度后合并
|
||||
String value = (String)map[0].get(topRow+","+topColumn);
|
||||
String[] ary = value.split(",");
|
||||
int bottomColumn = Integer.parseInt(ary[1]);
|
||||
if(topColumn!=bottomColumn){//合并列,需要计算相应宽度
|
||||
int columnWidth = 0;
|
||||
for(int i=topColumn;i<=bottomColumn;i++){
|
||||
columnWidth += sheet.getColumnWidth(i);
|
||||
}
|
||||
sb.append("width:" + columnWidth/256*xf.getFontHeight()/20 + "pt;");
|
||||
}else{
|
||||
int columnWidth = sheet.getColumnWidth(cell.getColumnIndex()) ;
|
||||
sb.append("width:" + columnWidth/256*xf.getFontHeight()/20 + "pt;");
|
||||
}
|
||||
}else{
|
||||
int columnWidth = sheet.getColumnWidth(cell.getColumnIndex()) ;
|
||||
sb.append("width:" + columnWidth/256*xf.getFontHeight()/20 + "pt;");
|
||||
}
|
||||
|
||||
XSSFColor xc = xf.getXSSFColor();
|
||||
if (xc != null && !"".equals(xc.toString())) {
|
||||
sb.append("color:#" + xc.getARGBHex().substring(2) + ";"); // 字体颜色
|
||||
}
|
||||
|
||||
XSSFColor bgColor = (XSSFColor) cellStyle.getFillForegroundColorColor();
|
||||
if (bgColor != null && !"".equals(bgColor.toString())) {
|
||||
sb.append("background-color:#" + bgColor.getARGBHex().substring(2) + ";"); // 背景颜色
|
||||
}
|
||||
sb.append("border:solid #000000 1px;");
|
||||
// sb.append(getBorderStyle(0,cellStyle.getBorderTop(), ((XSSFCellStyle) cellStyle).getTopBorderXSSFColor()));
|
||||
// sb.append(getBorderStyle(1,cellStyle.getBorderRight(), ((XSSFCellStyle) cellStyle).getRightBorderXSSFColor()));
|
||||
// sb.append(getBorderStyle(2,cellStyle.getBorderBottom(), ((XSSFCellStyle) cellStyle).getBottomBorderXSSFColor()));
|
||||
// sb.append(getBorderStyle(3,cellStyle.getBorderLeft(), ((XSSFCellStyle) cellStyle).getLeftBorderXSSFColor()));
|
||||
}else if(wb instanceof HSSFWorkbook){
|
||||
HSSFFont hf = ((HSSFCellStyle) cellStyle).getFont(wb);
|
||||
short boldWeight = hf.getBoldweight();
|
||||
short fontColor = hf.getColor();
|
||||
sb.append("style='");
|
||||
|
||||
HSSFPalette palette = ((HSSFWorkbook) wb).getCustomPalette(); // 类HSSFPalette用于求的颜色的国际标准形式
|
||||
HSSFColor hc = palette.getColor(fontColor);
|
||||
sb.append("font-weight:" + boldWeight + ";"); // 字体加粗
|
||||
sb.append("font-size: " + hf.getFontHeight() / 2 + "%;"); // 字体大小
|
||||
String fontColorStr = convertToStardColor(hc);
|
||||
if (fontColorStr != null && !"".equals(fontColorStr.trim())) {
|
||||
sb.append("color:" + fontColorStr + ";"); // 字体颜色
|
||||
}
|
||||
|
||||
int topRow = cell.getRowIndex(),topColumn = cell.getColumnIndex();
|
||||
if(map[0].containsKey(topRow + "," + topColumn)){//该单元格为合并单元格,宽度需要获取所有单元格宽度后合并
|
||||
String value = (String)map[0].get(topRow + "," + topColumn);
|
||||
String[] ary = value.split(",");
|
||||
int bottomColumn = Integer.parseInt(ary[1]);
|
||||
if(topColumn != bottomColumn){//合并列,需要计算相应宽度
|
||||
int columnWidth = 0;
|
||||
for(int i = topColumn; i <= bottomColumn; i++){
|
||||
columnWidth += sheet.getColumnWidth(i);
|
||||
}
|
||||
sb.append("width:" + columnWidth / 256 * hf.getFontHeight() / 20 + "pt;");
|
||||
}else{
|
||||
int columnWidth = sheet.getColumnWidth(cell.getColumnIndex()) ;
|
||||
sb.append("width:" + columnWidth / 256 * hf.getFontHeight() / 20 + "pt;");
|
||||
}
|
||||
}else{
|
||||
int columnWidth = sheet.getColumnWidth(cell.getColumnIndex()) ;
|
||||
sb.append("width:" + columnWidth / 256 * hf.getFontHeight() / 20 + "pt;");
|
||||
}
|
||||
|
||||
short bgColor = cellStyle.getFillForegroundColor();
|
||||
hc = palette.getColor(bgColor);
|
||||
String bgColorStr = convertToStardColor(hc);
|
||||
if (bgColorStr != null && !"".equals(bgColorStr.trim())) {
|
||||
sb.append("background-color:" + bgColorStr + ";"); // 背景颜色
|
||||
}
|
||||
sb.append("border:solid #000000 1px;");
|
||||
}
|
||||
sb.append("' ");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 单元格内容的水平对齐方式
|
||||
* @param alignment
|
||||
* @return
|
||||
*/
|
||||
private static String convertAlignToHtml(short alignment) {
|
||||
String align = "left";
|
||||
switch (alignment) {
|
||||
case CellStyle.ALIGN_LEFT:
|
||||
align = "left";
|
||||
break;
|
||||
case CellStyle.ALIGN_CENTER:
|
||||
align = "center";
|
||||
break;
|
||||
case CellStyle.ALIGN_RIGHT:
|
||||
align = "right";
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
return align;
|
||||
}
|
||||
|
||||
/**
|
||||
* 单元格中内容的垂直排列方式
|
||||
* @param verticalAlignment
|
||||
* @return
|
||||
*/
|
||||
private static String convertVerticalAlignToHtml(short verticalAlignment) {
|
||||
String valign = "middle";
|
||||
switch (verticalAlignment) {
|
||||
case CellStyle.VERTICAL_BOTTOM:
|
||||
valign = "bottom";
|
||||
break;
|
||||
case CellStyle.VERTICAL_CENTER:
|
||||
valign = "center";
|
||||
break;
|
||||
case CellStyle.VERTICAL_TOP:
|
||||
valign = "top";
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
return valign;
|
||||
}
|
||||
|
||||
private static String convertToStardColor(HSSFColor hc) {
|
||||
StringBuffer sb = new StringBuffer("");
|
||||
if (hc != null) {
|
||||
if (HSSFColor.AUTOMATIC.index == hc.getIndex()) {
|
||||
return null;
|
||||
}
|
||||
sb.append("#");
|
||||
for (int i = 0; i < hc.getTriplet().length; i ++) {
|
||||
sb.append(fillWithZero(Integer.toHexString(hc.getTriplet()[i])));
|
||||
}
|
||||
}
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
private static String fillWithZero(String str) {
|
||||
if (str != null && str.length() < 2) {
|
||||
return "0" + str;
|
||||
}
|
||||
return str;
|
||||
}
|
||||
|
||||
static String[] bordesr = {"border-top:", "border-right:", "border-bottom:", "border-left:"};
|
||||
static String[] borderStyles = {"solid ", "solid ", "solid ", "solid ", "solid ", "solid ", "solid ", "solid ", "solid ", "solid", "solid", "solid", "solid", "solid"};
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
private static String getBorderStyle(HSSFPalette palette , int b, short s, short t){
|
||||
if(s == 0) return bordesr[b] + borderStyles[s] + "#d0d7e5 1px;";
|
||||
String borderColorStr = convertToStardColor( palette.getColor(t));
|
||||
borderColorStr = borderColorStr == null || borderColorStr.length() < 1 ? "#000000" : borderColorStr;
|
||||
return bordesr[b] + borderStyles[s] + borderColorStr + " 1px;";
|
||||
}
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
private static String getBorderStyle(int b, short s, XSSFColor xc){
|
||||
if(s == 0)return bordesr[b] + borderStyles[s] + "#d0d7e5 1px;";
|
||||
if (xc != null && ! "".equals(xc)) {
|
||||
String borderColorStr = xc.getARGBHex();//t.getARGBHex();
|
||||
borderColorStr=borderColorStr == null || borderColorStr.length() < 1 ? "#000000" : borderColorStr.substring(2);
|
||||
return bordesr[b] + borderStyles[s]+borderColorStr+" 1px;";
|
||||
}
|
||||
return "";
|
||||
}
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
private static void writeFile(String content, String path) {
|
||||
OutputStream os = null;
|
||||
BufferedWriter bw = null;
|
||||
try {
|
||||
File file = new File(path);
|
||||
os = new FileOutputStream(file);
|
||||
bw = new BufferedWriter(new OutputStreamWriter(os,"GBK"));
|
||||
bw.write(content);
|
||||
} catch (FileNotFoundException fnfe) {
|
||||
fnfe.printStackTrace();
|
||||
} catch (IOException ioe) {
|
||||
ioe.printStackTrace();
|
||||
} finally {
|
||||
try {
|
||||
if (null != bw)
|
||||
bw.close();
|
||||
if (null != os)
|
||||
os.close();
|
||||
} catch (IOException ie) {
|
||||
ie.printStackTrace();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 获取Excel图片公共方法
|
||||
* @param sheetNum 当前sheet编号
|
||||
* @param sheet 当前sheet对象
|
||||
* @param workbook 工作簿对象
|
||||
* @return Map key:图片单元格索引(0_1_1)String,value:图片流PictureData
|
||||
*/
|
||||
public static Map<String, PictureData> getSheetPictrues(int sheetNum, Sheet sheet, Workbook workbook) {
|
||||
if(workbook instanceof HSSFWorkbook){
|
||||
return getSheetPictrues03(sheetNum, (HSSFSheet) sheet, (HSSFWorkbook) workbook);
|
||||
}else if(workbook instanceof XSSFWorkbook){
|
||||
return getSheetPictrues07(sheetNum, (XSSFSheet) sheet, (XSSFWorkbook) workbook);
|
||||
}else{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取Excel2003图片
|
||||
* @param sheetNum 当前sheet编号
|
||||
* @param sheet 当前sheet对象
|
||||
* @param workbook 工作簿对象
|
||||
* @return Map key:图片单元格索引(0_1_1)String,value:图片流PictureData
|
||||
* @throws IOException
|
||||
*/
|
||||
private static Map<String, PictureData> getSheetPictrues03(int sheetNum,
|
||||
HSSFSheet sheet, HSSFWorkbook workbook) {
|
||||
|
||||
Map<String, PictureData> sheetIndexPicMap = new HashMap<String, PictureData>();
|
||||
List<HSSFPictureData> pictures = workbook.getAllPictures();
|
||||
if (pictures.size() != 0) {
|
||||
for (HSSFShape shape : sheet.getDrawingPatriarch().getChildren()) {
|
||||
HSSFClientAnchor anchor = (HSSFClientAnchor) shape.getAnchor();
|
||||
shape.getLineWidth();
|
||||
if (shape instanceof HSSFPicture) {
|
||||
HSSFPicture pic = (HSSFPicture) shape;
|
||||
int pictureIndex = pic.getPictureIndex() - 1;
|
||||
HSSFPictureData picData = pictures.get(pictureIndex);
|
||||
String picIndex = String.valueOf(sheetNum) + "_"
|
||||
+ String.valueOf(anchor.getRow1()) + "_"
|
||||
+ String.valueOf(anchor.getCol1());
|
||||
sheetIndexPicMap.put(picIndex, picData);
|
||||
}
|
||||
}
|
||||
return sheetIndexPicMap;
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取Excel2007图片
|
||||
* @param sheetNum 当前sheet编号
|
||||
* @param sheet 当前sheet对象
|
||||
* @param workbook 工作簿对象
|
||||
* @return Map key:图片单元格索引(0_1_1)String,value:图片流PictureData
|
||||
*/
|
||||
private static Map<String, PictureData> getSheetPictrues07(int sheetNum,
|
||||
XSSFSheet sheet, XSSFWorkbook workbook) {
|
||||
Map<String, PictureData> sheetIndexPicMap = new HashMap<String, PictureData>();
|
||||
|
||||
for (POIXMLDocumentPart dr : sheet.getRelations()) {
|
||||
if (dr instanceof XSSFDrawing) {
|
||||
XSSFDrawing drawing = (XSSFDrawing) dr;
|
||||
List<XSSFShape> shapes = drawing.getShapes();
|
||||
for (XSSFShape shape : shapes) {
|
||||
XSSFPicture pic = (XSSFPicture) shape;
|
||||
XSSFClientAnchor anchor = pic.getPreferredSize();
|
||||
CTMarker ctMarker = anchor.getFrom();
|
||||
String picIndex = String.valueOf(sheetNum) + "_"
|
||||
+ ctMarker.getRow() + "_" + ctMarker.getCol();
|
||||
sheetIndexPicMap.put(picIndex, pic.getPictureData());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return sheetIndexPicMap;
|
||||
}
|
||||
|
||||
public static void printImg(List<Map<String, PictureData>> sheetList) throws IOException {
|
||||
for (Map<String, PictureData> map : sheetList) {
|
||||
printImg(map);
|
||||
}
|
||||
}
|
||||
|
||||
public static void printImg(Map<String, PictureData> map) throws IOException {
|
||||
Object key[] = map.keySet().toArray();
|
||||
for (int i = 0; i < map.size(); i++) {
|
||||
// 获取图片流
|
||||
PictureData pic = map.get(key[i]);
|
||||
// 获取图片索引
|
||||
String picName = key[i].toString();
|
||||
// 获取图片格式
|
||||
String ext = pic.suggestFileExtension();
|
||||
|
||||
byte[] data = pic.getData();
|
||||
|
||||
FileOutputStream out = new FileOutputStream("D:\\pic" + picName + "." + ext);
|
||||
out.write(data);
|
||||
out.flush();
|
||||
out.close();
|
||||
}
|
||||
}
|
||||
|
||||
private static int[] getColsOfTable(Sheet sheet) {
|
||||
int[] data = {0, 0};
|
||||
for (int i = sheet.getFirstRowNum(); i < sheet.getLastRowNum(); i++) {
|
||||
if (null != sheet.getRow(i)) {
|
||||
data[0] = sheet.getRow(i).getLastCellNum();
|
||||
data[1] = sheet.getRow(i).getHeight();
|
||||
} else
|
||||
continue;
|
||||
}
|
||||
return data;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,164 @@
|
||||
package com.jero.modules.split.util;
|
||||
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
/**
|
||||
* @des : excel版本判断类
|
||||
* @author: duyunbao
|
||||
* @email: 1114808306@qq.com
|
||||
* @date 2017/10/27 16:59
|
||||
**/
|
||||
public class WDWUtil {
|
||||
|
||||
/**
|
||||
* @method_name: isExcel2003
|
||||
* @des :是否是2003的excel,返回true是2003
|
||||
* @author: duyunbao
|
||||
* @param: [filePath]
|
||||
* @return: boolean
|
||||
* @date: 2017/10/27 16:57
|
||||
**/
|
||||
public static boolean isExcel2003(String filePath) {
|
||||
return filePath.matches("^.+\\.(?i)(xls)$");
|
||||
}
|
||||
|
||||
/**
|
||||
* @method_name: isExcel2007
|
||||
* @des : 是否是2007的excel,返回true是2007
|
||||
* @author: duyunbao
|
||||
* @param: [filePath]
|
||||
* @return: boolean
|
||||
* @date: 2017/10/27 16:57
|
||||
**/
|
||||
public static boolean isExcel2007(String filePath) {
|
||||
return filePath.matches("^.+\\.(?i)(xlsx)$");
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 判断字符串是否是整数
|
||||
* @MethodName:isInteger
|
||||
* @author: DuYunbao
|
||||
* @date: 2018/5/22 18:00
|
||||
*/
|
||||
public static boolean isNumeric(String str){
|
||||
for (int i = str.length();--i>=0;){
|
||||
if (!Character.isDigit(str.charAt(i))){
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
/**方法二:推荐,速度最快
|
||||
* 判断是否为整数
|
||||
* @param str 传入的字符串
|
||||
* @return 是整数返回true,否则返回false
|
||||
*/
|
||||
public static boolean isInteger(String str) {
|
||||
Pattern pattern = Pattern.compile("^[-\\+]?[\\d]*$");
|
||||
return pattern.matcher(str).matches();
|
||||
}
|
||||
|
||||
/**
|
||||
* 字母或数字
|
||||
*
|
||||
* @MethodName:isLetterDigitOrChinese
|
||||
* @author: DuYunbao
|
||||
* @date: 2018/5/30 15:26
|
||||
*/
|
||||
public static boolean isLetterOrNumber(String str) {
|
||||
String regex = "^(\\d|[a-zA-Z])+$";
|
||||
return !str.matches(regex);
|
||||
}
|
||||
|
||||
/**
|
||||
* 汉字、字母、()
|
||||
*
|
||||
* @MethodName:isLetterOrChineseOrChar1
|
||||
* @author: DuYunbao
|
||||
* @date: 2018/5/30 15:53
|
||||
*/
|
||||
public static boolean isLetterOrChineseOrChar1(String str) {
|
||||
String regex = "[^\\a-\\z\\A-\\Z\\u4E00-\\u9FA5\\()\\()]";
|
||||
return str.matches(regex);
|
||||
}
|
||||
|
||||
/**
|
||||
* 汉字、字母、数字
|
||||
*
|
||||
* @MethodName:isLetterOrChineseOrNumber
|
||||
* @author: DuYunbao
|
||||
* @date: 2018/5/30 15:56
|
||||
*/
|
||||
public static boolean isLetterOrChineseOrNumber(String str) {
|
||||
String regex = "^[\\u4E00-\\u9FA5A-Za-z0-9]+$";
|
||||
return !str.matches(regex);
|
||||
}
|
||||
|
||||
/**
|
||||
* 汉字、字母、()、-、下划线
|
||||
*
|
||||
* @MethodName:isChineseOrLetterOrUnderlineOrChar1
|
||||
* @author: DuYunbao
|
||||
* @date: 2018/5/30 16:03
|
||||
*/
|
||||
public static boolean isChineseOrLetterOrUnderlineOrChar1(String str) {
|
||||
String regex = "^[\\u4E00-\\u9FA5A-Za-z_\\-\\()\\()]+$";
|
||||
return !str.matches(regex);
|
||||
}
|
||||
|
||||
/**
|
||||
* 数字
|
||||
*
|
||||
* @MethodName:isNumbee
|
||||
* @author: DuYunbao
|
||||
* @date: 2018/5/30 16:09
|
||||
*/
|
||||
public static boolean isNumber(String str) {
|
||||
String regex = "\\D";
|
||||
return str.matches(regex);
|
||||
}
|
||||
|
||||
/**
|
||||
* 数字、大写字母、-
|
||||
*
|
||||
* @MethodName:isNumberOrLowerLetterOrChar1
|
||||
* @author: DuYunbao
|
||||
* @date: 2018/5/30 16:41
|
||||
*/
|
||||
public static boolean isNumberOrLowerLetterOrChar1(String str) {
|
||||
String regex = "^[A-Z0-9\\-]+$";
|
||||
return !str.matches(regex);
|
||||
}
|
||||
|
||||
/**
|
||||
* 汉字、数字、字母、()、-、下划线
|
||||
*
|
||||
* @MethodName:isChineseOrNumberOrLetterOrUnderlineOrChar
|
||||
* @author: DuYunbao
|
||||
* @date: 2018/5/30 16:45
|
||||
*/
|
||||
public static boolean isChineseOrNumberOrLetterOrUnderlineOrChar(String str) {
|
||||
String regex = "^[\\u4E00-\\u9FA5A-Za-z0-9_\\-\\()\\()]+$";
|
||||
return !str.matches(regex);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 去除整数含有小数点
|
||||
* @MethodName:subStr
|
||||
* @author: DuYunbao
|
||||
* @date: 2018/5/31 11:19
|
||||
*/
|
||||
public static String subStr(String text) {
|
||||
if (StringUtils.isNotEmpty(text)) {
|
||||
if(text.contains(".0") && text.substring(text.length()-2,text.length()).equals(".0")) {
|
||||
text = text.substring(0,text.length()-2);
|
||||
}
|
||||
}
|
||||
return text;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user