|
@@ -263,8 +263,8 @@ module.exports = app => {
|
|
if (!stage || !transaction || !times || order === undefined) {
|
|
if (!stage || !transaction || !times || order === undefined) {
|
|
throw '数据错误';
|
|
throw '数据错误';
|
|
}
|
|
}
|
|
- const sql = 'INSERT INTO ?? (`tid`, `sid`, `pid`, `stimes`, `sorder`, `name`, `tp`, `expr`, `pause`, `attachment`, `pre_tp`) ' +
|
|
|
|
- ' SELECT SP.`tid`, SP.`sid`, SP.`pid`, ?, ?, SP.name, SP.`tp`, SP.`expr`, SP.`pause`, SP.`attachment`, SP.`pre_tp` ' +
|
|
|
|
|
|
+ const sql = 'INSERT INTO ?? (`tid`, `sid`, `pid`, `stimes`, `sorder`, `name`, `tp`, `expr`, `pause`, `attachment`, `pre_tp`, `end_tp`) ' +
|
|
|
|
+ ' SELECT SP.`tid`, SP.`sid`, SP.`pid`, ?, ?, SP.name, SP.`tp`, SP.`expr`, SP.`pause`, SP.`attachment`, SP.`pre_tp`, SP.`end_tp` ' +
|
|
' FROM ?? As SP, ?? As P ' +
|
|
' FROM ?? As SP, ?? As P ' +
|
|
' WHERE SP.`sid` = ? AND SP.`stimes` = ? AND SP.`sorder` = ? And SP.`pid` = P.`id` And P.`valid`';
|
|
' WHERE SP.`sid` = ? AND SP.`stimes` = ? AND SP.`sorder` = ? And SP.`pid` = P.`id` And P.`valid`';
|
|
const sqlParam = [this.tableName, times, order, this.tableName, this.ctx.service.pay.tableName,
|
|
const sqlParam = [this.tableName, times, order, this.tableName, this.ctx.service.pay.tableName,
|