记得上下班打卡 | git大法好,push需谨慎

Commit 23ec16bd authored by jiangxiulong's avatar jiangxiulong

Merge branch 'jxl_1021_express' into pre

parents 2e956d5d 9ed51556
...@@ -293,8 +293,8 @@ public class PerformancesExpressController extends BaseController { ...@@ -293,8 +293,8 @@ public class PerformancesExpressController extends BaseController {
@RequiresPermissions("kylin:performancesExpress:batchPrintExpress") @RequiresPermissions("kylin:performancesExpress:batchPrintExpress")
@PostMapping("/batchPrintExpress") @PostMapping("/batchPrintExpress")
@ResponseBody @ResponseBody
public ResponseDto<KylinOrderExpressPrintVo> batchPrintExpress(@RequestParam("ids") String performanceId, @RequestParam("ticketId") String ticketId) { public ResponseDto<KylinOrderExpressPrintVo> batchPrintExpress(@RequestParam("ids") String performanceId, @RequestParam("ticketId") String ticketId, @RequestParam("printNum") Integer printNum) {
KylinOrderExpressPrintVo res = performancesExpressServiceImpl.batchPrintExpress(performanceId, ticketId); KylinOrderExpressPrintVo res = performancesExpressServiceImpl.batchPrintExpress(performanceId, ticketId, printNum);
try { try {
return ResponseDto.success(res); return ResponseDto.success(res);
} catch (Exception e) { } catch (Exception e) {
......
...@@ -53,6 +53,12 @@ ...@@ -53,6 +53,12 @@
</select> </select>
</div> </div>
</div> </div>
<div class="form-group">
<label class="col-sm-2 control-label is-required">数量:</label>
<div class="col-sm-10">
<input class="form-control" type="text" name="printNum" id="printNum">
</div>
</div>
</div> </div>
</form> </form>
</div> </div>
...@@ -266,7 +272,7 @@ ...@@ -266,7 +272,7 @@
LODOP.PRINT(); LODOP.PRINT();
} }
function printExpress(performanceId, ticketId) { function printExpress(performanceId, ticketId, printNum) {
var message = "确定打印吗?"; var message = "确定打印吗?";
$.modal.confirm(message, function () { $.modal.confirm(message, function () {
try { try {
...@@ -279,7 +285,7 @@ ...@@ -279,7 +285,7 @@
} }
var data = ''; var data = '';
var ids = [performanceId]; var ids = [performanceId];
data = {"ids": ids.join(), "ticketId": ticketId}; data = {"ids": ids.join(), "ticketId": ticketId, "printNum": printNum};
var configPrint = { var configPrint = {
url: prefix + "/batchPrintExpress", url: prefix + "/batchPrintExpress",
type: "post", type: "post",
...@@ -355,7 +361,8 @@ ...@@ -355,7 +361,8 @@
shadeClose: true, shadeClose: true,
btn1: function (index, layero) { btn1: function (index, layero) {
var ticketId = layero.find('#openTicketListTplSelect').val(); var ticketId = layero.find('#openTicketListTplSelect').val();
printExpress(performanceId, ticketId); var printNum = layero.find('#printNum').val();
printExpress(performanceId, ticketId, printNum);
} }
}); });
} }
......
...@@ -622,13 +622,13 @@ public class PerformancesExpressServiceImpl extends ServiceImpl<KylinOrderExpres ...@@ -622,13 +622,13 @@ public class PerformancesExpressServiceImpl extends ServiceImpl<KylinOrderExpres
return kylinOrderExpressPrintVo; return kylinOrderExpressPrintVo;
} }
public KylinOrderExpressPrintVo batchPrintExpress(String performanceId, String ticketId) { public KylinOrderExpressPrintVo batchPrintExpress(String performanceId, String ticketId, Integer printNum) {
List<OrderExpressListDao> newList = new ArrayList<>(); List<OrderExpressListDao> newList = new ArrayList<>();
int count = 0; int count = 0;
int limitNum = 1000; int limitNum = 1000;
int mid = 0; int mid = 0;
do { do {
List<OrderExpressListDao> list = kylinOrderExpressMapper.selectPrintListOfPerformanceId(performanceId, ticketId, mid, limitNum); List<OrderExpressListDao> list = kylinOrderExpressMapper.selectPrintListOfPerformanceId(performanceId, ticketId, mid, limitNum, printNum);
if (!CollectionUtil.isEmpty(list)) { if (!CollectionUtil.isEmpty(list)) {
newList.addAll(list); newList.addAll(list);
......
...@@ -23,7 +23,8 @@ public interface KylinOrderExpressMapper extends BaseMapper<KylinOrderExpress> { ...@@ -23,7 +23,8 @@ public interface KylinOrderExpressMapper extends BaseMapper<KylinOrderExpress> {
@Param("performanceId") String performanceId, @Param("performanceId") String performanceId,
@Param("ticketId") String ticketId, @Param("ticketId") String ticketId,
@Param("mid") Integer mid, @Param("mid") Integer mid,
@Param("limitNum") Integer limitNum @Param("limitNum") Integer limitNum,
@Param("printNum") Integer printNum
); );
List<KylinOrderExpress> getCanCancelExpressList( List<KylinOrderExpress> getCanCancelExpressList(
......
...@@ -38,6 +38,7 @@ ...@@ -38,6 +38,7 @@
AND a.performances_id = #{performanceId} AND a.performances_id = #{performanceId}
<if test="ticketId != ''">AND e.tickets_id = #{ticketId}</if> <if test="ticketId != ''">AND e.tickets_id = #{ticketId}</if>
AND a.mid > ${mid} AND a.mid > ${mid}
<if test="printNum != '' and printNum > 0">AND a.mid > ${printNum}</if>
</where> </where>
ORDER BY a.mid ASC ORDER BY a.mid ASC
LIMIT ${limitNum} LIMIT ${limitNum}
......
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