Commit fbbf4eaf authored by 赵啸非's avatar 赵啸非

Merge remote-tracking branch 'origin/master'

parents 8d66dc4c e8d4690e
...@@ -17,5 +17,6 @@ public class MatterDatumVo extends BaseEntityLong { ...@@ -17,5 +17,6 @@ public class MatterDatumVo extends BaseEntityLong {
private List<MatterDatumFileEntity> datumFileList; private List<MatterDatumFileEntity> datumFileList;
/** 事项id列表 */
private List <Long> matterIdList;
} }
\ No newline at end of file
...@@ -37,4 +37,7 @@ public class SiteMatterVo extends BaseEntityLong { ...@@ -37,4 +37,7 @@ public class SiteMatterVo extends BaseEntityLong {
/** 事项类型排除列表 */ /** 事项类型排除列表 */
private List <String> eventTypeShowNotList; private List <String> eventTypeShowNotList;
/** 序号,主键,自增长列表 */
private List <Long> idList;
} }
\ No newline at end of file
...@@ -510,9 +510,14 @@ ...@@ -510,9 +510,14 @@
background-color: #42dac8; background-color: #42dac8;
border-color: #42dac8; border-color: #42dac8;
} }
.ant-select{ .ant-select {
min-width: 120px min-width: 120px;
} }
.ant-calendar-picker{ .ant-calendar-picker {
min-width: 270px; min-width: 270px;
} }
\ No newline at end of file .ellipsis {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
export default { export default {
data() { data() {
return { return {
nowTime: "", nowTime: "",
nowDay: "", nowDay: "",
nowWeek: "", nowWeek: "",
timer: null, timer: null,
tableLoading: false, tableLoading: false,
tablePagination: { tablePagination: {
current: 1, current: 1,
pageSize: 10, pageSize: 10,
total: 0, total: 0,
showQuickJumper: true, //是否可以快速跳转至某页 showQuickJumper: true, //是否可以快速跳转至某页
showSizeChanger: true, //是否可以改变 pageSize showSizeChanger: true, //是否可以改变 pageSize
showTotal: (total, range) => `共${total}条`, showTotal: (total, range) => `共${total}条`,
pageSizeOptions: ["10", "20", "30"], pageSizeOptions: ["10", "20", "30", "40", "50", "100", "200"],
}, },
tableSourceData: [], tableSourceData: [],
tableSelectedRows: [], //选中的行数据 tableSelectedRows: [], //选中的行数据
tableSelectedKeys: [], //选中的id tableSelectedKeys: [], //选中的id
sourceInfoForm: {}, sourceInfoForm: {},
};
},
computed: {},
created() {},
beforeDestroy() {
if (this.timer) {
clearInterval(this.timer);
}
},
methods: {
//导出
exportTable(tHeader, filterVal, transformText) {
console.log(tHeader, filterVal);
let tableData = []; //列表数据
if (this.tableSelectedRows.length == 0) {
tableData = this.downAllData();
} else {
tableData = JSON.parse(JSON.stringify(this.tableSelectedRows));
}
// let tableColumns = JSON.parse(JSON.stringify(this.tableHeaders));
console.log("表格数据", tableData);
// console.log('表头内容', tableColumns)
// let newTableData = tableData.map(item => {
// // console.log(item)
// })
let exprotExcelName = `${this.nowDay} / ${this.nowTime} / ${
this.$route["meta"]["title"] || "报表信息统计"
}`;
this.exportExcel(tHeader, filterVal, tableData, exprotExcelName);
},
exportExcel(tHeader, filterVal, tableData, exprotExcelName) {
// console.log(tableColumns);
// console.log(tableData);
// console.log(exprotExcelName);
let exportHeaderName = []; // ***即将导出的表头
let exportData = tableData.map((item, j) => {
// ***即将导出的表格
let obj = {};
for (let i = 0; i < tableColumns.length; i++) {
for (let key in item) {
if (tableColumns[i]["dataIndex"] == key) {
console.log(tableColumns[i]["dataIndex"]);
if (j == 0) {
exportHeaderName.push(tableColumns[i]["title"]);
}
obj[tableColumns[i]["title"]] = item[key];
// console.log(tableColumns[i]["title"]);
break;
}
}
} }
return obj;
});
// console.log(exportData);
// console.log(exportHeaderName);
// 开始导出 ****
let option = {};
option.fileName = exprotExcelName;
option.datas = [
{
sheetData: exportData,
sheetName: "sheet",
sheetHeader: tHeader,
sheetFilter: tHeader,
},
];
let toExcel = new this.$ExportJsonExcel(option);
toExcel.saveExcel();
}, },
computed: { setMoment() {
this.timer = setInterval(() => {
this.nowDay = this.$moment(new Date()).format("YYYY年MM月DD日");
this.nowWeek = this.$moment().format("dddd");
this.nowTime = this.$moment(new Date()).format("LTS");
}, 1000);
}, },
created() {
onSelectChange(selectedRowKeys, selectedRows) {
}, this.tableSelectedKeys = selectedRowKeys;
beforeDestroy() { this.tableSelectedRows = selectedRows;
if (this.timer) { // console.log('选中的ID', this.tableSelectedKeys);
clearInterval(this.timer); // console.log('选中的行数据', this.tableSelectedRows);
}
}, },
methods: {
//导出
exportTable(tHeader, filterVal, transformText) {
console.log(tHeader, filterVal)
let tableData = []; //列表数据
if (this.tableSelectedRows.length == 0) {
tableData = this.downAllData()
} else {
tableData = JSON.parse(JSON.stringify(this.tableSelectedRows));
}
// let tableColumns = JSON.parse(JSON.stringify(this.tableHeaders));
console.log('表格数据', tableData)
// console.log('表头内容', tableColumns)
// let newTableData = tableData.map(item => {
// // console.log(item)
// })
let exprotExcelName = `${this.nowDay} / ${this.nowTime} / ${this.$route['meta']['title'] || '报表信息统计'}`;
this.exportExcel(tHeader, filterVal, tableData, exprotExcelName);
},
exportExcel(tHeader, filterVal, tableData, exprotExcelName) {
// console.log(tableColumns);
// console.log(tableData);
// console.log(exprotExcelName);
let exportHeaderName = []; // ***即将导出的表头
let exportData = tableData.map((item, j) => { // ***即将导出的表格
let obj = {};
for (let i = 0; i < tableColumns.length; i++) {
for (let key in item) {
if (tableColumns[i]["dataIndex"] == key) {
console.log(tableColumns[i]["dataIndex"])
if (j == 0) {
exportHeaderName.push(tableColumns[i]["title"]);
}
obj[tableColumns[i]["title"]] = item[key];
// console.log(tableColumns[i]["title"]);
break;
}
}
}
return obj;
})
// console.log(exportData);
// console.log(exportHeaderName);
// 开始导出 ****
let option = {};
option.fileName = exprotExcelName;
option.datas = [
{
sheetData: exportData,
sheetName: "sheet",
sheetHeader: tHeader,
sheetFilter: tHeader,
},
];
let toExcel = new this.$ExportJsonExcel(option);
toExcel.saveExcel();
},
setMoment() {
this.timer = setInterval(() => {
this.nowDay = this.$moment(new Date()).format("YYYY年MM月DD日");
this.nowWeek = this.$moment().format('dddd');
this.nowTime = this.$moment(new Date()).format("LTS");
}, 1000)
},
onSelectChange(selectedRowKeys, selectedRows) {
this.tableSelectedKeys = selectedRowKeys;
this.tableSelectedRows = selectedRows;
// console.log('选中的ID', this.tableSelectedKeys);
// console.log('选中的行数据', this.tableSelectedRows);
},
pagTableChange(pagination) {
this.tablePagination = pagination
},
pagTableChange(pagination) {
this.tablePagination = pagination;
}, },
} },
\ No newline at end of file };
...@@ -21,15 +21,15 @@ ...@@ -21,15 +21,15 @@
.ant-modal-confirm { // .ant-modal-confirm {
.ant-modal { // .ant-modal {
top: 328px !important; // top: 328px !important;
// position: absolute !important; // position: absolute !important;
// left: 50% !important; // left: 50% !important;
// top: 50% !important; // top: 50% !important;
// transform: translate(-50%, -50%) !important; // transform: translate(-50%, -50%) !important;
} // }
} // }
::-webkit-scrollbar { ::-webkit-scrollbar {
width: 7px; width: 7px;
......
...@@ -20,7 +20,6 @@ ...@@ -20,7 +20,6 @@
<a-select <a-select
v-model="evaChoose" v-model="evaChoose"
placeholder="全部评价" placeholder="全部评价"
@change="changeEvaChoose"
mode="multiple" mode="multiple"
style="max-width: 140px" style="max-width: 140px"
> >
...@@ -34,7 +33,6 @@ ...@@ -34,7 +33,6 @@
<a-select <a-select
v-model="evaFrom" v-model="evaFrom"
placeholder="全部来源" placeholder="全部来源"
@change="changeEvaFrom"
mode="multiple" mode="multiple"
style="max-width: 160px" style="max-width: 160px"
> >
...@@ -59,11 +57,12 @@ ...@@ -59,11 +57,12 @@
style="width: 280px" style="width: 280px"
v-model="searchName" v-model="searchName"
placeholder="请输入评价人姓名或部门名称搜索" placeholder="请输入评价人姓名或部门名称搜索"
@pressEnter="handleSearch"
> >
<a-icon slot="prefix" type="search" /> <a-icon slot="prefix" type="search" />
</a-input> </a-input>
<a-button type="primary" @click="togetevalist()">搜索</a-button> <a-button type="primary" @click="handleSearch">搜索</a-button>
<a-button @click="clearnAllChoose()">重置</a-button> <a-button @click="clearnAllChoose">重置</a-button>
</a-space> </a-space>
</span> </span>
</div> </div>
...@@ -78,7 +77,7 @@ ...@@ -78,7 +77,7 @@
}" }"
:scroll="{ y: 590 }" :scroll="{ y: 590 }"
:pagination="tablePagination" :pagination="tablePagination"
@change="pagTableChange" @change="changeTablePage"
:loading="tableLoading" :loading="tableLoading"
:columns="tableHeaders" :columns="tableHeaders"
:dataSource="tableSourceData" :dataSource="tableSourceData"
...@@ -99,16 +98,18 @@ ...@@ -99,16 +98,18 @@
/> />
</template> </template>
<template slot="操作" slot-scope="text, record"> <template slot="操作" slot-scope="text, record">
<a-button type="link" style="color: #ff7370">删除</a-button> <a-button
type="link"
style="color: #ff7370"
@click="handleDel(record.id)"
>删除</a-button
>
<a-button type="link" @click="openHandlingDetails(record)" <a-button type="link" @click="openHandlingDetails(record)"
>详情</a-button >详情</a-button
> >
</template> </template>
</a-table> </a-table>
<HandlingDetails ref="HandlingDetails" /> <HandlingDetails ref="HandlingDetails" />
<a-modal v-model="visible" title="系统提示" @ok="togetEvaDetil()">
{{ content }}
</a-modal>
</div> </div>
</div> </div>
</template> </template>
...@@ -137,7 +138,10 @@ export default { ...@@ -137,7 +138,10 @@ export default {
width: "60px", width: "60px",
key: "index", key: "index",
align: "center", align: "center",
customRender: (text, record, index) => `${index + 1}`, customRender: (text, record, index) =>
(this.tablePagination.current - 1) * this.tablePagination.pageSize +
index +
1,
}, },
{ {
title: "部门名称", title: "部门名称",
...@@ -246,9 +250,7 @@ export default { ...@@ -246,9 +250,7 @@ export default {
evaChoose: [], //评价选项 evaChoose: [], //评价选项
evaFrom: [], // 评价来源 evaFrom: [], // 评价来源
evaDates: [], // 评价日期 evaDates: [], // 评价日期
content: "此操作将删除该评价信息,是否继续?", baseurl: process.env.VUE_APP_API_PHP_URL,
delId: null, //当前删除id
baseurl: "",
optonList: [], optonList: [],
tableSelectedKeys: [], tableSelectedKeys: [],
tableSelectedRows: [], tableSelectedRows: [],
...@@ -279,24 +281,18 @@ export default { ...@@ -279,24 +281,18 @@ export default {
components: { components: {
HandlingDetails, HandlingDetails,
}, },
mounted() { created() {
this.setMoment();
// // 设置默认时间为今天
// this.evaDates = [
// this.$moment(new Date()).format("YYYY-MM-DD"),
// this.$moment(new Date()).format("YYYY-MM-DD"),
// ];
this.togetevalist(); this.togetevalist();
},
mounted() {
getOptonList().then((res) => { getOptonList().then((res) => {
console.log(res);
if (res.code == 1) { if (res.code == 1) {
this.optonList = res.data; this.optonList = res.data;
} }
}); });
}, },
methods: { methods: {
// 重置
clearnAllChoose() { clearnAllChoose() {
this.evaChoose = []; this.evaChoose = [];
this.evaFrom = []; this.evaFrom = [];
...@@ -317,32 +313,17 @@ export default { ...@@ -317,32 +313,17 @@ export default {
this.tableSelectedRows = []; this.tableSelectedRows = [];
this.togetevalist(); this.togetevalist();
}, },
// 批量删除
delTable() { delTable() {
// console.log(this.tableSelectedRows);
this.visible = true; this.visible = true;
if (!this.tableSelectedRows.length) { if (!this.tableSelectedRows.length) {
this.content = "一条评论都没有选中"; this.$message.warning("请先勾选数据");
} else { return;
this.content = "此操作将删除这些评价信息,是否继续?";
let arr = [];
this.tableSelectedRows.forEach((item) => {
arr.push(item.id);
});
this.delId = arr;
} }
let ids = this.tableSelectedRows.map((v) => v.id).join(",");
this.handleDel(ids);
}, },
togetEvaDetil() { // 办理明细
getEvaDetil({
id: this.delId,
}).then((res) => {
{
this.delId = null;
this.visible = false;
// 要刷新页面
this.togetevalist();
}
});
},
togetQueEvaData(record) { togetQueEvaData(record) {
getQueEvaData({ getQueEvaData({
id: record.id, id: record.id,
...@@ -353,6 +334,7 @@ export default { ...@@ -353,6 +334,7 @@ export default {
} }
}); });
}, },
// 评价详情
togetEvaData(id) { togetEvaData(id) {
getEvaData({ getEvaData({
id: id, id: id,
...@@ -364,71 +346,46 @@ export default { ...@@ -364,71 +346,46 @@ export default {
} }
}); });
}, },
togetevalist() { // 获取数据列表
async togetevalist(search = {}) {
// 拼接评价选项 // 拼接评价选项
let chooseStr = this.evaChoose.join(","); let option_id = this.evaChoose.join(",");
// 要先拼接评价来源 // 要先拼接评价来源
let fromString = this.evaFrom.join(","); let pjxt = this.evaFrom.join(",");
getEvaList({ let res = await getEvaList({
page: this.tablePagination.current, page: this.tablePagination.current,
size: this.tablePagination.pageSize, size: this.tablePagination.pageSize,
type: "bmpj", type: "bmpj",
option_id: chooseStr, option_id,
pjxt: fromString, //传0代表全部 pjxt,
time: this.BegindAndEndTime, time: this.BegindAndEndTime,
info: this.searchName, info: this.searchName,
}).then((res) => { ...search,
console.log(11111, res);
const { code, data } = res;
if (code == 1) {
this.tableSourceData = data.data.data;
this.evaCount = data.count;
this.tablePagination.total = data.count;
}
}); });
}, if (res.code == 1) {
changeEvaFrom(val) { let { data, total } = res.data.data;
if (val.length) { if (!data.length && this.tablePagination.current > 1) {
this.evaFrom = val; this.tablePagination.current -= 1;
} else { this.togetevalist();
this.evaFrom = [0]; }
this.tableSourceData = data;
this.evaCount = total;
this.tablePagination.total = total;
return data;
} }
}, },
changeEvaChoose(val) { // 分页
this.evaChoose = val; changeTablePage(page) {
}, this.pagTableChange(page);
this.togetevalist();
QueueState(type) {
switch (type) {
case 0:
return "type1";
case 1:
return "type2";
default:
return "type0";
}
}, },
//详情模块 //详情模块
openHandlingDetails(record) { openHandlingDetails(record) {
// 判断为窗口屏或者其他状况,调用不同接口
// if(record.pjxt==1){
// this.$refs.HandlingDetails.modalInfo.title = "办理明细";
// this.$refs.HandlingDetails.modalInfo.show = 1;
// this.togetQueEvaData(record)
// }else{
this.$refs.HandlingDetails.modalInfo.title = "评价详情"; this.$refs.HandlingDetails.modalInfo.title = "评价详情";
this.$refs.HandlingDetails.modalInfo.show = 2; this.$refs.HandlingDetails.modalInfo.show = 2;
this.togetEvaData(record.id); this.togetEvaData(record.id);
// }
this.$refs.HandlingDetails.modalInfo.visible = true; this.$refs.HandlingDetails.modalInfo.visible = true;
}, },
//删除模态框
showModal(record) {
this.visible = true;
this.delId = record.id;
},
// 选择数据 // 选择数据
onSelectChange(keys, rows) { onSelectChange(keys, rows) {
this.tableSelectedKeys = keys; this.tableSelectedKeys = keys;
...@@ -467,49 +424,52 @@ export default { ...@@ -467,49 +424,52 @@ export default {
"办事部门评价记录报表" + this.$moment().format("YYYYMMDDHHmmss") "办事部门评价记录报表" + this.$moment().format("YYYYMMDDHHmmss")
); );
} else { } else {
// 拼接评价选项 let data = await this.togetevalist({
let chooseStr = this.evaChoose.join(","); page: 1,
// 要先拼接评价来源
let fromString = this.evaFrom.join(",");
getEvaList({
page: this.tablePagination.current,
size: -1, size: -1,
type: "bmpj",
option_id: chooseStr,
pjxt: fromString, //传0代表全部
time: this.BegindAndEndTime,
info: this.searchName,
}).then((res) => {
const { code, data } = res;
if (code == 1) {
if (!data.data.data.length) return;
for (let item of data.data.data) {
Object.keys(obj).forEach((key) => {
if (item.pjxt == key) {
item.pjxt = obj[key];
}
});
}
export2Excel(
this.tHeader,
this.filterVal,
data.data.data,
"办事部门评价记录报表" + this.$moment().format("YYYYMMDDHHmmss")
);
}
}); });
if (!data.length) return;
for (let item of data) {
Object.keys(obj).forEach((key) => {
if (item.pjxt == key) {
item.pjxt = obj[key];
}
});
}
export2Excel(
this.tHeader,
this.filterVal,
data,
"办事部门评价记录报表" + this.$moment().format("YYYYMMDDHHmmss")
);
} }
this.btnLoading = false; this.btnLoading = false;
}, },
}, // 删除
watch: { handleDel(id) {
tablePagination() { let _this = this;
this.togetevalist(); this.$confirm({
title: "系统提示",
content: "删除不可恢复,确定要删除吗?",
okText: "确定",
okType: "danger",
cancelText: "取消",
centered: true,
icon: "exclamation-circle",
maskClosable: true,
async onOk() {
let res = await getEvaDetil({
id,
});
let { code, msg } = res;
if (code == 1) {
_this.$message.success(msg);
_this.togetevalist();
}
},
});
}, },
}, },
created() {
this.baseurl = process.env.VUE_APP_API_PHP_URL;
},
}; };
</script> </script>
......
...@@ -20,7 +20,6 @@ ...@@ -20,7 +20,6 @@
<a-select <a-select
v-model="evaChoose" v-model="evaChoose"
placeholder="全部评价" placeholder="全部评价"
@change="changeEvaChoose"
mode="multiple" mode="multiple"
style="max-width: 140px" style="max-width: 140px"
> >
...@@ -34,7 +33,6 @@ ...@@ -34,7 +33,6 @@
<a-select <a-select
v-model="evaFrom" v-model="evaFrom"
placeholder="全部来源" placeholder="全部来源"
@change="changeEvaFrom"
mode="multiple" mode="multiple"
style="max-width: 160px" style="max-width: 160px"
> >
...@@ -59,11 +57,12 @@ ...@@ -59,11 +57,12 @@
style="width: 280px" style="width: 280px"
v-model="searchName" v-model="searchName"
placeholder="请输入评价人姓名或排号编号搜索" placeholder="请输入评价人姓名或排号编号搜索"
@pressEnter="handleSearch"
> >
<a-icon slot="prefix" type="search" /> <a-icon slot="prefix" type="search" />
</a-input> </a-input>
<a-button type="primary" @click="togetevalist()">搜索</a-button> <a-button type="primary" @click="handleSearch">搜索</a-button>
<a-button @click="clearnAllChoose()">重置</a-button> <a-button @click="clearnAllChoose">重置</a-button>
</a-space> </a-space>
</span> </span>
</div> </div>
...@@ -78,7 +77,7 @@ ...@@ -78,7 +77,7 @@
}" }"
:scroll="{ y: 590 }" :scroll="{ y: 590 }"
:pagination="tablePagination" :pagination="tablePagination"
@change="pagTableChange" @change="changeTablePage"
:loading="tableLoading" :loading="tableLoading"
:columns="tableHeaders" :columns="tableHeaders"
:dataSource="tableSourceData" :dataSource="tableSourceData"
...@@ -102,7 +101,7 @@ ...@@ -102,7 +101,7 @@
<a-button <a-button
type="link" type="link"
style="color: #ff7370" style="color: #ff7370"
@click="showModal(record)" @click="handleDel(record.id)"
>删除</a-button >删除</a-button
> >
<a-button type="link" @click="openHandlingDetails(record)" <a-button type="link" @click="openHandlingDetails(record)"
...@@ -111,9 +110,6 @@ ...@@ -111,9 +110,6 @@
</template> </template>
</a-table> </a-table>
<HandlingDetails ref="HandlingDetails" /> <HandlingDetails ref="HandlingDetails" />
<a-modal v-model="visible" title="系统提示" @ok="togetEvaDetil()">
{{ content }}
</a-modal>
</div> </div>
</div> </div>
</template> </template>
...@@ -142,7 +138,10 @@ export default { ...@@ -142,7 +138,10 @@ export default {
width: "60px", width: "60px",
key: "index", key: "index",
align: "center", align: "center",
customRender: (text, record, index) => `${index + 1}`, customRender: (text, record, index) =>
(this.tablePagination.current - 1) * this.tablePagination.pageSize +
index +
1,
}, },
{ {
title: "排队编号", title: "排队编号",
...@@ -251,9 +250,7 @@ export default { ...@@ -251,9 +250,7 @@ export default {
evaChoose: [], //评价选项 evaChoose: [], //评价选项
evaFrom: [], // 评价来源 evaFrom: [], // 评价来源
evaDates: [], // 评价日期 evaDates: [], // 评价日期
content: "此操作将删除该评价信息,是否继续?", baseurl: process.env.VUE_APP_API_PHP_URL,
delId: null, //当前删除id
baseurl: "",
optonList: [], optonList: [],
tableSelectedKeys: [], tableSelectedKeys: [],
tableSelectedRows: [], tableSelectedRows: [],
...@@ -284,24 +281,13 @@ export default { ...@@ -284,24 +281,13 @@ export default {
components: { components: {
HandlingDetails, HandlingDetails,
}, },
mounted() { created() {
this.setMoment();
// 设置默认时间为今天
// this.evaDates = [
// this.$moment(new Date()).format("YYYY-MM-DD"),
// this.$moment(new Date()).format("YYYY-MM-DD"),
// ];
this.togetevalist(); this.togetevalist();
this.getOptonList();
getOptonList().then((res) => {
console.log(res);
if (res.code == 1) {
this.optonList = res.data;
}
});
}, },
methods: { methods: {
// 重置
clearnAllChoose() { clearnAllChoose() {
this.evaChoose = []; this.evaChoose = [];
this.evaFrom = []; this.evaFrom = [];
...@@ -315,32 +301,31 @@ export default { ...@@ -315,32 +301,31 @@ export default {
]; ];
this.togetevalist(); this.togetevalist();
}, },
// 搜索
handleSearch() {
this.tablePagination.current = 1;
this.tableSelectedKeys = [];
this.tableSelectedRows = [];
this.togetevalist();
},
// 获取评价选项
async getOptonList() {
let res = await getOptonList();
if (res.code == 1) {
this.optonList = res.data;
}
},
// 批量删除
delTable() { delTable() {
this.visible = true; this.visible = true;
if (!this.tableSelectedRows.length) { if (!this.tableSelectedRows.length) {
this.content = "一条评论都没有选中"; this.$message.warning("请先勾选数据");
} else { return;
this.content = "此操作将删除这些评价信息,是否继续?";
let arr = [];
this.tableSelectedRows.forEach((item) => {
arr.push(item.id);
});
this.delId = arr;
} }
let ids = this.tableSelectedRows.map((v) => v.id).join(",");
this.handleDel(ids);
}, },
togetEvaDetil() { // 办理明细
getEvaDetil({
id: this.delId,
}).then((res) => {
{
this.delId = null;
this.visible = false;
// 要刷新页面
this.togetevalist();
}
});
},
togetQueEvaData(record) { togetQueEvaData(record) {
getQueEvaData({ getQueEvaData({
id: record.id, id: record.id,
...@@ -352,87 +337,58 @@ export default { ...@@ -352,87 +337,58 @@ export default {
} }
}); });
}, },
// 评价详情
togetEvaData(id) { togetEvaData(id) {
getEvaData({ getEvaData({
id: id, id: id,
}).then((res) => { }).then((res) => {
console.log(res);
const { code, data } = res; const { code, data } = res;
if (code == 1) { if (code == 1) {
this.$refs.HandlingDetails.queEvaData = data; this.$refs.HandlingDetails.queEvaData = data;
} }
}); });
}, },
togetevalist() { // 获取评价列表
async togetevalist(search = {}) {
// 拼接评价选项 // 拼接评价选项
let chooseStr = this.evaChoose.join(","); let option_id = this.evaChoose.join(",");
// 要先拼接评价来源 // 要先拼接评价来源
let fromString = this.evaFrom.join(","); let pjxt = this.evaFrom.join(",");
getEvaList({ let res = await getEvaList({
page: this.tablePagination.current, page: this.tablePagination.current,
size: this.tablePagination.pageSize, size: this.tablePagination.pageSize,
type: "phpj", type: "phpj",
option_id: chooseStr, option_id,
pjxt: fromString, //传0代表全部 pjxt,
time: this.evaDates, time: this.BegindAndEndTime,
info: this.searchName, info: this.searchName,
}).then((res) => { ...search,
const { code, data } = res;
if (code == 1) {
this.tableSourceData = data.data.data;
this.evaCount = data.count;
this.tablePagination.total = data.count;
}
}); });
}, if (res.code == 1) {
changeEvaFrom(val) { let { data, total } = res.data.data;
if (val.length) { if (!data.length && this.tablePagination.current > 1) {
this.evaFrom = val; this.tablePagination.current -= 1;
} else { this.togetevalist();
this.evaFrom = [0]; }
this.tableSourceData = data;
this.evaCount = total;
this.tablePagination.total = total;
return data;
} }
}, },
changeEvaChoose(val) { // 分页
this.evaChoose = val; changeTablePage(page) {
this.pagTableChange(page);
this.togetevalist();
}, },
// rangePickerChange(val) {
// this.evaDates = [
// this.$moment(val[0]).format("YYYY-MM-DD"),
// this.$moment(val[1]).format("YYYY-MM-DD"),
// ];
// },
QueueState(type) {
switch (type) {
case 0:
return "type1";
case 1:
return "type2";
default:
return "type0";
}
},
//详情模块 //详情模块
openHandlingDetails(record) { openHandlingDetails(record) {
// 判断为窗口屏或者其他状况,调用不同接口
// if(record.pjxt==1){
this.$refs.HandlingDetails.modalInfo.title = "办理明细"; this.$refs.HandlingDetails.modalInfo.title = "办理明细";
this.$refs.HandlingDetails.modalInfo.show = 1; this.$refs.HandlingDetails.modalInfo.show = 1;
this.togetQueEvaData(record); this.togetQueEvaData(record);
// }else{
// this.$refs.HandlingDetails.modalInfo.title = "评价详情";
// this.$refs.HandlingDetails.modalInfo.show = 2;
// this.togetEvaData(record.id)
// }
this.$refs.HandlingDetails.modalInfo.visible = true; this.$refs.HandlingDetails.modalInfo.visible = true;
}, },
//删除模态框
showModal(record) {
this.visible = true;
this.delId = record.id;
},
// 选择数据 // 选择数据
onSelectChange(keys, rows) { onSelectChange(keys, rows) {
this.tableSelectedKeys = keys; this.tableSelectedKeys = keys;
...@@ -471,49 +427,52 @@ export default { ...@@ -471,49 +427,52 @@ export default {
"办理事项评价记录报表" + this.$moment().format("YYYYMMDDHHmmss") "办理事项评价记录报表" + this.$moment().format("YYYYMMDDHHmmss")
); );
} else { } else {
// 拼接评价选项 let data = await this.togetevalist({
let chooseStr = this.evaChoose.join(","); page: 1,
// 要先拼接评价来源
let fromString = this.evaFrom.join(",");
getEvaList({
page: this.tablePagination.current,
size: -1, size: -1,
type: "phpj",
option_id: chooseStr,
pjxt: fromString, //传0代表全部
time: this.BegindAndEndTime,
info: this.searchName,
}).then((res) => {
const { code, data } = res;
if (code == 1) {
if (!data.data.data.length) return;
for (let item of data.data.data) {
Object.keys(obj).forEach((key) => {
if (item.pjxt == key) {
item.pjxt = obj[key];
}
});
}
export2Excel(
this.tHeader,
this.filterVal,
data.data.data,
"办理事项评价记录报表" + this.$moment().format("YYYYMMDDHHmmss")
);
}
}); });
if (!data.length) return;
for (let item of data) {
Object.keys(obj).forEach((key) => {
if (item.pjxt == key) {
item.pjxt = obj[key];
}
});
}
export2Excel(
this.tHeader,
this.filterVal,
data,
"办理事项评价记录报表" + this.$moment().format("YYYYMMDDHHmmss")
);
} }
this.btnLoading = false; this.btnLoading = false;
}, },
}, // 删除
watch: { handleDel(id) {
tablePagination() { let _this = this;
this.togetevalist(); this.$confirm({
title: "系统提示",
content: "删除不可恢复,确定要删除吗?",
okText: "确定",
okType: "danger",
cancelText: "取消",
centered: true,
icon: "exclamation-circle",
maskClosable: true,
async onOk() {
let res = await getEvaDetil({
id,
});
let { code, msg } = res;
if (code == 1) {
_this.$message.success(msg);
_this.togetevalist();
}
},
});
}, },
}, },
created() {
this.baseurl = process.env.VUE_APP_API_PHP_URL;
},
}; };
</script> </script>
......
...@@ -20,7 +20,6 @@ ...@@ -20,7 +20,6 @@
<a-select <a-select
v-model="evaChoose" v-model="evaChoose"
placeholder="全部评价" placeholder="全部评价"
@change="changeEvaChoose"
mode="multiple" mode="multiple"
style="max-width: 140px" style="max-width: 140px"
> >
...@@ -34,7 +33,6 @@ ...@@ -34,7 +33,6 @@
<a-select <a-select
v-model="evaFrom" v-model="evaFrom"
placeholder="全部来源" placeholder="全部来源"
@change="changeEvaFrom"
mode="multiple" mode="multiple"
style="max-width: 160px" style="max-width: 160px"
> >
...@@ -59,6 +57,7 @@ ...@@ -59,6 +57,7 @@
style="width: 280px" style="width: 280px"
v-model="searchName" v-model="searchName"
placeholder="请输入评价人姓名或窗口编号搜索" placeholder="请输入评价人姓名或窗口编号搜索"
@pressEnter="handleSearch"
> >
<a-icon slot="prefix" type="search" /> <a-icon slot="prefix" type="search" />
</a-input> </a-input>
...@@ -78,7 +77,7 @@ ...@@ -78,7 +77,7 @@
}" }"
:scroll="{ y: 590 }" :scroll="{ y: 590 }"
:pagination="tablePagination" :pagination="tablePagination"
@change="pagTableChange" @change="changeTablePage"
:loading="tableLoading" :loading="tableLoading"
:columns="tableHeaders" :columns="tableHeaders"
:dataSource="tableSourceData" :dataSource="tableSourceData"
...@@ -93,8 +92,6 @@ ...@@ -93,8 +92,6 @@
<img <img
v-else v-else
:src="baseurl + '/' + text" :src="baseurl + '/' + text"
alt=""
srcset=""
style="max-width: 100px; max-height: 100px" style="max-width: 100px; max-height: 100px"
/> />
</template> </template>
...@@ -102,7 +99,7 @@ ...@@ -102,7 +99,7 @@
<a-button <a-button
type="link" type="link"
style="color: #ff7370" style="color: #ff7370"
@click="showModal(record)" @click="handleDel(record.id)"
>删除</a-button >删除</a-button
> >
<a-button type="link" @click="openHandlingDetails(record)" <a-button type="link" @click="openHandlingDetails(record)"
...@@ -111,9 +108,6 @@ ...@@ -111,9 +108,6 @@
</template> </template>
</a-table> </a-table>
<HandlingDetails ref="HandlingDetails" /> <HandlingDetails ref="HandlingDetails" />
<a-modal v-model="visible" title="系统提示" @ok="togetEvaDetil()">
{{ content }}
</a-modal>
</div> </div>
</div> </div>
</template> </template>
...@@ -142,7 +136,10 @@ export default { ...@@ -142,7 +136,10 @@ export default {
width: "60px", width: "60px",
key: "index", key: "index",
align: "center", align: "center",
customRender: (text, record, index) => `${index + 1}`, customRender: (text, record, index) =>
(this.tablePagination.current - 1) * this.tablePagination.pageSize +
index +
1,
}, },
{ {
title: "窗口编号", title: "窗口编号",
...@@ -233,7 +230,6 @@ export default { ...@@ -233,7 +230,6 @@ export default {
{ {
title: "操作", title: "操作",
align: "center", align: "center",
dataIndex: "操作",
scopedSlots: { scopedSlots: {
customRender: "操作", customRender: "操作",
}, },
...@@ -251,9 +247,7 @@ export default { ...@@ -251,9 +247,7 @@ export default {
evaChoose: [], //评价选项 evaChoose: [], //评价选项
evaFrom: [], // 评价来源 evaFrom: [], // 评价来源
evaDates: [], // 评价日期 evaDates: [], // 评价日期
content: "此操作将删除该评价信息,是否继续?", baseurl: process.env.VUE_APP_API_PHP_URL,
delId: null, //当前删除id
baseurl: "",
optonList: [], optonList: [],
tableSelectedKeys: [], tableSelectedKeys: [],
tableSelectedRows: [], tableSelectedRows: [],
...@@ -284,23 +278,13 @@ export default { ...@@ -284,23 +278,13 @@ export default {
components: { components: {
HandlingDetails, HandlingDetails,
}, },
mounted() {
this.setMoment();
// 设置默认时间为今天
// this.evaDates = [
// this.$moment(new Date()).format("YYYY-MM-DD"),
// this.$moment(new Date()).format("YYYY-MM-DD"),
// ];
created() {
this.getOptonList();
this.togetevalist(); this.togetevalist();
getOptonList().then((res) => {
if (res.code == 1) {
this.optonList = res.data;
}
});
}, },
methods: { methods: {
// 重置
clearnAllChoose() { clearnAllChoose() {
this.evaChoose = []; this.evaChoose = [];
this.evaFrom = []; this.evaFrom = [];
...@@ -321,31 +305,17 @@ export default { ...@@ -321,31 +305,17 @@ export default {
this.tableSelectedRows = []; this.tableSelectedRows = [];
this.togetevalist(); this.togetevalist();
}, },
// 批量删除
delTable() { delTable() {
this.visible = true; this.visible = true;
if (!this.tableSelectedRows.length) { if (!this.tableSelectedRows.length) {
this.content = "一条评论都没有选中"; this.$message.warning("请先勾选数据");
} else { return;
this.content = "此操作将删除这些评价信息,是否继续?";
let arr = [];
this.tableSelectedRows.forEach((item) => {
arr.push(item.id);
});
this.delId = arr;
} }
let ids = this.tableSelectedRows.map((v) => v.id).join(",");
this.handleDel(ids);
}, },
togetEvaDetil() { // 办理明细
getEvaDetil({
id: this.delId,
}).then((res) => {
{
this.delId = null;
this.visible = false;
// 要刷新页面
this.togetevalist();
}
});
},
togetQueEvaData(record) { togetQueEvaData(record) {
getQueEvaData({ getQueEvaData({
id: record.id, id: record.id,
...@@ -356,6 +326,12 @@ export default { ...@@ -356,6 +326,12 @@ export default {
} }
}); });
}, },
// 分页
changeTablePage(page) {
this.pagTableChange(page);
this.togetevalist();
},
// 评价详情
togetEvaData(id) { togetEvaData(id) {
getEvaData({ getEvaData({
id: id, id: id,
...@@ -366,48 +342,39 @@ export default { ...@@ -366,48 +342,39 @@ export default {
} }
}); });
}, },
togetevalist() { // 获取评价选项
async getOptonList() {
let res = await getOptonList();
if (res.code == 1) {
this.optonList = res.data;
}
},
// 获取评价列表
async togetevalist(search = {}) {
// 拼接评价选项 // 拼接评价选项
let chooseStr = this.evaChoose.join(","); let option_id = this.evaChoose.join(",");
// 要先拼接评价来源 // 要先拼接评价来源
let fromString = this.evaFrom.join(","); let pjxt = this.evaFrom.join(",");
getEvaList({ let res = await getEvaList({
page: this.tablePagination.current, page: this.tablePagination.current,
size: this.tablePagination.pageSize, size: this.tablePagination.pageSize,
type: "ckpj", type: "ckpj",
option_id: chooseStr, option_id,
pjxt: fromString, //传0代表全部 pjxt,
time: this.BegindAndEndTime, time: this.BegindAndEndTime,
info: this.searchName, info: this.searchName,
}).then((res) => { ...search,
const { code, data } = res;
if (code == 1) {
this.tableSourceData = data.data.data;
this.evaCount = data.count;
this.tablePagination.total = data.count;
}
}); });
}, if (res.code == 1) {
changeEvaFrom(val) { let { data, total } = res.data.data;
if (val.length) { if (!data.length && this.tablePagination.current > 1) {
this.evaFrom = val; this.tablePagination.current -= 1;
} else { this.togetevalist();
this.evaFrom = [0]; }
} this.tableSourceData = data;
}, this.evaCount = total;
changeEvaChoose(val) { this.tablePagination.total = total;
this.evaChoose = val; return data;
},
QueueState(type) {
switch (type) {
case 0:
return "type1";
case 1:
return "type2";
default:
return "type0";
} }
}, },
//详情模块 //详情模块
...@@ -425,11 +392,6 @@ export default { ...@@ -425,11 +392,6 @@ export default {
this.$refs.HandlingDetails.modalInfo.visible = true; this.$refs.HandlingDetails.modalInfo.visible = true;
}, },
//删除模态框
showModal(record) {
this.visible = true;
this.delId = record.id;
},
// 选择数据 // 选择数据
onSelectChange(keys, rows) { onSelectChange(keys, rows) {
this.tableSelectedKeys = keys; this.tableSelectedKeys = keys;
...@@ -468,49 +430,52 @@ export default { ...@@ -468,49 +430,52 @@ export default {
"窗口服务评价记录报表" + this.$moment().format("YYYYMMDDHHmmss") "窗口服务评价记录报表" + this.$moment().format("YYYYMMDDHHmmss")
); );
} else { } else {
// 拼接评价选项 let data = await this.togetevalist({
let chooseStr = this.evaChoose.join(","); page: 1,
// 要先拼接评价来源
let fromString = this.evaFrom.join(",");
getEvaList({
page: this.tablePagination.current,
size: -1, size: -1,
type: "ckpj",
option_id: chooseStr,
pjxt: fromString, //传0代表全部
time: this.BegindAndEndTime,
info: this.searchName,
}).then((res) => {
const { code, data } = res;
if (code == 1) {
if (!data.data.data.length) return;
for (let item of data.data.data) {
Object.keys(obj).forEach((key) => {
if (item.pjxt == key) {
item.pjxt = obj[key];
}
});
}
export2Excel(
this.tHeader,
this.filterVal,
data.data.data,
"窗口服务评价记录报表" + this.$moment().format("YYYYMMDDHHmmss")
);
}
}); });
if (!data.length) return;
for (let item of data) {
Object.keys(obj).forEach((key) => {
if (item.pjxt == key) {
item.pjxt = obj[key];
}
});
}
export2Excel(
this.tHeader,
this.filterVal,
data,
"窗口服务评价记录报表" + this.$moment().format("YYYYMMDDHHmmss")
);
} }
this.btnLoading = false; this.btnLoading = false;
}, },
}, // 删除
watch: { handleDel(id) {
tablePagination() { let _this = this;
this.togetevalist(); this.$confirm({
title: "系统提示",
content: "删除不可恢复,确定要删除吗?",
okText: "确定",
okType: "danger",
cancelText: "取消",
centered: true,
icon: "exclamation-circle",
maskClosable: true,
async onOk() {
let res = await getEvaDetil({
id,
});
let { code, msg } = res;
if (code == 1) {
_this.$message.success(msg);
_this.togetevalist();
}
},
});
}, },
}, },
created() {
this.baseurl = process.env.VUE_APP_API_PHP_URL;
},
}; };
</script> </script>
......
...@@ -13,7 +13,9 @@ ...@@ -13,7 +13,9 @@
>填单次数:<i>{{ tablePagination.total }}</i></b >填单次数:<i>{{ tablePagination.total }}</i></b
> >
<sub <sub
>统计时间段:{{ BegindAndEndTime[0] }}~{{ BegindAndEndTime[1] }}</sub >统计时间段:{{ searchForm.BegindAndEndTime[0] }}~{{
searchForm.BegindAndEndTime[1]
}}</sub
> >
</div> </div>
<span> <span>
...@@ -22,17 +24,21 @@ ...@@ -22,17 +24,21 @@
<a-select <a-select
:default-value="1" :default-value="1"
style="width: 25%" style="width: 25%"
@change="changeSearchType" v-model="searchForm.type"
> >
<a-select-option :value="1"> 按事项 </a-select-option> <a-select-option :value="1"> 按事项 </a-select-option>
<a-select-option :value="2"> 按材料 </a-select-option> <a-select-option :value="2"> 按材料 </a-select-option>
</a-select> </a-select>
<a-select placeholder="全部状态" @change="changeStatu"> <a-select placeholder="全部状态" v-model="searchForm.status">
<a-select-option :value="0"> 全部类型 </a-select-option> <a-select-option value=""> 全部类型 </a-select-option>
<a-select-option :value="1"> 本地打印 </a-select-option> <a-select-option :value="1"> 本地打印 </a-select-option>
<a-select-option :value="2"> 在线提交 </a-select-option> <a-select-option :value="2"> 在线提交 </a-select-option>
</a-select> </a-select>
<a-input v-model="searchName" placeholder="请输入名称搜索"> <a-input
v-model="searchForm.searchName"
@pressEnter="handleSearch"
placeholder="请输入名称搜索"
>
<a-icon slot="prefix" type="search" /> <a-icon slot="prefix" type="search" />
</a-input> </a-input>
<!-- </a-input-group> --> <!-- </a-input-group> -->
...@@ -40,7 +46,7 @@ ...@@ -40,7 +46,7 @@
format="YYYY-MM-DD" format="YYYY-MM-DD"
valueFormat="YYYY-MM-DD" valueFormat="YYYY-MM-DD"
class="range_picker_style" class="range_picker_style"
v-model="BegindAndEndTime" v-model="searchForm.BegindAndEndTime"
> >
</a-range-picker> </a-range-picker>
...@@ -60,7 +66,7 @@ ...@@ -60,7 +66,7 @@
}" }"
:scroll="{ y: 590 }" :scroll="{ y: 590 }"
:pagination="tablePagination" :pagination="tablePagination"
@change="pagTableChange" @change="changeTablePage"
:loading="tableLoading" :loading="tableLoading"
:columns="tableHeaders" :columns="tableHeaders"
:dataSource="tableSourceData" :dataSource="tableSourceData"
...@@ -70,18 +76,18 @@ ...@@ -70,18 +76,18 @@
(tablePagination.current - 1) * tablePagination.pageSize + index + 1 (tablePagination.current - 1) * tablePagination.pageSize + index + 1
}}</span> }}</span>
<template slot="事项名称" slot-scope="text, record"> <template slot="事项名称" slot-scope="text, record">
<div> <div class="ellipsis">
{{ record.matterName ? record.matterName : "--" }} {{ record.matterName ? record.matterName : "--" }}
</div> </div>
<div class="tabFont"> <div class="tabFont ellipsis">
事项全称:{{ record.matterFullName ? record.matterFullName : "--" }} 事项全称:{{ record.matterFullName ? record.matterFullName : "--" }}
</div> </div>
</template> </template>
<template slot="材料名称" slot-scope="text, record"> <template slot="材料名称" slot-scope="text, record">
<div> <div class="ellipsis" :title="record.materialName">
{{ record.materialName ? record.materialName : "--" }} {{ record.materialName ? record.materialName : "--" }}
</div> </div>
<div class="tabFont"> <div class="tabFont ellipsis">
样表全称:{{ 样表全称:{{
record.materialFullName ? record.materialFullName : "--" record.materialFullName ? record.materialFullName : "--"
}} }}
...@@ -113,8 +119,8 @@ export default { ...@@ -113,8 +119,8 @@ export default {
}, },
{ {
title: "事项名称", title: "事项名称",
align: "center",
dataIndex: "事项名称", dataIndex: "事项名称",
ellipsis: true,
width: 300, width: 300,
scopedSlots: { scopedSlots: {
customRender: "事项名称", customRender: "事项名称",
...@@ -122,7 +128,7 @@ export default { ...@@ -122,7 +128,7 @@ export default {
}, },
{ {
title: "材料名称", title: "材料名称",
align: "center", ellipsis: true,
dataIndex: "materialName", dataIndex: "materialName",
width: 300, width: 300,
scopedSlots: { scopedSlots: {
...@@ -161,7 +167,7 @@ export default { ...@@ -161,7 +167,7 @@ export default {
title: "结果类型", title: "结果类型",
align: "center", align: "center",
customRender: (text, record, index) => { customRender: (text, record, index) => {
return text == 1 ? "本地打印" : "在线提交"; return text.type == 1 ? "本地打印" : "在线提交";
}, },
}, },
{ {
...@@ -175,14 +181,18 @@ export default { ...@@ -175,14 +181,18 @@ export default {
// dataIndex: "累计耗时", // dataIndex: "累计耗时",
// }, // },
], ],
BegindAndEndTime: [
this.$moment(new Date()).format("YYYY-MM-DD"),
this.$moment(new Date()).format("YYYY-MM-DD"),
],
searchName: undefined, searchName: undefined,
searchType: 1, searchForm: {
type: 1, // 事项或者材料搜索
status: "", // 打印或者提交
searchName: "", // 搜索内容
BegindAndEndTime: [
this.$moment(new Date()).format("YYYY-MM-DD"),
this.$moment(new Date()).format("YYYY-MM-DD"),
],
},
siteId: JSON.parse(localStorage.getItem("siteId")), siteId: JSON.parse(localStorage.getItem("siteId")),
statu: undefined,
tableSelectedKeys: [], tableSelectedKeys: [],
tableSelectedRows: [], tableSelectedRows: [],
tHeader: [ tHeader: [
...@@ -211,79 +221,66 @@ export default { ...@@ -211,79 +221,66 @@ export default {
"type", "type",
"createTime", "createTime",
], ],
i: 1,
}; };
}, },
components: {}, components: {},
mounted() { created() {
this.setMoment();
this.togetPrintList(); this.togetPrintList();
}, },
watch: { mounted() {},
tablePagination() {
this.togetPrintList();
},
},
methods: { methods: {
changeStatu(val) { // 搜索
this.statu = val;
},
changeSearchType(val) {
this.searchType = val;
},
handleSearch() { handleSearch() {
this.tablePagination.current = 1; this.tablePagination.current = 1;
this.tableSelectedKeys = []; this.tableSelectedKeys = [];
this.tableSelectedRows = []; this.tableSelectedRows = [];
this.togetPrintList(); this.togetPrintList();
}, },
togetPrintList() { // 获取报表列表
async togetPrintList(searchForm = {}) {
let pramse = { let pramse = {
page: this.tablePagination.current, page: this.tablePagination.current,
size: this.tablePagination.pageSize, size: this.tablePagination.pageSize,
siteId: this.siteId, siteId: this.siteId,
matterName: "%%", type: this.searchForm.status,
materialName: "%%", createTimeStart: this.searchForm.BegindAndEndTime[0],
createTimeStart: this.BegindAndEndTime[0], createTimeEnd: this.searchForm.BegindAndEndTime[1],
createTimeEnd: this.BegindAndEndTime[1], ...searchForm,
}; };
if (this.statu && this.statu != 0) { if (this.searchForm.type == 1) {
pramse.type = this.statu; pramse.matterName = `%${this.searchForm.searchName}%`;
} else {
pramse.materialName = `%${this.searchForm.searchName}%`;
} }
if (this.searchType == 1 && this.searchName) { let res = await getPrintList(pramse);
pramse.matterName = "%" + this.searchName + "%"; let { code, data } = res;
} else if (this.searchName) { if (code == 1) {
pramse.materialName = "%" + this.searchName + "%"; this.tableSourceData = data.data;
this.tablePagination.total = data.total;
return data.data;
} }
getPrintList(pramse).then((res) => {
const { code, data } = res;
if (code == 1) {
this.tableSourceData = data.data;
this.tablePagination.total = data.total;
}
});
}, },
// 重置 // 重置搜索
handleReset() { handleReset() {
this.BegindAndEndTime = [ this.searchForm = {
this.$moment(new Date()).format("YYYY-MM-DD"), type: 1,
this.$moment(new Date()).format("YYYY-MM-DD"), status: "",
]; searchName: "",
this.searchName = undefined; BegindAndEndTime: [
this.searchType = 1; this.$moment(new Date()).format("YYYY-MM-DD"),
this.statu = undefined; this.$moment(new Date()).format("YYYY-MM-DD"),
],
};
this.tableSelectedKeys = [];
this.tableSelectedRows = [];
this.tablePagination.current = 1; this.tablePagination.current = 1;
this.togetPrintList(); this.togetPrintList();
}, },
QueueState(type) { // 分页
switch (type) { changeTablePage(page) {
case 0: this.pagTableChange(page);
return "type1"; this.togetPrintList();
case 1:
return "type2";
default:
return "type0";
}
}, },
// 选中 // 选中
onSelectChange(keys, rows) { onSelectChange(keys, rows) {
...@@ -298,7 +295,7 @@ export default { ...@@ -298,7 +295,7 @@ export default {
}); });
}, },
// 导出 // 导出
handleExportTable() { async handleExportTable() {
this.btnLoading = true; this.btnLoading = true;
let obj = { let obj = {
1: "本地打印", 1: "本地打印",
...@@ -319,42 +316,21 @@ export default { ...@@ -319,42 +316,21 @@ export default {
"填单记录报表" + this.$moment().format("YYYYMMDDHHmmss") "填单记录报表" + this.$moment().format("YYYYMMDDHHmmss")
); );
} else { } else {
let pramse = { let data = await this.togetPrintList({ page: 1, size: -1 });
page: 1, if (!data.length) return;
size: -1, for (let item of data) {
siteId: this.siteId, Object.keys(obj).forEach((key) => {
matterName: "%%", if (item.type == key) {
materialName: "%%", item.type = obj[key];
createTimeStart: this.BegindAndEndTime[0],
createTimeEnd: this.BegindAndEndTime[1],
};
if (this.statu && this.statu != 0) {
pramse.type = this.statu;
}
if (this.searchType == 1 && this.searchName) {
pramse.matterName = "%" + this.searchName + "%";
} else if (this.searchName) {
pramse.materialName = "%" + this.searchName + "%";
}
getPrintList(pramse).then((res) => {
const { code, data } = res;
if (code == 1) {
if (!data.data.length) return;
for (let item of data.data) {
Object.keys(obj).forEach((key) => {
if (item.type == key) {
item.type = obj[key];
}
});
} }
export2Excel( });
this.tHeader, }
this.filterVal, export2Excel(
data.data, this.tHeader,
"填单记录报表" + this.$moment().format("YYYYMMDDHHmmss") this.filterVal,
); data,
} "填单记录报表" + this.$moment().format("YYYYMMDDHHmmss")
}); );
} }
this.btnLoading = false; this.btnLoading = false;
}, },
......
...@@ -37,6 +37,7 @@ ...@@ -37,6 +37,7 @@
<a-input <a-input
v-model="searchForm.flownum" v-model="searchForm.flownum"
placeholder="请输入排队编号搜索" placeholder="请输入排队编号搜索"
@pressEnter="handleSearch"
> >
<a-icon slot="prefix" type="search" /> <a-icon slot="prefix" type="search" />
</a-input> </a-input>
...@@ -318,17 +319,12 @@ export default { ...@@ -318,17 +319,12 @@ export default {
WorkpeopleInfo, WorkpeopleInfo,
HandlingDetails, HandlingDetails,
}, },
mounted() { created() {
this.setMoment();
this.getCalllistArr(); this.getCalllistArr();
this.getCallQueListArr(); this.getCallQueListArr();
}, },
mounted() {},
methods: { methods: {
//搜索按钮
getDataList() {
this.tablePagination.current = 1;
this.getCallQueListArr();
},
//重置按钮 //重置按钮
resetBtn() { resetBtn() {
this.tableSelectedKeys = []; this.tableSelectedKeys = [];
...@@ -345,7 +341,6 @@ export default { ...@@ -345,7 +341,6 @@ export default {
//获取排号机设备列表 //获取排号机设备列表
async getCalllistArr() { async getCalllistArr() {
await getCalllist({ page: 1, size: -1 }).then((res) => { await getCalllist({ page: 1, size: -1 }).then((res) => {
// console.log(res.data.data)
this.deviceData = res.data.data; this.deviceData = res.data.data;
}); });
}, },
...@@ -357,15 +352,19 @@ export default { ...@@ -357,15 +352,19 @@ export default {
this.getCallQueListArr(); this.getCallQueListArr();
}, },
// 获取列表数据 // 获取列表数据
getCallQueListArr() { async getCallQueListArr(search = {}) {
getCallQueList({ let res = getCallQueList({
page: this.tablePagination.current, page: this.tablePagination.current,
size: this.tablePagination.pageSize, size: this.tablePagination.pageSize,
...this.searchForm, ...this.searchForm,
}).then((res) => { ...search,
this.tableList = res.data.data;
this.tablePagination.total = res.data.total;
}); });
if (res.code == 1) {
let { data, total } = res.data;
this.tableList = data;
this.tablePagination.total = total;
return data;
}
}, },
//分页 //分页
changeTablePage(page) { changeTablePage(page) {
...@@ -426,9 +425,6 @@ export default { ...@@ -426,9 +425,6 @@ export default {
this.$refs.HandlingDetails.modalInfo.title = "办理明细"; this.$refs.HandlingDetails.modalInfo.title = "办理明细";
this.$refs.HandlingDetails.modalInfo.visible = true; this.$refs.HandlingDetails.modalInfo.visible = true;
}, },
rangePickerChange(val) {
console.log(val);
},
QueueState(type) { QueueState(type) {
switch (type) { switch (type) {
...@@ -476,27 +472,24 @@ export default { ...@@ -476,27 +472,24 @@ export default {
"呼叫记录报表" + this.$moment().format("YYYYMMDDHHmmss") "呼叫记录报表" + this.$moment().format("YYYYMMDDHHmmss")
); );
} else { } else {
getCallQueList({ let data = await this.getCallQueListArr({
page: 1, page: 1,
size: -1, size: -1,
...this.searchForm,
}).then((res) => {
let { data } = res.data;
if (!data.length) return;
for (let item of data) {
Object.keys(obj).forEach((key) => {
if (item.style == key) {
item.style = obj[key];
}
});
}
export2Excel(
this.tHeader,
this.filterVal,
data,
"呼叫记录报表" + this.$moment().format("YYYYMMDDHHmmss")
);
}); });
if (!data.length) return;
for (let item of data) {
Object.keys(obj).forEach((key) => {
if (item.style == key) {
item.style = obj[key];
}
});
}
export2Excel(
this.tHeader,
this.filterVal,
data,
"呼叫记录报表" + this.$moment().format("YYYYMMDDHHmmss")
);
} }
this.btnLoading = false; this.btnLoading = false;
}, },
......
...@@ -37,6 +37,7 @@ ...@@ -37,6 +37,7 @@
<a-input <a-input
v-model="searchForm.flownum" v-model="searchForm.flownum"
placeholder="请输入排队编号搜索" placeholder="请输入排队编号搜索"
@pressEnter="handleSearch"
> >
<a-icon slot="prefix" type="search" /> <a-icon slot="prefix" type="search" />
</a-input> </a-input>
...@@ -324,17 +325,12 @@ export default { ...@@ -324,17 +325,12 @@ export default {
WorkpeopleInfo, WorkpeopleInfo,
HandlingDetails, HandlingDetails,
}, },
mounted() { created() {
this.setMoment();
this.getTaskListArr(); this.getTaskListArr();
this.getQueueDataArr(); this.getQueueDataArr();
}, },
mounted() {},
methods: { methods: {
//搜索按钮
getDataList() {
this.tablePagination.current = 1;
this.getQueueDataArr();
},
//重置按钮 //重置按钮
resetBtn() { resetBtn() {
this.tablePagination.current = 1; this.tablePagination.current = 1;
...@@ -351,7 +347,6 @@ export default { ...@@ -351,7 +347,6 @@ export default {
//获取排号机设备列表 //获取排号机设备列表
async getTaskListArr() { async getTaskListArr() {
await getTaskList({ page: 1, size: -1 }).then((res) => { await getTaskList({ page: 1, size: -1 }).then((res) => {
// console.log(res.data.data)
this.deviceData = res.data.data; this.deviceData = res.data.data;
}); });
}, },
...@@ -363,15 +358,19 @@ export default { ...@@ -363,15 +358,19 @@ export default {
this.getQueueDataArr(); this.getQueueDataArr();
}, },
// 获取列表数据 // 获取列表数据
getQueueDataArr() { async getQueueDataArr(search = {}) {
getQueueData({ let res = await getQueueData({
page: this.tablePagination.current, page: this.tablePagination.current,
size: this.tablePagination.pageSize, size: this.tablePagination.pageSize,
...this.searchForm, ...this.searchForm,
}).then((res) => { ...search,
this.tableList = res.data.data;
this.tablePagination.total = res.data.total;
}); });
if (res.code == 1) {
let { data, total } = res.data;
this.tableList = data;
this.tablePagination.total = total;
return data;
}
}, },
//分页 //分页
changeTablePage(page) { changeTablePage(page) {
...@@ -396,7 +395,6 @@ export default { ...@@ -396,7 +395,6 @@ export default {
}, },
//业务关联模块 //业务关联模块
async openBusiness(business, id) { async openBusiness(business, id) {
let siteId = localStorage.getItem("siteId");
await getBusinessEvent({ await getBusinessEvent({
businessid: id, businessid: id,
time: this.searchForm.time, time: this.searchForm.time,
...@@ -468,40 +466,24 @@ export default { ...@@ -468,40 +466,24 @@ export default {
"排队记录报表" + this.$moment().format("YYYYMMDDHHmmss") "排队记录报表" + this.$moment().format("YYYYMMDDHHmmss")
); );
} else { } else {
getQueueData({ let data = await this.getQueueDataArr({ page: 1, size: -1 });
page: 1, if (!data.length) return;
size: -1, for (let item of data) {
...this.searchForm, Object.keys(obj).forEach((key) => {
}).then((res) => { if (item.style == key) {
let { data } = res.data; item.style = obj[key];
if (!data.length) return; }
for (let item of data) { });
Object.keys(obj).forEach((key) => { }
if (item.style == key) { export2Excel(
item.style = obj[key]; this.tHeader,
} this.filterVal,
}); data,
} "排队记录报表" + this.$moment().format("YYYYMMDDHHmmss")
export2Excel( );
this.tHeader,
this.filterVal,
data,
"排队记录报表" + this.$moment().format("YYYYMMDDHHmmss")
);
});
} }
this.btnLoading = false; this.btnLoading = false;
}, },
//获取全部数据
// downAllData() {
// getQueueData({
// page: 1,
// size: -1,
// ...this.searchForm,
// }).then((res) => {
// return res;
// });
// },
}, },
}; };
</script> </script>
......
...@@ -13,21 +13,27 @@ ...@@ -13,21 +13,27 @@
>查看样表次数:<i>{{ tablePagination.total }}</i></b >查看样表次数:<i>{{ tablePagination.total }}</i></b
> >
<sub <sub
>统计时间段:{{ BegindAndEndTime[0] }}~{{ BegindAndEndTime[1] }} >统计时间段:{{ searchForm.BegindAndEndTime[0] }}~{{
searchForm.BegindAndEndTime[1]
}}
</sub> </sub>
</div> </div>
<span> <span>
<a-space> <a-space>
<a-select :default-value="1" @change="changeSearchType"> <a-select v-model="searchForm.type">
<a-select-option :value="1"> 按事项 </a-select-option> <a-select-option :value="1"> 按事项 </a-select-option>
<a-select-option :value="2"> 按材料 </a-select-option> <a-select-option :value="2"> 按材料 </a-select-option>
</a-select> </a-select>
<a-input v-model="searchName" placeholder="请输入名称搜索"> <a-input
v-model="searchForm.searchName"
@pressEnter="handleSearch"
placeholder="请输入名称搜索"
>
<a-icon slot="prefix" type="search" /> <a-icon slot="prefix" type="search" />
</a-input> </a-input>
<!-- </a-input-group> --> <!-- </a-input-group> -->
<a-range-picker <a-range-picker
v-model="BegindAndEndTime" v-model="searchForm.BegindAndEndTime"
format="YYYY-MM-DD" format="YYYY-MM-DD"
valueFormat="YYYY-MM-DD" valueFormat="YYYY-MM-DD"
class="range_picker_style" class="range_picker_style"
...@@ -50,7 +56,7 @@ ...@@ -50,7 +56,7 @@
}" }"
:scroll="{ y: 590 }" :scroll="{ y: 590 }"
:pagination="tablePagination" :pagination="tablePagination"
@change="pagTableChange" @change="changeTablePage"
:loading="tableLoading" :loading="tableLoading"
:columns="tableHeaders" :columns="tableHeaders"
:dataSource="tableSourceData" :dataSource="tableSourceData"
...@@ -59,17 +65,21 @@ ...@@ -59,17 +65,21 @@
<span slot="index" slot-scope="text, record, index">{{ <span slot="index" slot-scope="text, record, index">{{
(tablePagination.current - 1) * tablePagination.pageSize + index + 1 (tablePagination.current - 1) * tablePagination.pageSize + index + 1
}}</span> }}</span>
<template slot="事项名称" slot-scope="text, record, index"> <template slot="事项名称" slot-scope="text, record">
<div> <div class="ellipsis">
{{ record.matterName }} {{ record.matterName || "--" }}
</div>
<div class="tabFont ellipsis">
事项全称:{{ record.matterFullName || "--" }}
</div> </div>
<div class="tabFont">事项全称:{{ record.matterFullName }}</div>
</template> </template>
<template slot="材料名称" slot-scope="text, record, index"> <template slot="材料名称" slot-scope="text, record">
<div> <div class="ellipsis">
{{ record.materialName }} {{ record.materialName || "--" }}
</div>
<div class="tabFont ellipsis">
样表全称:{{ record.materialFullName || "--" }}
</div> </div>
<div class="tabFont">样表全称:{{ record.materialFullName }}</div>
</template> </template>
</a-table> </a-table>
</div> </div>
...@@ -97,7 +107,6 @@ export default { ...@@ -97,7 +107,6 @@ export default {
}, },
{ {
title: "事项名称", title: "事项名称",
align: "center",
dataIndex: "matterName", dataIndex: "matterName",
scopedSlots: { scopedSlots: {
customRender: "事项名称", customRender: "事项名称",
...@@ -105,7 +114,6 @@ export default { ...@@ -105,7 +114,6 @@ export default {
}, },
{ {
title: "材料名称", title: "材料名称",
align: "center",
dataIndex: "materialName", dataIndex: "materialName",
scopedSlots: { scopedSlots: {
customRender: "材料名称", customRender: "材料名称",
...@@ -131,12 +139,16 @@ export default { ...@@ -131,12 +139,16 @@ export default {
}, },
}, },
], ],
BegindAndEndTime: [ searchForm: {
this.$moment(new Date()).format("YYYY-MM-DD"), type: 1, // 事项或者材料搜索
this.$moment(new Date()).format("YYYY-MM-DD"), status: "", // 打印或者提交
], //时间段 searchName: "", // 搜索内容
searchName: undefined, BegindAndEndTime: [
searchType: 1, this.$moment(new Date()).format("YYYY-MM-DD"),
this.$moment(new Date()).format("YYYY-MM-DD"),
],
},
siteId: localStorage.getItem("siteId"), siteId: localStorage.getItem("siteId"),
tableSelectedKeys: [], tableSelectedKeys: [],
tableSelectedRows: [], tableSelectedRows: [],
...@@ -163,10 +175,10 @@ export default { ...@@ -163,10 +175,10 @@ export default {
}; };
}, },
components: {}, components: {},
mounted() { created() {
this.setMoment();
this.togetBillList(); this.togetBillList();
}, },
methods: { methods: {
handleSearch() { handleSearch() {
this.tablePagination.current = 1; this.tablePagination.current = 1;
...@@ -174,56 +186,50 @@ export default { ...@@ -174,56 +186,50 @@ export default {
this.tableSelectedRows = []; this.tableSelectedRows = [];
this.togetBillList(); this.togetBillList();
}, },
togetBillList() { async togetBillList(searchForm = {}) {
let pramse = { let pramse = {
page: this.tablePagination.current, page: this.tablePagination.current,
size: this.tablePagination.pageSize, size: this.tablePagination.pageSize,
siteId: this.siteId, siteId: this.siteId,
matterName: "%%", operTimeStart: this.searchForm.BegindAndEndTime[0],
materialName: "%%", operTimeEnd: this.searchForm.BegindAndEndTime[1],
operTimeStart: this.BegindAndEndTime[0], ...searchForm,
operTimeEnd: this.BegindAndEndTime[1],
}; };
if (this.searchType == 1 && this.searchName) { if (this.searchForm.type == 1) {
pramse.matterName = "%" + this.searchName + "%"; pramse.matterName = `%${this.searchForm.searchName}%`;
} else if (this.searchName) { } else {
pramse.materialName = "%" + this.searchName + "%"; pramse.materialName = `%${this.searchForm.searchName}%`;
} }
getBillList(pramse).then((res) => { let res = await getBillList(pramse);
const { code, data } = res; const { code, data } = res;
if (code == 1) { if (code == 1) {
this.tableSourceData = data.data; this.tableSourceData = data.data;
this.tablePagination.total = data.total; this.tablePagination.total = data.total;
} return data.data;
});
},
changeSearchType(val) {
this.searchType = val;
},
QueueState(type) {
switch (type) {
case 0:
return "type1";
case 1:
return "type2";
default:
return "type0";
} }
}, },
// 重置 // 重置
handleReset() { handleReset() {
this.BegindAndEndTime = [ this.searchForm = {
this.$moment(new Date()).format("YYYY-MM-DD"), type: 1,
this.$moment(new Date()).format("YYYY-MM-DD"), status: "",
]; searchName: "",
this.searchName = undefined; BegindAndEndTime: [
this.searchType = 1; this.$moment(new Date()).format("YYYY-MM-DD"),
this.$moment(new Date()).format("YYYY-MM-DD"),
],
};
this.tablePagination.current = 1; this.tablePagination.current = 1;
this.tableSelectedKeys = []; this.tableSelectedKeys = [];
this.tableSelectedRows = []; this.tableSelectedRows = [];
this.togetBillList(); this.togetBillList();
}, },
// 分页
changeTablePage(page) {
this.pagTableChange(page);
this.togetBillList();
},
// 选中 // 选中
onSelectChange(keys, rows) { onSelectChange(keys, rows) {
this.tableSelectedKeys = keys; this.tableSelectedKeys = keys;
...@@ -237,7 +243,7 @@ export default { ...@@ -237,7 +243,7 @@ export default {
}); });
}, },
// 导出 // 导出
handleExportTable() { async handleExportTable() {
this.btnLoading = true; this.btnLoading = true;
if (this.tableSelectedKeys.length && this.tableSelectedRows.length) { if (this.tableSelectedKeys.length && this.tableSelectedRows.length) {
export2Excel( export2Excel(
...@@ -247,32 +253,21 @@ export default { ...@@ -247,32 +253,21 @@ export default {
"样表记录报表" + this.$moment().format("YYYYMMDDHHmmss") "样表记录报表" + this.$moment().format("YYYYMMDDHHmmss")
); );
} else { } else {
let pramse = { let data = await this.getBillList({ page: 1, size: -1 });
page: 1, if (!data.length) return;
size: -1, // for (let item of data) {
siteId: this.siteId, // Object.keys(obj).forEach((key) => {
matterName: "%%", // if (item.type == key) {
materialName: "%%", // item.type = obj[key];
operTimeStart: this.BegindAndEndTime[0], // }
operTimeEnd: this.BegindAndEndTime[1], // });
}; // }
if (this.searchType == 1 && this.searchName) { export2Excel(
pramse.matterName = "%" + this.searchName + "%"; this.tHeader,
} else if (this.searchName) { this.filterVal,
pramse.materialName = "%" + this.searchName + "%"; data,
} "样表记录报表" + this.$moment().format("YYYYMMDDHHmmss")
getBillList(pramse).then((res) => { );
const { code, data } = res;
if (code == 1) {
if (!data.data.length) return;
export2Excel(
this.tHeader,
this.filterVal,
data.data,
"样表记录报表" + this.$moment().format("YYYYMMDDHHmmss")
);
}
});
} }
this.btnLoading = false; this.btnLoading = false;
}, },
......
-- ----------------------------
-- 产品信息表
-- ----------------------------
DROP TABLE IF EXISTS `mortals_xhx_product`;
CREATE TABLE `mortals_xhx_product` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '序号,主键,自增长',
`siteId` bigint(20) NOT NULL COMMENT '站点id',
`productName` varchar(128) NOT NULL COMMENT '产品名称',
`logoUrl` varchar(128) DEFAULT NULL COMMENT 'Logo图片地址',
`productCode` varchar(128) DEFAULT NULL COMMENT '产品编码',
`createUserId` bigint(20) NOT NULL COMMENT '创建用户',
`createTime` datetime NOT NULL COMMENT '创建时间',
`updateUserId` bigint(20) DEFAULT NULL COMMENT '更新用户',
`updateTime` datetime DEFAULT NULL COMMENT '更新时间',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='产品信息';
-- ----------------------------
-- 产品接口表
-- ----------------------------
DROP TABLE IF EXISTS `mortals_xhx_product_interface`;
CREATE TABLE `mortals_xhx_product_interface` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '序号,主键,自增长',
`productId` bigint(20) NOT NULL COMMENT '产品id',
`interfaceName` varchar(128) NOT NULL COMMENT '接口名称',
`versionNumber` varchar(64) NOT NULL COMMENT '版本号',
`requestType` tinyint(2) DEFAULT '1' COMMENT '请求类型1:POST,2:GET',
`requestProtocol` tinyint(2) DEFAULT '1' COMMENT '请求协议1:HTTP,2:HTTPS',
`requestUrl` varchar(128) DEFAULT NULL COMMENT '请求路径',
`timeoutValue` int(8) DEFAULT NULL COMMENT '超时时间(秒)',
`limitStrategy` tinyint(2) DEFAULT NULL COMMENT '限流策略1:分钟,2:小时',
`network` varchar(64) DEFAULT NULL COMMENT '访问网络1互联网2政务网',
`description` text COMMENT '接口描述',
`flowControl` text COMMENT '流控信息',
`authorizeInfo` text COMMENT '授权信息',
`interfaceTag` tinyint(2) DEFAULT NULL COMMENT '标签',
`interfaceSource` tinyint(2) DEFAULT '1' COMMENT '来源1自有2非自有',
`requestParameters` text COMMENT '请求参数',
`responseParameters` text COMMENT '响应数据',
`errorCode` text COMMENT '错误码',
`changeHistory` text COMMENT '变更历史',
`createUserId` bigint(20) NOT NULL COMMENT '创建用户',
`createTime` datetime NOT NULL COMMENT '创建时间',
`updateUserId` bigint(20) DEFAULT NULL COMMENT '更新用户',
`updateTime` datetime DEFAULT NULL COMMENT '更新时间',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='产品接口表';
-- ----------------------------
-- 产品应用表
-- ----------------------------
DROP TABLE IF EXISTS `mortals_xhx_product_apps`;
CREATE TABLE `mortals_xhx_product_apps` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '序号,主键,自增长',
`productId` bigint(20) NOT NULL COMMENT '产品id',
`appName` varchar(64) NOT NULL COMMENT '应用名称',
`deveLanguage` tinyint(2) NOT NULL COMMENT '开发语言',
`versionNumber` varchar(64) DEFAULT NULL COMMENT '版本号',
`versionInfo` text COMMENT '版本信息',
`appFileUrl` varchar(128) DEFAULT NULL COMMENT '应用文件地址',
`isEnable` tinyint(2) DEFAULT '1' COMMENT '是否启用1是0否',
`createUserId` bigint(20) NOT NULL COMMENT '创建用户',
`createTime` datetime NOT NULL COMMENT '创建时间',
`updateUserId` bigint(20) DEFAULT NULL COMMENT '更新用户',
`updateTime` datetime DEFAULT NULL COMMENT '更新时间',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='产品应用表';
-- ----------------------------
-- 产品资料表
-- ----------------------------
DROP TABLE IF EXISTS `mortals_xhx_product_document`;
CREATE TABLE `mortals_xhx_product_document` (
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '序号,主键,自增长',
`productId` bigint(20) NOT NULL COMMENT '产品id',
`docName` varchar(64) NOT NULL COMMENT '资料名称',
`versionNumber` text COMMENT '版本号',
`versionInfo` text COMMENT '版本信息',
`docFileUrl` varchar(128) DEFAULT NULL COMMENT '资料文件地址',
`createUserId` bigint(20) NOT NULL COMMENT '创建用户',
`createTime` datetime NOT NULL COMMENT '创建时间',
`updateUserId` bigint(20) DEFAULT NULL COMMENT '更新用户',
`updateTime` datetime DEFAULT NULL COMMENT '更新时间',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='产品资料表';
...@@ -1643,7 +1643,9 @@ msg|String|消息|- ...@@ -1643,7 +1643,9 @@ msg|String|消息|-
**请求样例:** **请求样例:**
``` ```
``` ```
**响应参数:** **响应参数:**
参数名称|参数类型|描述 参数名称|参数类型|描述
...@@ -3653,6 +3655,960 @@ dict|object|字典对象 ...@@ -3653,6 +3655,960 @@ dict|object|字典对象
} }
``` ```
## 产品信息
### 查询产品信息列表
**请求URL:** product/list
**请求方式:** POST
**内容类型:** application/json;charset=utf-8
**简要描述:** 查询产品信息
**请求参数:**
参数名称|类型|必填|描述
:---|:---|:---|:------
page|Integer|否|当前页
size|Integer|否|每页条数,值为-1,查询所有记录
productName|String|否|产品名称,字段前后添加%%模糊查询
**请求样例:**
```
{
"productName":"jw0zaw",
"page":1,
"size":10
}
```
**响应参数:**
参数名称|参数类型|描述
:---|:---|:------
code|Integer|结果码(-1.失败,1.成功)
msg|String|消息
data|object|数据对象
&emsp;per_page|Integer|每页条数
&emsp;total|Integer|总条数
&emsp;last_page|Integer|总页数
&emsp;current_page|Integer|当前页
&emsp;data|array|结果集列表|数组
&emsp;&emsp;id|Long|序号,主键,自增长
&emsp;&emsp;siteId|Long|站点id
&emsp;&emsp;productName|String|产品名称
&emsp;&emsp;logoUrl|String|Logo图片地址
&emsp;&emsp;productCode|String|产品编码
&emsp;&emsp;createUserId|Long|创建用户
&emsp;&emsp;createTime|Date|创建时间
&emsp;&emsp;updateUserId|Long|更新用户
&emsp;&emsp;updateTime|Date|更新时间
dict|object|字典对象
**响应消息样例:**
```
{
"code":1,
"data":{
}
}
```
### 查看产品信息
**请求URL:** product/info
**请求方式:** GET
**内容类型:** application/json;charset=utf-8
**简要描述:** 查看产品信息,返回实例详细信息
**请求参数:**
参数名称|类型|必填|描述
:---|:---|:---|:------
id|Long|是|ID
**请求样例:**
```
http://localhost/product/info?id=549
```
**响应参数:**
参数名称 |参数类型|描述
:---|:---|:-------
code|Integer|结果码(-1.失败,1.成功)
msg|String|消息
data|object|数据对象
&emsp;id|Long|序号,主键,自增长
&emsp;siteId|Long|站点id
&emsp;productName|String|产品名称
&emsp;logoUrl|String|Logo图片地址
&emsp;productCode|String|产品编码
&emsp;createUserId|Long|创建用户
&emsp;createTime|Date|创建时间
&emsp;updateUserId|Long|更新用户
&emsp;updateTime|Date|更新时间
dict|object|字典对象
**响应消息样例:**
```
{
"code": 1,
"data": {
"id":2951,
"siteId":7224,
"productName":"1cesv6",
"logoUrl":"lffuww",
"productCode":"fyqjsh",
"createUserId":3088,
"createTime":"2023-02-22",
"updateUserId":6392,
"updateTime":"2023-02-22"
}
}
```
### 保存更新产品信息
**请求URL:** product/save
**请求方式:** POST
**内容类型:** application/json;charset=utf-8
**简要描述:** 保存或更新产品信息:id为空时为新增保存,否则为更新提交
**请求参数:**
参数名称|类型|必填|描述
:---|:---|:---|:-------
siteId|Long|是|站点id
productName|String|是|产品名称
logoUrl|String|否|Logo图片地址
productCode|String|否|产品编码
**请求样例:**
```
{
"siteId":9818,
"productName":"2ruf5h",
"logoUrl":"x3fzju",
"productCode":"atu4eb",
}
```
**响应参数:**
参数名称 |参数类型|描述
:---|:---|:------
code|Integer|结果码(-1.失败,1.成功)
msg|String|消息
data|object|数据对象
&emsp;id|Long|保存后主键id
&emsp;entity|object|保存更新实体
&emsp;&emsp;id|Long|序号,主键,自增长
&emsp;&emsp;siteId|Long|站点id
&emsp;&emsp;productName|String|产品名称
&emsp;&emsp;logoUrl|String|Logo图片地址
&emsp;&emsp;productCode|String|产品编码
&emsp;&emsp;createUserId|Long|创建用户
&emsp;&emsp;createTime|Date|创建时间
&emsp;&emsp;updateUserId|Long|更新用户
&emsp;&emsp;updateTime|Date|更新时间
**响应消息样例:**
```
{
"msg":"新增模块成功",
"code":1,
"data":{}
}
}
```
### 删除产品信息
**请求URL:** product/delete
**请求方式:** GET
**内容类型:** application/json;charset=utf-8
**简要描述:** 删除产品信息
**请求参数:**
参数名称|类型|必填|描述
:---|:---|:---|:------
id|String|是|数组
**请求样例:**
```
http://localhost:8080/product/delete?id=1&id=2'
```
**响应参数:**
参数名称 |参数类型|备注|其它
---|---|---|---
code|Integer|结果码(-1.失败,1.成功)|-
msg|String|消息|-
**响应消息样例:**
```
{
"code":1,
"msg":"成功"
}
```
## 产品接口
### 查询产品接口列表
**请求URL:** product/interface/list
**请求方式:** POST
**内容类型:** application/json;charset=utf-8
**简要描述:** 查询皮肤配置
**请求参数:**
参数名称|类型|必填|描述
:---|:---|:---|:------
page|Integer|否|当前页
size|Integer|否|每页条数,值为-1,查询所有记录
interfaceName|String|否|接口名称,字段前后添加%%模糊查询
**请求样例:**
```
{
"interfaceName":"6r9byq",
"page":1,
"size":10
}
```
**响应参数:**
参数名称|参数类型|描述
:---|:---|:------
code|Integer|结果码(-1.失败,1.成功)
msg|String|消息
data|object|数据对象
&emsp;per_page|Integer|每页条数
&emsp;total|Integer|总条数
&emsp;last_page|Integer|总页数
&emsp;current_page|Integer|当前页
&emsp;data|array|结果集列表|数组
&emsp;&emsp;id|Long|序号,主键,自增长
&emsp;&emsp;productId|Long|产品id
&emsp;&emsp;interfaceName|String|接口名称
&emsp;&emsp;versionNumber|String|版本号
&emsp;&emsp;requestType|Integer|请求类型1:POST,2:GET
&emsp;&emsp;requestProtocol|Integer|请求协议1:HTTP,2:HTTPS
&emsp;&emsp;requestUrl|String|请求路径
&emsp;&emsp;timeoutValue|Long|超时时间(秒)
&emsp;&emsp;limitStrategy|Integer|限流策略1:分钟,2:小时
&emsp;&emsp;network|String|访问网络1互联网2政务网
&emsp;&emsp;description|String|接口描述
&emsp;&emsp;flowControl|String|流控信息
&emsp;&emsp;authorizeInfo|String|授权信息
&emsp;&emsp;interfaceTag|Integer|标签
&emsp;&emsp;interfaceSource|Integer|来源1自有2非自有
&emsp;&emsp;requestParameters|String|请求参数
&emsp;&emsp;responseParameters|String|响应数据
&emsp;&emsp;errorCode|String|错误码
&emsp;&emsp;changeHistory|String|变更历史
&emsp;&emsp;createUserId|Long|创建用户
&emsp;&emsp;createTime|Date|创建时间
&emsp;&emsp;updateUserId|Long|更新用户
&emsp;&emsp;updateTime|Date|更新时间
dict|object|字典对象
**响应消息样例:**
```
{
"code":1,
"data":{
}
}
```
### 查看产品接口
**请求URL:** product/interface/info
**请求方式:** GET
**内容类型:** application/json;charset=utf-8
**简要描述:** 查看皮肤配置,返回实例详细信息
**请求参数:**
参数名称|类型|必填|描述
:---|:---|:---|:------
id|Long|是|ID
**请求样例:**
```
http://localhost/product/interface/info?id=549
```
**响应参数:**
参数名称 |参数类型|描述
:---|:---|:-------
code|Integer|结果码(-1.失败,1.成功)
msg|String|消息
data|object|数据对象
&emsp;id|Long|序号,主键,自增长
&emsp;productId|Long|产品id
&emsp;interfaceName|String|接口名称
&emsp;versionNumber|String|版本号
&emsp;requestType|Integer|请求类型1:POST,2:GET
&emsp;requestProtocol|Integer|请求协议1:HTTP,2:HTTPS
&emsp;requestUrl|String|请求路径
&emsp;timeoutValue|Long|超时时间(秒)
&emsp;limitStrategy|Integer|限流策略1:分钟,2:小时
&emsp;network|String|访问网络1互联网2政务网
&emsp;description|String|接口描述
&emsp;flowControl|String|流控信息
&emsp;authorizeInfo|String|授权信息
&emsp;interfaceTag|Integer|标签
&emsp;interfaceSource|Integer|来源1自有2非自有
&emsp;requestParameters|String|请求参数
&emsp;responseParameters|String|响应数据
&emsp;errorCode|String|错误码
&emsp;changeHistory|String|变更历史
&emsp;createUserId|Long|创建用户
&emsp;createTime|Date|创建时间
&emsp;updateUserId|Long|更新用户
&emsp;updateTime|Date|更新时间
dict|object|字典对象
**响应消息样例:**
```
{
"code": 1,
"data": {
"id":7206,
"productId":5818,
"interfaceName":"obik94",
"versionNumber":"63w89e",
"requestType":3731,
"requestProtocol":4957,
"requestUrl":"nsgum9",
"timeoutValue":6492,
"limitStrategy":7226,
"network":"xyh4zk",
"description":"xduu8d",
"flowControl":"qowkjr",
"authorizeInfo":"lpwmrs",
"interfaceTag":6647,
"interfaceSource":4194,
"requestParameters":"06p0p6",
"responseParameters":"xjrdki",
"errorCode":"gqpdfz",
"changeHistory":"zrewsd",
"createUserId":2945,
"createTime":"2023-02-22",
"updateUserId":5948,
"updateTime":"2023-02-22"
}
}
```
### 保存更新产品接口
**请求URL:** product/interface/save
**请求方式:** POST
**内容类型:** application/json;charset=utf-8
**简要描述:** 保存或更新皮肤配置:id为空时为新增保存,否则为更新提交
**请求参数:**
参数名称|类型|必填|描述
:---|:---|:---|:-------
productId|Long|是|产品id
interfaceName|String|是|接口名称
versionNumber|String|是|版本号
requestType|Integer|否|请求类型1:POST,2:GET
requestProtocol|Integer|否|请求协议1:HTTP,2:HTTPS
requestUrl|String|否|请求路径
timeoutValue|Long|否|超时时间(秒)
limitStrategy|Integer|否|限流策略1:分钟,2:小时
network|String|否|访问网络1互联网2政务网
description|String|否|接口描述
flowControl|String|否|流控信息
authorizeInfo|String|否|授权信息
interfaceTag|Integer|否|标签
interfaceSource|Integer|否|来源1自有2非自有
requestParameters|String|否|请求参数
responseParameters|String|否|响应数据
errorCode|String|否|错误码
changeHistory|String|否|变更历史
**请求样例:**
```
{
"productId":5754,
"interfaceName":"oonsdl",
"versionNumber":"u8h8j7",
"requestType":2679,
"requestProtocol":6410,
"requestUrl":"fzehdo",
"timeoutValue":6733,
"limitStrategy":7588,
"network":"r7mg3s",
"description":"2x0ngs",
"flowControl":"3kbeme",
"authorizeInfo":"ydaai8",
"interfaceTag":3004,
"interfaceSource":545,
"requestParameters":"57bggp",
"responseParameters":"ts01jo",
"errorCode":"t0kax8",
"changeHistory":"sz500m",
}
```
**响应参数:**
参数名称 |参数类型|描述
:---|:---|:------
code|Integer|结果码(-1.失败,1.成功)
msg|String|消息
data|object|数据对象
&emsp;id|Long|保存后主键id
&emsp;entity|object|保存更新实体
&emsp;&emsp;id|Long|序号,主键,自增长
&emsp;&emsp;productId|Long|产品id
&emsp;&emsp;interfaceName|String|接口名称
&emsp;&emsp;versionNumber|String|版本号
&emsp;&emsp;requestType|Integer|请求类型1:POST,2:GET
&emsp;&emsp;requestProtocol|Integer|请求协议1:HTTP,2:HTTPS
&emsp;&emsp;requestUrl|String|请求路径
&emsp;&emsp;timeoutValue|Long|超时时间(秒)
&emsp;&emsp;limitStrategy|Integer|限流策略1:分钟,2:小时
&emsp;&emsp;network|String|访问网络1互联网2政务网
&emsp;&emsp;description|String|接口描述
&emsp;&emsp;flowControl|String|流控信息
&emsp;&emsp;authorizeInfo|String|授权信息
&emsp;&emsp;interfaceTag|Integer|标签
&emsp;&emsp;interfaceSource|Integer|来源1自有2非自有
&emsp;&emsp;requestParameters|String|请求参数
&emsp;&emsp;responseParameters|String|响应数据
&emsp;&emsp;errorCode|String|错误码
&emsp;&emsp;changeHistory|String|变更历史
&emsp;&emsp;createUserId|Long|创建用户
&emsp;&emsp;createTime|Date|创建时间
&emsp;&emsp;updateUserId|Long|更新用户
&emsp;&emsp;updateTime|Date|更新时间
**响应消息样例:**
```
{
"msg":"新增模块成功",
"code":1,
"data":{}
}
}
```
### 删除产品接口
**请求URL:** product/interface/delete
**请求方式:** GET
**内容类型:** application/json;charset=utf-8
**简要描述:** 删除皮肤配置
**请求参数:**
参数名称|类型|必填|描述
:---|:---|:---|:------
id|String|是|数组
**请求样例:**
```
http://localhost:8080/product/interface/delete?id=1&id=2'
```
**响应参数:**
参数名称 |参数类型|备注|其它
---|---|---|---
code|Integer|结果码(-1.失败,1.成功)|-
msg|String|消息|-
**响应消息样例:**
```
{
"code":1,
"msg":"成功"
}
```
## 产品应用
### 查询产品应用列表
**请求URL:** product/apps/list
**请求方式:** POST
**内容类型:** application/json;charset=utf-8
**简要描述:** 查询产品应用
**请求参数:**
参数名称|类型|必填|描述
:---|:---|:---|:------
page|Integer|否|当前页
size|Integer|否|每页条数,值为-1,查询所有记录
appName|String|否|应用名称,字段前后添加%%模糊查询
deveLanguage|Integer|否|开发语言
**请求样例:**
```
{
"appName":"dabj6s",
"deveLanguage":4517,
"page":1,
"size":10
}
```
**响应参数:**
参数名称|参数类型|描述
:---|:---|:------
code|Integer|结果码(-1.失败,1.成功)
msg|String|消息
data|object|数据对象
&emsp;per_page|Integer|每页条数
&emsp;total|Integer|总条数
&emsp;last_page|Integer|总页数
&emsp;current_page|Integer|当前页
&emsp;data|array|结果集列表|数组
&emsp;&emsp;id|Long|序号,主键,自增长
&emsp;&emsp;productId|Long|产品id
&emsp;&emsp;appName|String|应用名称
&emsp;&emsp;deveLanguage|Integer|开发语言
&emsp;&emsp;versionNumber|String|版本号
&emsp;&emsp;versionInfo|String|版本信息
&emsp;&emsp;appFileUrl|String|应用文件地址
&emsp;&emsp;isEnable|Integer|是否启用1是0否
&emsp;&emsp;createUserId|Long|创建用户
&emsp;&emsp;createTime|Date|创建时间
&emsp;&emsp;updateUserId|Long|更新用户
&emsp;&emsp;updateTime|Date|更新时间
dict|object|字典对象
**响应消息样例:**
```
{
"code":1,
"data":{
}
}
```
### 查看产品应用
**请求URL:** product/apps/info
**请求方式:** GET
**内容类型:** application/json;charset=utf-8
**简要描述:** 查看产品应用,返回实例详细信息
**请求参数:**
参数名称|类型|必填|描述
:---|:---|:---|:------
id|Long|是|ID
**请求样例:**
```
http://localhost/product/apps/info?id=549
```
**响应参数:**
参数名称 |参数类型|描述
:---|:---|:-------
code|Integer|结果码(-1.失败,1.成功)
msg|String|消息
data|object|数据对象
&emsp;id|Long|序号,主键,自增长
&emsp;productId|Long|产品id
&emsp;appName|String|应用名称
&emsp;deveLanguage|Integer|开发语言
&emsp;versionNumber|String|版本号
&emsp;versionInfo|String|版本信息
&emsp;appFileUrl|String|应用文件地址
&emsp;isEnable|Integer|是否启用1是0否
&emsp;createUserId|Long|创建用户
&emsp;createTime|Date|创建时间
&emsp;updateUserId|Long|更新用户
&emsp;updateTime|Date|更新时间
dict|object|字典对象
**响应消息样例:**
```
{
"code": 1,
"data": {
"id":8611,
"productId":897,
"appName":"mrwlbh",
"deveLanguage":8480,
"versionNumber":"xqvvhl",
"versionInfo":"iojhc3",
"appFileUrl":"lbf7gh",
"isEnable":3475,
"createUserId":2170,
"createTime":"2023-02-22",
"updateUserId":7758,
"updateTime":"2023-02-22"
}
}
```
### 保存更新产品应用
**请求URL:** product/apps/save
**请求方式:** POST
**内容类型:** application/json;charset=utf-8
**简要描述:** 保存或更新产品应用:id为空时为新增保存,否则为更新提交
**请求参数:**
参数名称|类型|必填|描述
:---|:---|:---|:-------
productId|Long|是|产品id
appName|String|是|应用名称
deveLanguage|Integer|是|开发语言
versionNumber|String|否|版本号
versionInfo|String|否|版本信息
appFileUrl|String|否|应用文件地址
isEnable|Integer|否|是否启用1是0否
**请求样例:**
```
{
"productId":9130,
"appName":"791dbh",
"deveLanguage":2422,
"versionNumber":"28txka",
"versionInfo":"8vptzo",
"appFileUrl":"vcq9rb",
"isEnable":1340,
}
```
**响应参数:**
参数名称 |参数类型|描述
:---|:---|:------
code|Integer|结果码(-1.失败,1.成功)
msg|String|消息
data|object|数据对象
&emsp;id|Long|保存后主键id
&emsp;entity|object|保存更新实体
&emsp;&emsp;id|Long|序号,主键,自增长
&emsp;&emsp;productId|Long|产品id
&emsp;&emsp;appName|String|应用名称
&emsp;&emsp;deveLanguage|Integer|开发语言
&emsp;&emsp;versionNumber|String|版本号
&emsp;&emsp;versionInfo|String|版本信息
&emsp;&emsp;appFileUrl|String|应用文件地址
&emsp;&emsp;isEnable|Integer|是否启用1是0否
&emsp;&emsp;createUserId|Long|创建用户
&emsp;&emsp;createTime|Date|创建时间
&emsp;&emsp;updateUserId|Long|更新用户
&emsp;&emsp;updateTime|Date|更新时间
**响应消息样例:**
```
{
"msg":"新增模块成功",
"code":1,
"data":{}
}
}
```
### 删除产品应用
**请求URL:** product/apps/delete
**请求方式:** GET
**内容类型:** application/json;charset=utf-8
**简要描述:** 删除产品应用
**请求参数:**
参数名称|类型|必填|描述
:---|:---|:---|:------
id|String|是|数组
**请求样例:**
```
http://localhost:8080/product/apps/delete?id=1&id=2'
```
**响应参数:**
参数名称 |参数类型|备注|其它
---|---|---|---
code|Integer|结果码(-1.失败,1.成功)|-
msg|String|消息|-
**响应消息样例:**
```
{
"code":1,
"msg":"成功"
}
```
## 产品资料表
### 查询产品资料表列表
**请求URL:** product/document/list
**请求方式:** POST
**内容类型:** application/json;charset=utf-8
**简要描述:** 查询产品资料表
**请求参数:**
参数名称|类型|必填|描述
:---|:---|:---|:------
page|Integer|否|当前页
size|Integer|否|每页条数,值为-1,查询所有记录
docName|String|否|资料名称,字段前后添加%%模糊查询
**请求样例:**
```
{
"docName":"9ya7p4",
"page":1,
"size":10
}
```
**响应参数:**
参数名称|参数类型|描述
:---|:---|:------
code|Integer|结果码(-1.失败,1.成功)
msg|String|消息
data|object|数据对象
&emsp;per_page|Integer|每页条数
&emsp;total|Integer|总条数
&emsp;last_page|Integer|总页数
&emsp;current_page|Integer|当前页
&emsp;data|array|结果集列表|数组
&emsp;&emsp;id|Long|序号,主键,自增长
&emsp;&emsp;productId|Long|产品id
&emsp;&emsp;docName|String|资料名称
&emsp;&emsp;versionNumber|String|版本号
&emsp;&emsp;versionInfo|String|版本信息
&emsp;&emsp;docFileUrl|String|资料文件地址
&emsp;&emsp;createUserId|Long|创建用户
&emsp;&emsp;createTime|Date|创建时间
&emsp;&emsp;updateUserId|Long|更新用户
&emsp;&emsp;updateTime|Date|更新时间
dict|object|字典对象
**响应消息样例:**
```
{
"code":1,
"data":{
}
}
```
### 查看产品资料表
**请求URL:** product/document/info
**请求方式:** GET
**内容类型:** application/json;charset=utf-8
**简要描述:** 查看产品资料表,返回实例详细信息
**请求参数:**
参数名称|类型|必填|描述
:---|:---|:---|:------
id|Long|是|ID
**请求样例:**
```
http://localhost/product/document/info?id=549
```
**响应参数:**
参数名称 |参数类型|描述
:---|:---|:-------
code|Integer|结果码(-1.失败,1.成功)
msg|String|消息
data|object|数据对象
&emsp;id|Long|序号,主键,自增长
&emsp;productId|Long|产品id
&emsp;docName|String|资料名称
&emsp;versionNumber|String|版本号
&emsp;versionInfo|String|版本信息
&emsp;docFileUrl|String|资料文件地址
&emsp;createUserId|Long|创建用户
&emsp;createTime|Date|创建时间
&emsp;updateUserId|Long|更新用户
&emsp;updateTime|Date|更新时间
dict|object|字典对象
**响应消息样例:**
```
{
"code": 1,
"data": {
"id":1498,
"productId":70,
"docName":"40e03x",
"versionNumber":"3o3km7",
"versionInfo":"cytts5",
"docFileUrl":"jf0cg4",
"createUserId":3465,
"createTime":"2023-02-22",
"updateUserId":9383,
"updateTime":"2023-02-22"
}
}
```
### 保存更新产品资料表
**请求URL:** product/document/save
**请求方式:** POST
**内容类型:** application/json;charset=utf-8
**简要描述:** 保存或更新产品资料表:id为空时为新增保存,否则为更新提交
**请求参数:**
参数名称|类型|必填|描述
:---|:---|:---|:-------
productId|Long|是|产品id
docName|String|是|资料名称
versionNumber|String|否|版本号
versionInfo|String|否|版本信息
docFileUrl|String|否|资料文件地址
**请求样例:**
```
{
"productId":7395,
"docName":"oilitn",
"versionNumber":"vk7ua4",
"versionInfo":"89f7cz",
"docFileUrl":"bpp5s8",
}
```
**响应参数:**
参数名称 |参数类型|描述
:---|:---|:------
code|Integer|结果码(-1.失败,1.成功)
msg|String|消息
data|object|数据对象
&emsp;id|Long|保存后主键id
&emsp;entity|object|保存更新实体
&emsp;&emsp;id|Long|序号,主键,自增长
&emsp;&emsp;productId|Long|产品id
&emsp;&emsp;docName|String|资料名称
&emsp;&emsp;versionNumber|String|版本号
&emsp;&emsp;versionInfo|String|版本信息
&emsp;&emsp;docFileUrl|String|资料文件地址
&emsp;&emsp;createUserId|Long|创建用户
&emsp;&emsp;createTime|Date|创建时间
&emsp;&emsp;updateUserId|Long|更新用户
&emsp;&emsp;updateTime|Date|更新时间
**响应消息样例:**
```
{
"msg":"新增模块成功",
"code":1,
"data":{}
}
}
```
### 删除产品资料表
**请求URL:** product/document/delete
**请求方式:** GET
**内容类型:** application/json;charset=utf-8
**简要描述:** 删除产品资料表
**请求参数:**
参数名称|类型|必填|描述
:---|:---|:---|:------
id|String|是|数组
**请求样例:**
```
http://localhost:8080/product/document/delete?id=1&id=2'
```
**响应参数:**
参数名称 |参数类型|备注|其它
---|---|---|---
code|Integer|结果码(-1.失败,1.成功)|-
msg|String|消息|-
**响应消息样例:**
```
{
"code":1,
"msg":"成功"
}
```
## 字典附录 ## 字典附录
### userType ### userType
......
package com.mortals.xhx.module.product.dao;
import com.mortals.framework.dao.ICRUDDao;
import com.mortals.xhx.module.product.model.ProductAppsEntity;
import java.util.List;
/**
* 协议管理Dao
* 协议管理 DAO接口
*
* @author zxfei
* @date 2023-02-22
*/
public interface ProductAppsDao extends ICRUDDao<ProductAppsEntity,Long>{
}
package com.mortals.xhx.module.product.dao;
import com.mortals.framework.dao.ICRUDDao;
import com.mortals.xhx.module.product.model.ProductEntity;
import java.util.List;
/**
* 产品信息Dao
* 产品信息 DAO接口
*
* @author zxfei
* @date 2023-02-22
*/
public interface ProductDao extends ICRUDDao<ProductEntity,Long>{
}
package com.mortals.xhx.module.product.dao;
import com.mortals.framework.dao.ICRUDDao;
import com.mortals.xhx.module.product.model.ProductDocumentEntity;
import java.util.List;
/**
* 协议管理Dao
* 协议管理 DAO接口
*
* @author zxfei
* @date 2023-02-22
*/
public interface ProductDocumentDao extends ICRUDDao<ProductDocumentEntity,Long>{
}
package com.mortals.xhx.module.product.dao;
import com.mortals.framework.dao.ICRUDDao;
import com.mortals.xhx.module.product.model.ProductInterfaceEntity;
import java.util.List;
/**
* 皮肤配置Dao
* 皮肤配置 DAO接口
*
* @author zxfei
* @date 2023-02-22
*/
public interface ProductInterfaceDao extends ICRUDDao<ProductInterfaceEntity,Long>{
}
package com.mortals.xhx.module.product.dao.ibatis;
import org.springframework.stereotype.Repository;
import com.mortals.xhx.module.product.dao.ProductAppsDao;
import com.mortals.xhx.module.product.model.ProductAppsEntity;
import java.util.Date;
import com.mortals.framework.dao.ibatis.BaseCRUDDaoMybatis;
import java.util.List;
/**
* 协议管理DaoImpl DAO接口
*
* @author zxfei
* @date 2023-02-22
*/
@Repository("productAppsDao")
public class ProductAppsDaoImpl extends BaseCRUDDaoMybatis<ProductAppsEntity,Long> implements ProductAppsDao {
}
package com.mortals.xhx.module.product.dao.ibatis;
import org.springframework.stereotype.Repository;
import com.mortals.xhx.module.product.dao.ProductDao;
import com.mortals.xhx.module.product.model.ProductEntity;
import java.util.Date;
import com.mortals.framework.dao.ibatis.BaseCRUDDaoMybatis;
import java.util.List;
/**
* 产品信息DaoImpl DAO接口
*
* @author zxfei
* @date 2023-02-22
*/
@Repository("productDao")
public class ProductDaoImpl extends BaseCRUDDaoMybatis<ProductEntity,Long> implements ProductDao {
}
package com.mortals.xhx.module.product.dao.ibatis;
import org.springframework.stereotype.Repository;
import com.mortals.xhx.module.product.dao.ProductDocumentDao;
import com.mortals.xhx.module.product.model.ProductDocumentEntity;
import java.util.Date;
import com.mortals.framework.dao.ibatis.BaseCRUDDaoMybatis;
import java.util.List;
/**
* 协议管理DaoImpl DAO接口
*
* @author zxfei
* @date 2023-02-22
*/
@Repository("productDocumentDao")
public class ProductDocumentDaoImpl extends BaseCRUDDaoMybatis<ProductDocumentEntity,Long> implements ProductDocumentDao {
}
package com.mortals.xhx.module.product.dao.ibatis;
import org.springframework.stereotype.Repository;
import com.mortals.xhx.module.product.dao.ProductInterfaceDao;
import com.mortals.xhx.module.product.model.ProductInterfaceEntity;
import java.util.Date;
import com.mortals.framework.dao.ibatis.BaseCRUDDaoMybatis;
import java.util.List;
/**
* 皮肤配置DaoImpl DAO接口
*
* @author zxfei
* @date 2023-02-22
*/
@Repository("productInterfaceDao")
public class ProductInterfaceDaoImpl extends BaseCRUDDaoMybatis<ProductInterfaceEntity,Long> implements ProductInterfaceDao {
}
package com.mortals.xhx.module.product.model;
import com.mortals.xhx.module.product.model.vo.ProductAppsVo;
/**
* 产品应用实体对象
*
* @author zxfei
* @date 2023-02-22
*/
public class ProductAppsEntity extends ProductAppsVo {
private static final long serialVersionUID = 1L;
/**
* 产品id
*/
private Long productId;
/**
* 应用名称
*/
private String appName;
/**
* 开发语言
*/
private Integer deveLanguage;
/**
* 版本号
*/
private String versionNumber;
/**
* 版本信息
*/
private String versionInfo;
/**
* 应用文件地址
*/
private String appFileUrl;
/**
* 是否启用1是0否
*/
private Integer isEnable;
public ProductAppsEntity(){}
/**
* 获取 产品id
* @return Long
*/
public Long getProductId(){
return productId;
}
/**
* 设置 产品id
* @param productId
*/
public void setProductId(Long productId){
this.productId = productId;
}
/**
* 获取 应用名称
* @return String
*/
public String getAppName(){
return appName;
}
/**
* 设置 应用名称
* @param appName
*/
public void setAppName(String appName){
this.appName = appName;
}
/**
* 获取 开发语言
* @return Integer
*/
public Integer getDeveLanguage(){
return deveLanguage;
}
/**
* 设置 开发语言
* @param deveLanguage
*/
public void setDeveLanguage(Integer deveLanguage){
this.deveLanguage = deveLanguage;
}
/**
* 获取 版本号
* @return String
*/
public String getVersionNumber(){
return versionNumber;
}
/**
* 设置 版本号
* @param versionNumber
*/
public void setVersionNumber(String versionNumber){
this.versionNumber = versionNumber;
}
/**
* 获取 版本信息
* @return String
*/
public String getVersionInfo(){
return versionInfo;
}
/**
* 设置 版本信息
* @param versionInfo
*/
public void setVersionInfo(String versionInfo){
this.versionInfo = versionInfo;
}
/**
* 获取 应用文件地址
* @return String
*/
public String getAppFileUrl(){
return appFileUrl;
}
/**
* 设置 应用文件地址
* @param appFileUrl
*/
public void setAppFileUrl(String appFileUrl){
this.appFileUrl = appFileUrl;
}
/**
* 获取 是否启用1是0否
* @return Integer
*/
public Integer getIsEnable(){
return isEnable;
}
/**
* 设置 是否启用1是0否
* @param isEnable
*/
public void setIsEnable(Integer isEnable){
this.isEnable = isEnable;
}
@Override
public int hashCode() {
return this.getId().hashCode();
}
@Override
public boolean equals(Object obj) {
if (obj == null) return false;
if (obj instanceof ProductAppsEntity) {
ProductAppsEntity tmp = (ProductAppsEntity) obj;
if (this.getId() == tmp.getId()) {
return true;
}
}
return false;
}
public String toString(){
StringBuilder sb = new StringBuilder("");
sb.append(",productId:").append(getProductId());
sb.append(",appName:").append(getAppName());
sb.append(",deveLanguage:").append(getDeveLanguage());
sb.append(",versionNumber:").append(getVersionNumber());
sb.append(",versionInfo:").append(getVersionInfo());
sb.append(",appFileUrl:").append(getAppFileUrl());
sb.append(",isEnable:").append(getIsEnable());
return sb.toString();
}
public void initAttrValue(){
this.productId = null;
this.appName = "";
this.deveLanguage = null;
this.versionNumber = "";
this.versionInfo = "";
this.appFileUrl = "";
this.isEnable = 1;
}
}
\ No newline at end of file
package com.mortals.xhx.module.product.model;
import java.util.List;
import com.mortals.xhx.module.product.model.ProductAppsEntity;
/**
* 产品应用查询对象
*
* @author zxfei
* @date 2023-02-22
*/
public class ProductAppsQuery extends ProductAppsEntity {
/** 开始 序号,主键,自增长 */
private Long idStart;
/** 结束 序号,主键,自增长 */
private Long idEnd;
/** 增加 序号,主键,自增长 */
private Long idIncrement;
/** 序号,主键,自增长列表 */
private List <Long> idList;
/** 序号,主键,自增长排除列表 */
private List <Long> idNotList;
/** 开始 产品id */
private Long productIdStart;
/** 结束 产品id */
private Long productIdEnd;
/** 增加 产品id */
private Long productIdIncrement;
/** 产品id列表 */
private List <Long> productIdList;
/** 产品id排除列表 */
private List <Long> productIdNotList;
/** 应用名称 */
private List<String> appNameList;
/** 应用名称排除列表 */
private List <String> appNameNotList;
/** 开始 开发语言 */
private Integer deveLanguageStart;
/** 结束 开发语言 */
private Integer deveLanguageEnd;
/** 增加 开发语言 */
private Integer deveLanguageIncrement;
/** 开发语言列表 */
private List <Integer> deveLanguageList;
/** 开发语言排除列表 */
private List <Integer> deveLanguageNotList;
/** 版本号 */
private List<String> versionNumberList;
/** 版本号排除列表 */
private List <String> versionNumberNotList;
/** 版本信息 */
private List<String> versionInfoList;
/** 版本信息排除列表 */
private List <String> versionInfoNotList;
/** 应用文件地址 */
private List<String> appFileUrlList;
/** 应用文件地址排除列表 */
private List <String> appFileUrlNotList;
/** 开始 是否启用1是0否 */
private Integer isEnableStart;
/** 结束 是否启用1是0否 */
private Integer isEnableEnd;
/** 增加 是否启用1是0否 */
private Integer isEnableIncrement;
/** 是否启用1是0否列表 */
private List <Integer> isEnableList;
/** 是否启用1是0否排除列表 */
private List <Integer> isEnableNotList;
/** 开始 创建用户 */
private Long createUserIdStart;
/** 结束 创建用户 */
private Long createUserIdEnd;
/** 增加 创建用户 */
private Long createUserIdIncrement;
/** 创建用户列表 */
private List <Long> createUserIdList;
/** 创建用户排除列表 */
private List <Long> createUserIdNotList;
/** 开始 创建时间 */
private String createTimeStart;
/** 结束 创建时间 */
private String createTimeEnd;
/** 开始 更新用户 */
private Long updateUserIdStart;
/** 结束 更新用户 */
private Long updateUserIdEnd;
/** 增加 更新用户 */
private Long updateUserIdIncrement;
/** 更新用户列表 */
private List <Long> updateUserIdList;
/** 更新用户排除列表 */
private List <Long> updateUserIdNotList;
/** 开始 更新时间 */
private String updateTimeStart;
/** 结束 更新时间 */
private String updateTimeEnd;
/** OR条件集合,列表项之间是OR,项内容之间是AND,如:(list[0].1 and list[0].2) or (list[1].3 and list[1].4) */
private List<ProductAppsQuery> orConditionList;
/** AND条件集合,列表项之间是AND,项内容之间是OR,如:(list[0].1 or list[0].2) and (list[1].3 or list[1].4) */
private List<ProductAppsQuery> andConditionList;
public ProductAppsQuery(){}
/**
* 获取 开始 序号,主键,自增长
* @return idStart
*/
public Long getIdStart(){
return this.idStart;
}
/**
* 设置 开始 序号,主键,自增长
* @param idStart
*/
public void setIdStart(Long idStart){
this.idStart = idStart;
}
/**
* 获取 结束 序号,主键,自增长
* @return $idEnd
*/
public Long getIdEnd(){
return this.idEnd;
}
/**
* 设置 结束 序号,主键,自增长
* @param idEnd
*/
public void setIdEnd(Long idEnd){
this.idEnd = idEnd;
}
/**
* 获取 增加 序号,主键,自增长
* @return idIncrement
*/
public Long getIdIncrement(){
return this.idIncrement;
}
/**
* 设置 增加 序号,主键,自增长
* @param idIncrement
*/
public void setIdIncrement(Long idIncrement){
this.idIncrement = idIncrement;
}
/**
* 获取 序号,主键,自增长
* @return idList
*/
public List<Long> getIdList(){
return this.idList;
}
/**
* 设置 序号,主键,自增长
* @param idList
*/
public void setIdList(List<Long> idList){
this.idList = idList;
}
/**
* 获取 序号,主键,自增长
* @return idNotList
*/
public List<Long> getIdNotList(){
return this.idNotList;
}
/**
* 设置 序号,主键,自增长
* @param idNotList
*/
public void setIdNotList(List<Long> idNotList){
this.idNotList = idNotList;
}
/**
* 获取 开始 产品id
* @return productIdStart
*/
public Long getProductIdStart(){
return this.productIdStart;
}
/**
* 设置 开始 产品id
* @param productIdStart
*/
public void setProductIdStart(Long productIdStart){
this.productIdStart = productIdStart;
}
/**
* 获取 结束 产品id
* @return $productIdEnd
*/
public Long getProductIdEnd(){
return this.productIdEnd;
}
/**
* 设置 结束 产品id
* @param productIdEnd
*/
public void setProductIdEnd(Long productIdEnd){
this.productIdEnd = productIdEnd;
}
/**
* 获取 增加 产品id
* @return productIdIncrement
*/
public Long getProductIdIncrement(){
return this.productIdIncrement;
}
/**
* 设置 增加 产品id
* @param productIdIncrement
*/
public void setProductIdIncrement(Long productIdIncrement){
this.productIdIncrement = productIdIncrement;
}
/**
* 获取 产品id
* @return productIdList
*/
public List<Long> getProductIdList(){
return this.productIdList;
}
/**
* 设置 产品id
* @param productIdList
*/
public void setProductIdList(List<Long> productIdList){
this.productIdList = productIdList;
}
/**
* 获取 产品id
* @return productIdNotList
*/
public List<Long> getProductIdNotList(){
return this.productIdNotList;
}
/**
* 设置 产品id
* @param productIdNotList
*/
public void setProductIdNotList(List<Long> productIdNotList){
this.productIdNotList = productIdNotList;
}
/**
* 获取 应用名称
* @return appNameList
*/
public List<String> getAppNameList(){
return this.appNameList;
}
/**
* 设置 应用名称
* @param appNameList
*/
public void setAppNameList(List<String> appNameList){
this.appNameList = appNameList;
}
/**
* 获取 应用名称
* @return appNameNotList
*/
public List<String> getAppNameNotList(){
return this.appNameNotList;
}
/**
* 设置 应用名称
* @param appNameNotList
*/
public void setAppNameNotList(List<String> appNameNotList){
this.appNameNotList = appNameNotList;
}
/**
* 获取 开始 开发语言
* @return deveLanguageStart
*/
public Integer getDeveLanguageStart(){
return this.deveLanguageStart;
}
/**
* 设置 开始 开发语言
* @param deveLanguageStart
*/
public void setDeveLanguageStart(Integer deveLanguageStart){
this.deveLanguageStart = deveLanguageStart;
}
/**
* 获取 结束 开发语言
* @return $deveLanguageEnd
*/
public Integer getDeveLanguageEnd(){
return this.deveLanguageEnd;
}
/**
* 设置 结束 开发语言
* @param deveLanguageEnd
*/
public void setDeveLanguageEnd(Integer deveLanguageEnd){
this.deveLanguageEnd = deveLanguageEnd;
}
/**
* 获取 增加 开发语言
* @return deveLanguageIncrement
*/
public Integer getDeveLanguageIncrement(){
return this.deveLanguageIncrement;
}
/**
* 设置 增加 开发语言
* @param deveLanguageIncrement
*/
public void setDeveLanguageIncrement(Integer deveLanguageIncrement){
this.deveLanguageIncrement = deveLanguageIncrement;
}
/**
* 获取 开发语言
* @return deveLanguageList
*/
public List<Integer> getDeveLanguageList(){
return this.deveLanguageList;
}
/**
* 设置 开发语言
* @param deveLanguageList
*/
public void setDeveLanguageList(List<Integer> deveLanguageList){
this.deveLanguageList = deveLanguageList;
}
/**
* 获取 开发语言
* @return deveLanguageNotList
*/
public List<Integer> getDeveLanguageNotList(){
return this.deveLanguageNotList;
}
/**
* 设置 开发语言
* @param deveLanguageNotList
*/
public void setDeveLanguageNotList(List<Integer> deveLanguageNotList){
this.deveLanguageNotList = deveLanguageNotList;
}
/**
* 获取 版本号
* @return versionNumberList
*/
public List<String> getVersionNumberList(){
return this.versionNumberList;
}
/**
* 设置 版本号
* @param versionNumberList
*/
public void setVersionNumberList(List<String> versionNumberList){
this.versionNumberList = versionNumberList;
}
/**
* 获取 版本号
* @return versionNumberNotList
*/
public List<String> getVersionNumberNotList(){
return this.versionNumberNotList;
}
/**
* 设置 版本号
* @param versionNumberNotList
*/
public void setVersionNumberNotList(List<String> versionNumberNotList){
this.versionNumberNotList = versionNumberNotList;
}
/**
* 获取 版本信息
* @return versionInfoList
*/
public List<String> getVersionInfoList(){
return this.versionInfoList;
}
/**
* 设置 版本信息
* @param versionInfoList
*/
public void setVersionInfoList(List<String> versionInfoList){
this.versionInfoList = versionInfoList;
}
/**
* 获取 版本信息
* @return versionInfoNotList
*/
public List<String> getVersionInfoNotList(){
return this.versionInfoNotList;
}
/**
* 设置 版本信息
* @param versionInfoNotList
*/
public void setVersionInfoNotList(List<String> versionInfoNotList){
this.versionInfoNotList = versionInfoNotList;
}
/**
* 获取 应用文件地址
* @return appFileUrlList
*/
public List<String> getAppFileUrlList(){
return this.appFileUrlList;
}
/**
* 设置 应用文件地址
* @param appFileUrlList
*/
public void setAppFileUrlList(List<String> appFileUrlList){
this.appFileUrlList = appFileUrlList;
}
/**
* 获取 应用文件地址
* @return appFileUrlNotList
*/
public List<String> getAppFileUrlNotList(){
return this.appFileUrlNotList;
}
/**
* 设置 应用文件地址
* @param appFileUrlNotList
*/
public void setAppFileUrlNotList(List<String> appFileUrlNotList){
this.appFileUrlNotList = appFileUrlNotList;
}
/**
* 获取 开始 是否启用1是0否
* @return isEnableStart
*/
public Integer getIsEnableStart(){
return this.isEnableStart;
}
/**
* 设置 开始 是否启用1是0否
* @param isEnableStart
*/
public void setIsEnableStart(Integer isEnableStart){
this.isEnableStart = isEnableStart;
}
/**
* 获取 结束 是否启用1是0否
* @return $isEnableEnd
*/
public Integer getIsEnableEnd(){
return this.isEnableEnd;
}
/**
* 设置 结束 是否启用1是0否
* @param isEnableEnd
*/
public void setIsEnableEnd(Integer isEnableEnd){
this.isEnableEnd = isEnableEnd;
}
/**
* 获取 增加 是否启用1是0否
* @return isEnableIncrement
*/
public Integer getIsEnableIncrement(){
return this.isEnableIncrement;
}
/**
* 设置 增加 是否启用1是0否
* @param isEnableIncrement
*/
public void setIsEnableIncrement(Integer isEnableIncrement){
this.isEnableIncrement = isEnableIncrement;
}
/**
* 获取 是否启用1是0否
* @return isEnableList
*/
public List<Integer> getIsEnableList(){
return this.isEnableList;
}
/**
* 设置 是否启用1是0否
* @param isEnableList
*/
public void setIsEnableList(List<Integer> isEnableList){
this.isEnableList = isEnableList;
}
/**
* 获取 是否启用1是0否
* @return isEnableNotList
*/
public List<Integer> getIsEnableNotList(){
return this.isEnableNotList;
}
/**
* 设置 是否启用1是0否
* @param isEnableNotList
*/
public void setIsEnableNotList(List<Integer> isEnableNotList){
this.isEnableNotList = isEnableNotList;
}
/**
* 获取 开始 创建用户
* @return createUserIdStart
*/
public Long getCreateUserIdStart(){
return this.createUserIdStart;
}
/**
* 设置 开始 创建用户
* @param createUserIdStart
*/
public void setCreateUserIdStart(Long createUserIdStart){
this.createUserIdStart = createUserIdStart;
}
/**
* 获取 结束 创建用户
* @return $createUserIdEnd
*/
public Long getCreateUserIdEnd(){
return this.createUserIdEnd;
}
/**
* 设置 结束 创建用户
* @param createUserIdEnd
*/
public void setCreateUserIdEnd(Long createUserIdEnd){
this.createUserIdEnd = createUserIdEnd;
}
/**
* 获取 增加 创建用户
* @return createUserIdIncrement
*/
public Long getCreateUserIdIncrement(){
return this.createUserIdIncrement;
}
/**
* 设置 增加 创建用户
* @param createUserIdIncrement
*/
public void setCreateUserIdIncrement(Long createUserIdIncrement){
this.createUserIdIncrement = createUserIdIncrement;
}
/**
* 获取 创建用户
* @return createUserIdList
*/
public List<Long> getCreateUserIdList(){
return this.createUserIdList;
}
/**
* 设置 创建用户
* @param createUserIdList
*/
public void setCreateUserIdList(List<Long> createUserIdList){
this.createUserIdList = createUserIdList;
}
/**
* 获取 创建用户
* @return createUserIdNotList
*/
public List<Long> getCreateUserIdNotList(){
return this.createUserIdNotList;
}
/**
* 设置 创建用户
* @param createUserIdNotList
*/
public void setCreateUserIdNotList(List<Long> createUserIdNotList){
this.createUserIdNotList = createUserIdNotList;
}
/**
* 获取 开始 创建时间
* @return createTimeStart
*/
public String getCreateTimeStart(){
return this.createTimeStart;
}
/**
* 设置 开始 创建时间
* @param createTimeStart
*/
public void setCreateTimeStart(String createTimeStart){
this.createTimeStart = createTimeStart;
}
/**
* 获取 结束 创建时间
* @return createTimeEnd
*/
public String getCreateTimeEnd(){
return this.createTimeEnd;
}
/**
* 设置 结束 创建时间
* @param createTimeEnd
*/
public void setCreateTimeEnd(String createTimeEnd){
this.createTimeEnd = createTimeEnd;
}
/**
* 获取 开始 更新用户
* @return updateUserIdStart
*/
public Long getUpdateUserIdStart(){
return this.updateUserIdStart;
}
/**
* 设置 开始 更新用户
* @param updateUserIdStart
*/
public void setUpdateUserIdStart(Long updateUserIdStart){
this.updateUserIdStart = updateUserIdStart;
}
/**
* 获取 结束 更新用户
* @return $updateUserIdEnd
*/
public Long getUpdateUserIdEnd(){
return this.updateUserIdEnd;
}
/**
* 设置 结束 更新用户
* @param updateUserIdEnd
*/
public void setUpdateUserIdEnd(Long updateUserIdEnd){
this.updateUserIdEnd = updateUserIdEnd;
}
/**
* 获取 增加 更新用户
* @return updateUserIdIncrement
*/
public Long getUpdateUserIdIncrement(){
return this.updateUserIdIncrement;
}
/**
* 设置 增加 更新用户
* @param updateUserIdIncrement
*/
public void setUpdateUserIdIncrement(Long updateUserIdIncrement){
this.updateUserIdIncrement = updateUserIdIncrement;
}
/**
* 获取 更新用户
* @return updateUserIdList
*/
public List<Long> getUpdateUserIdList(){
return this.updateUserIdList;
}
/**
* 设置 更新用户
* @param updateUserIdList
*/
public void setUpdateUserIdList(List<Long> updateUserIdList){
this.updateUserIdList = updateUserIdList;
}
/**
* 获取 更新用户
* @return updateUserIdNotList
*/
public List<Long> getUpdateUserIdNotList(){
return this.updateUserIdNotList;
}
/**
* 设置 更新用户
* @param updateUserIdNotList
*/
public void setUpdateUserIdNotList(List<Long> updateUserIdNotList){
this.updateUserIdNotList = updateUserIdNotList;
}
/**
* 获取 开始 更新时间
* @return updateTimeStart
*/
public String getUpdateTimeStart(){
return this.updateTimeStart;
}
/**
* 设置 开始 更新时间
* @param updateTimeStart
*/
public void setUpdateTimeStart(String updateTimeStart){
this.updateTimeStart = updateTimeStart;
}
/**
* 获取 结束 更新时间
* @return updateTimeEnd
*/
public String getUpdateTimeEnd(){
return this.updateTimeEnd;
}
/**
* 设置 结束 更新时间
* @param updateTimeEnd
*/
public void setUpdateTimeEnd(String updateTimeEnd){
this.updateTimeEnd = updateTimeEnd;
}
/**
* 设置 序号,主键,自增长
* @param id
*/
public ProductAppsQuery id(Long id){
setId(id);
return this;
}
/**
* 设置 开始 序号,主键,自增长
* @param idStart
*/
public ProductAppsQuery idStart(Long idStart){
this.idStart = idStart;
return this;
}
/**
* 设置 结束 序号,主键,自增长
* @param idEnd
*/
public ProductAppsQuery idEnd(Long idEnd){
this.idEnd = idEnd;
return this;
}
/**
* 设置 增加 序号,主键,自增长
* @param idIncrement
*/
public ProductAppsQuery idIncrement(Long idIncrement){
this.idIncrement = idIncrement;
return this;
}
/**
* 设置 序号,主键,自增长
* @param idList
*/
public ProductAppsQuery idList(List<Long> idList){
this.idList = idList;
return this;
}
/**
* 设置 序号,主键,自增长
* @param idNotList
*/
public ProductAppsQuery idNotList(List<Long> idNotList){
this.idNotList = idNotList;
return this;
}
/**
* 设置 产品id
* @param productId
*/
public ProductAppsQuery productId(Long productId){
setProductId(productId);
return this;
}
/**
* 设置 开始 产品id
* @param productIdStart
*/
public ProductAppsQuery productIdStart(Long productIdStart){
this.productIdStart = productIdStart;
return this;
}
/**
* 设置 结束 产品id
* @param productIdEnd
*/
public ProductAppsQuery productIdEnd(Long productIdEnd){
this.productIdEnd = productIdEnd;
return this;
}
/**
* 设置 增加 产品id
* @param productIdIncrement
*/
public ProductAppsQuery productIdIncrement(Long productIdIncrement){
this.productIdIncrement = productIdIncrement;
return this;
}
/**
* 设置 产品id
* @param productIdList
*/
public ProductAppsQuery productIdList(List<Long> productIdList){
this.productIdList = productIdList;
return this;
}
/**
* 设置 产品id
* @param productIdNotList
*/
public ProductAppsQuery productIdNotList(List<Long> productIdNotList){
this.productIdNotList = productIdNotList;
return this;
}
/**
* 设置 应用名称
* @param appName
*/
public ProductAppsQuery appName(String appName){
setAppName(appName);
return this;
}
/**
* 设置 应用名称
* @param appNameList
*/
public ProductAppsQuery appNameList(List<String> appNameList){
this.appNameList = appNameList;
return this;
}
/**
* 设置 开发语言
* @param deveLanguage
*/
public ProductAppsQuery deveLanguage(Integer deveLanguage){
setDeveLanguage(deveLanguage);
return this;
}
/**
* 设置 开始 开发语言
* @param deveLanguageStart
*/
public ProductAppsQuery deveLanguageStart(Integer deveLanguageStart){
this.deveLanguageStart = deveLanguageStart;
return this;
}
/**
* 设置 结束 开发语言
* @param deveLanguageEnd
*/
public ProductAppsQuery deveLanguageEnd(Integer deveLanguageEnd){
this.deveLanguageEnd = deveLanguageEnd;
return this;
}
/**
* 设置 增加 开发语言
* @param deveLanguageIncrement
*/
public ProductAppsQuery deveLanguageIncrement(Integer deveLanguageIncrement){
this.deveLanguageIncrement = deveLanguageIncrement;
return this;
}
/**
* 设置 开发语言
* @param deveLanguageList
*/
public ProductAppsQuery deveLanguageList(List<Integer> deveLanguageList){
this.deveLanguageList = deveLanguageList;
return this;
}
/**
* 设置 开发语言
* @param deveLanguageNotList
*/
public ProductAppsQuery deveLanguageNotList(List<Integer> deveLanguageNotList){
this.deveLanguageNotList = deveLanguageNotList;
return this;
}
/**
* 设置 版本号
* @param versionNumber
*/
public ProductAppsQuery versionNumber(String versionNumber){
setVersionNumber(versionNumber);
return this;
}
/**
* 设置 版本号
* @param versionNumberList
*/
public ProductAppsQuery versionNumberList(List<String> versionNumberList){
this.versionNumberList = versionNumberList;
return this;
}
/**
* 设置 版本信息
* @param versionInfo
*/
public ProductAppsQuery versionInfo(String versionInfo){
setVersionInfo(versionInfo);
return this;
}
/**
* 设置 版本信息
* @param versionInfoList
*/
public ProductAppsQuery versionInfoList(List<String> versionInfoList){
this.versionInfoList = versionInfoList;
return this;
}
/**
* 设置 应用文件地址
* @param appFileUrl
*/
public ProductAppsQuery appFileUrl(String appFileUrl){
setAppFileUrl(appFileUrl);
return this;
}
/**
* 设置 应用文件地址
* @param appFileUrlList
*/
public ProductAppsQuery appFileUrlList(List<String> appFileUrlList){
this.appFileUrlList = appFileUrlList;
return this;
}
/**
* 设置 是否启用1是0否
* @param isEnable
*/
public ProductAppsQuery isEnable(Integer isEnable){
setIsEnable(isEnable);
return this;
}
/**
* 设置 开始 是否启用1是0否
* @param isEnableStart
*/
public ProductAppsQuery isEnableStart(Integer isEnableStart){
this.isEnableStart = isEnableStart;
return this;
}
/**
* 设置 结束 是否启用1是0否
* @param isEnableEnd
*/
public ProductAppsQuery isEnableEnd(Integer isEnableEnd){
this.isEnableEnd = isEnableEnd;
return this;
}
/**
* 设置 增加 是否启用1是0否
* @param isEnableIncrement
*/
public ProductAppsQuery isEnableIncrement(Integer isEnableIncrement){
this.isEnableIncrement = isEnableIncrement;
return this;
}
/**
* 设置 是否启用1是0否
* @param isEnableList
*/
public ProductAppsQuery isEnableList(List<Integer> isEnableList){
this.isEnableList = isEnableList;
return this;
}
/**
* 设置 是否启用1是0否
* @param isEnableNotList
*/
public ProductAppsQuery isEnableNotList(List<Integer> isEnableNotList){
this.isEnableNotList = isEnableNotList;
return this;
}
/**
* 设置 创建用户
* @param createUserId
*/
public ProductAppsQuery createUserId(Long createUserId){
setCreateUserId(createUserId);
return this;
}
/**
* 设置 开始 创建用户
* @param createUserIdStart
*/
public ProductAppsQuery createUserIdStart(Long createUserIdStart){
this.createUserIdStart = createUserIdStart;
return this;
}
/**
* 设置 结束 创建用户
* @param createUserIdEnd
*/
public ProductAppsQuery createUserIdEnd(Long createUserIdEnd){
this.createUserIdEnd = createUserIdEnd;
return this;
}
/**
* 设置 增加 创建用户
* @param createUserIdIncrement
*/
public ProductAppsQuery createUserIdIncrement(Long createUserIdIncrement){
this.createUserIdIncrement = createUserIdIncrement;
return this;
}
/**
* 设置 创建用户
* @param createUserIdList
*/
public ProductAppsQuery createUserIdList(List<Long> createUserIdList){
this.createUserIdList = createUserIdList;
return this;
}
/**
* 设置 创建用户
* @param createUserIdNotList
*/
public ProductAppsQuery createUserIdNotList(List<Long> createUserIdNotList){
this.createUserIdNotList = createUserIdNotList;
return this;
}
/**
* 设置 更新用户
* @param updateUserId
*/
public ProductAppsQuery updateUserId(Long updateUserId){
setUpdateUserId(updateUserId);
return this;
}
/**
* 设置 开始 更新用户
* @param updateUserIdStart
*/
public ProductAppsQuery updateUserIdStart(Long updateUserIdStart){
this.updateUserIdStart = updateUserIdStart;
return this;
}
/**
* 设置 结束 更新用户
* @param updateUserIdEnd
*/
public ProductAppsQuery updateUserIdEnd(Long updateUserIdEnd){
this.updateUserIdEnd = updateUserIdEnd;
return this;
}
/**
* 设置 增加 更新用户
* @param updateUserIdIncrement
*/
public ProductAppsQuery updateUserIdIncrement(Long updateUserIdIncrement){
this.updateUserIdIncrement = updateUserIdIncrement;
return this;
}
/**
* 设置 更新用户
* @param updateUserIdList
*/
public ProductAppsQuery updateUserIdList(List<Long> updateUserIdList){
this.updateUserIdList = updateUserIdList;
return this;
}
/**
* 设置 更新用户
* @param updateUserIdNotList
*/
public ProductAppsQuery updateUserIdNotList(List<Long> updateUserIdNotList){
this.updateUserIdNotList = updateUserIdNotList;
return this;
}
/**
* 获取 OR条件集合,列表项之间是OR,项内容之间是AND,如:(list[0].1 and list[0].2) or (list[1].3 and list[1].4)
* @return orConditionList
*/
public List<ProductAppsQuery> getOrConditionList(){
return this.orConditionList;
}
/**
* 设置 OR条件集合,列表项之间是OR,项内容之间是AND,如:(list[0].1 and list[0].2) or (list[1].3 and list[1].4)
* @param orConditionList
*/
public void setOrConditionList(List<ProductAppsQuery> orConditionList){
this.orConditionList = orConditionList;
}
/**
* 获取 AND条件集合,列表项之间是AND,项内容之间是OR,如:(list[0].1 or list[0].2) and (list[1].3 or list[1].4)
* @return andConditionList
*/
public List<ProductAppsQuery> getAndConditionList(){
return this.andConditionList;
}
/**
* 设置 AND条件集合,列表项之间是AND,项内容之间是OR,如:(list[0].1 or list[0].2) and (list[1].3 or list[1].4)
* @param andConditionList
*/
public void setAndConditionList(List<ProductAppsQuery> andConditionList){
this.andConditionList = andConditionList;
}
}
\ No newline at end of file
package com.mortals.xhx.module.product.model;
import java.util.List;
import java.util.ArrayList;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.mortals.framework.annotation.Excel;
import com.mortals.framework.model.BaseEntityLong;
import com.mortals.xhx.module.product.model.vo.ProductDocumentVo;
/**
* 产品资料实体对象
*
* @author zxfei
* @date 2023-02-22
*/
public class ProductDocumentEntity extends ProductDocumentVo {
private static final long serialVersionUID = 1L;
/**
* 产品id
*/
private Long productId;
/**
* 资料名称
*/
private String docName;
/**
* 版本号
*/
private String versionNumber;
/**
* 版本信息
*/
private String versionInfo;
/**
* 资料文件地址
*/
private String docFileUrl;
public ProductDocumentEntity(){}
/**
* 获取 产品id
* @return Long
*/
public Long getProductId(){
return productId;
}
/**
* 设置 产品id
* @param productId
*/
public void setProductId(Long productId){
this.productId = productId;
}
/**
* 获取 资料名称
* @return String
*/
public String getDocName(){
return docName;
}
/**
* 设置 资料名称
* @param docName
*/
public void setDocName(String docName){
this.docName = docName;
}
/**
* 获取 版本号
* @return String
*/
public String getVersionNumber(){
return versionNumber;
}
/**
* 设置 版本号
* @param versionNumber
*/
public void setVersionNumber(String versionNumber){
this.versionNumber = versionNumber;
}
/**
* 获取 版本信息
* @return String
*/
public String getVersionInfo(){
return versionInfo;
}
/**
* 设置 版本信息
* @param versionInfo
*/
public void setVersionInfo(String versionInfo){
this.versionInfo = versionInfo;
}
/**
* 获取 资料文件地址
* @return String
*/
public String getDocFileUrl(){
return docFileUrl;
}
/**
* 设置 资料文件地址
* @param docFileUrl
*/
public void setDocFileUrl(String docFileUrl){
this.docFileUrl = docFileUrl;
}
@Override
public int hashCode() {
return this.getId().hashCode();
}
@Override
public boolean equals(Object obj) {
if (obj == null) return false;
if (obj instanceof ProductDocumentEntity) {
ProductDocumentEntity tmp = (ProductDocumentEntity) obj;
if (this.getId() == tmp.getId()) {
return true;
}
}
return false;
}
public String toString(){
StringBuilder sb = new StringBuilder("");
sb.append(",productId:").append(getProductId());
sb.append(",docName:").append(getDocName());
sb.append(",versionNumber:").append(getVersionNumber());
sb.append(",versionInfo:").append(getVersionInfo());
sb.append(",docFileUrl:").append(getDocFileUrl());
return sb.toString();
}
public void initAttrValue(){
this.productId = null;
this.docName = "";
this.versionNumber = "";
this.versionInfo = "";
this.docFileUrl = "";
}
}
\ No newline at end of file
package com.mortals.xhx.module.product.model;
import java.util.List;
import com.mortals.xhx.module.product.model.ProductDocumentEntity;
/**
* 产品资料查询对象
*
* @author zxfei
* @date 2023-02-22
*/
public class ProductDocumentQuery extends ProductDocumentEntity {
/** 开始 序号,主键,自增长 */
private Long idStart;
/** 结束 序号,主键,自增长 */
private Long idEnd;
/** 增加 序号,主键,自增长 */
private Long idIncrement;
/** 序号,主键,自增长列表 */
private List <Long> idList;
/** 序号,主键,自增长排除列表 */
private List <Long> idNotList;
/** 开始 产品id */
private Long productIdStart;
/** 结束 产品id */
private Long productIdEnd;
/** 增加 产品id */
private Long productIdIncrement;
/** 产品id列表 */
private List <Long> productIdList;
/** 产品id排除列表 */
private List <Long> productIdNotList;
/** 资料名称 */
private List<String> docNameList;
/** 资料名称排除列表 */
private List <String> docNameNotList;
/** 版本号 */
private List<String> versionNumberList;
/** 版本号排除列表 */
private List <String> versionNumberNotList;
/** 版本信息 */
private List<String> versionInfoList;
/** 版本信息排除列表 */
private List <String> versionInfoNotList;
/** 资料文件地址 */
private List<String> docFileUrlList;
/** 资料文件地址排除列表 */
private List <String> docFileUrlNotList;
/** 开始 创建用户 */
private Long createUserIdStart;
/** 结束 创建用户 */
private Long createUserIdEnd;
/** 增加 创建用户 */
private Long createUserIdIncrement;
/** 创建用户列表 */
private List <Long> createUserIdList;
/** 创建用户排除列表 */
private List <Long> createUserIdNotList;
/** 开始 创建时间 */
private String createTimeStart;
/** 结束 创建时间 */
private String createTimeEnd;
/** 开始 更新用户 */
private Long updateUserIdStart;
/** 结束 更新用户 */
private Long updateUserIdEnd;
/** 增加 更新用户 */
private Long updateUserIdIncrement;
/** 更新用户列表 */
private List <Long> updateUserIdList;
/** 更新用户排除列表 */
private List <Long> updateUserIdNotList;
/** 开始 更新时间 */
private String updateTimeStart;
/** 结束 更新时间 */
private String updateTimeEnd;
/** OR条件集合,列表项之间是OR,项内容之间是AND,如:(list[0].1 and list[0].2) or (list[1].3 and list[1].4) */
private List<ProductDocumentQuery> orConditionList;
/** AND条件集合,列表项之间是AND,项内容之间是OR,如:(list[0].1 or list[0].2) and (list[1].3 or list[1].4) */
private List<ProductDocumentQuery> andConditionList;
public ProductDocumentQuery(){}
/**
* 获取 开始 序号,主键,自增长
* @return idStart
*/
public Long getIdStart(){
return this.idStart;
}
/**
* 设置 开始 序号,主键,自增长
* @param idStart
*/
public void setIdStart(Long idStart){
this.idStart = idStart;
}
/**
* 获取 结束 序号,主键,自增长
* @return $idEnd
*/
public Long getIdEnd(){
return this.idEnd;
}
/**
* 设置 结束 序号,主键,自增长
* @param idEnd
*/
public void setIdEnd(Long idEnd){
this.idEnd = idEnd;
}
/**
* 获取 增加 序号,主键,自增长
* @return idIncrement
*/
public Long getIdIncrement(){
return this.idIncrement;
}
/**
* 设置 增加 序号,主键,自增长
* @param idIncrement
*/
public void setIdIncrement(Long idIncrement){
this.idIncrement = idIncrement;
}
/**
* 获取 序号,主键,自增长
* @return idList
*/
public List<Long> getIdList(){
return this.idList;
}
/**
* 设置 序号,主键,自增长
* @param idList
*/
public void setIdList(List<Long> idList){
this.idList = idList;
}
/**
* 获取 序号,主键,自增长
* @return idNotList
*/
public List<Long> getIdNotList(){
return this.idNotList;
}
/**
* 设置 序号,主键,自增长
* @param idNotList
*/
public void setIdNotList(List<Long> idNotList){
this.idNotList = idNotList;
}
/**
* 获取 开始 产品id
* @return productIdStart
*/
public Long getProductIdStart(){
return this.productIdStart;
}
/**
* 设置 开始 产品id
* @param productIdStart
*/
public void setProductIdStart(Long productIdStart){
this.productIdStart = productIdStart;
}
/**
* 获取 结束 产品id
* @return $productIdEnd
*/
public Long getProductIdEnd(){
return this.productIdEnd;
}
/**
* 设置 结束 产品id
* @param productIdEnd
*/
public void setProductIdEnd(Long productIdEnd){
this.productIdEnd = productIdEnd;
}
/**
* 获取 增加 产品id
* @return productIdIncrement
*/
public Long getProductIdIncrement(){
return this.productIdIncrement;
}
/**
* 设置 增加 产品id
* @param productIdIncrement
*/
public void setProductIdIncrement(Long productIdIncrement){
this.productIdIncrement = productIdIncrement;
}
/**
* 获取 产品id
* @return productIdList
*/
public List<Long> getProductIdList(){
return this.productIdList;
}
/**
* 设置 产品id
* @param productIdList
*/
public void setProductIdList(List<Long> productIdList){
this.productIdList = productIdList;
}
/**
* 获取 产品id
* @return productIdNotList
*/
public List<Long> getProductIdNotList(){
return this.productIdNotList;
}
/**
* 设置 产品id
* @param productIdNotList
*/
public void setProductIdNotList(List<Long> productIdNotList){
this.productIdNotList = productIdNotList;
}
/**
* 获取 资料名称
* @return docNameList
*/
public List<String> getDocNameList(){
return this.docNameList;
}
/**
* 设置 资料名称
* @param docNameList
*/
public void setDocNameList(List<String> docNameList){
this.docNameList = docNameList;
}
/**
* 获取 资料名称
* @return docNameNotList
*/
public List<String> getDocNameNotList(){
return this.docNameNotList;
}
/**
* 设置 资料名称
* @param docNameNotList
*/
public void setDocNameNotList(List<String> docNameNotList){
this.docNameNotList = docNameNotList;
}
/**
* 获取 版本号
* @return versionNumberList
*/
public List<String> getVersionNumberList(){
return this.versionNumberList;
}
/**
* 设置 版本号
* @param versionNumberList
*/
public void setVersionNumberList(List<String> versionNumberList){
this.versionNumberList = versionNumberList;
}
/**
* 获取 版本号
* @return versionNumberNotList
*/
public List<String> getVersionNumberNotList(){
return this.versionNumberNotList;
}
/**
* 设置 版本号
* @param versionNumberNotList
*/
public void setVersionNumberNotList(List<String> versionNumberNotList){
this.versionNumberNotList = versionNumberNotList;
}
/**
* 获取 版本信息
* @return versionInfoList
*/
public List<String> getVersionInfoList(){
return this.versionInfoList;
}
/**
* 设置 版本信息
* @param versionInfoList
*/
public void setVersionInfoList(List<String> versionInfoList){
this.versionInfoList = versionInfoList;
}
/**
* 获取 版本信息
* @return versionInfoNotList
*/
public List<String> getVersionInfoNotList(){
return this.versionInfoNotList;
}
/**
* 设置 版本信息
* @param versionInfoNotList
*/
public void setVersionInfoNotList(List<String> versionInfoNotList){
this.versionInfoNotList = versionInfoNotList;
}
/**
* 获取 资料文件地址
* @return docFileUrlList
*/
public List<String> getDocFileUrlList(){
return this.docFileUrlList;
}
/**
* 设置 资料文件地址
* @param docFileUrlList
*/
public void setDocFileUrlList(List<String> docFileUrlList){
this.docFileUrlList = docFileUrlList;
}
/**
* 获取 资料文件地址
* @return docFileUrlNotList
*/
public List<String> getDocFileUrlNotList(){
return this.docFileUrlNotList;
}
/**
* 设置 资料文件地址
* @param docFileUrlNotList
*/
public void setDocFileUrlNotList(List<String> docFileUrlNotList){
this.docFileUrlNotList = docFileUrlNotList;
}
/**
* 获取 开始 创建用户
* @return createUserIdStart
*/
public Long getCreateUserIdStart(){
return this.createUserIdStart;
}
/**
* 设置 开始 创建用户
* @param createUserIdStart
*/
public void setCreateUserIdStart(Long createUserIdStart){
this.createUserIdStart = createUserIdStart;
}
/**
* 获取 结束 创建用户
* @return $createUserIdEnd
*/
public Long getCreateUserIdEnd(){
return this.createUserIdEnd;
}
/**
* 设置 结束 创建用户
* @param createUserIdEnd
*/
public void setCreateUserIdEnd(Long createUserIdEnd){
this.createUserIdEnd = createUserIdEnd;
}
/**
* 获取 增加 创建用户
* @return createUserIdIncrement
*/
public Long getCreateUserIdIncrement(){
return this.createUserIdIncrement;
}
/**
* 设置 增加 创建用户
* @param createUserIdIncrement
*/
public void setCreateUserIdIncrement(Long createUserIdIncrement){
this.createUserIdIncrement = createUserIdIncrement;
}
/**
* 获取 创建用户
* @return createUserIdList
*/
public List<Long> getCreateUserIdList(){
return this.createUserIdList;
}
/**
* 设置 创建用户
* @param createUserIdList
*/
public void setCreateUserIdList(List<Long> createUserIdList){
this.createUserIdList = createUserIdList;
}
/**
* 获取 创建用户
* @return createUserIdNotList
*/
public List<Long> getCreateUserIdNotList(){
return this.createUserIdNotList;
}
/**
* 设置 创建用户
* @param createUserIdNotList
*/
public void setCreateUserIdNotList(List<Long> createUserIdNotList){
this.createUserIdNotList = createUserIdNotList;
}
/**
* 获取 开始 创建时间
* @return createTimeStart
*/
public String getCreateTimeStart(){
return this.createTimeStart;
}
/**
* 设置 开始 创建时间
* @param createTimeStart
*/
public void setCreateTimeStart(String createTimeStart){
this.createTimeStart = createTimeStart;
}
/**
* 获取 结束 创建时间
* @return createTimeEnd
*/
public String getCreateTimeEnd(){
return this.createTimeEnd;
}
/**
* 设置 结束 创建时间
* @param createTimeEnd
*/
public void setCreateTimeEnd(String createTimeEnd){
this.createTimeEnd = createTimeEnd;
}
/**
* 获取 开始 更新用户
* @return updateUserIdStart
*/
public Long getUpdateUserIdStart(){
return this.updateUserIdStart;
}
/**
* 设置 开始 更新用户
* @param updateUserIdStart
*/
public void setUpdateUserIdStart(Long updateUserIdStart){
this.updateUserIdStart = updateUserIdStart;
}
/**
* 获取 结束 更新用户
* @return $updateUserIdEnd
*/
public Long getUpdateUserIdEnd(){
return this.updateUserIdEnd;
}
/**
* 设置 结束 更新用户
* @param updateUserIdEnd
*/
public void setUpdateUserIdEnd(Long updateUserIdEnd){
this.updateUserIdEnd = updateUserIdEnd;
}
/**
* 获取 增加 更新用户
* @return updateUserIdIncrement
*/
public Long getUpdateUserIdIncrement(){
return this.updateUserIdIncrement;
}
/**
* 设置 增加 更新用户
* @param updateUserIdIncrement
*/
public void setUpdateUserIdIncrement(Long updateUserIdIncrement){
this.updateUserIdIncrement = updateUserIdIncrement;
}
/**
* 获取 更新用户
* @return updateUserIdList
*/
public List<Long> getUpdateUserIdList(){
return this.updateUserIdList;
}
/**
* 设置 更新用户
* @param updateUserIdList
*/
public void setUpdateUserIdList(List<Long> updateUserIdList){
this.updateUserIdList = updateUserIdList;
}
/**
* 获取 更新用户
* @return updateUserIdNotList
*/
public List<Long> getUpdateUserIdNotList(){
return this.updateUserIdNotList;
}
/**
* 设置 更新用户
* @param updateUserIdNotList
*/
public void setUpdateUserIdNotList(List<Long> updateUserIdNotList){
this.updateUserIdNotList = updateUserIdNotList;
}
/**
* 获取 开始 更新时间
* @return updateTimeStart
*/
public String getUpdateTimeStart(){
return this.updateTimeStart;
}
/**
* 设置 开始 更新时间
* @param updateTimeStart
*/
public void setUpdateTimeStart(String updateTimeStart){
this.updateTimeStart = updateTimeStart;
}
/**
* 获取 结束 更新时间
* @return updateTimeEnd
*/
public String getUpdateTimeEnd(){
return this.updateTimeEnd;
}
/**
* 设置 结束 更新时间
* @param updateTimeEnd
*/
public void setUpdateTimeEnd(String updateTimeEnd){
this.updateTimeEnd = updateTimeEnd;
}
/**
* 设置 序号,主键,自增长
* @param id
*/
public ProductDocumentQuery id(Long id){
setId(id);
return this;
}
/**
* 设置 开始 序号,主键,自增长
* @param idStart
*/
public ProductDocumentQuery idStart(Long idStart){
this.idStart = idStart;
return this;
}
/**
* 设置 结束 序号,主键,自增长
* @param idEnd
*/
public ProductDocumentQuery idEnd(Long idEnd){
this.idEnd = idEnd;
return this;
}
/**
* 设置 增加 序号,主键,自增长
* @param idIncrement
*/
public ProductDocumentQuery idIncrement(Long idIncrement){
this.idIncrement = idIncrement;
return this;
}
/**
* 设置 序号,主键,自增长
* @param idList
*/
public ProductDocumentQuery idList(List<Long> idList){
this.idList = idList;
return this;
}
/**
* 设置 序号,主键,自增长
* @param idNotList
*/
public ProductDocumentQuery idNotList(List<Long> idNotList){
this.idNotList = idNotList;
return this;
}
/**
* 设置 产品id
* @param productId
*/
public ProductDocumentQuery productId(Long productId){
setProductId(productId);
return this;
}
/**
* 设置 开始 产品id
* @param productIdStart
*/
public ProductDocumentQuery productIdStart(Long productIdStart){
this.productIdStart = productIdStart;
return this;
}
/**
* 设置 结束 产品id
* @param productIdEnd
*/
public ProductDocumentQuery productIdEnd(Long productIdEnd){
this.productIdEnd = productIdEnd;
return this;
}
/**
* 设置 增加 产品id
* @param productIdIncrement
*/
public ProductDocumentQuery productIdIncrement(Long productIdIncrement){
this.productIdIncrement = productIdIncrement;
return this;
}
/**
* 设置 产品id
* @param productIdList
*/
public ProductDocumentQuery productIdList(List<Long> productIdList){
this.productIdList = productIdList;
return this;
}
/**
* 设置 产品id
* @param productIdNotList
*/
public ProductDocumentQuery productIdNotList(List<Long> productIdNotList){
this.productIdNotList = productIdNotList;
return this;
}
/**
* 设置 资料名称
* @param docName
*/
public ProductDocumentQuery docName(String docName){
setDocName(docName);
return this;
}
/**
* 设置 资料名称
* @param docNameList
*/
public ProductDocumentQuery docNameList(List<String> docNameList){
this.docNameList = docNameList;
return this;
}
/**
* 设置 版本号
* @param versionNumber
*/
public ProductDocumentQuery versionNumber(String versionNumber){
setVersionNumber(versionNumber);
return this;
}
/**
* 设置 版本号
* @param versionNumberList
*/
public ProductDocumentQuery versionNumberList(List<String> versionNumberList){
this.versionNumberList = versionNumberList;
return this;
}
/**
* 设置 版本信息
* @param versionInfo
*/
public ProductDocumentQuery versionInfo(String versionInfo){
setVersionInfo(versionInfo);
return this;
}
/**
* 设置 版本信息
* @param versionInfoList
*/
public ProductDocumentQuery versionInfoList(List<String> versionInfoList){
this.versionInfoList = versionInfoList;
return this;
}
/**
* 设置 资料文件地址
* @param docFileUrl
*/
public ProductDocumentQuery docFileUrl(String docFileUrl){
setDocFileUrl(docFileUrl);
return this;
}
/**
* 设置 资料文件地址
* @param docFileUrlList
*/
public ProductDocumentQuery docFileUrlList(List<String> docFileUrlList){
this.docFileUrlList = docFileUrlList;
return this;
}
/**
* 设置 创建用户
* @param createUserId
*/
public ProductDocumentQuery createUserId(Long createUserId){
setCreateUserId(createUserId);
return this;
}
/**
* 设置 开始 创建用户
* @param createUserIdStart
*/
public ProductDocumentQuery createUserIdStart(Long createUserIdStart){
this.createUserIdStart = createUserIdStart;
return this;
}
/**
* 设置 结束 创建用户
* @param createUserIdEnd
*/
public ProductDocumentQuery createUserIdEnd(Long createUserIdEnd){
this.createUserIdEnd = createUserIdEnd;
return this;
}
/**
* 设置 增加 创建用户
* @param createUserIdIncrement
*/
public ProductDocumentQuery createUserIdIncrement(Long createUserIdIncrement){
this.createUserIdIncrement = createUserIdIncrement;
return this;
}
/**
* 设置 创建用户
* @param createUserIdList
*/
public ProductDocumentQuery createUserIdList(List<Long> createUserIdList){
this.createUserIdList = createUserIdList;
return this;
}
/**
* 设置 创建用户
* @param createUserIdNotList
*/
public ProductDocumentQuery createUserIdNotList(List<Long> createUserIdNotList){
this.createUserIdNotList = createUserIdNotList;
return this;
}
/**
* 设置 更新用户
* @param updateUserId
*/
public ProductDocumentQuery updateUserId(Long updateUserId){
setUpdateUserId(updateUserId);
return this;
}
/**
* 设置 开始 更新用户
* @param updateUserIdStart
*/
public ProductDocumentQuery updateUserIdStart(Long updateUserIdStart){
this.updateUserIdStart = updateUserIdStart;
return this;
}
/**
* 设置 结束 更新用户
* @param updateUserIdEnd
*/
public ProductDocumentQuery updateUserIdEnd(Long updateUserIdEnd){
this.updateUserIdEnd = updateUserIdEnd;
return this;
}
/**
* 设置 增加 更新用户
* @param updateUserIdIncrement
*/
public ProductDocumentQuery updateUserIdIncrement(Long updateUserIdIncrement){
this.updateUserIdIncrement = updateUserIdIncrement;
return this;
}
/**
* 设置 更新用户
* @param updateUserIdList
*/
public ProductDocumentQuery updateUserIdList(List<Long> updateUserIdList){
this.updateUserIdList = updateUserIdList;
return this;
}
/**
* 设置 更新用户
* @param updateUserIdNotList
*/
public ProductDocumentQuery updateUserIdNotList(List<Long> updateUserIdNotList){
this.updateUserIdNotList = updateUserIdNotList;
return this;
}
/**
* 获取 OR条件集合,列表项之间是OR,项内容之间是AND,如:(list[0].1 and list[0].2) or (list[1].3 and list[1].4)
* @return orConditionList
*/
public List<ProductDocumentQuery> getOrConditionList(){
return this.orConditionList;
}
/**
* 设置 OR条件集合,列表项之间是OR,项内容之间是AND,如:(list[0].1 and list[0].2) or (list[1].3 and list[1].4)
* @param orConditionList
*/
public void setOrConditionList(List<ProductDocumentQuery> orConditionList){
this.orConditionList = orConditionList;
}
/**
* 获取 AND条件集合,列表项之间是AND,项内容之间是OR,如:(list[0].1 or list[0].2) and (list[1].3 or list[1].4)
* @return andConditionList
*/
public List<ProductDocumentQuery> getAndConditionList(){
return this.andConditionList;
}
/**
* 设置 AND条件集合,列表项之间是AND,项内容之间是OR,如:(list[0].1 or list[0].2) and (list[1].3 or list[1].4)
* @param andConditionList
*/
public void setAndConditionList(List<ProductDocumentQuery> andConditionList){
this.andConditionList = andConditionList;
}
}
\ No newline at end of file
package com.mortals.xhx.module.product.model;
import java.util.List;
import java.util.ArrayList;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.mortals.framework.annotation.Excel;
import com.mortals.framework.model.BaseEntityLong;
import com.mortals.xhx.module.product.model.vo.ProductVo;
/**
* 产品信息实体对象
*
* @author zxfei
* @date 2023-02-22
*/
public class ProductEntity extends ProductVo {
private static final long serialVersionUID = 1L;
/**
* 站点id
*/
private Long siteId;
/**
* 产品名称
*/
private String productName;
/**
* Logo图片地址
*/
private String logoUrl;
/**
* 产品编码
*/
private String productCode;
public ProductEntity(){}
/**
* 获取 站点id
* @return Long
*/
public Long getSiteId(){
return siteId;
}
/**
* 设置 站点id
* @param siteId
*/
public void setSiteId(Long siteId){
this.siteId = siteId;
}
/**
* 获取 产品名称
* @return String
*/
public String getProductName(){
return productName;
}
/**
* 设置 产品名称
* @param productName
*/
public void setProductName(String productName){
this.productName = productName;
}
/**
* 获取 Logo图片地址
* @return String
*/
public String getLogoUrl(){
return logoUrl;
}
/**
* 设置 Logo图片地址
* @param logoUrl
*/
public void setLogoUrl(String logoUrl){
this.logoUrl = logoUrl;
}
/**
* 获取 产品编码
* @return String
*/
public String getProductCode(){
return productCode;
}
/**
* 设置 产品编码
* @param productCode
*/
public void setProductCode(String productCode){
this.productCode = productCode;
}
@Override
public int hashCode() {
return this.getId().hashCode();
}
@Override
public boolean equals(Object obj) {
if (obj == null) return false;
if (obj instanceof ProductEntity) {
ProductEntity tmp = (ProductEntity) obj;
if (this.getId() == tmp.getId()) {
return true;
}
}
return false;
}
public String toString(){
StringBuilder sb = new StringBuilder("");
sb.append(",siteId:").append(getSiteId());
sb.append(",productName:").append(getProductName());
sb.append(",logoUrl:").append(getLogoUrl());
sb.append(",productCode:").append(getProductCode());
return sb.toString();
}
public void initAttrValue(){
this.siteId = null;
this.productName = "";
this.logoUrl = "";
this.productCode = "";
}
}
\ No newline at end of file
package com.mortals.xhx.module.product.model;
import com.mortals.xhx.module.product.model.vo.ProductInterfaceVo;
/**
* 产品接口实体对象
*
* @author zxfei
* @date 2023-02-22
*/
public class ProductInterfaceEntity extends ProductInterfaceVo {
private static final long serialVersionUID = 1L;
/**
* 产品id
*/
private Long productId;
/**
* 接口名称
*/
private String interfaceName;
/**
* 版本号
*/
private String versionNumber;
/**
* 请求类型1:POST,2:GET
*/
private Integer requestType;
/**
* 请求协议1:HTTP,2:HTTPS
*/
private Integer requestProtocol;
/**
* 请求路径
*/
private String requestUrl;
/**
* 超时时间(秒)
*/
private Long timeoutValue;
/**
* 限流策略1:分钟,2:小时
*/
private Integer limitStrategy;
/**
* 访问网络1互联网2政务网
*/
private String network;
/**
* 接口描述
*/
private String description;
/**
* 流控信息
*/
private String flowControl;
/**
* 授权信息
*/
private String authorizeInfo;
/**
* 标签
*/
private Integer interfaceTag;
/**
* 来源1自有2非自有
*/
private Integer interfaceSource;
/**
* 请求参数
*/
private String requestParameters;
/**
* 响应数据
*/
private String responseParameters;
/**
* 错误码
*/
private String errorCode;
/**
* 变更历史
*/
private String changeHistory;
public ProductInterfaceEntity(){}
/**
* 获取 产品id
* @return Long
*/
public Long getProductId(){
return productId;
}
/**
* 设置 产品id
* @param productId
*/
public void setProductId(Long productId){
this.productId = productId;
}
/**
* 获取 接口名称
* @return String
*/
public String getInterfaceName(){
return interfaceName;
}
/**
* 设置 接口名称
* @param interfaceName
*/
public void setInterfaceName(String interfaceName){
this.interfaceName = interfaceName;
}
/**
* 获取 版本号
* @return String
*/
public String getVersionNumber(){
return versionNumber;
}
/**
* 设置 版本号
* @param versionNumber
*/
public void setVersionNumber(String versionNumber){
this.versionNumber = versionNumber;
}
/**
* 获取 请求类型1:POST,2:GET
* @return Integer
*/
public Integer getRequestType(){
return requestType;
}
/**
* 设置 请求类型1:POST,2:GET
* @param requestType
*/
public void setRequestType(Integer requestType){
this.requestType = requestType;
}
/**
* 获取 请求协议1:HTTP,2:HTTPS
* @return Integer
*/
public Integer getRequestProtocol(){
return requestProtocol;
}
/**
* 设置 请求协议1:HTTP,2:HTTPS
* @param requestProtocol
*/
public void setRequestProtocol(Integer requestProtocol){
this.requestProtocol = requestProtocol;
}
/**
* 获取 请求路径
* @return String
*/
public String getRequestUrl(){
return requestUrl;
}
/**
* 设置 请求路径
* @param requestUrl
*/
public void setRequestUrl(String requestUrl){
this.requestUrl = requestUrl;
}
/**
* 获取 超时时间(秒)
* @return Long
*/
public Long getTimeoutValue(){
return timeoutValue;
}
/**
* 设置 超时时间(秒)
* @param timeoutValue
*/
public void setTimeoutValue(Long timeoutValue){
this.timeoutValue = timeoutValue;
}
/**
* 获取 限流策略1:分钟,2:小时
* @return Integer
*/
public Integer getLimitStrategy(){
return limitStrategy;
}
/**
* 设置 限流策略1:分钟,2:小时
* @param limitStrategy
*/
public void setLimitStrategy(Integer limitStrategy){
this.limitStrategy = limitStrategy;
}
/**
* 获取 访问网络1互联网2政务网
* @return String
*/
public String getNetwork(){
return network;
}
/**
* 设置 访问网络1互联网2政务网
* @param network
*/
public void setNetwork(String network){
this.network = network;
}
/**
* 获取 接口描述
* @return String
*/
public String getDescription(){
return description;
}
/**
* 设置 接口描述
* @param description
*/
public void setDescription(String description){
this.description = description;
}
/**
* 获取 流控信息
* @return String
*/
public String getFlowControl(){
return flowControl;
}
/**
* 设置 流控信息
* @param flowControl
*/
public void setFlowControl(String flowControl){
this.flowControl = flowControl;
}
/**
* 获取 授权信息
* @return String
*/
public String getAuthorizeInfo(){
return authorizeInfo;
}
/**
* 设置 授权信息
* @param authorizeInfo
*/
public void setAuthorizeInfo(String authorizeInfo){
this.authorizeInfo = authorizeInfo;
}
/**
* 获取 标签
* @return Integer
*/
public Integer getInterfaceTag(){
return interfaceTag;
}
/**
* 设置 标签
* @param interfaceTag
*/
public void setInterfaceTag(Integer interfaceTag){
this.interfaceTag = interfaceTag;
}
/**
* 获取 来源1自有2非自有
* @return Integer
*/
public Integer getInterfaceSource(){
return interfaceSource;
}
/**
* 设置 来源1自有2非自有
* @param interfaceSource
*/
public void setInterfaceSource(Integer interfaceSource){
this.interfaceSource = interfaceSource;
}
/**
* 获取 请求参数
* @return String
*/
public String getRequestParameters(){
return requestParameters;
}
/**
* 设置 请求参数
* @param requestParameters
*/
public void setRequestParameters(String requestParameters){
this.requestParameters = requestParameters;
}
/**
* 获取 响应数据
* @return String
*/
public String getResponseParameters(){
return responseParameters;
}
/**
* 设置 响应数据
* @param responseParameters
*/
public void setResponseParameters(String responseParameters){
this.responseParameters = responseParameters;
}
/**
* 获取 错误码
* @return String
*/
public String getErrorCode(){
return errorCode;
}
/**
* 设置 错误码
* @param errorCode
*/
public void setErrorCode(String errorCode){
this.errorCode = errorCode;
}
/**
* 获取 变更历史
* @return String
*/
public String getChangeHistory(){
return changeHistory;
}
/**
* 设置 变更历史
* @param changeHistory
*/
public void setChangeHistory(String changeHistory){
this.changeHistory = changeHistory;
}
@Override
public int hashCode() {
return this.getId().hashCode();
}
@Override
public boolean equals(Object obj) {
if (obj == null) return false;
if (obj instanceof ProductInterfaceEntity) {
ProductInterfaceEntity tmp = (ProductInterfaceEntity) obj;
if (this.getId() == tmp.getId()) {
return true;
}
}
return false;
}
public String toString(){
StringBuilder sb = new StringBuilder("");
sb.append(",productId:").append(getProductId());
sb.append(",interfaceName:").append(getInterfaceName());
sb.append(",versionNumber:").append(getVersionNumber());
sb.append(",requestType:").append(getRequestType());
sb.append(",requestProtocol:").append(getRequestProtocol());
sb.append(",requestUrl:").append(getRequestUrl());
sb.append(",timeoutValue:").append(getTimeoutValue());
sb.append(",limitStrategy:").append(getLimitStrategy());
sb.append(",network:").append(getNetwork());
sb.append(",description:").append(getDescription());
sb.append(",flowControl:").append(getFlowControl());
sb.append(",authorizeInfo:").append(getAuthorizeInfo());
sb.append(",interfaceTag:").append(getInterfaceTag());
sb.append(",interfaceSource:").append(getInterfaceSource());
sb.append(",requestParameters:").append(getRequestParameters());
sb.append(",responseParameters:").append(getResponseParameters());
sb.append(",errorCode:").append(getErrorCode());
sb.append(",changeHistory:").append(getChangeHistory());
return sb.toString();
}
public void initAttrValue(){
this.productId = null;
this.interfaceName = "";
this.versionNumber = "";
this.requestType = 1;
this.requestProtocol = 1;
this.requestUrl = "";
this.timeoutValue = null;
this.limitStrategy = null;
this.network = "";
this.description = "";
this.flowControl = "";
this.authorizeInfo = "";
this.interfaceTag = null;
this.interfaceSource = 1;
this.requestParameters = "";
this.responseParameters = "";
this.errorCode = "";
this.changeHistory = "";
}
}
\ No newline at end of file
package com.mortals.xhx.module.product.model;
import java.util.List;
import com.mortals.xhx.module.product.model.ProductInterfaceEntity;
/**
* 产品接口查询对象
*
* @author zxfei
* @date 2023-02-22
*/
public class ProductInterfaceQuery extends ProductInterfaceEntity {
/** 开始 序号,主键,自增长 */
private Long idStart;
/** 结束 序号,主键,自增长 */
private Long idEnd;
/** 增加 序号,主键,自增长 */
private Long idIncrement;
/** 序号,主键,自增长列表 */
private List <Long> idList;
/** 序号,主键,自增长排除列表 */
private List <Long> idNotList;
/** 开始 产品id */
private Long productIdStart;
/** 结束 产品id */
private Long productIdEnd;
/** 增加 产品id */
private Long productIdIncrement;
/** 产品id列表 */
private List <Long> productIdList;
/** 产品id排除列表 */
private List <Long> productIdNotList;
/** 接口名称 */
private List<String> interfaceNameList;
/** 接口名称排除列表 */
private List <String> interfaceNameNotList;
/** 版本号 */
private List<String> versionNumberList;
/** 版本号排除列表 */
private List <String> versionNumberNotList;
/** 开始 请求类型1:POST,2:GET */
private Integer requestTypeStart;
/** 结束 请求类型1:POST,2:GET */
private Integer requestTypeEnd;
/** 增加 请求类型1:POST,2:GET */
private Integer requestTypeIncrement;
/** 请求类型1:POST,2:GET列表 */
private List <Integer> requestTypeList;
/** 请求类型1:POST,2:GET排除列表 */
private List <Integer> requestTypeNotList;
/** 开始 请求协议1:HTTP,2:HTTPS */
private Integer requestProtocolStart;
/** 结束 请求协议1:HTTP,2:HTTPS */
private Integer requestProtocolEnd;
/** 增加 请求协议1:HTTP,2:HTTPS */
private Integer requestProtocolIncrement;
/** 请求协议1:HTTP,2:HTTPS列表 */
private List <Integer> requestProtocolList;
/** 请求协议1:HTTP,2:HTTPS排除列表 */
private List <Integer> requestProtocolNotList;
/** 请求路径 */
private List<String> requestUrlList;
/** 请求路径排除列表 */
private List <String> requestUrlNotList;
/** 开始 超时时间(秒) */
private Long timeoutValueStart;
/** 结束 超时时间(秒) */
private Long timeoutValueEnd;
/** 增加 超时时间(秒) */
private Long timeoutValueIncrement;
/** 超时时间(秒)列表 */
private List <Long> timeoutValueList;
/** 超时时间(秒)排除列表 */
private List <Long> timeoutValueNotList;
/** 开始 限流策略1:分钟,2:小时 */
private Integer limitStrategyStart;
/** 结束 限流策略1:分钟,2:小时 */
private Integer limitStrategyEnd;
/** 增加 限流策略1:分钟,2:小时 */
private Integer limitStrategyIncrement;
/** 限流策略1:分钟,2:小时列表 */
private List <Integer> limitStrategyList;
/** 限流策略1:分钟,2:小时排除列表 */
private List <Integer> limitStrategyNotList;
/** 访问网络1互联网2政务网 */
private List<String> networkList;
/** 访问网络1互联网2政务网排除列表 */
private List <String> networkNotList;
/** 接口描述 */
private List<String> descriptionList;
/** 接口描述排除列表 */
private List <String> descriptionNotList;
/** 流控信息 */
private List<String> flowControlList;
/** 流控信息排除列表 */
private List <String> flowControlNotList;
/** 授权信息 */
private List<String> authorizeInfoList;
/** 授权信息排除列表 */
private List <String> authorizeInfoNotList;
/** 开始 标签 */
private Integer interfaceTagStart;
/** 结束 标签 */
private Integer interfaceTagEnd;
/** 增加 标签 */
private Integer interfaceTagIncrement;
/** 标签列表 */
private List <Integer> interfaceTagList;
/** 标签排除列表 */
private List <Integer> interfaceTagNotList;
/** 开始 来源1自有2非自有 */
private Integer interfaceSourceStart;
/** 结束 来源1自有2非自有 */
private Integer interfaceSourceEnd;
/** 增加 来源1自有2非自有 */
private Integer interfaceSourceIncrement;
/** 来源1自有2非自有列表 */
private List <Integer> interfaceSourceList;
/** 来源1自有2非自有排除列表 */
private List <Integer> interfaceSourceNotList;
/** 请求参数 */
private List<String> requestParametersList;
/** 请求参数排除列表 */
private List <String> requestParametersNotList;
/** 响应数据 */
private List<String> responseParametersList;
/** 响应数据排除列表 */
private List <String> responseParametersNotList;
/** 错误码 */
private List<String> errorCodeList;
/** 错误码排除列表 */
private List <String> errorCodeNotList;
/** 变更历史 */
private List<String> changeHistoryList;
/** 变更历史排除列表 */
private List <String> changeHistoryNotList;
/** 开始 创建用户 */
private Long createUserIdStart;
/** 结束 创建用户 */
private Long createUserIdEnd;
/** 增加 创建用户 */
private Long createUserIdIncrement;
/** 创建用户列表 */
private List <Long> createUserIdList;
/** 创建用户排除列表 */
private List <Long> createUserIdNotList;
/** 开始 创建时间 */
private String createTimeStart;
/** 结束 创建时间 */
private String createTimeEnd;
/** 开始 更新用户 */
private Long updateUserIdStart;
/** 结束 更新用户 */
private Long updateUserIdEnd;
/** 增加 更新用户 */
private Long updateUserIdIncrement;
/** 更新用户列表 */
private List <Long> updateUserIdList;
/** 更新用户排除列表 */
private List <Long> updateUserIdNotList;
/** 开始 更新时间 */
private String updateTimeStart;
/** 结束 更新时间 */
private String updateTimeEnd;
/** OR条件集合,列表项之间是OR,项内容之间是AND,如:(list[0].1 and list[0].2) or (list[1].3 and list[1].4) */
private List<ProductInterfaceQuery> orConditionList;
/** AND条件集合,列表项之间是AND,项内容之间是OR,如:(list[0].1 or list[0].2) and (list[1].3 or list[1].4) */
private List<ProductInterfaceQuery> andConditionList;
public ProductInterfaceQuery(){}
/**
* 获取 开始 序号,主键,自增长
* @return idStart
*/
public Long getIdStart(){
return this.idStart;
}
/**
* 设置 开始 序号,主键,自增长
* @param idStart
*/
public void setIdStart(Long idStart){
this.idStart = idStart;
}
/**
* 获取 结束 序号,主键,自增长
* @return $idEnd
*/
public Long getIdEnd(){
return this.idEnd;
}
/**
* 设置 结束 序号,主键,自增长
* @param idEnd
*/
public void setIdEnd(Long idEnd){
this.idEnd = idEnd;
}
/**
* 获取 增加 序号,主键,自增长
* @return idIncrement
*/
public Long getIdIncrement(){
return this.idIncrement;
}
/**
* 设置 增加 序号,主键,自增长
* @param idIncrement
*/
public void setIdIncrement(Long idIncrement){
this.idIncrement = idIncrement;
}
/**
* 获取 序号,主键,自增长
* @return idList
*/
public List<Long> getIdList(){
return this.idList;
}
/**
* 设置 序号,主键,自增长
* @param idList
*/
public void setIdList(List<Long> idList){
this.idList = idList;
}
/**
* 获取 序号,主键,自增长
* @return idNotList
*/
public List<Long> getIdNotList(){
return this.idNotList;
}
/**
* 设置 序号,主键,自增长
* @param idNotList
*/
public void setIdNotList(List<Long> idNotList){
this.idNotList = idNotList;
}
/**
* 获取 开始 产品id
* @return productIdStart
*/
public Long getProductIdStart(){
return this.productIdStart;
}
/**
* 设置 开始 产品id
* @param productIdStart
*/
public void setProductIdStart(Long productIdStart){
this.productIdStart = productIdStart;
}
/**
* 获取 结束 产品id
* @return $productIdEnd
*/
public Long getProductIdEnd(){
return this.productIdEnd;
}
/**
* 设置 结束 产品id
* @param productIdEnd
*/
public void setProductIdEnd(Long productIdEnd){
this.productIdEnd = productIdEnd;
}
/**
* 获取 增加 产品id
* @return productIdIncrement
*/
public Long getProductIdIncrement(){
return this.productIdIncrement;
}
/**
* 设置 增加 产品id
* @param productIdIncrement
*/
public void setProductIdIncrement(Long productIdIncrement){
this.productIdIncrement = productIdIncrement;
}
/**
* 获取 产品id
* @return productIdList
*/
public List<Long> getProductIdList(){
return this.productIdList;
}
/**
* 设置 产品id
* @param productIdList
*/
public void setProductIdList(List<Long> productIdList){
this.productIdList = productIdList;
}
/**
* 获取 产品id
* @return productIdNotList
*/
public List<Long> getProductIdNotList(){
return this.productIdNotList;
}
/**
* 设置 产品id
* @param productIdNotList
*/
public void setProductIdNotList(List<Long> productIdNotList){
this.productIdNotList = productIdNotList;
}
/**
* 获取 接口名称
* @return interfaceNameList
*/
public List<String> getInterfaceNameList(){
return this.interfaceNameList;
}
/**
* 设置 接口名称
* @param interfaceNameList
*/
public void setInterfaceNameList(List<String> interfaceNameList){
this.interfaceNameList = interfaceNameList;
}
/**
* 获取 接口名称
* @return interfaceNameNotList
*/
public List<String> getInterfaceNameNotList(){
return this.interfaceNameNotList;
}
/**
* 设置 接口名称
* @param interfaceNameNotList
*/
public void setInterfaceNameNotList(List<String> interfaceNameNotList){
this.interfaceNameNotList = interfaceNameNotList;
}
/**
* 获取 版本号
* @return versionNumberList
*/
public List<String> getVersionNumberList(){
return this.versionNumberList;
}
/**
* 设置 版本号
* @param versionNumberList
*/
public void setVersionNumberList(List<String> versionNumberList){
this.versionNumberList = versionNumberList;
}
/**
* 获取 版本号
* @return versionNumberNotList
*/
public List<String> getVersionNumberNotList(){
return this.versionNumberNotList;
}
/**
* 设置 版本号
* @param versionNumberNotList
*/
public void setVersionNumberNotList(List<String> versionNumberNotList){
this.versionNumberNotList = versionNumberNotList;
}
/**
* 获取 开始 请求类型1:POST,2:GET
* @return requestTypeStart
*/
public Integer getRequestTypeStart(){
return this.requestTypeStart;
}
/**
* 设置 开始 请求类型1:POST,2:GET
* @param requestTypeStart
*/
public void setRequestTypeStart(Integer requestTypeStart){
this.requestTypeStart = requestTypeStart;
}
/**
* 获取 结束 请求类型1:POST,2:GET
* @return $requestTypeEnd
*/
public Integer getRequestTypeEnd(){
return this.requestTypeEnd;
}
/**
* 设置 结束 请求类型1:POST,2:GET
* @param requestTypeEnd
*/
public void setRequestTypeEnd(Integer requestTypeEnd){
this.requestTypeEnd = requestTypeEnd;
}
/**
* 获取 增加 请求类型1:POST,2:GET
* @return requestTypeIncrement
*/
public Integer getRequestTypeIncrement(){
return this.requestTypeIncrement;
}
/**
* 设置 增加 请求类型1:POST,2:GET
* @param requestTypeIncrement
*/
public void setRequestTypeIncrement(Integer requestTypeIncrement){
this.requestTypeIncrement = requestTypeIncrement;
}
/**
* 获取 请求类型1:POST,2:GET
* @return requestTypeList
*/
public List<Integer> getRequestTypeList(){
return this.requestTypeList;
}
/**
* 设置 请求类型1:POST,2:GET
* @param requestTypeList
*/
public void setRequestTypeList(List<Integer> requestTypeList){
this.requestTypeList = requestTypeList;
}
/**
* 获取 请求类型1:POST,2:GET
* @return requestTypeNotList
*/
public List<Integer> getRequestTypeNotList(){
return this.requestTypeNotList;
}
/**
* 设置 请求类型1:POST,2:GET
* @param requestTypeNotList
*/
public void setRequestTypeNotList(List<Integer> requestTypeNotList){
this.requestTypeNotList = requestTypeNotList;
}
/**
* 获取 开始 请求协议1:HTTP,2:HTTPS
* @return requestProtocolStart
*/
public Integer getRequestProtocolStart(){
return this.requestProtocolStart;
}
/**
* 设置 开始 请求协议1:HTTP,2:HTTPS
* @param requestProtocolStart
*/
public void setRequestProtocolStart(Integer requestProtocolStart){
this.requestProtocolStart = requestProtocolStart;
}
/**
* 获取 结束 请求协议1:HTTP,2:HTTPS
* @return $requestProtocolEnd
*/
public Integer getRequestProtocolEnd(){
return this.requestProtocolEnd;
}
/**
* 设置 结束 请求协议1:HTTP,2:HTTPS
* @param requestProtocolEnd
*/
public void setRequestProtocolEnd(Integer requestProtocolEnd){
this.requestProtocolEnd = requestProtocolEnd;
}
/**
* 获取 增加 请求协议1:HTTP,2:HTTPS
* @return requestProtocolIncrement
*/
public Integer getRequestProtocolIncrement(){
return this.requestProtocolIncrement;
}
/**
* 设置 增加 请求协议1:HTTP,2:HTTPS
* @param requestProtocolIncrement
*/
public void setRequestProtocolIncrement(Integer requestProtocolIncrement){
this.requestProtocolIncrement = requestProtocolIncrement;
}
/**
* 获取 请求协议1:HTTP,2:HTTPS
* @return requestProtocolList
*/
public List<Integer> getRequestProtocolList(){
return this.requestProtocolList;
}
/**
* 设置 请求协议1:HTTP,2:HTTPS
* @param requestProtocolList
*/
public void setRequestProtocolList(List<Integer> requestProtocolList){
this.requestProtocolList = requestProtocolList;
}
/**
* 获取 请求协议1:HTTP,2:HTTPS
* @return requestProtocolNotList
*/
public List<Integer> getRequestProtocolNotList(){
return this.requestProtocolNotList;
}
/**
* 设置 请求协议1:HTTP,2:HTTPS
* @param requestProtocolNotList
*/
public void setRequestProtocolNotList(List<Integer> requestProtocolNotList){
this.requestProtocolNotList = requestProtocolNotList;
}
/**
* 获取 请求路径
* @return requestUrlList
*/
public List<String> getRequestUrlList(){
return this.requestUrlList;
}
/**
* 设置 请求路径
* @param requestUrlList
*/
public void setRequestUrlList(List<String> requestUrlList){
this.requestUrlList = requestUrlList;
}
/**
* 获取 请求路径
* @return requestUrlNotList
*/
public List<String> getRequestUrlNotList(){
return this.requestUrlNotList;
}
/**
* 设置 请求路径
* @param requestUrlNotList
*/
public void setRequestUrlNotList(List<String> requestUrlNotList){
this.requestUrlNotList = requestUrlNotList;
}
/**
* 获取 开始 超时时间(秒)
* @return timeoutValueStart
*/
public Long getTimeoutValueStart(){
return this.timeoutValueStart;
}
/**
* 设置 开始 超时时间(秒)
* @param timeoutValueStart
*/
public void setTimeoutValueStart(Long timeoutValueStart){
this.timeoutValueStart = timeoutValueStart;
}
/**
* 获取 结束 超时时间(秒)
* @return $timeoutValueEnd
*/
public Long getTimeoutValueEnd(){
return this.timeoutValueEnd;
}
/**
* 设置 结束 超时时间(秒)
* @param timeoutValueEnd
*/
public void setTimeoutValueEnd(Long timeoutValueEnd){
this.timeoutValueEnd = timeoutValueEnd;
}
/**
* 获取 增加 超时时间(秒)
* @return timeoutValueIncrement
*/
public Long getTimeoutValueIncrement(){
return this.timeoutValueIncrement;
}
/**
* 设置 增加 超时时间(秒)
* @param timeoutValueIncrement
*/
public void setTimeoutValueIncrement(Long timeoutValueIncrement){
this.timeoutValueIncrement = timeoutValueIncrement;
}
/**
* 获取 超时时间(秒)
* @return timeoutValueList
*/
public List<Long> getTimeoutValueList(){
return this.timeoutValueList;
}
/**
* 设置 超时时间(秒)
* @param timeoutValueList
*/
public void setTimeoutValueList(List<Long> timeoutValueList){
this.timeoutValueList = timeoutValueList;
}
/**
* 获取 超时时间(秒)
* @return timeoutValueNotList
*/
public List<Long> getTimeoutValueNotList(){
return this.timeoutValueNotList;
}
/**
* 设置 超时时间(秒)
* @param timeoutValueNotList
*/
public void setTimeoutValueNotList(List<Long> timeoutValueNotList){
this.timeoutValueNotList = timeoutValueNotList;
}
/**
* 获取 开始 限流策略1:分钟,2:小时
* @return limitStrategyStart
*/
public Integer getLimitStrategyStart(){
return this.limitStrategyStart;
}
/**
* 设置 开始 限流策略1:分钟,2:小时
* @param limitStrategyStart
*/
public void setLimitStrategyStart(Integer limitStrategyStart){
this.limitStrategyStart = limitStrategyStart;
}
/**
* 获取 结束 限流策略1:分钟,2:小时
* @return $limitStrategyEnd
*/
public Integer getLimitStrategyEnd(){
return this.limitStrategyEnd;
}
/**
* 设置 结束 限流策略1:分钟,2:小时
* @param limitStrategyEnd
*/
public void setLimitStrategyEnd(Integer limitStrategyEnd){
this.limitStrategyEnd = limitStrategyEnd;
}
/**
* 获取 增加 限流策略1:分钟,2:小时
* @return limitStrategyIncrement
*/
public Integer getLimitStrategyIncrement(){
return this.limitStrategyIncrement;
}
/**
* 设置 增加 限流策略1:分钟,2:小时
* @param limitStrategyIncrement
*/
public void setLimitStrategyIncrement(Integer limitStrategyIncrement){
this.limitStrategyIncrement = limitStrategyIncrement;
}
/**
* 获取 限流策略1:分钟,2:小时
* @return limitStrategyList
*/
public List<Integer> getLimitStrategyList(){
return this.limitStrategyList;
}
/**
* 设置 限流策略1:分钟,2:小时
* @param limitStrategyList
*/
public void setLimitStrategyList(List<Integer> limitStrategyList){
this.limitStrategyList = limitStrategyList;
}
/**
* 获取 限流策略1:分钟,2:小时
* @return limitStrategyNotList
*/
public List<Integer> getLimitStrategyNotList(){
return this.limitStrategyNotList;
}
/**
* 设置 限流策略1:分钟,2:小时
* @param limitStrategyNotList
*/
public void setLimitStrategyNotList(List<Integer> limitStrategyNotList){
this.limitStrategyNotList = limitStrategyNotList;
}
/**
* 获取 访问网络1互联网2政务网
* @return networkList
*/
public List<String> getNetworkList(){
return this.networkList;
}
/**
* 设置 访问网络1互联网2政务网
* @param networkList
*/
public void setNetworkList(List<String> networkList){
this.networkList = networkList;
}
/**
* 获取 访问网络1互联网2政务网
* @return networkNotList
*/
public List<String> getNetworkNotList(){
return this.networkNotList;
}
/**
* 设置 访问网络1互联网2政务网
* @param networkNotList
*/
public void setNetworkNotList(List<String> networkNotList){
this.networkNotList = networkNotList;
}
/**
* 获取 接口描述
* @return descriptionList
*/
public List<String> getDescriptionList(){
return this.descriptionList;
}
/**
* 设置 接口描述
* @param descriptionList
*/
public void setDescriptionList(List<String> descriptionList){
this.descriptionList = descriptionList;
}
/**
* 获取 接口描述
* @return descriptionNotList
*/
public List<String> getDescriptionNotList(){
return this.descriptionNotList;
}
/**
* 设置 接口描述
* @param descriptionNotList
*/
public void setDescriptionNotList(List<String> descriptionNotList){
this.descriptionNotList = descriptionNotList;
}
/**
* 获取 流控信息
* @return flowControlList
*/
public List<String> getFlowControlList(){
return this.flowControlList;
}
/**
* 设置 流控信息
* @param flowControlList
*/
public void setFlowControlList(List<String> flowControlList){
this.flowControlList = flowControlList;
}
/**
* 获取 流控信息
* @return flowControlNotList
*/
public List<String> getFlowControlNotList(){
return this.flowControlNotList;
}
/**
* 设置 流控信息
* @param flowControlNotList
*/
public void setFlowControlNotList(List<String> flowControlNotList){
this.flowControlNotList = flowControlNotList;
}
/**
* 获取 授权信息
* @return authorizeInfoList
*/
public List<String> getAuthorizeInfoList(){
return this.authorizeInfoList;
}
/**
* 设置 授权信息
* @param authorizeInfoList
*/
public void setAuthorizeInfoList(List<String> authorizeInfoList){
this.authorizeInfoList = authorizeInfoList;
}
/**
* 获取 授权信息
* @return authorizeInfoNotList
*/
public List<String> getAuthorizeInfoNotList(){
return this.authorizeInfoNotList;
}
/**
* 设置 授权信息
* @param authorizeInfoNotList
*/
public void setAuthorizeInfoNotList(List<String> authorizeInfoNotList){
this.authorizeInfoNotList = authorizeInfoNotList;
}
/**
* 获取 开始 标签
* @return interfaceTagStart
*/
public Integer getInterfaceTagStart(){
return this.interfaceTagStart;
}
/**
* 设置 开始 标签
* @param interfaceTagStart
*/
public void setInterfaceTagStart(Integer interfaceTagStart){
this.interfaceTagStart = interfaceTagStart;
}
/**
* 获取 结束 标签
* @return $interfaceTagEnd
*/
public Integer getInterfaceTagEnd(){
return this.interfaceTagEnd;
}
/**
* 设置 结束 标签
* @param interfaceTagEnd
*/
public void setInterfaceTagEnd(Integer interfaceTagEnd){
this.interfaceTagEnd = interfaceTagEnd;
}
/**
* 获取 增加 标签
* @return interfaceTagIncrement
*/
public Integer getInterfaceTagIncrement(){
return this.interfaceTagIncrement;
}
/**
* 设置 增加 标签
* @param interfaceTagIncrement
*/
public void setInterfaceTagIncrement(Integer interfaceTagIncrement){
this.interfaceTagIncrement = interfaceTagIncrement;
}
/**
* 获取 标签
* @return interfaceTagList
*/
public List<Integer> getInterfaceTagList(){
return this.interfaceTagList;
}
/**
* 设置 标签
* @param interfaceTagList
*/
public void setInterfaceTagList(List<Integer> interfaceTagList){
this.interfaceTagList = interfaceTagList;
}
/**
* 获取 标签
* @return interfaceTagNotList
*/
public List<Integer> getInterfaceTagNotList(){
return this.interfaceTagNotList;
}
/**
* 设置 标签
* @param interfaceTagNotList
*/
public void setInterfaceTagNotList(List<Integer> interfaceTagNotList){
this.interfaceTagNotList = interfaceTagNotList;
}
/**
* 获取 开始 来源1自有2非自有
* @return interfaceSourceStart
*/
public Integer getInterfaceSourceStart(){
return this.interfaceSourceStart;
}
/**
* 设置 开始 来源1自有2非自有
* @param interfaceSourceStart
*/
public void setInterfaceSourceStart(Integer interfaceSourceStart){
this.interfaceSourceStart = interfaceSourceStart;
}
/**
* 获取 结束 来源1自有2非自有
* @return $interfaceSourceEnd
*/
public Integer getInterfaceSourceEnd(){
return this.interfaceSourceEnd;
}
/**
* 设置 结束 来源1自有2非自有
* @param interfaceSourceEnd
*/
public void setInterfaceSourceEnd(Integer interfaceSourceEnd){
this.interfaceSourceEnd = interfaceSourceEnd;
}
/**
* 获取 增加 来源1自有2非自有
* @return interfaceSourceIncrement
*/
public Integer getInterfaceSourceIncrement(){
return this.interfaceSourceIncrement;
}
/**
* 设置 增加 来源1自有2非自有
* @param interfaceSourceIncrement
*/
public void setInterfaceSourceIncrement(Integer interfaceSourceIncrement){
this.interfaceSourceIncrement = interfaceSourceIncrement;
}
/**
* 获取 来源1自有2非自有
* @return interfaceSourceList
*/
public List<Integer> getInterfaceSourceList(){
return this.interfaceSourceList;
}
/**
* 设置 来源1自有2非自有
* @param interfaceSourceList
*/
public void setInterfaceSourceList(List<Integer> interfaceSourceList){
this.interfaceSourceList = interfaceSourceList;
}
/**
* 获取 来源1自有2非自有
* @return interfaceSourceNotList
*/
public List<Integer> getInterfaceSourceNotList(){
return this.interfaceSourceNotList;
}
/**
* 设置 来源1自有2非自有
* @param interfaceSourceNotList
*/
public void setInterfaceSourceNotList(List<Integer> interfaceSourceNotList){
this.interfaceSourceNotList = interfaceSourceNotList;
}
/**
* 获取 请求参数
* @return requestParametersList
*/
public List<String> getRequestParametersList(){
return this.requestParametersList;
}
/**
* 设置 请求参数
* @param requestParametersList
*/
public void setRequestParametersList(List<String> requestParametersList){
this.requestParametersList = requestParametersList;
}
/**
* 获取 请求参数
* @return requestParametersNotList
*/
public List<String> getRequestParametersNotList(){
return this.requestParametersNotList;
}
/**
* 设置 请求参数
* @param requestParametersNotList
*/
public void setRequestParametersNotList(List<String> requestParametersNotList){
this.requestParametersNotList = requestParametersNotList;
}
/**
* 获取 响应数据
* @return responseParametersList
*/
public List<String> getResponseParametersList(){
return this.responseParametersList;
}
/**
* 设置 响应数据
* @param responseParametersList
*/
public void setResponseParametersList(List<String> responseParametersList){
this.responseParametersList = responseParametersList;
}
/**
* 获取 响应数据
* @return responseParametersNotList
*/
public List<String> getResponseParametersNotList(){
return this.responseParametersNotList;
}
/**
* 设置 响应数据
* @param responseParametersNotList
*/
public void setResponseParametersNotList(List<String> responseParametersNotList){
this.responseParametersNotList = responseParametersNotList;
}
/**
* 获取 错误码
* @return errorCodeList
*/
public List<String> getErrorCodeList(){
return this.errorCodeList;
}
/**
* 设置 错误码
* @param errorCodeList
*/
public void setErrorCodeList(List<String> errorCodeList){
this.errorCodeList = errorCodeList;
}
/**
* 获取 错误码
* @return errorCodeNotList
*/
public List<String> getErrorCodeNotList(){
return this.errorCodeNotList;
}
/**
* 设置 错误码
* @param errorCodeNotList
*/
public void setErrorCodeNotList(List<String> errorCodeNotList){
this.errorCodeNotList = errorCodeNotList;
}
/**
* 获取 变更历史
* @return changeHistoryList
*/
public List<String> getChangeHistoryList(){
return this.changeHistoryList;
}
/**
* 设置 变更历史
* @param changeHistoryList
*/
public void setChangeHistoryList(List<String> changeHistoryList){
this.changeHistoryList = changeHistoryList;
}
/**
* 获取 变更历史
* @return changeHistoryNotList
*/
public List<String> getChangeHistoryNotList(){
return this.changeHistoryNotList;
}
/**
* 设置 变更历史
* @param changeHistoryNotList
*/
public void setChangeHistoryNotList(List<String> changeHistoryNotList){
this.changeHistoryNotList = changeHistoryNotList;
}
/**
* 获取 开始 创建用户
* @return createUserIdStart
*/
public Long getCreateUserIdStart(){
return this.createUserIdStart;
}
/**
* 设置 开始 创建用户
* @param createUserIdStart
*/
public void setCreateUserIdStart(Long createUserIdStart){
this.createUserIdStart = createUserIdStart;
}
/**
* 获取 结束 创建用户
* @return $createUserIdEnd
*/
public Long getCreateUserIdEnd(){
return this.createUserIdEnd;
}
/**
* 设置 结束 创建用户
* @param createUserIdEnd
*/
public void setCreateUserIdEnd(Long createUserIdEnd){
this.createUserIdEnd = createUserIdEnd;
}
/**
* 获取 增加 创建用户
* @return createUserIdIncrement
*/
public Long getCreateUserIdIncrement(){
return this.createUserIdIncrement;
}
/**
* 设置 增加 创建用户
* @param createUserIdIncrement
*/
public void setCreateUserIdIncrement(Long createUserIdIncrement){
this.createUserIdIncrement = createUserIdIncrement;
}
/**
* 获取 创建用户
* @return createUserIdList
*/
public List<Long> getCreateUserIdList(){
return this.createUserIdList;
}
/**
* 设置 创建用户
* @param createUserIdList
*/
public void setCreateUserIdList(List<Long> createUserIdList){
this.createUserIdList = createUserIdList;
}
/**
* 获取 创建用户
* @return createUserIdNotList
*/
public List<Long> getCreateUserIdNotList(){
return this.createUserIdNotList;
}
/**
* 设置 创建用户
* @param createUserIdNotList
*/
public void setCreateUserIdNotList(List<Long> createUserIdNotList){
this.createUserIdNotList = createUserIdNotList;
}
/**
* 获取 开始 创建时间
* @return createTimeStart
*/
public String getCreateTimeStart(){
return this.createTimeStart;
}
/**
* 设置 开始 创建时间
* @param createTimeStart
*/
public void setCreateTimeStart(String createTimeStart){
this.createTimeStart = createTimeStart;
}
/**
* 获取 结束 创建时间
* @return createTimeEnd
*/
public String getCreateTimeEnd(){
return this.createTimeEnd;
}
/**
* 设置 结束 创建时间
* @param createTimeEnd
*/
public void setCreateTimeEnd(String createTimeEnd){
this.createTimeEnd = createTimeEnd;
}
/**
* 获取 开始 更新用户
* @return updateUserIdStart
*/
public Long getUpdateUserIdStart(){
return this.updateUserIdStart;
}
/**
* 设置 开始 更新用户
* @param updateUserIdStart
*/
public void setUpdateUserIdStart(Long updateUserIdStart){
this.updateUserIdStart = updateUserIdStart;
}
/**
* 获取 结束 更新用户
* @return $updateUserIdEnd
*/
public Long getUpdateUserIdEnd(){
return this.updateUserIdEnd;
}
/**
* 设置 结束 更新用户
* @param updateUserIdEnd
*/
public void setUpdateUserIdEnd(Long updateUserIdEnd){
this.updateUserIdEnd = updateUserIdEnd;
}
/**
* 获取 增加 更新用户
* @return updateUserIdIncrement
*/
public Long getUpdateUserIdIncrement(){
return this.updateUserIdIncrement;
}
/**
* 设置 增加 更新用户
* @param updateUserIdIncrement
*/
public void setUpdateUserIdIncrement(Long updateUserIdIncrement){
this.updateUserIdIncrement = updateUserIdIncrement;
}
/**
* 获取 更新用户
* @return updateUserIdList
*/
public List<Long> getUpdateUserIdList(){
return this.updateUserIdList;
}
/**
* 设置 更新用户
* @param updateUserIdList
*/
public void setUpdateUserIdList(List<Long> updateUserIdList){
this.updateUserIdList = updateUserIdList;
}
/**
* 获取 更新用户
* @return updateUserIdNotList
*/
public List<Long> getUpdateUserIdNotList(){
return this.updateUserIdNotList;
}
/**
* 设置 更新用户
* @param updateUserIdNotList
*/
public void setUpdateUserIdNotList(List<Long> updateUserIdNotList){
this.updateUserIdNotList = updateUserIdNotList;
}
/**
* 获取 开始 更新时间
* @return updateTimeStart
*/
public String getUpdateTimeStart(){
return this.updateTimeStart;
}
/**
* 设置 开始 更新时间
* @param updateTimeStart
*/
public void setUpdateTimeStart(String updateTimeStart){
this.updateTimeStart = updateTimeStart;
}
/**
* 获取 结束 更新时间
* @return updateTimeEnd
*/
public String getUpdateTimeEnd(){
return this.updateTimeEnd;
}
/**
* 设置 结束 更新时间
* @param updateTimeEnd
*/
public void setUpdateTimeEnd(String updateTimeEnd){
this.updateTimeEnd = updateTimeEnd;
}
/**
* 设置 序号,主键,自增长
* @param id
*/
public ProductInterfaceQuery id(Long id){
setId(id);
return this;
}
/**
* 设置 开始 序号,主键,自增长
* @param idStart
*/
public ProductInterfaceQuery idStart(Long idStart){
this.idStart = idStart;
return this;
}
/**
* 设置 结束 序号,主键,自增长
* @param idEnd
*/
public ProductInterfaceQuery idEnd(Long idEnd){
this.idEnd = idEnd;
return this;
}
/**
* 设置 增加 序号,主键,自增长
* @param idIncrement
*/
public ProductInterfaceQuery idIncrement(Long idIncrement){
this.idIncrement = idIncrement;
return this;
}
/**
* 设置 序号,主键,自增长
* @param idList
*/
public ProductInterfaceQuery idList(List<Long> idList){
this.idList = idList;
return this;
}
/**
* 设置 序号,主键,自增长
* @param idNotList
*/
public ProductInterfaceQuery idNotList(List<Long> idNotList){
this.idNotList = idNotList;
return this;
}
/**
* 设置 产品id
* @param productId
*/
public ProductInterfaceQuery productId(Long productId){
setProductId(productId);
return this;
}
/**
* 设置 开始 产品id
* @param productIdStart
*/
public ProductInterfaceQuery productIdStart(Long productIdStart){
this.productIdStart = productIdStart;
return this;
}
/**
* 设置 结束 产品id
* @param productIdEnd
*/
public ProductInterfaceQuery productIdEnd(Long productIdEnd){
this.productIdEnd = productIdEnd;
return this;
}
/**
* 设置 增加 产品id
* @param productIdIncrement
*/
public ProductInterfaceQuery productIdIncrement(Long productIdIncrement){
this.productIdIncrement = productIdIncrement;
return this;
}
/**
* 设置 产品id
* @param productIdList
*/
public ProductInterfaceQuery productIdList(List<Long> productIdList){
this.productIdList = productIdList;
return this;
}
/**
* 设置 产品id
* @param productIdNotList
*/
public ProductInterfaceQuery productIdNotList(List<Long> productIdNotList){
this.productIdNotList = productIdNotList;
return this;
}
/**
* 设置 接口名称
* @param interfaceName
*/
public ProductInterfaceQuery interfaceName(String interfaceName){
setInterfaceName(interfaceName);
return this;
}
/**
* 设置 接口名称
* @param interfaceNameList
*/
public ProductInterfaceQuery interfaceNameList(List<String> interfaceNameList){
this.interfaceNameList = interfaceNameList;
return this;
}
/**
* 设置 版本号
* @param versionNumber
*/
public ProductInterfaceQuery versionNumber(String versionNumber){
setVersionNumber(versionNumber);
return this;
}
/**
* 设置 版本号
* @param versionNumberList
*/
public ProductInterfaceQuery versionNumberList(List<String> versionNumberList){
this.versionNumberList = versionNumberList;
return this;
}
/**
* 设置 请求类型1:POST,2:GET
* @param requestType
*/
public ProductInterfaceQuery requestType(Integer requestType){
setRequestType(requestType);
return this;
}
/**
* 设置 开始 请求类型1:POST,2:GET
* @param requestTypeStart
*/
public ProductInterfaceQuery requestTypeStart(Integer requestTypeStart){
this.requestTypeStart = requestTypeStart;
return this;
}
/**
* 设置 结束 请求类型1:POST,2:GET
* @param requestTypeEnd
*/
public ProductInterfaceQuery requestTypeEnd(Integer requestTypeEnd){
this.requestTypeEnd = requestTypeEnd;
return this;
}
/**
* 设置 增加 请求类型1:POST,2:GET
* @param requestTypeIncrement
*/
public ProductInterfaceQuery requestTypeIncrement(Integer requestTypeIncrement){
this.requestTypeIncrement = requestTypeIncrement;
return this;
}
/**
* 设置 请求类型1:POST,2:GET
* @param requestTypeList
*/
public ProductInterfaceQuery requestTypeList(List<Integer> requestTypeList){
this.requestTypeList = requestTypeList;
return this;
}
/**
* 设置 请求类型1:POST,2:GET
* @param requestTypeNotList
*/
public ProductInterfaceQuery requestTypeNotList(List<Integer> requestTypeNotList){
this.requestTypeNotList = requestTypeNotList;
return this;
}
/**
* 设置 请求协议1:HTTP,2:HTTPS
* @param requestProtocol
*/
public ProductInterfaceQuery requestProtocol(Integer requestProtocol){
setRequestProtocol(requestProtocol);
return this;
}
/**
* 设置 开始 请求协议1:HTTP,2:HTTPS
* @param requestProtocolStart
*/
public ProductInterfaceQuery requestProtocolStart(Integer requestProtocolStart){
this.requestProtocolStart = requestProtocolStart;
return this;
}
/**
* 设置 结束 请求协议1:HTTP,2:HTTPS
* @param requestProtocolEnd
*/
public ProductInterfaceQuery requestProtocolEnd(Integer requestProtocolEnd){
this.requestProtocolEnd = requestProtocolEnd;
return this;
}
/**
* 设置 增加 请求协议1:HTTP,2:HTTPS
* @param requestProtocolIncrement
*/
public ProductInterfaceQuery requestProtocolIncrement(Integer requestProtocolIncrement){
this.requestProtocolIncrement = requestProtocolIncrement;
return this;
}
/**
* 设置 请求协议1:HTTP,2:HTTPS
* @param requestProtocolList
*/
public ProductInterfaceQuery requestProtocolList(List<Integer> requestProtocolList){
this.requestProtocolList = requestProtocolList;
return this;
}
/**
* 设置 请求协议1:HTTP,2:HTTPS
* @param requestProtocolNotList
*/
public ProductInterfaceQuery requestProtocolNotList(List<Integer> requestProtocolNotList){
this.requestProtocolNotList = requestProtocolNotList;
return this;
}
/**
* 设置 请求路径
* @param requestUrl
*/
public ProductInterfaceQuery requestUrl(String requestUrl){
setRequestUrl(requestUrl);
return this;
}
/**
* 设置 请求路径
* @param requestUrlList
*/
public ProductInterfaceQuery requestUrlList(List<String> requestUrlList){
this.requestUrlList = requestUrlList;
return this;
}
/**
* 设置 超时时间(秒)
* @param timeoutValue
*/
public ProductInterfaceQuery timeoutValue(Long timeoutValue){
setTimeoutValue(timeoutValue);
return this;
}
/**
* 设置 开始 超时时间(秒)
* @param timeoutValueStart
*/
public ProductInterfaceQuery timeoutValueStart(Long timeoutValueStart){
this.timeoutValueStart = timeoutValueStart;
return this;
}
/**
* 设置 结束 超时时间(秒)
* @param timeoutValueEnd
*/
public ProductInterfaceQuery timeoutValueEnd(Long timeoutValueEnd){
this.timeoutValueEnd = timeoutValueEnd;
return this;
}
/**
* 设置 增加 超时时间(秒)
* @param timeoutValueIncrement
*/
public ProductInterfaceQuery timeoutValueIncrement(Long timeoutValueIncrement){
this.timeoutValueIncrement = timeoutValueIncrement;
return this;
}
/**
* 设置 超时时间(秒)
* @param timeoutValueList
*/
public ProductInterfaceQuery timeoutValueList(List<Long> timeoutValueList){
this.timeoutValueList = timeoutValueList;
return this;
}
/**
* 设置 超时时间(秒)
* @param timeoutValueNotList
*/
public ProductInterfaceQuery timeoutValueNotList(List<Long> timeoutValueNotList){
this.timeoutValueNotList = timeoutValueNotList;
return this;
}
/**
* 设置 限流策略1:分钟,2:小时
* @param limitStrategy
*/
public ProductInterfaceQuery limitStrategy(Integer limitStrategy){
setLimitStrategy(limitStrategy);
return this;
}
/**
* 设置 开始 限流策略1:分钟,2:小时
* @param limitStrategyStart
*/
public ProductInterfaceQuery limitStrategyStart(Integer limitStrategyStart){
this.limitStrategyStart = limitStrategyStart;
return this;
}
/**
* 设置 结束 限流策略1:分钟,2:小时
* @param limitStrategyEnd
*/
public ProductInterfaceQuery limitStrategyEnd(Integer limitStrategyEnd){
this.limitStrategyEnd = limitStrategyEnd;
return this;
}
/**
* 设置 增加 限流策略1:分钟,2:小时
* @param limitStrategyIncrement
*/
public ProductInterfaceQuery limitStrategyIncrement(Integer limitStrategyIncrement){
this.limitStrategyIncrement = limitStrategyIncrement;
return this;
}
/**
* 设置 限流策略1:分钟,2:小时
* @param limitStrategyList
*/
public ProductInterfaceQuery limitStrategyList(List<Integer> limitStrategyList){
this.limitStrategyList = limitStrategyList;
return this;
}
/**
* 设置 限流策略1:分钟,2:小时
* @param limitStrategyNotList
*/
public ProductInterfaceQuery limitStrategyNotList(List<Integer> limitStrategyNotList){
this.limitStrategyNotList = limitStrategyNotList;
return this;
}
/**
* 设置 访问网络1互联网2政务网
* @param network
*/
public ProductInterfaceQuery network(String network){
setNetwork(network);
return this;
}
/**
* 设置 访问网络1互联网2政务网
* @param networkList
*/
public ProductInterfaceQuery networkList(List<String> networkList){
this.networkList = networkList;
return this;
}
/**
* 设置 接口描述
* @param description
*/
public ProductInterfaceQuery description(String description){
setDescription(description);
return this;
}
/**
* 设置 接口描述
* @param descriptionList
*/
public ProductInterfaceQuery descriptionList(List<String> descriptionList){
this.descriptionList = descriptionList;
return this;
}
/**
* 设置 流控信息
* @param flowControl
*/
public ProductInterfaceQuery flowControl(String flowControl){
setFlowControl(flowControl);
return this;
}
/**
* 设置 流控信息
* @param flowControlList
*/
public ProductInterfaceQuery flowControlList(List<String> flowControlList){
this.flowControlList = flowControlList;
return this;
}
/**
* 设置 授权信息
* @param authorizeInfo
*/
public ProductInterfaceQuery authorizeInfo(String authorizeInfo){
setAuthorizeInfo(authorizeInfo);
return this;
}
/**
* 设置 授权信息
* @param authorizeInfoList
*/
public ProductInterfaceQuery authorizeInfoList(List<String> authorizeInfoList){
this.authorizeInfoList = authorizeInfoList;
return this;
}
/**
* 设置 标签
* @param interfaceTag
*/
public ProductInterfaceQuery interfaceTag(Integer interfaceTag){
setInterfaceTag(interfaceTag);
return this;
}
/**
* 设置 开始 标签
* @param interfaceTagStart
*/
public ProductInterfaceQuery interfaceTagStart(Integer interfaceTagStart){
this.interfaceTagStart = interfaceTagStart;
return this;
}
/**
* 设置 结束 标签
* @param interfaceTagEnd
*/
public ProductInterfaceQuery interfaceTagEnd(Integer interfaceTagEnd){
this.interfaceTagEnd = interfaceTagEnd;
return this;
}
/**
* 设置 增加 标签
* @param interfaceTagIncrement
*/
public ProductInterfaceQuery interfaceTagIncrement(Integer interfaceTagIncrement){
this.interfaceTagIncrement = interfaceTagIncrement;
return this;
}
/**
* 设置 标签
* @param interfaceTagList
*/
public ProductInterfaceQuery interfaceTagList(List<Integer> interfaceTagList){
this.interfaceTagList = interfaceTagList;
return this;
}
/**
* 设置 标签
* @param interfaceTagNotList
*/
public ProductInterfaceQuery interfaceTagNotList(List<Integer> interfaceTagNotList){
this.interfaceTagNotList = interfaceTagNotList;
return this;
}
/**
* 设置 来源1自有2非自有
* @param interfaceSource
*/
public ProductInterfaceQuery interfaceSource(Integer interfaceSource){
setInterfaceSource(interfaceSource);
return this;
}
/**
* 设置 开始 来源1自有2非自有
* @param interfaceSourceStart
*/
public ProductInterfaceQuery interfaceSourceStart(Integer interfaceSourceStart){
this.interfaceSourceStart = interfaceSourceStart;
return this;
}
/**
* 设置 结束 来源1自有2非自有
* @param interfaceSourceEnd
*/
public ProductInterfaceQuery interfaceSourceEnd(Integer interfaceSourceEnd){
this.interfaceSourceEnd = interfaceSourceEnd;
return this;
}
/**
* 设置 增加 来源1自有2非自有
* @param interfaceSourceIncrement
*/
public ProductInterfaceQuery interfaceSourceIncrement(Integer interfaceSourceIncrement){
this.interfaceSourceIncrement = interfaceSourceIncrement;
return this;
}
/**
* 设置 来源1自有2非自有
* @param interfaceSourceList
*/
public ProductInterfaceQuery interfaceSourceList(List<Integer> interfaceSourceList){
this.interfaceSourceList = interfaceSourceList;
return this;
}
/**
* 设置 来源1自有2非自有
* @param interfaceSourceNotList
*/
public ProductInterfaceQuery interfaceSourceNotList(List<Integer> interfaceSourceNotList){
this.interfaceSourceNotList = interfaceSourceNotList;
return this;
}
/**
* 设置 请求参数
* @param requestParameters
*/
public ProductInterfaceQuery requestParameters(String requestParameters){
setRequestParameters(requestParameters);
return this;
}
/**
* 设置 请求参数
* @param requestParametersList
*/
public ProductInterfaceQuery requestParametersList(List<String> requestParametersList){
this.requestParametersList = requestParametersList;
return this;
}
/**
* 设置 响应数据
* @param responseParameters
*/
public ProductInterfaceQuery responseParameters(String responseParameters){
setResponseParameters(responseParameters);
return this;
}
/**
* 设置 响应数据
* @param responseParametersList
*/
public ProductInterfaceQuery responseParametersList(List<String> responseParametersList){
this.responseParametersList = responseParametersList;
return this;
}
/**
* 设置 错误码
* @param errorCode
*/
public ProductInterfaceQuery errorCode(String errorCode){
setErrorCode(errorCode);
return this;
}
/**
* 设置 错误码
* @param errorCodeList
*/
public ProductInterfaceQuery errorCodeList(List<String> errorCodeList){
this.errorCodeList = errorCodeList;
return this;
}
/**
* 设置 变更历史
* @param changeHistory
*/
public ProductInterfaceQuery changeHistory(String changeHistory){
setChangeHistory(changeHistory);
return this;
}
/**
* 设置 变更历史
* @param changeHistoryList
*/
public ProductInterfaceQuery changeHistoryList(List<String> changeHistoryList){
this.changeHistoryList = changeHistoryList;
return this;
}
/**
* 设置 创建用户
* @param createUserId
*/
public ProductInterfaceQuery createUserId(Long createUserId){
setCreateUserId(createUserId);
return this;
}
/**
* 设置 开始 创建用户
* @param createUserIdStart
*/
public ProductInterfaceQuery createUserIdStart(Long createUserIdStart){
this.createUserIdStart = createUserIdStart;
return this;
}
/**
* 设置 结束 创建用户
* @param createUserIdEnd
*/
public ProductInterfaceQuery createUserIdEnd(Long createUserIdEnd){
this.createUserIdEnd = createUserIdEnd;
return this;
}
/**
* 设置 增加 创建用户
* @param createUserIdIncrement
*/
public ProductInterfaceQuery createUserIdIncrement(Long createUserIdIncrement){
this.createUserIdIncrement = createUserIdIncrement;
return this;
}
/**
* 设置 创建用户
* @param createUserIdList
*/
public ProductInterfaceQuery createUserIdList(List<Long> createUserIdList){
this.createUserIdList = createUserIdList;
return this;
}
/**
* 设置 创建用户
* @param createUserIdNotList
*/
public ProductInterfaceQuery createUserIdNotList(List<Long> createUserIdNotList){
this.createUserIdNotList = createUserIdNotList;
return this;
}
/**
* 设置 更新用户
* @param updateUserId
*/
public ProductInterfaceQuery updateUserId(Long updateUserId){
setUpdateUserId(updateUserId);
return this;
}
/**
* 设置 开始 更新用户
* @param updateUserIdStart
*/
public ProductInterfaceQuery updateUserIdStart(Long updateUserIdStart){
this.updateUserIdStart = updateUserIdStart;
return this;
}
/**
* 设置 结束 更新用户
* @param updateUserIdEnd
*/
public ProductInterfaceQuery updateUserIdEnd(Long updateUserIdEnd){
this.updateUserIdEnd = updateUserIdEnd;
return this;
}
/**
* 设置 增加 更新用户
* @param updateUserIdIncrement
*/
public ProductInterfaceQuery updateUserIdIncrement(Long updateUserIdIncrement){
this.updateUserIdIncrement = updateUserIdIncrement;
return this;
}
/**
* 设置 更新用户
* @param updateUserIdList
*/
public ProductInterfaceQuery updateUserIdList(List<Long> updateUserIdList){
this.updateUserIdList = updateUserIdList;
return this;
}
/**
* 设置 更新用户
* @param updateUserIdNotList
*/
public ProductInterfaceQuery updateUserIdNotList(List<Long> updateUserIdNotList){
this.updateUserIdNotList = updateUserIdNotList;
return this;
}
/**
* 获取 OR条件集合,列表项之间是OR,项内容之间是AND,如:(list[0].1 and list[0].2) or (list[1].3 and list[1].4)
* @return orConditionList
*/
public List<ProductInterfaceQuery> getOrConditionList(){
return this.orConditionList;
}
/**
* 设置 OR条件集合,列表项之间是OR,项内容之间是AND,如:(list[0].1 and list[0].2) or (list[1].3 and list[1].4)
* @param orConditionList
*/
public void setOrConditionList(List<ProductInterfaceQuery> orConditionList){
this.orConditionList = orConditionList;
}
/**
* 获取 AND条件集合,列表项之间是AND,项内容之间是OR,如:(list[0].1 or list[0].2) and (list[1].3 or list[1].4)
* @return andConditionList
*/
public List<ProductInterfaceQuery> getAndConditionList(){
return this.andConditionList;
}
/**
* 设置 AND条件集合,列表项之间是AND,项内容之间是OR,如:(list[0].1 or list[0].2) and (list[1].3 or list[1].4)
* @param andConditionList
*/
public void setAndConditionList(List<ProductInterfaceQuery> andConditionList){
this.andConditionList = andConditionList;
}
}
\ No newline at end of file
package com.mortals.xhx.module.product.model;
import java.util.List;
import com.mortals.xhx.module.product.model.ProductEntity;
/**
* 产品信息查询对象
*
* @author zxfei
* @date 2023-02-22
*/
public class ProductQuery extends ProductEntity {
/** 开始 序号,主键,自增长 */
private Long idStart;
/** 结束 序号,主键,自增长 */
private Long idEnd;
/** 增加 序号,主键,自增长 */
private Long idIncrement;
/** 序号,主键,自增长列表 */
private List <Long> idList;
/** 序号,主键,自增长排除列表 */
private List <Long> idNotList;
/** 开始 站点id */
private Long siteIdStart;
/** 结束 站点id */
private Long siteIdEnd;
/** 增加 站点id */
private Long siteIdIncrement;
/** 站点id列表 */
private List <Long> siteIdList;
/** 站点id排除列表 */
private List <Long> siteIdNotList;
/** 产品名称 */
private List<String> productNameList;
/** 产品名称排除列表 */
private List <String> productNameNotList;
/** Logo图片地址 */
private List<String> logoUrlList;
/** Logo图片地址排除列表 */
private List <String> logoUrlNotList;
/** 产品编码 */
private List<String> productCodeList;
/** 产品编码排除列表 */
private List <String> productCodeNotList;
/** 开始 创建用户 */
private Long createUserIdStart;
/** 结束 创建用户 */
private Long createUserIdEnd;
/** 增加 创建用户 */
private Long createUserIdIncrement;
/** 创建用户列表 */
private List <Long> createUserIdList;
/** 创建用户排除列表 */
private List <Long> createUserIdNotList;
/** 开始 创建时间 */
private String createTimeStart;
/** 结束 创建时间 */
private String createTimeEnd;
/** 开始 更新用户 */
private Long updateUserIdStart;
/** 结束 更新用户 */
private Long updateUserIdEnd;
/** 增加 更新用户 */
private Long updateUserIdIncrement;
/** 更新用户列表 */
private List <Long> updateUserIdList;
/** 更新用户排除列表 */
private List <Long> updateUserIdNotList;
/** 开始 更新时间 */
private String updateTimeStart;
/** 结束 更新时间 */
private String updateTimeEnd;
/** OR条件集合,列表项之间是OR,项内容之间是AND,如:(list[0].1 and list[0].2) or (list[1].3 and list[1].4) */
private List<ProductQuery> orConditionList;
/** AND条件集合,列表项之间是AND,项内容之间是OR,如:(list[0].1 or list[0].2) and (list[1].3 or list[1].4) */
private List<ProductQuery> andConditionList;
public ProductQuery(){}
/**
* 获取 开始 序号,主键,自增长
* @return idStart
*/
public Long getIdStart(){
return this.idStart;
}
/**
* 设置 开始 序号,主键,自增长
* @param idStart
*/
public void setIdStart(Long idStart){
this.idStart = idStart;
}
/**
* 获取 结束 序号,主键,自增长
* @return $idEnd
*/
public Long getIdEnd(){
return this.idEnd;
}
/**
* 设置 结束 序号,主键,自增长
* @param idEnd
*/
public void setIdEnd(Long idEnd){
this.idEnd = idEnd;
}
/**
* 获取 增加 序号,主键,自增长
* @return idIncrement
*/
public Long getIdIncrement(){
return this.idIncrement;
}
/**
* 设置 增加 序号,主键,自增长
* @param idIncrement
*/
public void setIdIncrement(Long idIncrement){
this.idIncrement = idIncrement;
}
/**
* 获取 序号,主键,自增长
* @return idList
*/
public List<Long> getIdList(){
return this.idList;
}
/**
* 设置 序号,主键,自增长
* @param idList
*/
public void setIdList(List<Long> idList){
this.idList = idList;
}
/**
* 获取 序号,主键,自增长
* @return idNotList
*/
public List<Long> getIdNotList(){
return this.idNotList;
}
/**
* 设置 序号,主键,自增长
* @param idNotList
*/
public void setIdNotList(List<Long> idNotList){
this.idNotList = idNotList;
}
/**
* 获取 开始 站点id
* @return siteIdStart
*/
public Long getSiteIdStart(){
return this.siteIdStart;
}
/**
* 设置 开始 站点id
* @param siteIdStart
*/
public void setSiteIdStart(Long siteIdStart){
this.siteIdStart = siteIdStart;
}
/**
* 获取 结束 站点id
* @return $siteIdEnd
*/
public Long getSiteIdEnd(){
return this.siteIdEnd;
}
/**
* 设置 结束 站点id
* @param siteIdEnd
*/
public void setSiteIdEnd(Long siteIdEnd){
this.siteIdEnd = siteIdEnd;
}
/**
* 获取 增加 站点id
* @return siteIdIncrement
*/
public Long getSiteIdIncrement(){
return this.siteIdIncrement;
}
/**
* 设置 增加 站点id
* @param siteIdIncrement
*/
public void setSiteIdIncrement(Long siteIdIncrement){
this.siteIdIncrement = siteIdIncrement;
}
/**
* 获取 站点id
* @return siteIdList
*/
public List<Long> getSiteIdList(){
return this.siteIdList;
}
/**
* 设置 站点id
* @param siteIdList
*/
public void setSiteIdList(List<Long> siteIdList){
this.siteIdList = siteIdList;
}
/**
* 获取 站点id
* @return siteIdNotList
*/
public List<Long> getSiteIdNotList(){
return this.siteIdNotList;
}
/**
* 设置 站点id
* @param siteIdNotList
*/
public void setSiteIdNotList(List<Long> siteIdNotList){
this.siteIdNotList = siteIdNotList;
}
/**
* 获取 产品名称
* @return productNameList
*/
public List<String> getProductNameList(){
return this.productNameList;
}
/**
* 设置 产品名称
* @param productNameList
*/
public void setProductNameList(List<String> productNameList){
this.productNameList = productNameList;
}
/**
* 获取 产品名称
* @return productNameNotList
*/
public List<String> getProductNameNotList(){
return this.productNameNotList;
}
/**
* 设置 产品名称
* @param productNameNotList
*/
public void setProductNameNotList(List<String> productNameNotList){
this.productNameNotList = productNameNotList;
}
/**
* 获取 Logo图片地址
* @return logoUrlList
*/
public List<String> getLogoUrlList(){
return this.logoUrlList;
}
/**
* 设置 Logo图片地址
* @param logoUrlList
*/
public void setLogoUrlList(List<String> logoUrlList){
this.logoUrlList = logoUrlList;
}
/**
* 获取 Logo图片地址
* @return logoUrlNotList
*/
public List<String> getLogoUrlNotList(){
return this.logoUrlNotList;
}
/**
* 设置 Logo图片地址
* @param logoUrlNotList
*/
public void setLogoUrlNotList(List<String> logoUrlNotList){
this.logoUrlNotList = logoUrlNotList;
}
/**
* 获取 产品编码
* @return productCodeList
*/
public List<String> getProductCodeList(){
return this.productCodeList;
}
/**
* 设置 产品编码
* @param productCodeList
*/
public void setProductCodeList(List<String> productCodeList){
this.productCodeList = productCodeList;
}
/**
* 获取 产品编码
* @return productCodeNotList
*/
public List<String> getProductCodeNotList(){
return this.productCodeNotList;
}
/**
* 设置 产品编码
* @param productCodeNotList
*/
public void setProductCodeNotList(List<String> productCodeNotList){
this.productCodeNotList = productCodeNotList;
}
/**
* 获取 开始 创建用户
* @return createUserIdStart
*/
public Long getCreateUserIdStart(){
return this.createUserIdStart;
}
/**
* 设置 开始 创建用户
* @param createUserIdStart
*/
public void setCreateUserIdStart(Long createUserIdStart){
this.createUserIdStart = createUserIdStart;
}
/**
* 获取 结束 创建用户
* @return $createUserIdEnd
*/
public Long getCreateUserIdEnd(){
return this.createUserIdEnd;
}
/**
* 设置 结束 创建用户
* @param createUserIdEnd
*/
public void setCreateUserIdEnd(Long createUserIdEnd){
this.createUserIdEnd = createUserIdEnd;
}
/**
* 获取 增加 创建用户
* @return createUserIdIncrement
*/
public Long getCreateUserIdIncrement(){
return this.createUserIdIncrement;
}
/**
* 设置 增加 创建用户
* @param createUserIdIncrement
*/
public void setCreateUserIdIncrement(Long createUserIdIncrement){
this.createUserIdIncrement = createUserIdIncrement;
}
/**
* 获取 创建用户
* @return createUserIdList
*/
public List<Long> getCreateUserIdList(){
return this.createUserIdList;
}
/**
* 设置 创建用户
* @param createUserIdList
*/
public void setCreateUserIdList(List<Long> createUserIdList){
this.createUserIdList = createUserIdList;
}
/**
* 获取 创建用户
* @return createUserIdNotList
*/
public List<Long> getCreateUserIdNotList(){
return this.createUserIdNotList;
}
/**
* 设置 创建用户
* @param createUserIdNotList
*/
public void setCreateUserIdNotList(List<Long> createUserIdNotList){
this.createUserIdNotList = createUserIdNotList;
}
/**
* 获取 开始 创建时间
* @return createTimeStart
*/
public String getCreateTimeStart(){
return this.createTimeStart;
}
/**
* 设置 开始 创建时间
* @param createTimeStart
*/
public void setCreateTimeStart(String createTimeStart){
this.createTimeStart = createTimeStart;
}
/**
* 获取 结束 创建时间
* @return createTimeEnd
*/
public String getCreateTimeEnd(){
return this.createTimeEnd;
}
/**
* 设置 结束 创建时间
* @param createTimeEnd
*/
public void setCreateTimeEnd(String createTimeEnd){
this.createTimeEnd = createTimeEnd;
}
/**
* 获取 开始 更新用户
* @return updateUserIdStart
*/
public Long getUpdateUserIdStart(){
return this.updateUserIdStart;
}
/**
* 设置 开始 更新用户
* @param updateUserIdStart
*/
public void setUpdateUserIdStart(Long updateUserIdStart){
this.updateUserIdStart = updateUserIdStart;
}
/**
* 获取 结束 更新用户
* @return $updateUserIdEnd
*/
public Long getUpdateUserIdEnd(){
return this.updateUserIdEnd;
}
/**
* 设置 结束 更新用户
* @param updateUserIdEnd
*/
public void setUpdateUserIdEnd(Long updateUserIdEnd){
this.updateUserIdEnd = updateUserIdEnd;
}
/**
* 获取 增加 更新用户
* @return updateUserIdIncrement
*/
public Long getUpdateUserIdIncrement(){
return this.updateUserIdIncrement;
}
/**
* 设置 增加 更新用户
* @param updateUserIdIncrement
*/
public void setUpdateUserIdIncrement(Long updateUserIdIncrement){
this.updateUserIdIncrement = updateUserIdIncrement;
}
/**
* 获取 更新用户
* @return updateUserIdList
*/
public List<Long> getUpdateUserIdList(){
return this.updateUserIdList;
}
/**
* 设置 更新用户
* @param updateUserIdList
*/
public void setUpdateUserIdList(List<Long> updateUserIdList){
this.updateUserIdList = updateUserIdList;
}
/**
* 获取 更新用户
* @return updateUserIdNotList
*/
public List<Long> getUpdateUserIdNotList(){
return this.updateUserIdNotList;
}
/**
* 设置 更新用户
* @param updateUserIdNotList
*/
public void setUpdateUserIdNotList(List<Long> updateUserIdNotList){
this.updateUserIdNotList = updateUserIdNotList;
}
/**
* 获取 开始 更新时间
* @return updateTimeStart
*/
public String getUpdateTimeStart(){
return this.updateTimeStart;
}
/**
* 设置 开始 更新时间
* @param updateTimeStart
*/
public void setUpdateTimeStart(String updateTimeStart){
this.updateTimeStart = updateTimeStart;
}
/**
* 获取 结束 更新时间
* @return updateTimeEnd
*/
public String getUpdateTimeEnd(){
return this.updateTimeEnd;
}
/**
* 设置 结束 更新时间
* @param updateTimeEnd
*/
public void setUpdateTimeEnd(String updateTimeEnd){
this.updateTimeEnd = updateTimeEnd;
}
/**
* 设置 序号,主键,自增长
* @param id
*/
public ProductQuery id(Long id){
setId(id);
return this;
}
/**
* 设置 开始 序号,主键,自增长
* @param idStart
*/
public ProductQuery idStart(Long idStart){
this.idStart = idStart;
return this;
}
/**
* 设置 结束 序号,主键,自增长
* @param idEnd
*/
public ProductQuery idEnd(Long idEnd){
this.idEnd = idEnd;
return this;
}
/**
* 设置 增加 序号,主键,自增长
* @param idIncrement
*/
public ProductQuery idIncrement(Long idIncrement){
this.idIncrement = idIncrement;
return this;
}
/**
* 设置 序号,主键,自增长
* @param idList
*/
public ProductQuery idList(List<Long> idList){
this.idList = idList;
return this;
}
/**
* 设置 序号,主键,自增长
* @param idNotList
*/
public ProductQuery idNotList(List<Long> idNotList){
this.idNotList = idNotList;
return this;
}
/**
* 设置 站点id
* @param siteId
*/
public ProductQuery siteId(Long siteId){
setSiteId(siteId);
return this;
}
/**
* 设置 开始 站点id
* @param siteIdStart
*/
public ProductQuery siteIdStart(Long siteIdStart){
this.siteIdStart = siteIdStart;
return this;
}
/**
* 设置 结束 站点id
* @param siteIdEnd
*/
public ProductQuery siteIdEnd(Long siteIdEnd){
this.siteIdEnd = siteIdEnd;
return this;
}
/**
* 设置 增加 站点id
* @param siteIdIncrement
*/
public ProductQuery siteIdIncrement(Long siteIdIncrement){
this.siteIdIncrement = siteIdIncrement;
return this;
}
/**
* 设置 站点id
* @param siteIdList
*/
public ProductQuery siteIdList(List<Long> siteIdList){
this.siteIdList = siteIdList;
return this;
}
/**
* 设置 站点id
* @param siteIdNotList
*/
public ProductQuery siteIdNotList(List<Long> siteIdNotList){
this.siteIdNotList = siteIdNotList;
return this;
}
/**
* 设置 产品名称
* @param productName
*/
public ProductQuery productName(String productName){
setProductName(productName);
return this;
}
/**
* 设置 产品名称
* @param productNameList
*/
public ProductQuery productNameList(List<String> productNameList){
this.productNameList = productNameList;
return this;
}
/**
* 设置 Logo图片地址
* @param logoUrl
*/
public ProductQuery logoUrl(String logoUrl){
setLogoUrl(logoUrl);
return this;
}
/**
* 设置 Logo图片地址
* @param logoUrlList
*/
public ProductQuery logoUrlList(List<String> logoUrlList){
this.logoUrlList = logoUrlList;
return this;
}
/**
* 设置 产品编码
* @param productCode
*/
public ProductQuery productCode(String productCode){
setProductCode(productCode);
return this;
}
/**
* 设置 产品编码
* @param productCodeList
*/
public ProductQuery productCodeList(List<String> productCodeList){
this.productCodeList = productCodeList;
return this;
}
/**
* 设置 创建用户
* @param createUserId
*/
public ProductQuery createUserId(Long createUserId){
setCreateUserId(createUserId);
return this;
}
/**
* 设置 开始 创建用户
* @param createUserIdStart
*/
public ProductQuery createUserIdStart(Long createUserIdStart){
this.createUserIdStart = createUserIdStart;
return this;
}
/**
* 设置 结束 创建用户
* @param createUserIdEnd
*/
public ProductQuery createUserIdEnd(Long createUserIdEnd){
this.createUserIdEnd = createUserIdEnd;
return this;
}
/**
* 设置 增加 创建用户
* @param createUserIdIncrement
*/
public ProductQuery createUserIdIncrement(Long createUserIdIncrement){
this.createUserIdIncrement = createUserIdIncrement;
return this;
}
/**
* 设置 创建用户
* @param createUserIdList
*/
public ProductQuery createUserIdList(List<Long> createUserIdList){
this.createUserIdList = createUserIdList;
return this;
}
/**
* 设置 创建用户
* @param createUserIdNotList
*/
public ProductQuery createUserIdNotList(List<Long> createUserIdNotList){
this.createUserIdNotList = createUserIdNotList;
return this;
}
/**
* 设置 更新用户
* @param updateUserId
*/
public ProductQuery updateUserId(Long updateUserId){
setUpdateUserId(updateUserId);
return this;
}
/**
* 设置 开始 更新用户
* @param updateUserIdStart
*/
public ProductQuery updateUserIdStart(Long updateUserIdStart){
this.updateUserIdStart = updateUserIdStart;
return this;
}
/**
* 设置 结束 更新用户
* @param updateUserIdEnd
*/
public ProductQuery updateUserIdEnd(Long updateUserIdEnd){
this.updateUserIdEnd = updateUserIdEnd;
return this;
}
/**
* 设置 增加 更新用户
* @param updateUserIdIncrement
*/
public ProductQuery updateUserIdIncrement(Long updateUserIdIncrement){
this.updateUserIdIncrement = updateUserIdIncrement;
return this;
}
/**
* 设置 更新用户
* @param updateUserIdList
*/
public ProductQuery updateUserIdList(List<Long> updateUserIdList){
this.updateUserIdList = updateUserIdList;
return this;
}
/**
* 设置 更新用户
* @param updateUserIdNotList
*/
public ProductQuery updateUserIdNotList(List<Long> updateUserIdNotList){
this.updateUserIdNotList = updateUserIdNotList;
return this;
}
/**
* 获取 OR条件集合,列表项之间是OR,项内容之间是AND,如:(list[0].1 and list[0].2) or (list[1].3 and list[1].4)
* @return orConditionList
*/
public List<ProductQuery> getOrConditionList(){
return this.orConditionList;
}
/**
* 设置 OR条件集合,列表项之间是OR,项内容之间是AND,如:(list[0].1 and list[0].2) or (list[1].3 and list[1].4)
* @param orConditionList
*/
public void setOrConditionList(List<ProductQuery> orConditionList){
this.orConditionList = orConditionList;
}
/**
* 获取 AND条件集合,列表项之间是AND,项内容之间是OR,如:(list[0].1 or list[0].2) and (list[1].3 or list[1].4)
* @return andConditionList
*/
public List<ProductQuery> getAndConditionList(){
return this.andConditionList;
}
/**
* 设置 AND条件集合,列表项之间是AND,项内容之间是OR,如:(list[0].1 or list[0].2) and (list[1].3 or list[1].4)
* @param andConditionList
*/
public void setAndConditionList(List<ProductQuery> andConditionList){
this.andConditionList = andConditionList;
}
}
\ No newline at end of file
package com.mortals.xhx.module.product.model.vo;
import com.mortals.framework.model.BaseEntityLong;
import com.mortals.xhx.module.product.model.ProductAppsEntity;
import java.util.ArrayList;
import java.util.List;
/**
* 协议管理视图对象
*
* @author zxfei
* @date 2023-02-22
*/
public class ProductAppsVo extends BaseEntityLong {
}
\ No newline at end of file
package com.mortals.xhx.module.product.model.vo;
import com.mortals.framework.model.BaseEntityLong;
import com.mortals.xhx.module.product.model.ProductDocumentEntity;
import java.util.ArrayList;
import java.util.List;
/**
* 协议管理视图对象
*
* @author zxfei
* @date 2023-02-22
*/
public class ProductDocumentVo extends BaseEntityLong {
}
\ No newline at end of file
package com.mortals.xhx.module.product.model.vo;
import com.mortals.framework.model.BaseEntityLong;
import com.mortals.xhx.module.product.model.ProductInterfaceEntity;
import java.util.ArrayList;
import java.util.List;
/**
* 皮肤配置视图对象
*
* @author zxfei
* @date 2023-02-22
*/
public class ProductInterfaceVo extends BaseEntityLong {
}
\ No newline at end of file
package com.mortals.xhx.module.product.model.vo;
import com.mortals.framework.model.BaseEntityLong;
import com.mortals.xhx.module.product.model.ProductEntity;
import java.util.ArrayList;
import java.util.List;
/**
* 产品信息视图对象
*
* @author zxfei
* @date 2023-02-22
*/
public class ProductVo extends BaseEntityLong {
}
\ No newline at end of file
package com.mortals.xhx.module.product.service;
import com.mortals.framework.service.ICRUDService;
import com.mortals.xhx.module.product.model.ProductAppsEntity;
/**
* ProductAppsService
*
* 产品应用 service接口
*
* @author zxfei
* @date 2023-02-22
*/
public interface ProductAppsService extends ICRUDService<ProductAppsEntity,Long>{
}
\ No newline at end of file
package com.mortals.xhx.module.product.service;
import com.mortals.framework.service.ICRUDService;
import com.mortals.xhx.module.product.model.ProductDocumentEntity;
/**
* ProductDocumentService
*
* 产品资料 service接口
*
* @author zxfei
* @date 2023-02-22
*/
public interface ProductDocumentService extends ICRUDService<ProductDocumentEntity,Long>{
}
\ No newline at end of file
package com.mortals.xhx.module.product.service;
import com.mortals.framework.service.ICRUDService;
import com.mortals.xhx.module.product.model.ProductInterfaceEntity;
/**
* ProductInterfaceService
*
* 产品接口 service接口
*
* @author zxfei
* @date 2023-02-22
*/
public interface ProductInterfaceService extends ICRUDService<ProductInterfaceEntity,Long>{
}
\ No newline at end of file
package com.mortals.xhx.module.product.service;
import com.mortals.framework.service.ICRUDService;
import com.mortals.xhx.module.product.model.ProductEntity;
/**
* ProductService
*
* 产品信息 service接口
*
* @author zxfei
* @date 2023-02-22
*/
public interface ProductService extends ICRUDService<ProductEntity,Long>{
}
\ No newline at end of file
package com.mortals.xhx.module.product.service.impl;
import org.springframework.stereotype.Service;
import com.mortals.framework.service.impl.AbstractCRUDServiceImpl;
import com.mortals.framework.exception.AppException;
import com.mortals.framework.model.Context;
import com.mortals.xhx.module.product.dao.ProductAppsDao;
import com.mortals.xhx.module.product.model.ProductAppsEntity;
import com.mortals.xhx.module.product.service.ProductAppsService;
/**
* ProductAppsService
* 产品应用 service实现
*
* @author zxfei
* @date 2023-02-22
*/
@Service("productAppsService")
public class ProductAppsServiceImpl extends AbstractCRUDServiceImpl<ProductAppsDao, ProductAppsEntity, Long> implements ProductAppsService {
}
\ No newline at end of file
package com.mortals.xhx.module.product.service.impl;
import org.springframework.stereotype.Service;
import com.mortals.framework.service.impl.AbstractCRUDServiceImpl;
import com.mortals.framework.exception.AppException;
import com.mortals.framework.model.Context;
import com.mortals.xhx.module.product.dao.ProductDocumentDao;
import com.mortals.xhx.module.product.model.ProductDocumentEntity;
import com.mortals.xhx.module.product.service.ProductDocumentService;
/**
* ProductDocumentService
* 产品资料 service实现
*
* @author zxfei
* @date 2023-02-22
*/
@Service("productDocumentService")
public class ProductDocumentServiceImpl extends AbstractCRUDServiceImpl<ProductDocumentDao, ProductDocumentEntity, Long> implements ProductDocumentService {
}
\ No newline at end of file
package com.mortals.xhx.module.product.service.impl;
import org.springframework.stereotype.Service;
import com.mortals.framework.service.impl.AbstractCRUDServiceImpl;
import com.mortals.framework.exception.AppException;
import com.mortals.framework.model.Context;
import com.mortals.xhx.module.product.dao.ProductInterfaceDao;
import com.mortals.xhx.module.product.model.ProductInterfaceEntity;
import com.mortals.xhx.module.product.service.ProductInterfaceService;
/**
* ProductInterfaceService
* 产品接口 service实现
*
* @author zxfei
* @date 2023-02-22
*/
@Service("productInterfaceService")
public class ProductInterfaceServiceImpl extends AbstractCRUDServiceImpl<ProductInterfaceDao, ProductInterfaceEntity, Long> implements ProductInterfaceService {
}
\ No newline at end of file
package com.mortals.xhx.module.product.service.impl;
import org.springframework.stereotype.Service;
import com.mortals.framework.service.impl.AbstractCRUDServiceImpl;
import com.mortals.framework.exception.AppException;
import com.mortals.framework.model.Context;
import com.mortals.xhx.module.product.dao.ProductDao;
import com.mortals.xhx.module.product.model.ProductEntity;
import com.mortals.xhx.module.product.service.ProductService;
/**
* ProductService
* 产品信息 service实现
*
* @author zxfei
* @date 2023-02-22
*/
@Service("productService")
public class ProductServiceImpl extends AbstractCRUDServiceImpl<ProductDao, ProductEntity, Long> implements ProductService {
}
\ No newline at end of file
package com.mortals.xhx.module.product.web;
import com.mortals.framework.model.Context;
import com.mortals.framework.web.BaseCRUDJsonBodyMappingController;
import com.mortals.xhx.module.param.service.ParamService;
import com.mortals.xhx.module.product.model.ProductAppsEntity;
import com.mortals.xhx.module.product.service.ProductAppsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.Map;
/**
*
* 产品应用
*
* @author zxfei
* @date 2023-02-22
*/
@RestController
@RequestMapping("product/apps")
public class ProductAppsController extends BaseCRUDJsonBodyMappingController<ProductAppsService,ProductAppsEntity,Long> {
@Autowired
private ParamService paramService;
public ProductAppsController(){
super.setModuleDesc( "产品应用");
}
@Override
protected void init(Map<String, Object> model, Context context) {
this.addDict(model, "deveLanguage", paramService.getParamBySecondOrganize("ProductApps","deveLanguage"));
this.addDict(model, "isEnable", paramService.getParamBySecondOrganize("ProductApps","isEnable"));
super.init(model, context);
}
}
\ No newline at end of file
package com.mortals.xhx.module.product.web;
import com.mortals.framework.model.Context;
import com.mortals.framework.web.BaseCRUDJsonBodyMappingController;
import com.mortals.xhx.module.product.model.ProductEntity;
import com.mortals.xhx.module.product.service.ProductService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.Map;
/**
*
* 产品信息
*
* @author zxfei
* @date 2023-02-22
*/
@RestController
@RequestMapping("product")
public class ProductController extends BaseCRUDJsonBodyMappingController<ProductService,ProductEntity,Long> {
public ProductController(){
super.setModuleDesc( "产品信息");
}
@Override
protected void init(Map<String, Object> model, Context context) {
super.init(model, context);
}
}
\ No newline at end of file
package com.mortals.xhx.module.product.web;
import com.mortals.framework.model.Context;
import com.mortals.framework.web.BaseCRUDJsonBodyMappingController;
import com.mortals.xhx.module.product.model.ProductDocumentEntity;
import com.mortals.xhx.module.product.service.ProductDocumentService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.Map;
/**
*
* 协议管理
*
* @author zxfei
* @date 2023-02-22
*/
@RestController
@RequestMapping("product/document")
public class ProductDocumentController extends BaseCRUDJsonBodyMappingController<ProductDocumentService,ProductDocumentEntity,Long> {
public ProductDocumentController(){
super.setModuleDesc( "产品资料");
}
@Override
protected void init(Map<String, Object> model, Context context) {
super.init(model, context);
}
}
\ No newline at end of file
package com.mortals.xhx.module.product.web;
import com.mortals.framework.model.Context;
import com.mortals.framework.web.BaseCRUDJsonBodyMappingController;
import com.mortals.xhx.module.param.service.ParamService;
import com.mortals.xhx.module.product.model.ProductInterfaceEntity;
import com.mortals.xhx.module.product.service.ProductInterfaceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.Map;
/**
*
* 产品接口
*
* @author zxfei
* @date 2023-02-22
*/
@RestController
@RequestMapping("product/interface")
public class ProductInterfaceController extends BaseCRUDJsonBodyMappingController<ProductInterfaceService,ProductInterfaceEntity,Long> {
@Autowired
private ParamService paramService;
public ProductInterfaceController(){
super.setModuleDesc( "产品接口");
}
@Override
protected void init(Map<String, Object> model, Context context) {
this.addDict(model, "requestType", paramService.getParamBySecondOrganize("ProductInterface","requestType"));
this.addDict(model, "requestProtocol", paramService.getParamBySecondOrganize("ProductInterface","requestProtocol"));
this.addDict(model, "limitStrategy", paramService.getParamBySecondOrganize("ProductInterface","limitStrategy"));
this.addDict(model, "network", paramService.getParamBySecondOrganize("ProductInterface","network"));
this.addDict(model, "interfaceTag", paramService.getParamBySecondOrganize("ProductInterface","interfaceTag"));
this.addDict(model, "interfaceSource", paramService.getParamBySecondOrganize("ProductInterface","interfaceSource"));
super.init(model, context);
}
}
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"mybatis-3-mapper.dtd">
<mapper namespace="com.mortals.xhx.module.product.dao.ibatis.ProductAppsDaoImpl">
<!-- 字段和属性映射 -->
<resultMap type="ProductAppsEntity" id="ProductAppsEntity-Map">
<id property="id" column="id" />
<result property="productId" column="productId" />
<result property="appName" column="appName" />
<result property="deveLanguage" column="deveLanguage" />
<result property="versionNumber" column="versionNumber" />
<result property="versionInfo" column="versionInfo" />
<result property="appFileUrl" column="appFileUrl" />
<result property="isEnable" column="isEnable" />
<result property="createUserId" column="createUserId" />
<result property="createTime" column="createTime" />
<result property="updateUserId" column="updateUserId" />
<result property="updateTime" column="updateTime" />
</resultMap>
<!-- 表所有列 -->
<sql id="_columns">
<trim suffixOverrides="," suffix="">
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('id') or colPickMode == 1 and data.containsKey('id')))">
a.id,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('productId') or colPickMode == 1 and data.containsKey('productId')))">
a.productId,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('appName') or colPickMode == 1 and data.containsKey('appName')))">
a.appName,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('deveLanguage') or colPickMode == 1 and data.containsKey('deveLanguage')))">
a.deveLanguage,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('versionNumber') or colPickMode == 1 and data.containsKey('versionNumber')))">
a.versionNumber,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('versionInfo') or colPickMode == 1 and data.containsKey('versionInfo')))">
a.versionInfo,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('appFileUrl') or colPickMode == 1 and data.containsKey('appFileUrl')))">
a.appFileUrl,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('isEnable') or colPickMode == 1 and data.containsKey('isEnable')))">
a.isEnable,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('createUserId') or colPickMode == 1 and data.containsKey('createUserId')))">
a.createUserId,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('createTime') or colPickMode == 1 and data.containsKey('createTime')))">
a.createTime,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('updateUserId') or colPickMode == 1 and data.containsKey('updateUserId')))">
a.updateUserId,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('updateTime') or colPickMode == 1 and data.containsKey('updateTime')))">
a.updateTime,
</if>
</trim>
</sql>
<!-- 新增 区分主键自增加还是业务插入 -->
<insert id="insert" parameterType="ProductAppsEntity" useGeneratedKeys="true" keyProperty="id">
insert into mortals_xhx_product_apps
(productId,appName,deveLanguage,versionNumber,versionInfo,appFileUrl,isEnable,createUserId,createTime,updateUserId,updateTime)
VALUES
(#{productId},#{appName},#{deveLanguage},#{versionNumber},#{versionInfo},#{appFileUrl},#{isEnable},#{createUserId},#{createTime},#{updateUserId},#{updateTime})
</insert>
<!-- 批量新增 -->
<insert id="insertBatch" parameterType="paramDto">
insert into mortals_xhx_product_apps
(productId,appName,deveLanguage,versionNumber,versionInfo,appFileUrl,isEnable,createUserId,createTime,updateUserId,updateTime)
VALUES
<foreach collection="data.dataList" item="item" index="index" separator="," >
(#{item.productId},#{item.appName},#{item.deveLanguage},#{item.versionNumber},#{item.versionInfo},#{item.appFileUrl},#{item.isEnable},#{item.createUserId},#{item.createTime},#{item.updateUserId},#{item.updateTime})
</foreach>
</insert>
<!-- 根据ParamDto更新 -->
<update id="update" parameterType="paramDto">
update mortals_xhx_product_apps as a
set
<trim suffixOverrides="," suffix="">
<if test="(colPickMode==0 and data.containsKey('productId')) or (colPickMode==1 and !data.containsKey('productId'))">
a.productId=#{data.productId},
</if>
<if test="(colPickMode==0 and data.containsKey('productIdIncrement')) or (colPickMode==1 and !data.containsKey('productIdIncrement'))">
a.productId=ifnull(a.productId,0) + #{data.productIdIncrement},
</if>
<if test="(colPickMode==0 and data.containsKey('appName')) or (colPickMode==1 and !data.containsKey('appName'))">
a.appName=#{data.appName},
</if>
<if test="(colPickMode==0 and data.containsKey('deveLanguage')) or (colPickMode==1 and !data.containsKey('deveLanguage'))">
a.deveLanguage=#{data.deveLanguage},
</if>
<if test="(colPickMode==0 and data.containsKey('deveLanguageIncrement')) or (colPickMode==1 and !data.containsKey('deveLanguageIncrement'))">
a.deveLanguage=ifnull(a.deveLanguage,0) + #{data.deveLanguageIncrement},
</if>
<if test="(colPickMode==0 and data.containsKey('versionNumber')) or (colPickMode==1 and !data.containsKey('versionNumber'))">
a.versionNumber=#{data.versionNumber},
</if>
<if test="(colPickMode==0 and data.containsKey('versionInfo')) or (colPickMode==1 and !data.containsKey('versionInfo'))">
a.versionInfo=#{data.versionInfo},
</if>
<if test="(colPickMode==0 and data.containsKey('appFileUrl')) or (colPickMode==1 and !data.containsKey('appFileUrl'))">
a.appFileUrl=#{data.appFileUrl},
</if>
<if test="(colPickMode==0 and data.containsKey('isEnable')) or (colPickMode==1 and !data.containsKey('isEnable'))">
a.isEnable=#{data.isEnable},
</if>
<if test="(colPickMode==0 and data.containsKey('isEnableIncrement')) or (colPickMode==1 and !data.containsKey('isEnableIncrement'))">
a.isEnable=ifnull(a.isEnable,0) + #{data.isEnableIncrement},
</if>
<if test="(colPickMode==0 and data.containsKey('createUserId')) or (colPickMode==1 and !data.containsKey('createUserId'))">
a.createUserId=#{data.createUserId},
</if>
<if test="(colPickMode==0 and data.containsKey('createUserIdIncrement')) or (colPickMode==1 and !data.containsKey('createUserIdIncrement'))">
a.createUserId=ifnull(a.createUserId,0) + #{data.createUserIdIncrement},
</if>
<if test="(colPickMode==0 and data.containsKey('createTime')) or (colPickMode==1 and !data.containsKey('createTime'))">
a.createTime=#{data.createTime},
</if>
<if test="(colPickMode==0 and data.containsKey('updateUserId')) or (colPickMode==1 and !data.containsKey('updateUserId'))">
a.updateUserId=#{data.updateUserId},
</if>
<if test="(colPickMode==0 and data.containsKey('updateUserIdIncrement')) or (colPickMode==1 and !data.containsKey('updateUserIdIncrement'))">
a.updateUserId=ifnull(a.updateUserId,0) + #{data.updateUserIdIncrement},
</if>
<if test="(colPickMode==0 and data.containsKey('updateTime')) or (colPickMode==1 and !data.containsKey('updateTime'))">
a.updateTime=#{data.updateTime},
</if>
</trim>
<trim suffixOverrides="where" suffix="">
where
<trim prefixOverrides="and" prefix="">
<include refid="_condition_"/>
</trim>
</trim>
</update>
<!-- 批量更新 -->
<update id="updateBatch" parameterType="paramDto">
update mortals_xhx_product_apps as a
<trim prefix="set" suffixOverrides=",">
<trim prefix="productId=(case" suffix="ELSE productId end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<choose>
<when test="(colPickMode==0 and item.containsKey('productId')) or (colPickMode==1 and !item.containsKey('productId'))">
when a.id=#{item.id} then #{item.productId}
</when>
<when test="(colPickMode==0 and item.containsKey('productIdIncrement')) or (colPickMode==1 and !item.containsKey('productIdIncrement'))">
when a.id=#{item.id} then ifnull(a.productId,0) + #{item.productIdIncrement}
</when>
</choose>
</foreach>
</trim>
<trim prefix="appName=(case" suffix="ELSE appName end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('appName')) or (colPickMode==1 and !item.containsKey('appName'))">
when a.id=#{item.id} then #{item.appName}
</if>
</foreach>
</trim>
<trim prefix="deveLanguage=(case" suffix="ELSE deveLanguage end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<choose>
<when test="(colPickMode==0 and item.containsKey('deveLanguage')) or (colPickMode==1 and !item.containsKey('deveLanguage'))">
when a.id=#{item.id} then #{item.deveLanguage}
</when>
<when test="(colPickMode==0 and item.containsKey('deveLanguageIncrement')) or (colPickMode==1 and !item.containsKey('deveLanguageIncrement'))">
when a.id=#{item.id} then ifnull(a.deveLanguage,0) + #{item.deveLanguageIncrement}
</when>
</choose>
</foreach>
</trim>
<trim prefix="versionNumber=(case" suffix="ELSE versionNumber end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('versionNumber')) or (colPickMode==1 and !item.containsKey('versionNumber'))">
when a.id=#{item.id} then #{item.versionNumber}
</if>
</foreach>
</trim>
<trim prefix="versionInfo=(case" suffix="ELSE versionInfo end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('versionInfo')) or (colPickMode==1 and !item.containsKey('versionInfo'))">
when a.id=#{item.id} then #{item.versionInfo}
</if>
</foreach>
</trim>
<trim prefix="appFileUrl=(case" suffix="ELSE appFileUrl end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('appFileUrl')) or (colPickMode==1 and !item.containsKey('appFileUrl'))">
when a.id=#{item.id} then #{item.appFileUrl}
</if>
</foreach>
</trim>
<trim prefix="isEnable=(case" suffix="ELSE isEnable end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<choose>
<when test="(colPickMode==0 and item.containsKey('isEnable')) or (colPickMode==1 and !item.containsKey('isEnable'))">
when a.id=#{item.id} then #{item.isEnable}
</when>
<when test="(colPickMode==0 and item.containsKey('isEnableIncrement')) or (colPickMode==1 and !item.containsKey('isEnableIncrement'))">
when a.id=#{item.id} then ifnull(a.isEnable,0) + #{item.isEnableIncrement}
</when>
</choose>
</foreach>
</trim>
<trim prefix="createUserId=(case" suffix="ELSE createUserId end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<choose>
<when test="(colPickMode==0 and item.containsKey('createUserId')) or (colPickMode==1 and !item.containsKey('createUserId'))">
when a.id=#{item.id} then #{item.createUserId}
</when>
<when test="(colPickMode==0 and item.containsKey('createUserIdIncrement')) or (colPickMode==1 and !item.containsKey('createUserIdIncrement'))">
when a.id=#{item.id} then ifnull(a.createUserId,0) + #{item.createUserIdIncrement}
</when>
</choose>
</foreach>
</trim>
<trim prefix="createTime=(case" suffix="ELSE createTime end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('createTime')) or (colPickMode==1 and !item.containsKey('createTime'))">
when a.id=#{item.id} then #{item.createTime}
</if>
</foreach>
</trim>
<trim prefix="updateUserId=(case" suffix="ELSE updateUserId end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<choose>
<when test="(colPickMode==0 and item.containsKey('updateUserId')) or (colPickMode==1 and !item.containsKey('updateUserId'))">
when a.id=#{item.id} then #{item.updateUserId}
</when>
<when test="(colPickMode==0 and item.containsKey('updateUserIdIncrement')) or (colPickMode==1 and !item.containsKey('updateUserIdIncrement'))">
when a.id=#{item.id} then ifnull(a.updateUserId,0) + #{item.updateUserIdIncrement}
</when>
</choose>
</foreach>
</trim>
<trim prefix="updateTime=(case" suffix="ELSE updateTime end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('updateTime')) or (colPickMode==1 and !item.containsKey('updateTime'))">
when a.id=#{item.id} then #{item.updateTime}
</if>
</foreach>
</trim>
</trim>
where id in
<foreach collection="data.dataList" item="item" index="index" open="(" separator="," close=")">
#{item.id}
</foreach>
</update>
<!-- 根据主健查询 -->
<select id="getByKey" parameterType="paramDto" resultMap="ProductAppsEntity-Map">
select <include refid="_columns"/>
from mortals_xhx_product_apps as a
where a.id=#{condition.id}
</select>
<!-- 根据主健删除 -->
<delete id="deleteByKey" parameterType="paramDto">
delete a.* from mortals_xhx_product_apps as a where a.id=#{condition.id}
</delete>
<!-- 根据主健删除一批,针对单一主健有效 -->
<delete id="deleteByKeys">
delete from mortals_xhx_product_apps where id in
<foreach collection="array" item="item" index="index" open="(" separator="," close=")">
#{item}
</foreach>
</delete>
<!-- 根据主健列表删除一批,针对单一主健有效 -->
<delete id="deleteByKeyList">
delete from mortals_xhx_product_apps where id in
<foreach collection="list" item="item" index="index" open="(" separator="," close=")">
#{item}
</foreach>
</delete>
<!-- 根据对象列表删除一批,针对单一主健有效 -->
<delete id="deleteByEntityList">
delete from mortals_xhx_product_apps where id in
<foreach collection="list" item="item" index="index" open="(" separator="," close=")">
#{item.id}
</foreach>
</delete>
<!-- 根据paramDto删除一批 -->
<delete id="deleteByMap" parameterType="paramDto">
delete a.* from mortals_xhx_product_apps as a
<trim suffixOverrides="where" suffix="">
where
<trim prefixOverrides="and" prefix="">
<include refid="_condition_"/>
</trim>
</trim>
</delete>
<!-- 获取列表 -->
<select id="getList" parameterType="paramDto" resultMap="ProductAppsEntity-Map">
select <include refid="_columns"/>
from mortals_xhx_product_apps as a
<trim suffixOverrides="where" suffix="">
where
<trim prefixOverrides="and" prefix="">
<include refid="_condition_"/>
</trim>
</trim>
<include refid="_orderCols_"/>
</select>
<!-- 获取 -->
<select id="getListCount" parameterType="paramDto" resultType="int">
select count(1)
from mortals_xhx_product_apps as a
<trim suffixOverrides="where" suffix="">
where
<trim prefixOverrides="and" prefix="">
<include refid="_condition_"/>
</trim>
</trim>
</select>
<!-- 条件映射 -->
<sql id="_condition_">
<if test="condition != null and !condition.isEmpty()">
<!-- 条件映射-普通条件 -->
<include refid="_condition_param_">
<property name="_conditionParam_" value="condition"/>
<property name="_conditionType_" value="and"/>
</include>
<!-- 条件映射-集合之间使用AND,集合中元素使用OR-(list[0].1 or list[0].2) and (list[1].3 or list[1].4) -->
<if test="condition.containsKey('andConditionList') and !condition.andConditionList.isEmpty()">
and
<foreach collection="condition.andConditionList" open="(" close=")" index="index" item="andCondition" separator=" and ">
<trim prefixOverrides="or" prefix="(" suffix=")">
<include refid="_condition_param_">
<property name="_conditionParam_" value="andCondition"/>
<property name="_conditionType_" value="or"/>
</include>
</trim>
</foreach>
</if>
<!-- 条件映射-集合之间使用OR,集合中元素使用AND-(list[0].1 and list[0].2) or (list[1].3 and list[1].4) -->
<if test="condition.containsKey('orConditionList') and !condition.orConditionList.isEmpty()">
and
<foreach collection="condition.orConditionList" open="(" close=")" index="index" item="orCondition" separator=" or ">
<trim prefixOverrides="and" prefix="(" suffix=")">
<include refid="_condition_param_">
<property name="_conditionParam_" value="orCondition"/>
<property name="_conditionType_" value="and"/>
</include>
</trim>
</foreach>
</if>
</if>
</sql>
<!-- 条件映射-代参数 -->
<sql id="_condition_param_">
<bind name="conditionParamRef" value="${_conditionParam_}"/>
<if test="conditionParamRef.containsKey('id')">
<if test="conditionParamRef.id != null">
${_conditionType_} a.id=#{${_conditionParam_}.id}
</if>
</if>
<if test="conditionParamRef.containsKey('id')">
<if test="conditionParamRef.id != null ">
${_conditionType_} a.id = #{${_conditionParam_}.id}
</if>
<if test="conditionParamRef.id == null">
${_conditionType_} a.id is null
</if>
</if>
<if test="conditionParamRef.containsKey('idList')">
${_conditionType_} a.id in
<foreach collection="conditionParamRef.idList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('idNotList')">
${_conditionType_} a.id not in
<foreach collection="conditionParamRef.idNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('idStart') and conditionParamRef.idStart != null">
${_conditionType_} a.id <![CDATA[ >= ]]> #{${_conditionParam_}.idStart}
</if>
<if test="conditionParamRef.containsKey('idEnd') and conditionParamRef.idEnd != null">
${_conditionType_} a.id <![CDATA[ <= ]]> #{${_conditionParam_}.idEnd}
</if>
<if test="conditionParamRef.containsKey('productId')">
<if test="conditionParamRef.productId != null ">
${_conditionType_} a.productId = #{${_conditionParam_}.productId}
</if>
<if test="conditionParamRef.productId == null">
${_conditionType_} a.productId is null
</if>
</if>
<if test="conditionParamRef.containsKey('productIdList')">
${_conditionType_} a.productId in
<foreach collection="conditionParamRef.productIdList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('productIdNotList')">
${_conditionType_} a.productId not in
<foreach collection="conditionParamRef.productIdNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('productIdStart') and conditionParamRef.productIdStart != null">
${_conditionType_} a.productId <![CDATA[ >= ]]> #{${_conditionParam_}.productIdStart}
</if>
<if test="conditionParamRef.containsKey('productIdEnd') and conditionParamRef.productIdEnd != null">
${_conditionType_} a.productId <![CDATA[ <= ]]> #{${_conditionParam_}.productIdEnd}
</if>
<if test="conditionParamRef.containsKey('appName')">
<if test="conditionParamRef.appName != null and conditionParamRef.appName != ''">
${_conditionType_} a.appName like #{${_conditionParam_}.appName}
</if>
<if test="conditionParamRef.appName == null">
${_conditionType_} a.appName is null
</if>
</if>
<if test="conditionParamRef.containsKey('appNameList')">
${_conditionType_} a.appName in
<foreach collection="conditionParamRef.appNameList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('appNameNotList')">
${_conditionType_} a.appName not in
<foreach collection="conditionParamRef.appNameNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('deveLanguage')">
<if test="conditionParamRef.deveLanguage != null ">
${_conditionType_} a.deveLanguage = #{${_conditionParam_}.deveLanguage}
</if>
<if test="conditionParamRef.deveLanguage == null">
${_conditionType_} a.deveLanguage is null
</if>
</if>
<if test="conditionParamRef.containsKey('deveLanguageList')">
${_conditionType_} a.deveLanguage in
<foreach collection="conditionParamRef.deveLanguageList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('deveLanguageNotList')">
${_conditionType_} a.deveLanguage not in
<foreach collection="conditionParamRef.deveLanguageNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('deveLanguageStart') and conditionParamRef.deveLanguageStart != null">
${_conditionType_} a.deveLanguage <![CDATA[ >= ]]> #{${_conditionParam_}.deveLanguageStart}
</if>
<if test="conditionParamRef.containsKey('deveLanguageEnd') and conditionParamRef.deveLanguageEnd != null">
${_conditionType_} a.deveLanguage <![CDATA[ <= ]]> #{${_conditionParam_}.deveLanguageEnd}
</if>
<if test="conditionParamRef.containsKey('versionNumber')">
<if test="conditionParamRef.versionNumber != null and conditionParamRef.versionNumber != ''">
${_conditionType_} a.versionNumber like #{${_conditionParam_}.versionNumber}
</if>
<if test="conditionParamRef.versionNumber == null">
${_conditionType_} a.versionNumber is null
</if>
</if>
<if test="conditionParamRef.containsKey('versionNumberList')">
${_conditionType_} a.versionNumber in
<foreach collection="conditionParamRef.versionNumberList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('versionNumberNotList')">
${_conditionType_} a.versionNumber not in
<foreach collection="conditionParamRef.versionNumberNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('versionInfo')">
<if test="conditionParamRef.versionInfo != null and conditionParamRef.versionInfo != ''">
${_conditionType_} a.versionInfo like #{${_conditionParam_}.versionInfo}
</if>
<if test="conditionParamRef.versionInfo == null">
${_conditionType_} a.versionInfo is null
</if>
</if>
<if test="conditionParamRef.containsKey('versionInfoList')">
${_conditionType_} a.versionInfo in
<foreach collection="conditionParamRef.versionInfoList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('versionInfoNotList')">
${_conditionType_} a.versionInfo not in
<foreach collection="conditionParamRef.versionInfoNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('appFileUrl')">
<if test="conditionParamRef.appFileUrl != null and conditionParamRef.appFileUrl != ''">
${_conditionType_} a.appFileUrl like #{${_conditionParam_}.appFileUrl}
</if>
<if test="conditionParamRef.appFileUrl == null">
${_conditionType_} a.appFileUrl is null
</if>
</if>
<if test="conditionParamRef.containsKey('appFileUrlList')">
${_conditionType_} a.appFileUrl in
<foreach collection="conditionParamRef.appFileUrlList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('appFileUrlNotList')">
${_conditionType_} a.appFileUrl not in
<foreach collection="conditionParamRef.appFileUrlNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('isEnable')">
<if test="conditionParamRef.isEnable != null ">
${_conditionType_} a.isEnable = #{${_conditionParam_}.isEnable}
</if>
<if test="conditionParamRef.isEnable == null">
${_conditionType_} a.isEnable is null
</if>
</if>
<if test="conditionParamRef.containsKey('isEnableList')">
${_conditionType_} a.isEnable in
<foreach collection="conditionParamRef.isEnableList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('isEnableNotList')">
${_conditionType_} a.isEnable not in
<foreach collection="conditionParamRef.isEnableNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('isEnableStart') and conditionParamRef.isEnableStart != null">
${_conditionType_} a.isEnable <![CDATA[ >= ]]> #{${_conditionParam_}.isEnableStart}
</if>
<if test="conditionParamRef.containsKey('isEnableEnd') and conditionParamRef.isEnableEnd != null">
${_conditionType_} a.isEnable <![CDATA[ <= ]]> #{${_conditionParam_}.isEnableEnd}
</if>
<if test="conditionParamRef.containsKey('createUserId')">
<if test="conditionParamRef.createUserId != null ">
${_conditionType_} a.createUserId = #{${_conditionParam_}.createUserId}
</if>
<if test="conditionParamRef.createUserId == null">
${_conditionType_} a.createUserId is null
</if>
</if>
<if test="conditionParamRef.containsKey('createUserIdList')">
${_conditionType_} a.createUserId in
<foreach collection="conditionParamRef.createUserIdList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('createUserIdNotList')">
${_conditionType_} a.createUserId not in
<foreach collection="conditionParamRef.createUserIdNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('createUserIdStart') and conditionParamRef.createUserIdStart != null">
${_conditionType_} a.createUserId <![CDATA[ >= ]]> #{${_conditionParam_}.createUserIdStart}
</if>
<if test="conditionParamRef.containsKey('createUserIdEnd') and conditionParamRef.createUserIdEnd != null">
${_conditionType_} a.createUserId <![CDATA[ <= ]]> #{${_conditionParam_}.createUserIdEnd}
</if>
<if test="conditionParamRef.containsKey('createTime')">
<if test="conditionParamRef.createTime != null ">
${_conditionType_} a.createTime = #{${_conditionParam_}.createTime}
</if>
<if test="conditionParamRef.createTime == null">
${_conditionType_} a.createTime is null
</if>
</if>
<if test="conditionParamRef.containsKey('createTimeStart') and conditionParamRef.createTimeStart != null and conditionParamRef.createTimeStart!=''">
${_conditionType_} a.createTime <![CDATA[ >= ]]> STR_TO_DATE(left(concat(#{${_conditionParam_}.createTimeStart},' 00:00:00'),19),'%Y-%m-%d %k:%i:%s')
</if>
<if test="conditionParamRef.containsKey('createTimeEnd') and conditionParamRef.createTimeEnd != null and conditionParamRef.createTimeEnd!=''">
${_conditionType_} a.createTime <![CDATA[ <= ]]> STR_TO_DATE(left(concat(#{${_conditionParam_}.createTimeEnd},' 23:59:59'),19),'%Y-%m-%d %k:%i:%s')
</if>
<if test="conditionParamRef.containsKey('updateUserId')">
<if test="conditionParamRef.updateUserId != null ">
${_conditionType_} a.updateUserId = #{${_conditionParam_}.updateUserId}
</if>
<if test="conditionParamRef.updateUserId == null">
${_conditionType_} a.updateUserId is null
</if>
</if>
<if test="conditionParamRef.containsKey('updateUserIdList')">
${_conditionType_} a.updateUserId in
<foreach collection="conditionParamRef.updateUserIdList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('updateUserIdNotList')">
${_conditionType_} a.updateUserId not in
<foreach collection="conditionParamRef.updateUserIdNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('updateUserIdStart') and conditionParamRef.updateUserIdStart != null">
${_conditionType_} a.updateUserId <![CDATA[ >= ]]> #{${_conditionParam_}.updateUserIdStart}
</if>
<if test="conditionParamRef.containsKey('updateUserIdEnd') and conditionParamRef.updateUserIdEnd != null">
${_conditionType_} a.updateUserId <![CDATA[ <= ]]> #{${_conditionParam_}.updateUserIdEnd}
</if>
<if test="conditionParamRef.containsKey('updateTime')">
<if test="conditionParamRef.updateTime != null ">
${_conditionType_} a.updateTime = #{${_conditionParam_}.updateTime}
</if>
<if test="conditionParamRef.updateTime == null">
${_conditionType_} a.updateTime is null
</if>
</if>
<if test="conditionParamRef.containsKey('updateTimeStart') and conditionParamRef.updateTimeStart != null and conditionParamRef.updateTimeStart!=''">
${_conditionType_} a.updateTime <![CDATA[ >= ]]> STR_TO_DATE(left(concat(#{${_conditionParam_}.updateTimeStart},' 00:00:00'),19),'%Y-%m-%d %k:%i:%s')
</if>
<if test="conditionParamRef.containsKey('updateTimeEnd') and conditionParamRef.updateTimeEnd != null and conditionParamRef.updateTimeEnd!=''">
${_conditionType_} a.updateTime <![CDATA[ <= ]]> STR_TO_DATE(left(concat(#{${_conditionParam_}.updateTimeEnd},' 23:59:59'),19),'%Y-%m-%d %k:%i:%s')
</if>
</sql>
<sql id="_orderCols_">
<if test="orderColList != null and !orderColList.isEmpty()">
order by
<trim suffixOverrides="," suffix="">
<foreach collection="orderColList" open="" close="" index="index" item="item" separator=",">
${item.colName} ${item.sortKind}
</foreach>
</trim>
</if>
<if test="(orderColList == null or orderColList.isEmpty()) and orderCol != null and !orderCol.isEmpty()">
order by
<trim suffixOverrides="," suffix="">
<if test="orderCol.containsKey('id')">
a.id
<if test='orderCol.id != null and "DESC".equalsIgnoreCase(orderCol.id)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('productId')">
a.productId
<if test='orderCol.productId != null and "DESC".equalsIgnoreCase(orderCol.productId)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('appName')">
a.appName
<if test='orderCol.appName != null and "DESC".equalsIgnoreCase(orderCol.appName)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('deveLanguage')">
a.deveLanguage
<if test='orderCol.deveLanguage != null and "DESC".equalsIgnoreCase(orderCol.deveLanguage)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('versionNumber')">
a.versionNumber
<if test='orderCol.versionNumber != null and "DESC".equalsIgnoreCase(orderCol.versionNumber)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('versionInfo')">
a.versionInfo
<if test='orderCol.versionInfo != null and "DESC".equalsIgnoreCase(orderCol.versionInfo)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('appFileUrl')">
a.appFileUrl
<if test='orderCol.appFileUrl != null and "DESC".equalsIgnoreCase(orderCol.appFileUrl)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('isEnable')">
a.isEnable
<if test='orderCol.isEnable != null and "DESC".equalsIgnoreCase(orderCol.isEnable)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('createUserId')">
a.createUserId
<if test='orderCol.createUserId != null and "DESC".equalsIgnoreCase(orderCol.createUserId)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('createTime')">
a.createTime
<if test='orderCol.createTime != null and "DESC".equalsIgnoreCase(orderCol.createTime)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('updateUserId')">
a.updateUserId
<if test='orderCol.updateUserId != null and "DESC".equalsIgnoreCase(orderCol.updateUserId)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('updateTime')">
a.updateTime
<if test='orderCol.updateTime != null and "DESC".equalsIgnoreCase(orderCol.updateTime)'>DESC</if>
,
</if>
</trim>
</if>
</sql>
<sql id="_group_by_">
<if test="groupList != null and !groupList.isEmpty()">
GROUP BY
<trim suffixOverrides="," suffix="">
<foreach collection="groupList" open="" close="" index="index" item="item" separator=",">
${item}
</foreach>
</trim>
</if>
</sql>
</mapper>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"mybatis-3-mapper.dtd">
<mapper namespace="com.mortals.xhx.module.product.dao.ibatis.ProductDocumentDaoImpl">
<!-- 字段和属性映射 -->
<resultMap type="ProductDocumentEntity" id="ProductDocumentEntity-Map">
<id property="id" column="id" />
<result property="productId" column="productId" />
<result property="docName" column="docName" />
<result property="versionNumber" column="versionNumber" />
<result property="versionInfo" column="versionInfo" />
<result property="docFileUrl" column="docFileUrl" />
<result property="createUserId" column="createUserId" />
<result property="createTime" column="createTime" />
<result property="updateUserId" column="updateUserId" />
<result property="updateTime" column="updateTime" />
</resultMap>
<!-- 表所有列 -->
<sql id="_columns">
<trim suffixOverrides="," suffix="">
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('id') or colPickMode == 1 and data.containsKey('id')))">
a.id,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('productId') or colPickMode == 1 and data.containsKey('productId')))">
a.productId,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('docName') or colPickMode == 1 and data.containsKey('docName')))">
a.docName,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('versionNumber') or colPickMode == 1 and data.containsKey('versionNumber')))">
a.versionNumber,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('versionInfo') or colPickMode == 1 and data.containsKey('versionInfo')))">
a.versionInfo,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('docFileUrl') or colPickMode == 1 and data.containsKey('docFileUrl')))">
a.docFileUrl,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('createUserId') or colPickMode == 1 and data.containsKey('createUserId')))">
a.createUserId,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('createTime') or colPickMode == 1 and data.containsKey('createTime')))">
a.createTime,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('updateUserId') or colPickMode == 1 and data.containsKey('updateUserId')))">
a.updateUserId,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('updateTime') or colPickMode == 1 and data.containsKey('updateTime')))">
a.updateTime,
</if>
</trim>
</sql>
<!-- 新增 区分主键自增加还是业务插入 -->
<insert id="insert" parameterType="ProductDocumentEntity" useGeneratedKeys="true" keyProperty="id">
insert into mortals_xhx_product_document
(productId,docName,versionNumber,versionInfo,docFileUrl,createUserId,createTime,updateUserId,updateTime)
VALUES
(#{productId},#{docName},#{versionNumber},#{versionInfo},#{docFileUrl},#{createUserId},#{createTime},#{updateUserId},#{updateTime})
</insert>
<!-- 批量新增 -->
<insert id="insertBatch" parameterType="paramDto">
insert into mortals_xhx_product_document
(productId,docName,versionNumber,versionInfo,docFileUrl,createUserId,createTime,updateUserId,updateTime)
VALUES
<foreach collection="data.dataList" item="item" index="index" separator="," >
(#{item.productId},#{item.docName},#{item.versionNumber},#{item.versionInfo},#{item.docFileUrl},#{item.createUserId},#{item.createTime},#{item.updateUserId},#{item.updateTime})
</foreach>
</insert>
<!-- 根据ParamDto更新 -->
<update id="update" parameterType="paramDto">
update mortals_xhx_product_document as a
set
<trim suffixOverrides="," suffix="">
<if test="(colPickMode==0 and data.containsKey('productId')) or (colPickMode==1 and !data.containsKey('productId'))">
a.productId=#{data.productId},
</if>
<if test="(colPickMode==0 and data.containsKey('productIdIncrement')) or (colPickMode==1 and !data.containsKey('productIdIncrement'))">
a.productId=ifnull(a.productId,0) + #{data.productIdIncrement},
</if>
<if test="(colPickMode==0 and data.containsKey('docName')) or (colPickMode==1 and !data.containsKey('docName'))">
a.docName=#{data.docName},
</if>
<if test="(colPickMode==0 and data.containsKey('versionNumber')) or (colPickMode==1 and !data.containsKey('versionNumber'))">
a.versionNumber=#{data.versionNumber},
</if>
<if test="(colPickMode==0 and data.containsKey('versionInfo')) or (colPickMode==1 and !data.containsKey('versionInfo'))">
a.versionInfo=#{data.versionInfo},
</if>
<if test="(colPickMode==0 and data.containsKey('docFileUrl')) or (colPickMode==1 and !data.containsKey('docFileUrl'))">
a.docFileUrl=#{data.docFileUrl},
</if>
<if test="(colPickMode==0 and data.containsKey('createUserId')) or (colPickMode==1 and !data.containsKey('createUserId'))">
a.createUserId=#{data.createUserId},
</if>
<if test="(colPickMode==0 and data.containsKey('createUserIdIncrement')) or (colPickMode==1 and !data.containsKey('createUserIdIncrement'))">
a.createUserId=ifnull(a.createUserId,0) + #{data.createUserIdIncrement},
</if>
<if test="(colPickMode==0 and data.containsKey('createTime')) or (colPickMode==1 and !data.containsKey('createTime'))">
a.createTime=#{data.createTime},
</if>
<if test="(colPickMode==0 and data.containsKey('updateUserId')) or (colPickMode==1 and !data.containsKey('updateUserId'))">
a.updateUserId=#{data.updateUserId},
</if>
<if test="(colPickMode==0 and data.containsKey('updateUserIdIncrement')) or (colPickMode==1 and !data.containsKey('updateUserIdIncrement'))">
a.updateUserId=ifnull(a.updateUserId,0) + #{data.updateUserIdIncrement},
</if>
<if test="(colPickMode==0 and data.containsKey('updateTime')) or (colPickMode==1 and !data.containsKey('updateTime'))">
a.updateTime=#{data.updateTime},
</if>
</trim>
<trim suffixOverrides="where" suffix="">
where
<trim prefixOverrides="and" prefix="">
<include refid="_condition_"/>
</trim>
</trim>
</update>
<!-- 批量更新 -->
<update id="updateBatch" parameterType="paramDto">
update mortals_xhx_product_document as a
<trim prefix="set" suffixOverrides=",">
<trim prefix="productId=(case" suffix="ELSE productId end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<choose>
<when test="(colPickMode==0 and item.containsKey('productId')) or (colPickMode==1 and !item.containsKey('productId'))">
when a.id=#{item.id} then #{item.productId}
</when>
<when test="(colPickMode==0 and item.containsKey('productIdIncrement')) or (colPickMode==1 and !item.containsKey('productIdIncrement'))">
when a.id=#{item.id} then ifnull(a.productId,0) + #{item.productIdIncrement}
</when>
</choose>
</foreach>
</trim>
<trim prefix="docName=(case" suffix="ELSE docName end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('docName')) or (colPickMode==1 and !item.containsKey('docName'))">
when a.id=#{item.id} then #{item.docName}
</if>
</foreach>
</trim>
<trim prefix="versionNumber=(case" suffix="ELSE versionNumber end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('versionNumber')) or (colPickMode==1 and !item.containsKey('versionNumber'))">
when a.id=#{item.id} then #{item.versionNumber}
</if>
</foreach>
</trim>
<trim prefix="versionInfo=(case" suffix="ELSE versionInfo end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('versionInfo')) or (colPickMode==1 and !item.containsKey('versionInfo'))">
when a.id=#{item.id} then #{item.versionInfo}
</if>
</foreach>
</trim>
<trim prefix="docFileUrl=(case" suffix="ELSE docFileUrl end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('docFileUrl')) or (colPickMode==1 and !item.containsKey('docFileUrl'))">
when a.id=#{item.id} then #{item.docFileUrl}
</if>
</foreach>
</trim>
<trim prefix="createUserId=(case" suffix="ELSE createUserId end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<choose>
<when test="(colPickMode==0 and item.containsKey('createUserId')) or (colPickMode==1 and !item.containsKey('createUserId'))">
when a.id=#{item.id} then #{item.createUserId}
</when>
<when test="(colPickMode==0 and item.containsKey('createUserIdIncrement')) or (colPickMode==1 and !item.containsKey('createUserIdIncrement'))">
when a.id=#{item.id} then ifnull(a.createUserId,0) + #{item.createUserIdIncrement}
</when>
</choose>
</foreach>
</trim>
<trim prefix="createTime=(case" suffix="ELSE createTime end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('createTime')) or (colPickMode==1 and !item.containsKey('createTime'))">
when a.id=#{item.id} then #{item.createTime}
</if>
</foreach>
</trim>
<trim prefix="updateUserId=(case" suffix="ELSE updateUserId end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<choose>
<when test="(colPickMode==0 and item.containsKey('updateUserId')) or (colPickMode==1 and !item.containsKey('updateUserId'))">
when a.id=#{item.id} then #{item.updateUserId}
</when>
<when test="(colPickMode==0 and item.containsKey('updateUserIdIncrement')) or (colPickMode==1 and !item.containsKey('updateUserIdIncrement'))">
when a.id=#{item.id} then ifnull(a.updateUserId,0) + #{item.updateUserIdIncrement}
</when>
</choose>
</foreach>
</trim>
<trim prefix="updateTime=(case" suffix="ELSE updateTime end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('updateTime')) or (colPickMode==1 and !item.containsKey('updateTime'))">
when a.id=#{item.id} then #{item.updateTime}
</if>
</foreach>
</trim>
</trim>
where id in
<foreach collection="data.dataList" item="item" index="index" open="(" separator="," close=")">
#{item.id}
</foreach>
</update>
<!-- 根据主健查询 -->
<select id="getByKey" parameterType="paramDto" resultMap="ProductDocumentEntity-Map">
select <include refid="_columns"/>
from mortals_xhx_product_document as a
where a.id=#{condition.id}
</select>
<!-- 根据主健删除 -->
<delete id="deleteByKey" parameterType="paramDto">
delete a.* from mortals_xhx_product_document as a where a.id=#{condition.id}
</delete>
<!-- 根据主健删除一批,针对单一主健有效 -->
<delete id="deleteByKeys">
delete from mortals_xhx_product_document where id in
<foreach collection="array" item="item" index="index" open="(" separator="," close=")">
#{item}
</foreach>
</delete>
<!-- 根据主健列表删除一批,针对单一主健有效 -->
<delete id="deleteByKeyList">
delete from mortals_xhx_product_document where id in
<foreach collection="list" item="item" index="index" open="(" separator="," close=")">
#{item}
</foreach>
</delete>
<!-- 根据对象列表删除一批,针对单一主健有效 -->
<delete id="deleteByEntityList">
delete from mortals_xhx_product_document where id in
<foreach collection="list" item="item" index="index" open="(" separator="," close=")">
#{item.id}
</foreach>
</delete>
<!-- 根据paramDto删除一批 -->
<delete id="deleteByMap" parameterType="paramDto">
delete a.* from mortals_xhx_product_document as a
<trim suffixOverrides="where" suffix="">
where
<trim prefixOverrides="and" prefix="">
<include refid="_condition_"/>
</trim>
</trim>
</delete>
<!-- 获取列表 -->
<select id="getList" parameterType="paramDto" resultMap="ProductDocumentEntity-Map">
select <include refid="_columns"/>
from mortals_xhx_product_document as a
<trim suffixOverrides="where" suffix="">
where
<trim prefixOverrides="and" prefix="">
<include refid="_condition_"/>
</trim>
</trim>
<include refid="_orderCols_"/>
</select>
<!-- 获取 -->
<select id="getListCount" parameterType="paramDto" resultType="int">
select count(1)
from mortals_xhx_product_document as a
<trim suffixOverrides="where" suffix="">
where
<trim prefixOverrides="and" prefix="">
<include refid="_condition_"/>
</trim>
</trim>
</select>
<!-- 条件映射 -->
<sql id="_condition_">
<if test="condition != null and !condition.isEmpty()">
<!-- 条件映射-普通条件 -->
<include refid="_condition_param_">
<property name="_conditionParam_" value="condition"/>
<property name="_conditionType_" value="and"/>
</include>
<!-- 条件映射-集合之间使用AND,集合中元素使用OR-(list[0].1 or list[0].2) and (list[1].3 or list[1].4) -->
<if test="condition.containsKey('andConditionList') and !condition.andConditionList.isEmpty()">
and
<foreach collection="condition.andConditionList" open="(" close=")" index="index" item="andCondition" separator=" and ">
<trim prefixOverrides="or" prefix="(" suffix=")">
<include refid="_condition_param_">
<property name="_conditionParam_" value="andCondition"/>
<property name="_conditionType_" value="or"/>
</include>
</trim>
</foreach>
</if>
<!-- 条件映射-集合之间使用OR,集合中元素使用AND-(list[0].1 and list[0].2) or (list[1].3 and list[1].4) -->
<if test="condition.containsKey('orConditionList') and !condition.orConditionList.isEmpty()">
and
<foreach collection="condition.orConditionList" open="(" close=")" index="index" item="orCondition" separator=" or ">
<trim prefixOverrides="and" prefix="(" suffix=")">
<include refid="_condition_param_">
<property name="_conditionParam_" value="orCondition"/>
<property name="_conditionType_" value="and"/>
</include>
</trim>
</foreach>
</if>
</if>
</sql>
<!-- 条件映射-代参数 -->
<sql id="_condition_param_">
<bind name="conditionParamRef" value="${_conditionParam_}"/>
<if test="conditionParamRef.containsKey('id')">
<if test="conditionParamRef.id != null">
${_conditionType_} a.id=#{${_conditionParam_}.id}
</if>
</if>
<if test="conditionParamRef.containsKey('id')">
<if test="conditionParamRef.id != null ">
${_conditionType_} a.id = #{${_conditionParam_}.id}
</if>
<if test="conditionParamRef.id == null">
${_conditionType_} a.id is null
</if>
</if>
<if test="conditionParamRef.containsKey('idList')">
${_conditionType_} a.id in
<foreach collection="conditionParamRef.idList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('idNotList')">
${_conditionType_} a.id not in
<foreach collection="conditionParamRef.idNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('idStart') and conditionParamRef.idStart != null">
${_conditionType_} a.id <![CDATA[ >= ]]> #{${_conditionParam_}.idStart}
</if>
<if test="conditionParamRef.containsKey('idEnd') and conditionParamRef.idEnd != null">
${_conditionType_} a.id <![CDATA[ <= ]]> #{${_conditionParam_}.idEnd}
</if>
<if test="conditionParamRef.containsKey('productId')">
<if test="conditionParamRef.productId != null ">
${_conditionType_} a.productId = #{${_conditionParam_}.productId}
</if>
<if test="conditionParamRef.productId == null">
${_conditionType_} a.productId is null
</if>
</if>
<if test="conditionParamRef.containsKey('productIdList')">
${_conditionType_} a.productId in
<foreach collection="conditionParamRef.productIdList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('productIdNotList')">
${_conditionType_} a.productId not in
<foreach collection="conditionParamRef.productIdNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('productIdStart') and conditionParamRef.productIdStart != null">
${_conditionType_} a.productId <![CDATA[ >= ]]> #{${_conditionParam_}.productIdStart}
</if>
<if test="conditionParamRef.containsKey('productIdEnd') and conditionParamRef.productIdEnd != null">
${_conditionType_} a.productId <![CDATA[ <= ]]> #{${_conditionParam_}.productIdEnd}
</if>
<if test="conditionParamRef.containsKey('docName')">
<if test="conditionParamRef.docName != null and conditionParamRef.docName != ''">
${_conditionType_} a.docName like #{${_conditionParam_}.docName}
</if>
<if test="conditionParamRef.docName == null">
${_conditionType_} a.docName is null
</if>
</if>
<if test="conditionParamRef.containsKey('docNameList')">
${_conditionType_} a.docName in
<foreach collection="conditionParamRef.docNameList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('docNameNotList')">
${_conditionType_} a.docName not in
<foreach collection="conditionParamRef.docNameNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('versionNumber')">
<if test="conditionParamRef.versionNumber != null and conditionParamRef.versionNumber != ''">
${_conditionType_} a.versionNumber like #{${_conditionParam_}.versionNumber}
</if>
<if test="conditionParamRef.versionNumber == null">
${_conditionType_} a.versionNumber is null
</if>
</if>
<if test="conditionParamRef.containsKey('versionNumberList')">
${_conditionType_} a.versionNumber in
<foreach collection="conditionParamRef.versionNumberList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('versionNumberNotList')">
${_conditionType_} a.versionNumber not in
<foreach collection="conditionParamRef.versionNumberNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('versionInfo')">
<if test="conditionParamRef.versionInfo != null and conditionParamRef.versionInfo != ''">
${_conditionType_} a.versionInfo like #{${_conditionParam_}.versionInfo}
</if>
<if test="conditionParamRef.versionInfo == null">
${_conditionType_} a.versionInfo is null
</if>
</if>
<if test="conditionParamRef.containsKey('versionInfoList')">
${_conditionType_} a.versionInfo in
<foreach collection="conditionParamRef.versionInfoList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('versionInfoNotList')">
${_conditionType_} a.versionInfo not in
<foreach collection="conditionParamRef.versionInfoNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('docFileUrl')">
<if test="conditionParamRef.docFileUrl != null and conditionParamRef.docFileUrl != ''">
${_conditionType_} a.docFileUrl like #{${_conditionParam_}.docFileUrl}
</if>
<if test="conditionParamRef.docFileUrl == null">
${_conditionType_} a.docFileUrl is null
</if>
</if>
<if test="conditionParamRef.containsKey('docFileUrlList')">
${_conditionType_} a.docFileUrl in
<foreach collection="conditionParamRef.docFileUrlList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('docFileUrlNotList')">
${_conditionType_} a.docFileUrl not in
<foreach collection="conditionParamRef.docFileUrlNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('createUserId')">
<if test="conditionParamRef.createUserId != null ">
${_conditionType_} a.createUserId = #{${_conditionParam_}.createUserId}
</if>
<if test="conditionParamRef.createUserId == null">
${_conditionType_} a.createUserId is null
</if>
</if>
<if test="conditionParamRef.containsKey('createUserIdList')">
${_conditionType_} a.createUserId in
<foreach collection="conditionParamRef.createUserIdList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('createUserIdNotList')">
${_conditionType_} a.createUserId not in
<foreach collection="conditionParamRef.createUserIdNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('createUserIdStart') and conditionParamRef.createUserIdStart != null">
${_conditionType_} a.createUserId <![CDATA[ >= ]]> #{${_conditionParam_}.createUserIdStart}
</if>
<if test="conditionParamRef.containsKey('createUserIdEnd') and conditionParamRef.createUserIdEnd != null">
${_conditionType_} a.createUserId <![CDATA[ <= ]]> #{${_conditionParam_}.createUserIdEnd}
</if>
<if test="conditionParamRef.containsKey('createTime')">
<if test="conditionParamRef.createTime != null ">
${_conditionType_} a.createTime = #{${_conditionParam_}.createTime}
</if>
<if test="conditionParamRef.createTime == null">
${_conditionType_} a.createTime is null
</if>
</if>
<if test="conditionParamRef.containsKey('createTimeStart') and conditionParamRef.createTimeStart != null and conditionParamRef.createTimeStart!=''">
${_conditionType_} a.createTime <![CDATA[ >= ]]> STR_TO_DATE(left(concat(#{${_conditionParam_}.createTimeStart},' 00:00:00'),19),'%Y-%m-%d %k:%i:%s')
</if>
<if test="conditionParamRef.containsKey('createTimeEnd') and conditionParamRef.createTimeEnd != null and conditionParamRef.createTimeEnd!=''">
${_conditionType_} a.createTime <![CDATA[ <= ]]> STR_TO_DATE(left(concat(#{${_conditionParam_}.createTimeEnd},' 23:59:59'),19),'%Y-%m-%d %k:%i:%s')
</if>
<if test="conditionParamRef.containsKey('updateUserId')">
<if test="conditionParamRef.updateUserId != null ">
${_conditionType_} a.updateUserId = #{${_conditionParam_}.updateUserId}
</if>
<if test="conditionParamRef.updateUserId == null">
${_conditionType_} a.updateUserId is null
</if>
</if>
<if test="conditionParamRef.containsKey('updateUserIdList')">
${_conditionType_} a.updateUserId in
<foreach collection="conditionParamRef.updateUserIdList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('updateUserIdNotList')">
${_conditionType_} a.updateUserId not in
<foreach collection="conditionParamRef.updateUserIdNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('updateUserIdStart') and conditionParamRef.updateUserIdStart != null">
${_conditionType_} a.updateUserId <![CDATA[ >= ]]> #{${_conditionParam_}.updateUserIdStart}
</if>
<if test="conditionParamRef.containsKey('updateUserIdEnd') and conditionParamRef.updateUserIdEnd != null">
${_conditionType_} a.updateUserId <![CDATA[ <= ]]> #{${_conditionParam_}.updateUserIdEnd}
</if>
<if test="conditionParamRef.containsKey('updateTime')">
<if test="conditionParamRef.updateTime != null ">
${_conditionType_} a.updateTime = #{${_conditionParam_}.updateTime}
</if>
<if test="conditionParamRef.updateTime == null">
${_conditionType_} a.updateTime is null
</if>
</if>
<if test="conditionParamRef.containsKey('updateTimeStart') and conditionParamRef.updateTimeStart != null and conditionParamRef.updateTimeStart!=''">
${_conditionType_} a.updateTime <![CDATA[ >= ]]> STR_TO_DATE(left(concat(#{${_conditionParam_}.updateTimeStart},' 00:00:00'),19),'%Y-%m-%d %k:%i:%s')
</if>
<if test="conditionParamRef.containsKey('updateTimeEnd') and conditionParamRef.updateTimeEnd != null and conditionParamRef.updateTimeEnd!=''">
${_conditionType_} a.updateTime <![CDATA[ <= ]]> STR_TO_DATE(left(concat(#{${_conditionParam_}.updateTimeEnd},' 23:59:59'),19),'%Y-%m-%d %k:%i:%s')
</if>
</sql>
<sql id="_orderCols_">
<if test="orderColList != null and !orderColList.isEmpty()">
order by
<trim suffixOverrides="," suffix="">
<foreach collection="orderColList" open="" close="" index="index" item="item" separator=",">
${item.colName} ${item.sortKind}
</foreach>
</trim>
</if>
<if test="(orderColList == null or orderColList.isEmpty()) and orderCol != null and !orderCol.isEmpty()">
order by
<trim suffixOverrides="," suffix="">
<if test="orderCol.containsKey('id')">
a.id
<if test='orderCol.id != null and "DESC".equalsIgnoreCase(orderCol.id)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('productId')">
a.productId
<if test='orderCol.productId != null and "DESC".equalsIgnoreCase(orderCol.productId)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('docName')">
a.docName
<if test='orderCol.docName != null and "DESC".equalsIgnoreCase(orderCol.docName)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('versionNumber')">
a.versionNumber
<if test='orderCol.versionNumber != null and "DESC".equalsIgnoreCase(orderCol.versionNumber)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('versionInfo')">
a.versionInfo
<if test='orderCol.versionInfo != null and "DESC".equalsIgnoreCase(orderCol.versionInfo)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('docFileUrl')">
a.docFileUrl
<if test='orderCol.docFileUrl != null and "DESC".equalsIgnoreCase(orderCol.docFileUrl)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('createUserId')">
a.createUserId
<if test='orderCol.createUserId != null and "DESC".equalsIgnoreCase(orderCol.createUserId)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('createTime')">
a.createTime
<if test='orderCol.createTime != null and "DESC".equalsIgnoreCase(orderCol.createTime)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('updateUserId')">
a.updateUserId
<if test='orderCol.updateUserId != null and "DESC".equalsIgnoreCase(orderCol.updateUserId)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('updateTime')">
a.updateTime
<if test='orderCol.updateTime != null and "DESC".equalsIgnoreCase(orderCol.updateTime)'>DESC</if>
,
</if>
</trim>
</if>
</sql>
<sql id="_group_by_">
<if test="groupList != null and !groupList.isEmpty()">
GROUP BY
<trim suffixOverrides="," suffix="">
<foreach collection="groupList" open="" close="" index="index" item="item" separator=",">
${item}
</foreach>
</trim>
</if>
</sql>
</mapper>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"mybatis-3-mapper.dtd">
<mapper namespace="com.mortals.xhx.module.product.dao.ibatis.ProductInterfaceDaoImpl">
<!-- 字段和属性映射 -->
<resultMap type="ProductInterfaceEntity" id="ProductInterfaceEntity-Map">
<id property="id" column="id" />
<result property="productId" column="productId" />
<result property="interfaceName" column="interfaceName" />
<result property="versionNumber" column="versionNumber" />
<result property="requestType" column="requestType" />
<result property="requestProtocol" column="requestProtocol" />
<result property="requestUrl" column="requestUrl" />
<result property="timeoutValue" column="timeoutValue" />
<result property="limitStrategy" column="limitStrategy" />
<result property="network" column="network" />
<result property="description" column="description" />
<result property="flowControl" column="flowControl" />
<result property="authorizeInfo" column="authorizeInfo" />
<result property="interfaceTag" column="interfaceTag" />
<result property="interfaceSource" column="interfaceSource" />
<result property="requestParameters" column="requestParameters" />
<result property="responseParameters" column="responseParameters" />
<result property="errorCode" column="errorCode" />
<result property="changeHistory" column="changeHistory" />
<result property="createUserId" column="createUserId" />
<result property="createTime" column="createTime" />
<result property="updateUserId" column="updateUserId" />
<result property="updateTime" column="updateTime" />
</resultMap>
<!-- 表所有列 -->
<sql id="_columns">
<trim suffixOverrides="," suffix="">
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('id') or colPickMode == 1 and data.containsKey('id')))">
a.id,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('productId') or colPickMode == 1 and data.containsKey('productId')))">
a.productId,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('interfaceName') or colPickMode == 1 and data.containsKey('interfaceName')))">
a.interfaceName,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('versionNumber') or colPickMode == 1 and data.containsKey('versionNumber')))">
a.versionNumber,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('requestType') or colPickMode == 1 and data.containsKey('requestType')))">
a.requestType,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('requestProtocol') or colPickMode == 1 and data.containsKey('requestProtocol')))">
a.requestProtocol,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('requestUrl') or colPickMode == 1 and data.containsKey('requestUrl')))">
a.requestUrl,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('timeoutValue') or colPickMode == 1 and data.containsKey('timeoutValue')))">
a.timeoutValue,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('limitStrategy') or colPickMode == 1 and data.containsKey('limitStrategy')))">
a.limitStrategy,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('network') or colPickMode == 1 and data.containsKey('network')))">
a.network,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('description') or colPickMode == 1 and data.containsKey('description')))">
a.description,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('flowControl') or colPickMode == 1 and data.containsKey('flowControl')))">
a.flowControl,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('authorizeInfo') or colPickMode == 1 and data.containsKey('authorizeInfo')))">
a.authorizeInfo,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('interfaceTag') or colPickMode == 1 and data.containsKey('interfaceTag')))">
a.interfaceTag,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('interfaceSource') or colPickMode == 1 and data.containsKey('interfaceSource')))">
a.interfaceSource,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('requestParameters') or colPickMode == 1 and data.containsKey('requestParameters')))">
a.requestParameters,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('responseParameters') or colPickMode == 1 and data.containsKey('responseParameters')))">
a.responseParameters,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('errorCode') or colPickMode == 1 and data.containsKey('errorCode')))">
a.errorCode,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('changeHistory') or colPickMode == 1 and data.containsKey('changeHistory')))">
a.changeHistory,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('createUserId') or colPickMode == 1 and data.containsKey('createUserId')))">
a.createUserId,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('createTime') or colPickMode == 1 and data.containsKey('createTime')))">
a.createTime,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('updateUserId') or colPickMode == 1 and data.containsKey('updateUserId')))">
a.updateUserId,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('updateTime') or colPickMode == 1 and data.containsKey('updateTime')))">
a.updateTime,
</if>
</trim>
</sql>
<!-- 新增 区分主键自增加还是业务插入 -->
<insert id="insert" parameterType="ProductInterfaceEntity" useGeneratedKeys="true" keyProperty="id">
insert into mortals_xhx_product_interface
(productId,interfaceName,versionNumber,requestType,requestProtocol,requestUrl,timeoutValue,limitStrategy,network,description,flowControl,authorizeInfo,interfaceTag,interfaceSource,requestParameters,responseParameters,errorCode,changeHistory,createUserId,createTime,updateUserId,updateTime)
VALUES
(#{productId},#{interfaceName},#{versionNumber},#{requestType},#{requestProtocol},#{requestUrl},#{timeoutValue},#{limitStrategy},#{network},#{description},#{flowControl},#{authorizeInfo},#{interfaceTag},#{interfaceSource},#{requestParameters},#{responseParameters},#{errorCode},#{changeHistory},#{createUserId},#{createTime},#{updateUserId},#{updateTime})
</insert>
<!-- 批量新增 -->
<insert id="insertBatch" parameterType="paramDto">
insert into mortals_xhx_product_interface
(productId,interfaceName,versionNumber,requestType,requestProtocol,requestUrl,timeoutValue,limitStrategy,network,description,flowControl,authorizeInfo,interfaceTag,interfaceSource,requestParameters,responseParameters,errorCode,changeHistory,createUserId,createTime,updateUserId,updateTime)
VALUES
<foreach collection="data.dataList" item="item" index="index" separator="," >
(#{item.productId},#{item.interfaceName},#{item.versionNumber},#{item.requestType},#{item.requestProtocol},#{item.requestUrl},#{item.timeoutValue},#{item.limitStrategy},#{item.network},#{item.description},#{item.flowControl},#{item.authorizeInfo},#{item.interfaceTag},#{item.interfaceSource},#{item.requestParameters},#{item.responseParameters},#{item.errorCode},#{item.changeHistory},#{item.createUserId},#{item.createTime},#{item.updateUserId},#{item.updateTime})
</foreach>
</insert>
<!-- 根据ParamDto更新 -->
<update id="update" parameterType="paramDto">
update mortals_xhx_product_interface as a
set
<trim suffixOverrides="," suffix="">
<if test="(colPickMode==0 and data.containsKey('productId')) or (colPickMode==1 and !data.containsKey('productId'))">
a.productId=#{data.productId},
</if>
<if test="(colPickMode==0 and data.containsKey('productIdIncrement')) or (colPickMode==1 and !data.containsKey('productIdIncrement'))">
a.productId=ifnull(a.productId,0) + #{data.productIdIncrement},
</if>
<if test="(colPickMode==0 and data.containsKey('interfaceName')) or (colPickMode==1 and !data.containsKey('interfaceName'))">
a.interfaceName=#{data.interfaceName},
</if>
<if test="(colPickMode==0 and data.containsKey('versionNumber')) or (colPickMode==1 and !data.containsKey('versionNumber'))">
a.versionNumber=#{data.versionNumber},
</if>
<if test="(colPickMode==0 and data.containsKey('requestType')) or (colPickMode==1 and !data.containsKey('requestType'))">
a.requestType=#{data.requestType},
</if>
<if test="(colPickMode==0 and data.containsKey('requestTypeIncrement')) or (colPickMode==1 and !data.containsKey('requestTypeIncrement'))">
a.requestType=ifnull(a.requestType,0) + #{data.requestTypeIncrement},
</if>
<if test="(colPickMode==0 and data.containsKey('requestProtocol')) or (colPickMode==1 and !data.containsKey('requestProtocol'))">
a.requestProtocol=#{data.requestProtocol},
</if>
<if test="(colPickMode==0 and data.containsKey('requestProtocolIncrement')) or (colPickMode==1 and !data.containsKey('requestProtocolIncrement'))">
a.requestProtocol=ifnull(a.requestProtocol,0) + #{data.requestProtocolIncrement},
</if>
<if test="(colPickMode==0 and data.containsKey('requestUrl')) or (colPickMode==1 and !data.containsKey('requestUrl'))">
a.requestUrl=#{data.requestUrl},
</if>
<if test="(colPickMode==0 and data.containsKey('timeoutValue')) or (colPickMode==1 and !data.containsKey('timeoutValue'))">
a.timeoutValue=#{data.timeoutValue},
</if>
<if test="(colPickMode==0 and data.containsKey('timeoutValueIncrement')) or (colPickMode==1 and !data.containsKey('timeoutValueIncrement'))">
a.timeoutValue=ifnull(a.timeoutValue,0) + #{data.timeoutValueIncrement},
</if>
<if test="(colPickMode==0 and data.containsKey('limitStrategy')) or (colPickMode==1 and !data.containsKey('limitStrategy'))">
a.limitStrategy=#{data.limitStrategy},
</if>
<if test="(colPickMode==0 and data.containsKey('limitStrategyIncrement')) or (colPickMode==1 and !data.containsKey('limitStrategyIncrement'))">
a.limitStrategy=ifnull(a.limitStrategy,0) + #{data.limitStrategyIncrement},
</if>
<if test="(colPickMode==0 and data.containsKey('network')) or (colPickMode==1 and !data.containsKey('network'))">
a.network=#{data.network},
</if>
<if test="(colPickMode==0 and data.containsKey('description')) or (colPickMode==1 and !data.containsKey('description'))">
a.description=#{data.description},
</if>
<if test="(colPickMode==0 and data.containsKey('flowControl')) or (colPickMode==1 and !data.containsKey('flowControl'))">
a.flowControl=#{data.flowControl},
</if>
<if test="(colPickMode==0 and data.containsKey('authorizeInfo')) or (colPickMode==1 and !data.containsKey('authorizeInfo'))">
a.authorizeInfo=#{data.authorizeInfo},
</if>
<if test="(colPickMode==0 and data.containsKey('interfaceTag')) or (colPickMode==1 and !data.containsKey('interfaceTag'))">
a.interfaceTag=#{data.interfaceTag},
</if>
<if test="(colPickMode==0 and data.containsKey('interfaceTagIncrement')) or (colPickMode==1 and !data.containsKey('interfaceTagIncrement'))">
a.interfaceTag=ifnull(a.interfaceTag,0) + #{data.interfaceTagIncrement},
</if>
<if test="(colPickMode==0 and data.containsKey('interfaceSource')) or (colPickMode==1 and !data.containsKey('interfaceSource'))">
a.interfaceSource=#{data.interfaceSource},
</if>
<if test="(colPickMode==0 and data.containsKey('interfaceSourceIncrement')) or (colPickMode==1 and !data.containsKey('interfaceSourceIncrement'))">
a.interfaceSource=ifnull(a.interfaceSource,0) + #{data.interfaceSourceIncrement},
</if>
<if test="(colPickMode==0 and data.containsKey('requestParameters')) or (colPickMode==1 and !data.containsKey('requestParameters'))">
a.requestParameters=#{data.requestParameters},
</if>
<if test="(colPickMode==0 and data.containsKey('responseParameters')) or (colPickMode==1 and !data.containsKey('responseParameters'))">
a.responseParameters=#{data.responseParameters},
</if>
<if test="(colPickMode==0 and data.containsKey('errorCode')) or (colPickMode==1 and !data.containsKey('errorCode'))">
a.errorCode=#{data.errorCode},
</if>
<if test="(colPickMode==0 and data.containsKey('changeHistory')) or (colPickMode==1 and !data.containsKey('changeHistory'))">
a.changeHistory=#{data.changeHistory},
</if>
<if test="(colPickMode==0 and data.containsKey('createUserId')) or (colPickMode==1 and !data.containsKey('createUserId'))">
a.createUserId=#{data.createUserId},
</if>
<if test="(colPickMode==0 and data.containsKey('createUserIdIncrement')) or (colPickMode==1 and !data.containsKey('createUserIdIncrement'))">
a.createUserId=ifnull(a.createUserId,0) + #{data.createUserIdIncrement},
</if>
<if test="(colPickMode==0 and data.containsKey('createTime')) or (colPickMode==1 and !data.containsKey('createTime'))">
a.createTime=#{data.createTime},
</if>
<if test="(colPickMode==0 and data.containsKey('updateUserId')) or (colPickMode==1 and !data.containsKey('updateUserId'))">
a.updateUserId=#{data.updateUserId},
</if>
<if test="(colPickMode==0 and data.containsKey('updateUserIdIncrement')) or (colPickMode==1 and !data.containsKey('updateUserIdIncrement'))">
a.updateUserId=ifnull(a.updateUserId,0) + #{data.updateUserIdIncrement},
</if>
<if test="(colPickMode==0 and data.containsKey('updateTime')) or (colPickMode==1 and !data.containsKey('updateTime'))">
a.updateTime=#{data.updateTime},
</if>
</trim>
<trim suffixOverrides="where" suffix="">
where
<trim prefixOverrides="and" prefix="">
<include refid="_condition_"/>
</trim>
</trim>
</update>
<!-- 批量更新 -->
<update id="updateBatch" parameterType="paramDto">
update mortals_xhx_product_interface as a
<trim prefix="set" suffixOverrides=",">
<trim prefix="productId=(case" suffix="ELSE productId end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<choose>
<when test="(colPickMode==0 and item.containsKey('productId')) or (colPickMode==1 and !item.containsKey('productId'))">
when a.id=#{item.id} then #{item.productId}
</when>
<when test="(colPickMode==0 and item.containsKey('productIdIncrement')) or (colPickMode==1 and !item.containsKey('productIdIncrement'))">
when a.id=#{item.id} then ifnull(a.productId,0) + #{item.productIdIncrement}
</when>
</choose>
</foreach>
</trim>
<trim prefix="interfaceName=(case" suffix="ELSE interfaceName end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('interfaceName')) or (colPickMode==1 and !item.containsKey('interfaceName'))">
when a.id=#{item.id} then #{item.interfaceName}
</if>
</foreach>
</trim>
<trim prefix="versionNumber=(case" suffix="ELSE versionNumber end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('versionNumber')) or (colPickMode==1 and !item.containsKey('versionNumber'))">
when a.id=#{item.id} then #{item.versionNumber}
</if>
</foreach>
</trim>
<trim prefix="requestType=(case" suffix="ELSE requestType end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<choose>
<when test="(colPickMode==0 and item.containsKey('requestType')) or (colPickMode==1 and !item.containsKey('requestType'))">
when a.id=#{item.id} then #{item.requestType}
</when>
<when test="(colPickMode==0 and item.containsKey('requestTypeIncrement')) or (colPickMode==1 and !item.containsKey('requestTypeIncrement'))">
when a.id=#{item.id} then ifnull(a.requestType,0) + #{item.requestTypeIncrement}
</when>
</choose>
</foreach>
</trim>
<trim prefix="requestProtocol=(case" suffix="ELSE requestProtocol end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<choose>
<when test="(colPickMode==0 and item.containsKey('requestProtocol')) or (colPickMode==1 and !item.containsKey('requestProtocol'))">
when a.id=#{item.id} then #{item.requestProtocol}
</when>
<when test="(colPickMode==0 and item.containsKey('requestProtocolIncrement')) or (colPickMode==1 and !item.containsKey('requestProtocolIncrement'))">
when a.id=#{item.id} then ifnull(a.requestProtocol,0) + #{item.requestProtocolIncrement}
</when>
</choose>
</foreach>
</trim>
<trim prefix="requestUrl=(case" suffix="ELSE requestUrl end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('requestUrl')) or (colPickMode==1 and !item.containsKey('requestUrl'))">
when a.id=#{item.id} then #{item.requestUrl}
</if>
</foreach>
</trim>
<trim prefix="timeoutValue=(case" suffix="ELSE timeoutValue end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<choose>
<when test="(colPickMode==0 and item.containsKey('timeoutValue')) or (colPickMode==1 and !item.containsKey('timeoutValue'))">
when a.id=#{item.id} then #{item.timeoutValue}
</when>
<when test="(colPickMode==0 and item.containsKey('timeoutValueIncrement')) or (colPickMode==1 and !item.containsKey('timeoutValueIncrement'))">
when a.id=#{item.id} then ifnull(a.timeoutValue,0) + #{item.timeoutValueIncrement}
</when>
</choose>
</foreach>
</trim>
<trim prefix="limitStrategy=(case" suffix="ELSE limitStrategy end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<choose>
<when test="(colPickMode==0 and item.containsKey('limitStrategy')) or (colPickMode==1 and !item.containsKey('limitStrategy'))">
when a.id=#{item.id} then #{item.limitStrategy}
</when>
<when test="(colPickMode==0 and item.containsKey('limitStrategyIncrement')) or (colPickMode==1 and !item.containsKey('limitStrategyIncrement'))">
when a.id=#{item.id} then ifnull(a.limitStrategy,0) + #{item.limitStrategyIncrement}
</when>
</choose>
</foreach>
</trim>
<trim prefix="network=(case" suffix="ELSE network end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('network')) or (colPickMode==1 and !item.containsKey('network'))">
when a.id=#{item.id} then #{item.network}
</if>
</foreach>
</trim>
<trim prefix="description=(case" suffix="ELSE description end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('description')) or (colPickMode==1 and !item.containsKey('description'))">
when a.id=#{item.id} then #{item.description}
</if>
</foreach>
</trim>
<trim prefix="flowControl=(case" suffix="ELSE flowControl end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('flowControl')) or (colPickMode==1 and !item.containsKey('flowControl'))">
when a.id=#{item.id} then #{item.flowControl}
</if>
</foreach>
</trim>
<trim prefix="authorizeInfo=(case" suffix="ELSE authorizeInfo end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('authorizeInfo')) or (colPickMode==1 and !item.containsKey('authorizeInfo'))">
when a.id=#{item.id} then #{item.authorizeInfo}
</if>
</foreach>
</trim>
<trim prefix="interfaceTag=(case" suffix="ELSE interfaceTag end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<choose>
<when test="(colPickMode==0 and item.containsKey('interfaceTag')) or (colPickMode==1 and !item.containsKey('interfaceTag'))">
when a.id=#{item.id} then #{item.interfaceTag}
</when>
<when test="(colPickMode==0 and item.containsKey('interfaceTagIncrement')) or (colPickMode==1 and !item.containsKey('interfaceTagIncrement'))">
when a.id=#{item.id} then ifnull(a.interfaceTag,0) + #{item.interfaceTagIncrement}
</when>
</choose>
</foreach>
</trim>
<trim prefix="interfaceSource=(case" suffix="ELSE interfaceSource end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<choose>
<when test="(colPickMode==0 and item.containsKey('interfaceSource')) or (colPickMode==1 and !item.containsKey('interfaceSource'))">
when a.id=#{item.id} then #{item.interfaceSource}
</when>
<when test="(colPickMode==0 and item.containsKey('interfaceSourceIncrement')) or (colPickMode==1 and !item.containsKey('interfaceSourceIncrement'))">
when a.id=#{item.id} then ifnull(a.interfaceSource,0) + #{item.interfaceSourceIncrement}
</when>
</choose>
</foreach>
</trim>
<trim prefix="requestParameters=(case" suffix="ELSE requestParameters end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('requestParameters')) or (colPickMode==1 and !item.containsKey('requestParameters'))">
when a.id=#{item.id} then #{item.requestParameters}
</if>
</foreach>
</trim>
<trim prefix="responseParameters=(case" suffix="ELSE responseParameters end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('responseParameters')) or (colPickMode==1 and !item.containsKey('responseParameters'))">
when a.id=#{item.id} then #{item.responseParameters}
</if>
</foreach>
</trim>
<trim prefix="errorCode=(case" suffix="ELSE errorCode end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('errorCode')) or (colPickMode==1 and !item.containsKey('errorCode'))">
when a.id=#{item.id} then #{item.errorCode}
</if>
</foreach>
</trim>
<trim prefix="changeHistory=(case" suffix="ELSE changeHistory end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('changeHistory')) or (colPickMode==1 and !item.containsKey('changeHistory'))">
when a.id=#{item.id} then #{item.changeHistory}
</if>
</foreach>
</trim>
<trim prefix="createUserId=(case" suffix="ELSE createUserId end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<choose>
<when test="(colPickMode==0 and item.containsKey('createUserId')) or (colPickMode==1 and !item.containsKey('createUserId'))">
when a.id=#{item.id} then #{item.createUserId}
</when>
<when test="(colPickMode==0 and item.containsKey('createUserIdIncrement')) or (colPickMode==1 and !item.containsKey('createUserIdIncrement'))">
when a.id=#{item.id} then ifnull(a.createUserId,0) + #{item.createUserIdIncrement}
</when>
</choose>
</foreach>
</trim>
<trim prefix="createTime=(case" suffix="ELSE createTime end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('createTime')) or (colPickMode==1 and !item.containsKey('createTime'))">
when a.id=#{item.id} then #{item.createTime}
</if>
</foreach>
</trim>
<trim prefix="updateUserId=(case" suffix="ELSE updateUserId end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<choose>
<when test="(colPickMode==0 and item.containsKey('updateUserId')) or (colPickMode==1 and !item.containsKey('updateUserId'))">
when a.id=#{item.id} then #{item.updateUserId}
</when>
<when test="(colPickMode==0 and item.containsKey('updateUserIdIncrement')) or (colPickMode==1 and !item.containsKey('updateUserIdIncrement'))">
when a.id=#{item.id} then ifnull(a.updateUserId,0) + #{item.updateUserIdIncrement}
</when>
</choose>
</foreach>
</trim>
<trim prefix="updateTime=(case" suffix="ELSE updateTime end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('updateTime')) or (colPickMode==1 and !item.containsKey('updateTime'))">
when a.id=#{item.id} then #{item.updateTime}
</if>
</foreach>
</trim>
</trim>
where id in
<foreach collection="data.dataList" item="item" index="index" open="(" separator="," close=")">
#{item.id}
</foreach>
</update>
<!-- 根据主健查询 -->
<select id="getByKey" parameterType="paramDto" resultMap="ProductInterfaceEntity-Map">
select <include refid="_columns"/>
from mortals_xhx_product_interface as a
where a.id=#{condition.id}
</select>
<!-- 根据主健删除 -->
<delete id="deleteByKey" parameterType="paramDto">
delete a.* from mortals_xhx_product_interface as a where a.id=#{condition.id}
</delete>
<!-- 根据主健删除一批,针对单一主健有效 -->
<delete id="deleteByKeys">
delete from mortals_xhx_product_interface where id in
<foreach collection="array" item="item" index="index" open="(" separator="," close=")">
#{item}
</foreach>
</delete>
<!-- 根据主健列表删除一批,针对单一主健有效 -->
<delete id="deleteByKeyList">
delete from mortals_xhx_product_interface where id in
<foreach collection="list" item="item" index="index" open="(" separator="," close=")">
#{item}
</foreach>
</delete>
<!-- 根据对象列表删除一批,针对单一主健有效 -->
<delete id="deleteByEntityList">
delete from mortals_xhx_product_interface where id in
<foreach collection="list" item="item" index="index" open="(" separator="," close=")">
#{item.id}
</foreach>
</delete>
<!-- 根据paramDto删除一批 -->
<delete id="deleteByMap" parameterType="paramDto">
delete a.* from mortals_xhx_product_interface as a
<trim suffixOverrides="where" suffix="">
where
<trim prefixOverrides="and" prefix="">
<include refid="_condition_"/>
</trim>
</trim>
</delete>
<!-- 获取列表 -->
<select id="getList" parameterType="paramDto" resultMap="ProductInterfaceEntity-Map">
select <include refid="_columns"/>
from mortals_xhx_product_interface as a
<trim suffixOverrides="where" suffix="">
where
<trim prefixOverrides="and" prefix="">
<include refid="_condition_"/>
</trim>
</trim>
<include refid="_orderCols_"/>
</select>
<!-- 获取 -->
<select id="getListCount" parameterType="paramDto" resultType="int">
select count(1)
from mortals_xhx_product_interface as a
<trim suffixOverrides="where" suffix="">
where
<trim prefixOverrides="and" prefix="">
<include refid="_condition_"/>
</trim>
</trim>
</select>
<!-- 条件映射 -->
<sql id="_condition_">
<if test="condition != null and !condition.isEmpty()">
<!-- 条件映射-普通条件 -->
<include refid="_condition_param_">
<property name="_conditionParam_" value="condition"/>
<property name="_conditionType_" value="and"/>
</include>
<!-- 条件映射-集合之间使用AND,集合中元素使用OR-(list[0].1 or list[0].2) and (list[1].3 or list[1].4) -->
<if test="condition.containsKey('andConditionList') and !condition.andConditionList.isEmpty()">
and
<foreach collection="condition.andConditionList" open="(" close=")" index="index" item="andCondition" separator=" and ">
<trim prefixOverrides="or" prefix="(" suffix=")">
<include refid="_condition_param_">
<property name="_conditionParam_" value="andCondition"/>
<property name="_conditionType_" value="or"/>
</include>
</trim>
</foreach>
</if>
<!-- 条件映射-集合之间使用OR,集合中元素使用AND-(list[0].1 and list[0].2) or (list[1].3 and list[1].4) -->
<if test="condition.containsKey('orConditionList') and !condition.orConditionList.isEmpty()">
and
<foreach collection="condition.orConditionList" open="(" close=")" index="index" item="orCondition" separator=" or ">
<trim prefixOverrides="and" prefix="(" suffix=")">
<include refid="_condition_param_">
<property name="_conditionParam_" value="orCondition"/>
<property name="_conditionType_" value="and"/>
</include>
</trim>
</foreach>
</if>
</if>
</sql>
<!-- 条件映射-代参数 -->
<sql id="_condition_param_">
<bind name="conditionParamRef" value="${_conditionParam_}"/>
<if test="conditionParamRef.containsKey('id')">
<if test="conditionParamRef.id != null">
${_conditionType_} a.id=#{${_conditionParam_}.id}
</if>
</if>
<if test="conditionParamRef.containsKey('id')">
<if test="conditionParamRef.id != null ">
${_conditionType_} a.id = #{${_conditionParam_}.id}
</if>
<if test="conditionParamRef.id == null">
${_conditionType_} a.id is null
</if>
</if>
<if test="conditionParamRef.containsKey('idList')">
${_conditionType_} a.id in
<foreach collection="conditionParamRef.idList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('idNotList')">
${_conditionType_} a.id not in
<foreach collection="conditionParamRef.idNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('idStart') and conditionParamRef.idStart != null">
${_conditionType_} a.id <![CDATA[ >= ]]> #{${_conditionParam_}.idStart}
</if>
<if test="conditionParamRef.containsKey('idEnd') and conditionParamRef.idEnd != null">
${_conditionType_} a.id <![CDATA[ <= ]]> #{${_conditionParam_}.idEnd}
</if>
<if test="conditionParamRef.containsKey('productId')">
<if test="conditionParamRef.productId != null ">
${_conditionType_} a.productId = #{${_conditionParam_}.productId}
</if>
<if test="conditionParamRef.productId == null">
${_conditionType_} a.productId is null
</if>
</if>
<if test="conditionParamRef.containsKey('productIdList')">
${_conditionType_} a.productId in
<foreach collection="conditionParamRef.productIdList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('productIdNotList')">
${_conditionType_} a.productId not in
<foreach collection="conditionParamRef.productIdNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('productIdStart') and conditionParamRef.productIdStart != null">
${_conditionType_} a.productId <![CDATA[ >= ]]> #{${_conditionParam_}.productIdStart}
</if>
<if test="conditionParamRef.containsKey('productIdEnd') and conditionParamRef.productIdEnd != null">
${_conditionType_} a.productId <![CDATA[ <= ]]> #{${_conditionParam_}.productIdEnd}
</if>
<if test="conditionParamRef.containsKey('interfaceName')">
<if test="conditionParamRef.interfaceName != null and conditionParamRef.interfaceName != ''">
${_conditionType_} a.interfaceName like #{${_conditionParam_}.interfaceName}
</if>
<if test="conditionParamRef.interfaceName == null">
${_conditionType_} a.interfaceName is null
</if>
</if>
<if test="conditionParamRef.containsKey('interfaceNameList')">
${_conditionType_} a.interfaceName in
<foreach collection="conditionParamRef.interfaceNameList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('interfaceNameNotList')">
${_conditionType_} a.interfaceName not in
<foreach collection="conditionParamRef.interfaceNameNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('versionNumber')">
<if test="conditionParamRef.versionNumber != null and conditionParamRef.versionNumber != ''">
${_conditionType_} a.versionNumber like #{${_conditionParam_}.versionNumber}
</if>
<if test="conditionParamRef.versionNumber == null">
${_conditionType_} a.versionNumber is null
</if>
</if>
<if test="conditionParamRef.containsKey('versionNumberList')">
${_conditionType_} a.versionNumber in
<foreach collection="conditionParamRef.versionNumberList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('versionNumberNotList')">
${_conditionType_} a.versionNumber not in
<foreach collection="conditionParamRef.versionNumberNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('requestType')">
<if test="conditionParamRef.requestType != null ">
${_conditionType_} a.requestType = #{${_conditionParam_}.requestType}
</if>
<if test="conditionParamRef.requestType == null">
${_conditionType_} a.requestType is null
</if>
</if>
<if test="conditionParamRef.containsKey('requestTypeList')">
${_conditionType_} a.requestType in
<foreach collection="conditionParamRef.requestTypeList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('requestTypeNotList')">
${_conditionType_} a.requestType not in
<foreach collection="conditionParamRef.requestTypeNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('requestTypeStart') and conditionParamRef.requestTypeStart != null">
${_conditionType_} a.requestType <![CDATA[ >= ]]> #{${_conditionParam_}.requestTypeStart}
</if>
<if test="conditionParamRef.containsKey('requestTypeEnd') and conditionParamRef.requestTypeEnd != null">
${_conditionType_} a.requestType <![CDATA[ <= ]]> #{${_conditionParam_}.requestTypeEnd}
</if>
<if test="conditionParamRef.containsKey('requestProtocol')">
<if test="conditionParamRef.requestProtocol != null ">
${_conditionType_} a.requestProtocol = #{${_conditionParam_}.requestProtocol}
</if>
<if test="conditionParamRef.requestProtocol == null">
${_conditionType_} a.requestProtocol is null
</if>
</if>
<if test="conditionParamRef.containsKey('requestProtocolList')">
${_conditionType_} a.requestProtocol in
<foreach collection="conditionParamRef.requestProtocolList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('requestProtocolNotList')">
${_conditionType_} a.requestProtocol not in
<foreach collection="conditionParamRef.requestProtocolNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('requestProtocolStart') and conditionParamRef.requestProtocolStart != null">
${_conditionType_} a.requestProtocol <![CDATA[ >= ]]> #{${_conditionParam_}.requestProtocolStart}
</if>
<if test="conditionParamRef.containsKey('requestProtocolEnd') and conditionParamRef.requestProtocolEnd != null">
${_conditionType_} a.requestProtocol <![CDATA[ <= ]]> #{${_conditionParam_}.requestProtocolEnd}
</if>
<if test="conditionParamRef.containsKey('requestUrl')">
<if test="conditionParamRef.requestUrl != null and conditionParamRef.requestUrl != ''">
${_conditionType_} a.requestUrl like #{${_conditionParam_}.requestUrl}
</if>
<if test="conditionParamRef.requestUrl == null">
${_conditionType_} a.requestUrl is null
</if>
</if>
<if test="conditionParamRef.containsKey('requestUrlList')">
${_conditionType_} a.requestUrl in
<foreach collection="conditionParamRef.requestUrlList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('requestUrlNotList')">
${_conditionType_} a.requestUrl not in
<foreach collection="conditionParamRef.requestUrlNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('timeoutValue')">
<if test="conditionParamRef.timeoutValue != null ">
${_conditionType_} a.timeoutValue = #{${_conditionParam_}.timeoutValue}
</if>
<if test="conditionParamRef.timeoutValue == null">
${_conditionType_} a.timeoutValue is null
</if>
</if>
<if test="conditionParamRef.containsKey('timeoutValueList')">
${_conditionType_} a.timeoutValue in
<foreach collection="conditionParamRef.timeoutValueList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('timeoutValueNotList')">
${_conditionType_} a.timeoutValue not in
<foreach collection="conditionParamRef.timeoutValueNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('timeoutValueStart') and conditionParamRef.timeoutValueStart != null">
${_conditionType_} a.timeoutValue <![CDATA[ >= ]]> #{${_conditionParam_}.timeoutValueStart}
</if>
<if test="conditionParamRef.containsKey('timeoutValueEnd') and conditionParamRef.timeoutValueEnd != null">
${_conditionType_} a.timeoutValue <![CDATA[ <= ]]> #{${_conditionParam_}.timeoutValueEnd}
</if>
<if test="conditionParamRef.containsKey('limitStrategy')">
<if test="conditionParamRef.limitStrategy != null ">
${_conditionType_} a.limitStrategy = #{${_conditionParam_}.limitStrategy}
</if>
<if test="conditionParamRef.limitStrategy == null">
${_conditionType_} a.limitStrategy is null
</if>
</if>
<if test="conditionParamRef.containsKey('limitStrategyList')">
${_conditionType_} a.limitStrategy in
<foreach collection="conditionParamRef.limitStrategyList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('limitStrategyNotList')">
${_conditionType_} a.limitStrategy not in
<foreach collection="conditionParamRef.limitStrategyNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('limitStrategyStart') and conditionParamRef.limitStrategyStart != null">
${_conditionType_} a.limitStrategy <![CDATA[ >= ]]> #{${_conditionParam_}.limitStrategyStart}
</if>
<if test="conditionParamRef.containsKey('limitStrategyEnd') and conditionParamRef.limitStrategyEnd != null">
${_conditionType_} a.limitStrategy <![CDATA[ <= ]]> #{${_conditionParam_}.limitStrategyEnd}
</if>
<if test="conditionParamRef.containsKey('network')">
<if test="conditionParamRef.network != null and conditionParamRef.network != ''">
${_conditionType_} a.network like #{${_conditionParam_}.network}
</if>
<if test="conditionParamRef.network == null">
${_conditionType_} a.network is null
</if>
</if>
<if test="conditionParamRef.containsKey('networkList')">
${_conditionType_} a.network in
<foreach collection="conditionParamRef.networkList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('networkNotList')">
${_conditionType_} a.network not in
<foreach collection="conditionParamRef.networkNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('description')">
<if test="conditionParamRef.description != null and conditionParamRef.description != ''">
${_conditionType_} a.description like #{${_conditionParam_}.description}
</if>
<if test="conditionParamRef.description == null">
${_conditionType_} a.description is null
</if>
</if>
<if test="conditionParamRef.containsKey('descriptionList')">
${_conditionType_} a.description in
<foreach collection="conditionParamRef.descriptionList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('descriptionNotList')">
${_conditionType_} a.description not in
<foreach collection="conditionParamRef.descriptionNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('flowControl')">
<if test="conditionParamRef.flowControl != null and conditionParamRef.flowControl != ''">
${_conditionType_} a.flowControl like #{${_conditionParam_}.flowControl}
</if>
<if test="conditionParamRef.flowControl == null">
${_conditionType_} a.flowControl is null
</if>
</if>
<if test="conditionParamRef.containsKey('flowControlList')">
${_conditionType_} a.flowControl in
<foreach collection="conditionParamRef.flowControlList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('flowControlNotList')">
${_conditionType_} a.flowControl not in
<foreach collection="conditionParamRef.flowControlNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('authorizeInfo')">
<if test="conditionParamRef.authorizeInfo != null and conditionParamRef.authorizeInfo != ''">
${_conditionType_} a.authorizeInfo like #{${_conditionParam_}.authorizeInfo}
</if>
<if test="conditionParamRef.authorizeInfo == null">
${_conditionType_} a.authorizeInfo is null
</if>
</if>
<if test="conditionParamRef.containsKey('authorizeInfoList')">
${_conditionType_} a.authorizeInfo in
<foreach collection="conditionParamRef.authorizeInfoList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('authorizeInfoNotList')">
${_conditionType_} a.authorizeInfo not in
<foreach collection="conditionParamRef.authorizeInfoNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('interfaceTag')">
<if test="conditionParamRef.interfaceTag != null ">
${_conditionType_} a.interfaceTag = #{${_conditionParam_}.interfaceTag}
</if>
<if test="conditionParamRef.interfaceTag == null">
${_conditionType_} a.interfaceTag is null
</if>
</if>
<if test="conditionParamRef.containsKey('interfaceTagList')">
${_conditionType_} a.interfaceTag in
<foreach collection="conditionParamRef.interfaceTagList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('interfaceTagNotList')">
${_conditionType_} a.interfaceTag not in
<foreach collection="conditionParamRef.interfaceTagNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('interfaceTagStart') and conditionParamRef.interfaceTagStart != null">
${_conditionType_} a.interfaceTag <![CDATA[ >= ]]> #{${_conditionParam_}.interfaceTagStart}
</if>
<if test="conditionParamRef.containsKey('interfaceTagEnd') and conditionParamRef.interfaceTagEnd != null">
${_conditionType_} a.interfaceTag <![CDATA[ <= ]]> #{${_conditionParam_}.interfaceTagEnd}
</if>
<if test="conditionParamRef.containsKey('interfaceSource')">
<if test="conditionParamRef.interfaceSource != null ">
${_conditionType_} a.interfaceSource = #{${_conditionParam_}.interfaceSource}
</if>
<if test="conditionParamRef.interfaceSource == null">
${_conditionType_} a.interfaceSource is null
</if>
</if>
<if test="conditionParamRef.containsKey('interfaceSourceList')">
${_conditionType_} a.interfaceSource in
<foreach collection="conditionParamRef.interfaceSourceList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('interfaceSourceNotList')">
${_conditionType_} a.interfaceSource not in
<foreach collection="conditionParamRef.interfaceSourceNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('interfaceSourceStart') and conditionParamRef.interfaceSourceStart != null">
${_conditionType_} a.interfaceSource <![CDATA[ >= ]]> #{${_conditionParam_}.interfaceSourceStart}
</if>
<if test="conditionParamRef.containsKey('interfaceSourceEnd') and conditionParamRef.interfaceSourceEnd != null">
${_conditionType_} a.interfaceSource <![CDATA[ <= ]]> #{${_conditionParam_}.interfaceSourceEnd}
</if>
<if test="conditionParamRef.containsKey('requestParameters')">
<if test="conditionParamRef.requestParameters != null and conditionParamRef.requestParameters != ''">
${_conditionType_} a.requestParameters like #{${_conditionParam_}.requestParameters}
</if>
<if test="conditionParamRef.requestParameters == null">
${_conditionType_} a.requestParameters is null
</if>
</if>
<if test="conditionParamRef.containsKey('requestParametersList')">
${_conditionType_} a.requestParameters in
<foreach collection="conditionParamRef.requestParametersList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('requestParametersNotList')">
${_conditionType_} a.requestParameters not in
<foreach collection="conditionParamRef.requestParametersNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('responseParameters')">
<if test="conditionParamRef.responseParameters != null and conditionParamRef.responseParameters != ''">
${_conditionType_} a.responseParameters like #{${_conditionParam_}.responseParameters}
</if>
<if test="conditionParamRef.responseParameters == null">
${_conditionType_} a.responseParameters is null
</if>
</if>
<if test="conditionParamRef.containsKey('responseParametersList')">
${_conditionType_} a.responseParameters in
<foreach collection="conditionParamRef.responseParametersList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('responseParametersNotList')">
${_conditionType_} a.responseParameters not in
<foreach collection="conditionParamRef.responseParametersNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('errorCode')">
<if test="conditionParamRef.errorCode != null and conditionParamRef.errorCode != ''">
${_conditionType_} a.errorCode like #{${_conditionParam_}.errorCode}
</if>
<if test="conditionParamRef.errorCode == null">
${_conditionType_} a.errorCode is null
</if>
</if>
<if test="conditionParamRef.containsKey('errorCodeList')">
${_conditionType_} a.errorCode in
<foreach collection="conditionParamRef.errorCodeList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('errorCodeNotList')">
${_conditionType_} a.errorCode not in
<foreach collection="conditionParamRef.errorCodeNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('changeHistory')">
<if test="conditionParamRef.changeHistory != null and conditionParamRef.changeHistory != ''">
${_conditionType_} a.changeHistory like #{${_conditionParam_}.changeHistory}
</if>
<if test="conditionParamRef.changeHistory == null">
${_conditionType_} a.changeHistory is null
</if>
</if>
<if test="conditionParamRef.containsKey('changeHistoryList')">
${_conditionType_} a.changeHistory in
<foreach collection="conditionParamRef.changeHistoryList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('changeHistoryNotList')">
${_conditionType_} a.changeHistory not in
<foreach collection="conditionParamRef.changeHistoryNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('createUserId')">
<if test="conditionParamRef.createUserId != null ">
${_conditionType_} a.createUserId = #{${_conditionParam_}.createUserId}
</if>
<if test="conditionParamRef.createUserId == null">
${_conditionType_} a.createUserId is null
</if>
</if>
<if test="conditionParamRef.containsKey('createUserIdList')">
${_conditionType_} a.createUserId in
<foreach collection="conditionParamRef.createUserIdList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('createUserIdNotList')">
${_conditionType_} a.createUserId not in
<foreach collection="conditionParamRef.createUserIdNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('createUserIdStart') and conditionParamRef.createUserIdStart != null">
${_conditionType_} a.createUserId <![CDATA[ >= ]]> #{${_conditionParam_}.createUserIdStart}
</if>
<if test="conditionParamRef.containsKey('createUserIdEnd') and conditionParamRef.createUserIdEnd != null">
${_conditionType_} a.createUserId <![CDATA[ <= ]]> #{${_conditionParam_}.createUserIdEnd}
</if>
<if test="conditionParamRef.containsKey('createTime')">
<if test="conditionParamRef.createTime != null ">
${_conditionType_} a.createTime = #{${_conditionParam_}.createTime}
</if>
<if test="conditionParamRef.createTime == null">
${_conditionType_} a.createTime is null
</if>
</if>
<if test="conditionParamRef.containsKey('createTimeStart') and conditionParamRef.createTimeStart != null and conditionParamRef.createTimeStart!=''">
${_conditionType_} a.createTime <![CDATA[ >= ]]> STR_TO_DATE(left(concat(#{${_conditionParam_}.createTimeStart},' 00:00:00'),19),'%Y-%m-%d %k:%i:%s')
</if>
<if test="conditionParamRef.containsKey('createTimeEnd') and conditionParamRef.createTimeEnd != null and conditionParamRef.createTimeEnd!=''">
${_conditionType_} a.createTime <![CDATA[ <= ]]> STR_TO_DATE(left(concat(#{${_conditionParam_}.createTimeEnd},' 23:59:59'),19),'%Y-%m-%d %k:%i:%s')
</if>
<if test="conditionParamRef.containsKey('updateUserId')">
<if test="conditionParamRef.updateUserId != null ">
${_conditionType_} a.updateUserId = #{${_conditionParam_}.updateUserId}
</if>
<if test="conditionParamRef.updateUserId == null">
${_conditionType_} a.updateUserId is null
</if>
</if>
<if test="conditionParamRef.containsKey('updateUserIdList')">
${_conditionType_} a.updateUserId in
<foreach collection="conditionParamRef.updateUserIdList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('updateUserIdNotList')">
${_conditionType_} a.updateUserId not in
<foreach collection="conditionParamRef.updateUserIdNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('updateUserIdStart') and conditionParamRef.updateUserIdStart != null">
${_conditionType_} a.updateUserId <![CDATA[ >= ]]> #{${_conditionParam_}.updateUserIdStart}
</if>
<if test="conditionParamRef.containsKey('updateUserIdEnd') and conditionParamRef.updateUserIdEnd != null">
${_conditionType_} a.updateUserId <![CDATA[ <= ]]> #{${_conditionParam_}.updateUserIdEnd}
</if>
<if test="conditionParamRef.containsKey('updateTime')">
<if test="conditionParamRef.updateTime != null ">
${_conditionType_} a.updateTime = #{${_conditionParam_}.updateTime}
</if>
<if test="conditionParamRef.updateTime == null">
${_conditionType_} a.updateTime is null
</if>
</if>
<if test="conditionParamRef.containsKey('updateTimeStart') and conditionParamRef.updateTimeStart != null and conditionParamRef.updateTimeStart!=''">
${_conditionType_} a.updateTime <![CDATA[ >= ]]> STR_TO_DATE(left(concat(#{${_conditionParam_}.updateTimeStart},' 00:00:00'),19),'%Y-%m-%d %k:%i:%s')
</if>
<if test="conditionParamRef.containsKey('updateTimeEnd') and conditionParamRef.updateTimeEnd != null and conditionParamRef.updateTimeEnd!=''">
${_conditionType_} a.updateTime <![CDATA[ <= ]]> STR_TO_DATE(left(concat(#{${_conditionParam_}.updateTimeEnd},' 23:59:59'),19),'%Y-%m-%d %k:%i:%s')
</if>
</sql>
<sql id="_orderCols_">
<if test="orderColList != null and !orderColList.isEmpty()">
order by
<trim suffixOverrides="," suffix="">
<foreach collection="orderColList" open="" close="" index="index" item="item" separator=",">
${item.colName} ${item.sortKind}
</foreach>
</trim>
</if>
<if test="(orderColList == null or orderColList.isEmpty()) and orderCol != null and !orderCol.isEmpty()">
order by
<trim suffixOverrides="," suffix="">
<if test="orderCol.containsKey('id')">
a.id
<if test='orderCol.id != null and "DESC".equalsIgnoreCase(orderCol.id)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('productId')">
a.productId
<if test='orderCol.productId != null and "DESC".equalsIgnoreCase(orderCol.productId)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('interfaceName')">
a.interfaceName
<if test='orderCol.interfaceName != null and "DESC".equalsIgnoreCase(orderCol.interfaceName)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('versionNumber')">
a.versionNumber
<if test='orderCol.versionNumber != null and "DESC".equalsIgnoreCase(orderCol.versionNumber)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('requestType')">
a.requestType
<if test='orderCol.requestType != null and "DESC".equalsIgnoreCase(orderCol.requestType)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('requestProtocol')">
a.requestProtocol
<if test='orderCol.requestProtocol != null and "DESC".equalsIgnoreCase(orderCol.requestProtocol)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('requestUrl')">
a.requestUrl
<if test='orderCol.requestUrl != null and "DESC".equalsIgnoreCase(orderCol.requestUrl)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('timeoutValue')">
a.timeoutValue
<if test='orderCol.timeoutValue != null and "DESC".equalsIgnoreCase(orderCol.timeoutValue)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('limitStrategy')">
a.limitStrategy
<if test='orderCol.limitStrategy != null and "DESC".equalsIgnoreCase(orderCol.limitStrategy)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('network')">
a.network
<if test='orderCol.network != null and "DESC".equalsIgnoreCase(orderCol.network)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('description')">
a.description
<if test='orderCol.description != null and "DESC".equalsIgnoreCase(orderCol.description)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('flowControl')">
a.flowControl
<if test='orderCol.flowControl != null and "DESC".equalsIgnoreCase(orderCol.flowControl)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('authorizeInfo')">
a.authorizeInfo
<if test='orderCol.authorizeInfo != null and "DESC".equalsIgnoreCase(orderCol.authorizeInfo)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('interfaceTag')">
a.interfaceTag
<if test='orderCol.interfaceTag != null and "DESC".equalsIgnoreCase(orderCol.interfaceTag)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('interfaceSource')">
a.interfaceSource
<if test='orderCol.interfaceSource != null and "DESC".equalsIgnoreCase(orderCol.interfaceSource)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('requestParameters')">
a.requestParameters
<if test='orderCol.requestParameters != null and "DESC".equalsIgnoreCase(orderCol.requestParameters)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('responseParameters')">
a.responseParameters
<if test='orderCol.responseParameters != null and "DESC".equalsIgnoreCase(orderCol.responseParameters)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('errorCode')">
a.errorCode
<if test='orderCol.errorCode != null and "DESC".equalsIgnoreCase(orderCol.errorCode)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('changeHistory')">
a.changeHistory
<if test='orderCol.changeHistory != null and "DESC".equalsIgnoreCase(orderCol.changeHistory)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('createUserId')">
a.createUserId
<if test='orderCol.createUserId != null and "DESC".equalsIgnoreCase(orderCol.createUserId)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('createTime')">
a.createTime
<if test='orderCol.createTime != null and "DESC".equalsIgnoreCase(orderCol.createTime)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('updateUserId')">
a.updateUserId
<if test='orderCol.updateUserId != null and "DESC".equalsIgnoreCase(orderCol.updateUserId)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('updateTime')">
a.updateTime
<if test='orderCol.updateTime != null and "DESC".equalsIgnoreCase(orderCol.updateTime)'>DESC</if>
,
</if>
</trim>
</if>
</sql>
<sql id="_group_by_">
<if test="groupList != null and !groupList.isEmpty()">
GROUP BY
<trim suffixOverrides="," suffix="">
<foreach collection="groupList" open="" close="" index="index" item="item" separator=",">
${item}
</foreach>
</trim>
</if>
</sql>
</mapper>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"mybatis-3-mapper.dtd">
<mapper namespace="com.mortals.xhx.module.product.dao.ibatis.ProductDaoImpl">
<!-- 字段和属性映射 -->
<resultMap type="ProductEntity" id="ProductEntity-Map">
<id property="id" column="id" />
<result property="siteId" column="siteId" />
<result property="productName" column="productName" />
<result property="logoUrl" column="logoUrl" />
<result property="productCode" column="productCode" />
<result property="createUserId" column="createUserId" />
<result property="createTime" column="createTime" />
<result property="updateUserId" column="updateUserId" />
<result property="updateTime" column="updateTime" />
</resultMap>
<!-- 表所有列 -->
<sql id="_columns">
<trim suffixOverrides="," suffix="">
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('id') or colPickMode == 1 and data.containsKey('id')))">
a.id,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('siteId') or colPickMode == 1 and data.containsKey('siteId')))">
a.siteId,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('productName') or colPickMode == 1 and data.containsKey('productName')))">
a.productName,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('logoUrl') or colPickMode == 1 and data.containsKey('logoUrl')))">
a.logoUrl,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('productCode') or colPickMode == 1 and data.containsKey('productCode')))">
a.productCode,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('createUserId') or colPickMode == 1 and data.containsKey('createUserId')))">
a.createUserId,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('createTime') or colPickMode == 1 and data.containsKey('createTime')))">
a.createTime,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('updateUserId') or colPickMode == 1 and data.containsKey('updateUserId')))">
a.updateUserId,
</if>
<if test="(data == null) or (data != null and ( colPickMode == 0 and !data.containsKey('updateTime') or colPickMode == 1 and data.containsKey('updateTime')))">
a.updateTime,
</if>
</trim>
</sql>
<!-- 新增 区分主键自增加还是业务插入 -->
<insert id="insert" parameterType="ProductEntity" useGeneratedKeys="true" keyProperty="id">
insert into mortals_xhx_product
(siteId,productName,logoUrl,productCode,createUserId,createTime,updateUserId,updateTime)
VALUES
(#{siteId},#{productName},#{logoUrl},#{productCode},#{createUserId},#{createTime},#{updateUserId},#{updateTime})
</insert>
<!-- 批量新增 -->
<insert id="insertBatch" parameterType="paramDto">
insert into mortals_xhx_product
(siteId,productName,logoUrl,productCode,createUserId,createTime,updateUserId,updateTime)
VALUES
<foreach collection="data.dataList" item="item" index="index" separator="," >
(#{item.siteId},#{item.productName},#{item.logoUrl},#{item.productCode},#{item.createUserId},#{item.createTime},#{item.updateUserId},#{item.updateTime})
</foreach>
</insert>
<!-- 根据ParamDto更新 -->
<update id="update" parameterType="paramDto">
update mortals_xhx_product as a
set
<trim suffixOverrides="," suffix="">
<if test="(colPickMode==0 and data.containsKey('siteId')) or (colPickMode==1 and !data.containsKey('siteId'))">
a.siteId=#{data.siteId},
</if>
<if test="(colPickMode==0 and data.containsKey('siteIdIncrement')) or (colPickMode==1 and !data.containsKey('siteIdIncrement'))">
a.siteId=ifnull(a.siteId,0) + #{data.siteIdIncrement},
</if>
<if test="(colPickMode==0 and data.containsKey('productName')) or (colPickMode==1 and !data.containsKey('productName'))">
a.productName=#{data.productName},
</if>
<if test="(colPickMode==0 and data.containsKey('logoUrl')) or (colPickMode==1 and !data.containsKey('logoUrl'))">
a.logoUrl=#{data.logoUrl},
</if>
<if test="(colPickMode==0 and data.containsKey('productCode')) or (colPickMode==1 and !data.containsKey('productCode'))">
a.productCode=#{data.productCode},
</if>
<if test="(colPickMode==0 and data.containsKey('createUserId')) or (colPickMode==1 and !data.containsKey('createUserId'))">
a.createUserId=#{data.createUserId},
</if>
<if test="(colPickMode==0 and data.containsKey('createUserIdIncrement')) or (colPickMode==1 and !data.containsKey('createUserIdIncrement'))">
a.createUserId=ifnull(a.createUserId,0) + #{data.createUserIdIncrement},
</if>
<if test="(colPickMode==0 and data.containsKey('createTime')) or (colPickMode==1 and !data.containsKey('createTime'))">
a.createTime=#{data.createTime},
</if>
<if test="(colPickMode==0 and data.containsKey('updateUserId')) or (colPickMode==1 and !data.containsKey('updateUserId'))">
a.updateUserId=#{data.updateUserId},
</if>
<if test="(colPickMode==0 and data.containsKey('updateUserIdIncrement')) or (colPickMode==1 and !data.containsKey('updateUserIdIncrement'))">
a.updateUserId=ifnull(a.updateUserId,0) + #{data.updateUserIdIncrement},
</if>
<if test="(colPickMode==0 and data.containsKey('updateTime')) or (colPickMode==1 and !data.containsKey('updateTime'))">
a.updateTime=#{data.updateTime},
</if>
</trim>
<trim suffixOverrides="where" suffix="">
where
<trim prefixOverrides="and" prefix="">
<include refid="_condition_"/>
</trim>
</trim>
</update>
<!-- 批量更新 -->
<update id="updateBatch" parameterType="paramDto">
update mortals_xhx_product as a
<trim prefix="set" suffixOverrides=",">
<trim prefix="siteId=(case" suffix="ELSE siteId end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<choose>
<when test="(colPickMode==0 and item.containsKey('siteId')) or (colPickMode==1 and !item.containsKey('siteId'))">
when a.id=#{item.id} then #{item.siteId}
</when>
<when test="(colPickMode==0 and item.containsKey('siteIdIncrement')) or (colPickMode==1 and !item.containsKey('siteIdIncrement'))">
when a.id=#{item.id} then ifnull(a.siteId,0) + #{item.siteIdIncrement}
</when>
</choose>
</foreach>
</trim>
<trim prefix="productName=(case" suffix="ELSE productName end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('productName')) or (colPickMode==1 and !item.containsKey('productName'))">
when a.id=#{item.id} then #{item.productName}
</if>
</foreach>
</trim>
<trim prefix="logoUrl=(case" suffix="ELSE logoUrl end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('logoUrl')) or (colPickMode==1 and !item.containsKey('logoUrl'))">
when a.id=#{item.id} then #{item.logoUrl}
</if>
</foreach>
</trim>
<trim prefix="productCode=(case" suffix="ELSE productCode end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('productCode')) or (colPickMode==1 and !item.containsKey('productCode'))">
when a.id=#{item.id} then #{item.productCode}
</if>
</foreach>
</trim>
<trim prefix="createUserId=(case" suffix="ELSE createUserId end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<choose>
<when test="(colPickMode==0 and item.containsKey('createUserId')) or (colPickMode==1 and !item.containsKey('createUserId'))">
when a.id=#{item.id} then #{item.createUserId}
</when>
<when test="(colPickMode==0 and item.containsKey('createUserIdIncrement')) or (colPickMode==1 and !item.containsKey('createUserIdIncrement'))">
when a.id=#{item.id} then ifnull(a.createUserId,0) + #{item.createUserIdIncrement}
</when>
</choose>
</foreach>
</trim>
<trim prefix="createTime=(case" suffix="ELSE createTime end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('createTime')) or (colPickMode==1 and !item.containsKey('createTime'))">
when a.id=#{item.id} then #{item.createTime}
</if>
</foreach>
</trim>
<trim prefix="updateUserId=(case" suffix="ELSE updateUserId end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<choose>
<when test="(colPickMode==0 and item.containsKey('updateUserId')) or (colPickMode==1 and !item.containsKey('updateUserId'))">
when a.id=#{item.id} then #{item.updateUserId}
</when>
<when test="(colPickMode==0 and item.containsKey('updateUserIdIncrement')) or (colPickMode==1 and !item.containsKey('updateUserIdIncrement'))">
when a.id=#{item.id} then ifnull(a.updateUserId,0) + #{item.updateUserIdIncrement}
</when>
</choose>
</foreach>
</trim>
<trim prefix="updateTime=(case" suffix="ELSE updateTime end),">
<foreach collection="data.dataList" item="item" index="index" separator="" >
<if test="(colPickMode==0 and item.containsKey('updateTime')) or (colPickMode==1 and !item.containsKey('updateTime'))">
when a.id=#{item.id} then #{item.updateTime}
</if>
</foreach>
</trim>
</trim>
where id in
<foreach collection="data.dataList" item="item" index="index" open="(" separator="," close=")">
#{item.id}
</foreach>
</update>
<!-- 根据主健查询 -->
<select id="getByKey" parameterType="paramDto" resultMap="ProductEntity-Map">
select <include refid="_columns"/>
from mortals_xhx_product as a
where a.id=#{condition.id}
</select>
<!-- 根据主健删除 -->
<delete id="deleteByKey" parameterType="paramDto">
delete a.* from mortals_xhx_product as a where a.id=#{condition.id}
</delete>
<!-- 根据主健删除一批,针对单一主健有效 -->
<delete id="deleteByKeys">
delete from mortals_xhx_product where id in
<foreach collection="array" item="item" index="index" open="(" separator="," close=")">
#{item}
</foreach>
</delete>
<!-- 根据主健列表删除一批,针对单一主健有效 -->
<delete id="deleteByKeyList">
delete from mortals_xhx_product where id in
<foreach collection="list" item="item" index="index" open="(" separator="," close=")">
#{item}
</foreach>
</delete>
<!-- 根据对象列表删除一批,针对单一主健有效 -->
<delete id="deleteByEntityList">
delete from mortals_xhx_product where id in
<foreach collection="list" item="item" index="index" open="(" separator="," close=")">
#{item.id}
</foreach>
</delete>
<!-- 根据paramDto删除一批 -->
<delete id="deleteByMap" parameterType="paramDto">
delete a.* from mortals_xhx_product as a
<trim suffixOverrides="where" suffix="">
where
<trim prefixOverrides="and" prefix="">
<include refid="_condition_"/>
</trim>
</trim>
</delete>
<!-- 获取列表 -->
<select id="getList" parameterType="paramDto" resultMap="ProductEntity-Map">
select <include refid="_columns"/>
from mortals_xhx_product as a
<trim suffixOverrides="where" suffix="">
where
<trim prefixOverrides="and" prefix="">
<include refid="_condition_"/>
</trim>
</trim>
<include refid="_orderCols_"/>
</select>
<!-- 获取 -->
<select id="getListCount" parameterType="paramDto" resultType="int">
select count(1)
from mortals_xhx_product as a
<trim suffixOverrides="where" suffix="">
where
<trim prefixOverrides="and" prefix="">
<include refid="_condition_"/>
</trim>
</trim>
</select>
<!-- 条件映射 -->
<sql id="_condition_">
<if test="condition != null and !condition.isEmpty()">
<!-- 条件映射-普通条件 -->
<include refid="_condition_param_">
<property name="_conditionParam_" value="condition"/>
<property name="_conditionType_" value="and"/>
</include>
<!-- 条件映射-集合之间使用AND,集合中元素使用OR-(list[0].1 or list[0].2) and (list[1].3 or list[1].4) -->
<if test="condition.containsKey('andConditionList') and !condition.andConditionList.isEmpty()">
and
<foreach collection="condition.andConditionList" open="(" close=")" index="index" item="andCondition" separator=" and ">
<trim prefixOverrides="or" prefix="(" suffix=")">
<include refid="_condition_param_">
<property name="_conditionParam_" value="andCondition"/>
<property name="_conditionType_" value="or"/>
</include>
</trim>
</foreach>
</if>
<!-- 条件映射-集合之间使用OR,集合中元素使用AND-(list[0].1 and list[0].2) or (list[1].3 and list[1].4) -->
<if test="condition.containsKey('orConditionList') and !condition.orConditionList.isEmpty()">
and
<foreach collection="condition.orConditionList" open="(" close=")" index="index" item="orCondition" separator=" or ">
<trim prefixOverrides="and" prefix="(" suffix=")">
<include refid="_condition_param_">
<property name="_conditionParam_" value="orCondition"/>
<property name="_conditionType_" value="and"/>
</include>
</trim>
</foreach>
</if>
</if>
</sql>
<!-- 条件映射-代参数 -->
<sql id="_condition_param_">
<bind name="conditionParamRef" value="${_conditionParam_}"/>
<if test="conditionParamRef.containsKey('id')">
<if test="conditionParamRef.id != null">
${_conditionType_} a.id=#{${_conditionParam_}.id}
</if>
</if>
<if test="conditionParamRef.containsKey('id')">
<if test="conditionParamRef.id != null ">
${_conditionType_} a.id = #{${_conditionParam_}.id}
</if>
<if test="conditionParamRef.id == null">
${_conditionType_} a.id is null
</if>
</if>
<if test="conditionParamRef.containsKey('idList')">
${_conditionType_} a.id in
<foreach collection="conditionParamRef.idList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('idNotList')">
${_conditionType_} a.id not in
<foreach collection="conditionParamRef.idNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('idStart') and conditionParamRef.idStart != null">
${_conditionType_} a.id <![CDATA[ >= ]]> #{${_conditionParam_}.idStart}
</if>
<if test="conditionParamRef.containsKey('idEnd') and conditionParamRef.idEnd != null">
${_conditionType_} a.id <![CDATA[ <= ]]> #{${_conditionParam_}.idEnd}
</if>
<if test="conditionParamRef.containsKey('siteId')">
<if test="conditionParamRef.siteId != null ">
${_conditionType_} a.siteId = #{${_conditionParam_}.siteId}
</if>
<if test="conditionParamRef.siteId == null">
${_conditionType_} a.siteId is null
</if>
</if>
<if test="conditionParamRef.containsKey('siteIdList')">
${_conditionType_} a.siteId in
<foreach collection="conditionParamRef.siteIdList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('siteIdNotList')">
${_conditionType_} a.siteId not in
<foreach collection="conditionParamRef.siteIdNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('siteIdStart') and conditionParamRef.siteIdStart != null">
${_conditionType_} a.siteId <![CDATA[ >= ]]> #{${_conditionParam_}.siteIdStart}
</if>
<if test="conditionParamRef.containsKey('siteIdEnd') and conditionParamRef.siteIdEnd != null">
${_conditionType_} a.siteId <![CDATA[ <= ]]> #{${_conditionParam_}.siteIdEnd}
</if>
<if test="conditionParamRef.containsKey('productName')">
<if test="conditionParamRef.productName != null and conditionParamRef.productName != ''">
${_conditionType_} a.productName like #{${_conditionParam_}.productName}
</if>
<if test="conditionParamRef.productName == null">
${_conditionType_} a.productName is null
</if>
</if>
<if test="conditionParamRef.containsKey('productNameList')">
${_conditionType_} a.productName in
<foreach collection="conditionParamRef.productNameList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('productNameNotList')">
${_conditionType_} a.productName not in
<foreach collection="conditionParamRef.productNameNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('logoUrl')">
<if test="conditionParamRef.logoUrl != null and conditionParamRef.logoUrl != ''">
${_conditionType_} a.logoUrl like #{${_conditionParam_}.logoUrl}
</if>
<if test="conditionParamRef.logoUrl == null">
${_conditionType_} a.logoUrl is null
</if>
</if>
<if test="conditionParamRef.containsKey('logoUrlList')">
${_conditionType_} a.logoUrl in
<foreach collection="conditionParamRef.logoUrlList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('logoUrlNotList')">
${_conditionType_} a.logoUrl not in
<foreach collection="conditionParamRef.logoUrlNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('productCode')">
<if test="conditionParamRef.productCode != null and conditionParamRef.productCode != ''">
${_conditionType_} a.productCode like #{${_conditionParam_}.productCode}
</if>
<if test="conditionParamRef.productCode == null">
${_conditionType_} a.productCode is null
</if>
</if>
<if test="conditionParamRef.containsKey('productCodeList')">
${_conditionType_} a.productCode in
<foreach collection="conditionParamRef.productCodeList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('productCodeNotList')">
${_conditionType_} a.productCode not in
<foreach collection="conditionParamRef.productCodeNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('createUserId')">
<if test="conditionParamRef.createUserId != null ">
${_conditionType_} a.createUserId = #{${_conditionParam_}.createUserId}
</if>
<if test="conditionParamRef.createUserId == null">
${_conditionType_} a.createUserId is null
</if>
</if>
<if test="conditionParamRef.containsKey('createUserIdList')">
${_conditionType_} a.createUserId in
<foreach collection="conditionParamRef.createUserIdList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('createUserIdNotList')">
${_conditionType_} a.createUserId not in
<foreach collection="conditionParamRef.createUserIdNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('createUserIdStart') and conditionParamRef.createUserIdStart != null">
${_conditionType_} a.createUserId <![CDATA[ >= ]]> #{${_conditionParam_}.createUserIdStart}
</if>
<if test="conditionParamRef.containsKey('createUserIdEnd') and conditionParamRef.createUserIdEnd != null">
${_conditionType_} a.createUserId <![CDATA[ <= ]]> #{${_conditionParam_}.createUserIdEnd}
</if>
<if test="conditionParamRef.containsKey('createTime')">
<if test="conditionParamRef.createTime != null ">
${_conditionType_} a.createTime = #{${_conditionParam_}.createTime}
</if>
<if test="conditionParamRef.createTime == null">
${_conditionType_} a.createTime is null
</if>
</if>
<if test="conditionParamRef.containsKey('createTimeStart') and conditionParamRef.createTimeStart != null and conditionParamRef.createTimeStart!=''">
${_conditionType_} a.createTime <![CDATA[ >= ]]> STR_TO_DATE(left(concat(#{${_conditionParam_}.createTimeStart},' 00:00:00'),19),'%Y-%m-%d %k:%i:%s')
</if>
<if test="conditionParamRef.containsKey('createTimeEnd') and conditionParamRef.createTimeEnd != null and conditionParamRef.createTimeEnd!=''">
${_conditionType_} a.createTime <![CDATA[ <= ]]> STR_TO_DATE(left(concat(#{${_conditionParam_}.createTimeEnd},' 23:59:59'),19),'%Y-%m-%d %k:%i:%s')
</if>
<if test="conditionParamRef.containsKey('updateUserId')">
<if test="conditionParamRef.updateUserId != null ">
${_conditionType_} a.updateUserId = #{${_conditionParam_}.updateUserId}
</if>
<if test="conditionParamRef.updateUserId == null">
${_conditionType_} a.updateUserId is null
</if>
</if>
<if test="conditionParamRef.containsKey('updateUserIdList')">
${_conditionType_} a.updateUserId in
<foreach collection="conditionParamRef.updateUserIdList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('updateUserIdNotList')">
${_conditionType_} a.updateUserId not in
<foreach collection="conditionParamRef.updateUserIdNotList" open="(" close=")" index="index" item="item" separator=",">
#{item}
</foreach>
</if>
<if test="conditionParamRef.containsKey('updateUserIdStart') and conditionParamRef.updateUserIdStart != null">
${_conditionType_} a.updateUserId <![CDATA[ >= ]]> #{${_conditionParam_}.updateUserIdStart}
</if>
<if test="conditionParamRef.containsKey('updateUserIdEnd') and conditionParamRef.updateUserIdEnd != null">
${_conditionType_} a.updateUserId <![CDATA[ <= ]]> #{${_conditionParam_}.updateUserIdEnd}
</if>
<if test="conditionParamRef.containsKey('updateTime')">
<if test="conditionParamRef.updateTime != null ">
${_conditionType_} a.updateTime = #{${_conditionParam_}.updateTime}
</if>
<if test="conditionParamRef.updateTime == null">
${_conditionType_} a.updateTime is null
</if>
</if>
<if test="conditionParamRef.containsKey('updateTimeStart') and conditionParamRef.updateTimeStart != null and conditionParamRef.updateTimeStart!=''">
${_conditionType_} a.updateTime <![CDATA[ >= ]]> STR_TO_DATE(left(concat(#{${_conditionParam_}.updateTimeStart},' 00:00:00'),19),'%Y-%m-%d %k:%i:%s')
</if>
<if test="conditionParamRef.containsKey('updateTimeEnd') and conditionParamRef.updateTimeEnd != null and conditionParamRef.updateTimeEnd!=''">
${_conditionType_} a.updateTime <![CDATA[ <= ]]> STR_TO_DATE(left(concat(#{${_conditionParam_}.updateTimeEnd},' 23:59:59'),19),'%Y-%m-%d %k:%i:%s')
</if>
</sql>
<sql id="_orderCols_">
<if test="orderColList != null and !orderColList.isEmpty()">
order by
<trim suffixOverrides="," suffix="">
<foreach collection="orderColList" open="" close="" index="index" item="item" separator=",">
${item.colName} ${item.sortKind}
</foreach>
</trim>
</if>
<if test="(orderColList == null or orderColList.isEmpty()) and orderCol != null and !orderCol.isEmpty()">
order by
<trim suffixOverrides="," suffix="">
<if test="orderCol.containsKey('id')">
a.id
<if test='orderCol.id != null and "DESC".equalsIgnoreCase(orderCol.id)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('siteId')">
a.siteId
<if test='orderCol.siteId != null and "DESC".equalsIgnoreCase(orderCol.siteId)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('productName')">
a.productName
<if test='orderCol.productName != null and "DESC".equalsIgnoreCase(orderCol.productName)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('logoUrl')">
a.logoUrl
<if test='orderCol.logoUrl != null and "DESC".equalsIgnoreCase(orderCol.logoUrl)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('productCode')">
a.productCode
<if test='orderCol.productCode != null and "DESC".equalsIgnoreCase(orderCol.productCode)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('createUserId')">
a.createUserId
<if test='orderCol.createUserId != null and "DESC".equalsIgnoreCase(orderCol.createUserId)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('createTime')">
a.createTime
<if test='orderCol.createTime != null and "DESC".equalsIgnoreCase(orderCol.createTime)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('updateUserId')">
a.updateUserId
<if test='orderCol.updateUserId != null and "DESC".equalsIgnoreCase(orderCol.updateUserId)'>DESC</if>
,
</if>
<if test="orderCol.containsKey('updateTime')">
a.updateTime
<if test='orderCol.updateTime != null and "DESC".equalsIgnoreCase(orderCol.updateTime)'>DESC</if>
,
</if>
</trim>
</if>
</sql>
<sql id="_group_by_">
<if test="groupList != null and !groupList.isEmpty()">
GROUP BY
<trim suffixOverrides="," suffix="">
<foreach collection="groupList" open="" close="" index="index" item="item" separator=",">
${item}
</foreach>
</trim>
</if>
</sql>
</mapper>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment