修改bug
This commit is contained in:
parent
5ab936a700
commit
b41a463684
|
@ -1277,14 +1277,6 @@ public class OrdersServiceImpl extends ServiceImpl<OrdersDao, Orders> implements
|
||||||
orders.setOldMassageNum(oldOrders.getMassageNum());
|
orders.setOldMassageNum(oldOrders.getMassageNum());
|
||||||
orders.setOldMassageDuration(oldOrders.getDuration());
|
orders.setOldMassageDuration(oldOrders.getDuration());
|
||||||
|
|
||||||
|
|
||||||
ordersMassageService.removeByOrdersId(orders.getOrdersId());
|
|
||||||
List<OrdersMassage> ordersMassageList = orders.getOrdersMassageList();
|
|
||||||
for (OrdersMassage ordersMassage : ordersMassageList) {
|
|
||||||
ordersMassage.setOrdersId(orders.getOrdersId());
|
|
||||||
ordersMassageService.save(ordersMassage);
|
|
||||||
}
|
|
||||||
|
|
||||||
Orders ordersOld = new Orders();
|
Orders ordersOld = new Orders();
|
||||||
ordersOld.setOrdersId(oldOrders.getOrdersId());
|
ordersOld.setOrdersId(oldOrders.getOrdersId());
|
||||||
ordersOld.setStatus(11);
|
ordersOld.setStatus(11);
|
||||||
|
@ -1380,6 +1372,13 @@ public class OrdersServiceImpl extends ServiceImpl<OrdersDao, Orders> implements
|
||||||
|
|
||||||
baseMapper.insert(orders);
|
baseMapper.insert(orders);
|
||||||
|
|
||||||
|
ordersMassageService.removeByOrdersId(orders.getOrdersId());
|
||||||
|
List<OrdersMassage> ordersMassageList = orders.getOrdersMassageList();
|
||||||
|
for (OrdersMassage ordersMassage : ordersMassageList) {
|
||||||
|
ordersMassage.setOrdersId(orders.getOrdersId());
|
||||||
|
ordersMassageService.save(ordersMassage);
|
||||||
|
}
|
||||||
|
|
||||||
return Result.success().put("data", orders);
|
return Result.success().put("data", orders);
|
||||||
}
|
}
|
||||||
//进行中项目升级
|
//进行中项目升级
|
||||||
|
|
|
@ -84,13 +84,13 @@ public class AllTaskServiceImpl implements AllTaskSercice {
|
||||||
String lastMonth = format.format(calendar2.getTime());
|
String lastMonth = format.format(calendar2.getTime());
|
||||||
startTime = lastMonth+"-21 00:00:00";
|
startTime = lastMonth+"-21 00:00:00";
|
||||||
endTime = lastMonth+"-"+lastDayOfMonth+" 23:59:59";
|
endTime = lastMonth+"-"+lastDayOfMonth+" 23:59:59";
|
||||||
}else if(dayOfMonth == 11){
|
}else if(dayOfMonth == 12){
|
||||||
Calendar calendar4 = Calendar.getInstance();
|
Calendar calendar4 = Calendar.getInstance();
|
||||||
SimpleDateFormat format = new SimpleDateFormat("yyyy-MM");
|
SimpleDateFormat format = new SimpleDateFormat("yyyy-MM");
|
||||||
String lastMonth = format.format(calendar4.getTime());
|
String lastMonth = format.format(calendar4.getTime());
|
||||||
startTime = lastMonth+"-01 00:00:00";
|
startTime = lastMonth+"-01 00:00:00";
|
||||||
endTime = lastMonth+"-10 23:59:59";
|
endTime = lastMonth+"-10 23:59:59";
|
||||||
}else if(dayOfMonth == 29){
|
}else if(dayOfMonth == 21){
|
||||||
Calendar calendar4 = Calendar.getInstance();
|
Calendar calendar4 = Calendar.getInstance();
|
||||||
SimpleDateFormat format = new SimpleDateFormat("yyyy-MM");
|
SimpleDateFormat format = new SimpleDateFormat("yyyy-MM");
|
||||||
String lastMonth = format.format(calendar4.getTime());
|
String lastMonth = format.format(calendar4.getTime());
|
||||||
|
|
|
@ -3,7 +3,7 @@ spring:
|
||||||
type: com.alibaba.druid.pool.DruidDataSource
|
type: com.alibaba.druid.pool.DruidDataSource
|
||||||
druid:
|
druid:
|
||||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||||
url: jdbc:mysql://123.60.46.33:3306/anmo?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=CTT
|
url: jdbc:mysql://127.0.0.1:3307/anmo?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=CTT
|
||||||
username: root
|
username: root
|
||||||
password: root
|
password: root
|
||||||
initial-size: 10
|
initial-size: 10
|
||||||
|
|
|
@ -27,9 +27,6 @@
|
||||||
<if test="params.title!=null and params.title!=''">
|
<if test="params.title!=null and params.title!=''">
|
||||||
and m.title like concat('%',#{params.title},'%')
|
and m.title like concat('%',#{params.title},'%')
|
||||||
</if>
|
</if>
|
||||||
<if test="params.qyType!=null and params.qyType!=''">
|
|
||||||
and m.qy_type like concat('%',#{params.qyType},'%')
|
|
||||||
</if>
|
|
||||||
order by type asc,id desc
|
order by type asc,id desc
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue