|
@@ -7,8 +7,10 @@ import java.util.Map;
|
|
|
import com.alibaba.fastjson.JSONArray;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import com.ruoyi.common.annotation.RepeatSubmit;
|
|
|
+import com.ruoyi.common.core.domain.entity.SysRole;
|
|
|
import com.ruoyi.common.core.domain.entity.SysUser;
|
|
|
import com.ruoyi.common.core.domain.model.LoginUser;
|
|
|
+import com.ruoyi.common.utils.SecurityUtils;
|
|
|
import com.ruoyi.common.utils.ServletUtils;
|
|
|
import com.ruoyi.common.utils.StringUtils;
|
|
|
import com.ruoyi.common.utils.spring.SpringUtils;
|
|
@@ -76,6 +78,14 @@ public class ftmsorderbillscarsController extends BaseController {
|
|
|
startPage();
|
|
|
List<FtmsorderbillscarsExcel> list = ftmsorderbillscarsService.selectftmsorderbillscarsMapListModify(tmsorder);
|
|
|
map.put("dataTable", getDataTable(list));
|
|
|
+ //增加是否具有审核资格字段返回
|
|
|
+ map.put("isApprove",false);
|
|
|
+ List<SysRole> roles = SecurityUtils.getLoginUser().getUser().getRoles();
|
|
|
+ for (int i = 0; i < roles.size(); i++) {
|
|
|
+ if("FeeRevisionAuditor".equals(roles.get(i).getRoleKey())){
|
|
|
+ map.put("isApprove",true);
|
|
|
+ }
|
|
|
+ }
|
|
|
return map;
|
|
|
}
|
|
|
|
|
@@ -231,7 +241,7 @@ public class ftmsorderbillscarsController extends BaseController {
|
|
|
/**
|
|
|
* 司机操作接单/提箱/装卸货/还卸柜/回单操作 保存
|
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('fleet:ftmsorderbillscars:edit')")
|
|
|
+// @PreAuthorize("@ss.hasPermi('fleet:ftmsorderbillscars:edit')")
|
|
|
@Log(title = "车队派车", businessType = BusinessType.INSERT)
|
|
|
@PostMapping(value = "/driverSave")
|
|
|
@RepeatSubmit
|
|
@@ -251,7 +261,7 @@ public class ftmsorderbillscarsController extends BaseController {
|
|
|
/**
|
|
|
* 司机操作接单/提箱/装卸货/还卸柜/回单操作 提交
|
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('fleet:ftmsorderbillscars:edit')")
|
|
|
+// @PreAuthorize("@ss.hasPermi('fleet:ftmsorderbillscars:edit')")
|
|
|
@Log(title = "车队派车", businessType = BusinessType.INSERT)
|
|
|
@PostMapping(value = "/insertDriver")
|
|
|
@RepeatSubmit
|
|
@@ -270,7 +280,7 @@ public class ftmsorderbillscarsController extends BaseController {
|
|
|
/**
|
|
|
* 状态跟踪提交 提交
|
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('fleet:ftmsorderbillscars:edit')")
|
|
|
+// @PreAuthorize("@ss.hasPermi('fleet:ftmsorderbillscars:edit')")
|
|
|
@Log(title = "车队派车", businessType = BusinessType.INSERT)
|
|
|
@PostMapping(value = "/driverSubmit")
|
|
|
@RepeatSubmit
|
|
@@ -312,7 +322,7 @@ public class ftmsorderbillscarsController extends BaseController {
|
|
|
/**
|
|
|
* 司机操作接单/提箱/装卸货/还卸柜/回单操作 变更
|
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('fleet:ftmsorderbillscars:edit')")
|
|
|
+// @PreAuthorize("@ss.hasPermi('fleet:ftmsorderbillscars:edit')")
|
|
|
@Log(title = "车队派车", businessType = BusinessType.INSERT)
|
|
|
@PostMapping(value = "/operationalChanges")
|
|
|
@RepeatSubmit
|
|
@@ -331,7 +341,7 @@ public class ftmsorderbillscarsController extends BaseController {
|
|
|
/**
|
|
|
* 单条车辆安排 变更
|
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('fleet:ftmsorderbillscars:edit')")
|
|
|
+// @PreAuthorize("@ss.hasPermi('fleet:ftmsorderbillscars:edit')")
|
|
|
@Log(title = "车队派车", businessType = BusinessType.INSERT)
|
|
|
@PostMapping(value = "/vehicleOperationChanges/{id}")
|
|
|
@RepeatSubmit
|
|
@@ -345,7 +355,7 @@ public class ftmsorderbillscarsController extends BaseController {
|
|
|
/**
|
|
|
* 单条车辆安排变更提交接口
|
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('fleet:ftmsorderbillscars:add')")
|
|
|
+// @PreAuthorize("@ss.hasPermi('fleet:ftmsorderbillscars:add')")
|
|
|
@Log(title = "车队派车", businessType = BusinessType.INSERT)
|
|
|
@PostMapping(value = "/vehicleArrangementChange")
|
|
|
@RepeatSubmit
|
|
@@ -361,7 +371,7 @@ public class ftmsorderbillscarsController extends BaseController {
|
|
|
/**
|
|
|
* 单条车辆安排提交接口
|
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('fleet:ftmsorderbillscars:add')")
|
|
|
+// @PreAuthorize("@ss.hasPermi('fleet:ftmsorderbillscars:add')")
|
|
|
@Log(title = "车队派车", businessType = BusinessType.INSERT)
|
|
|
@PostMapping(value = "/vehicleArrangementAddStowage")
|
|
|
@RepeatSubmit
|
|
@@ -377,7 +387,7 @@ public class ftmsorderbillscarsController extends BaseController {
|
|
|
/**
|
|
|
* 单条车辆安排提交接口
|
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('fleet:ftmsorderbillscars:add')")
|
|
|
+// @PreAuthorize("@ss.hasPermi('fleet:ftmsorderbillscars:add')")
|
|
|
@Log(title = "车队派车", businessType = BusinessType.INSERT)
|
|
|
@PostMapping(value = "/vehicleArrangementAdd")
|
|
|
@RepeatSubmit
|
|
@@ -393,7 +403,7 @@ public class ftmsorderbillscarsController extends BaseController {
|
|
|
/**
|
|
|
* 单条车辆安排撤销接口
|
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('fleet:ftmsorderbillscars:edit')")
|
|
|
+// @PreAuthorize("@ss.hasPermi('fleet:ftmsorderbillscars:edit')")
|
|
|
@PostMapping(value = "/vehicleArrangementRevokeStowage")
|
|
|
@RepeatSubmit
|
|
|
public AjaxResult vehicleArrangementRevokeStowage(@RequestBody Ftmsorderbillscars ftmsorderbillscars) {
|
|
@@ -408,7 +418,7 @@ public class ftmsorderbillscarsController extends BaseController {
|
|
|
/**
|
|
|
* 单条车辆安排撤销接口
|
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('fleet:ftmsorderbillscars:edit')")
|
|
|
+// @PreAuthorize("@ss.hasPermi('fleet:ftmsorderbillscars:edit')")
|
|
|
@PostMapping(value = "/vehicleArrangementRevoke")
|
|
|
@RepeatSubmit
|
|
|
public AjaxResult vehicleArrangementRevoke(@RequestBody Ftmsorderbillscars ftmsorderbillscars) {
|
|
@@ -423,7 +433,7 @@ public class ftmsorderbillscarsController extends BaseController {
|
|
|
/**
|
|
|
* 单条车辆安排删除接口
|
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('fleet:ftmsorderbillscars:remove')")
|
|
|
+// @PreAuthorize("@ss.hasPermi('fleet:ftmsorderbillscars:remove')")
|
|
|
@PostMapping(value = "/vehicleArrangementRemove")
|
|
|
@RepeatSubmit
|
|
|
public AjaxResult vehicleArrangementRemove(@RequestBody Ftmsorderbillscars ftmsorderbillscars) {
|
|
@@ -438,7 +448,7 @@ public class ftmsorderbillscarsController extends BaseController {
|
|
|
/**
|
|
|
* 暂存车队派车
|
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('fleet:ftmsorderbillscars:add')")
|
|
|
+// @PreAuthorize("@ss.hasPermi('fleet:ftmsorderbillscars:add')")
|
|
|
@Log(title = "车队派车", businessType = BusinessType.INSERT)
|
|
|
@PostMapping(value = "/save")
|
|
|
@RepeatSubmit
|
|
@@ -457,7 +467,7 @@ public class ftmsorderbillscarsController extends BaseController {
|
|
|
/**
|
|
|
* 车队派车提交
|
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('fleet:ftmsorderbillscars:add')")
|
|
|
+// @PreAuthorize("@ss.hasPermi('fleet:ftmsorderbillscars:add')")
|
|
|
@Log(title = "车队派车", businessType = BusinessType.INSERT)
|
|
|
@PostMapping(value = "/add")
|
|
|
@RepeatSubmit
|
|
@@ -479,7 +489,7 @@ public class ftmsorderbillscarsController extends BaseController {
|
|
|
/**
|
|
|
* 车队派车(大)变更
|
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('fleet:ftmsorderbillscars:add')")
|
|
|
+// @PreAuthorize("@ss.hasPermi('fleet:ftmsorderbillscars:add')")
|
|
|
@Log(title = "车队派车", businessType = BusinessType.INSERT)
|
|
|
@PostMapping(value = "/change/{id}")
|
|
|
@RepeatSubmit
|
|
@@ -494,7 +504,7 @@ public class ftmsorderbillscarsController extends BaseController {
|
|
|
/**
|
|
|
* 修改车队派车
|
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('fleet:ftmsorderbillscars:edit')")
|
|
|
+// @PreAuthorize("@ss.hasPermi('fleet:ftmsorderbillscars:edit')")
|
|
|
@Log(title = "车队派车", businessType = BusinessType.UPDATE)
|
|
|
@PutMapping
|
|
|
@RepeatSubmit
|
|
@@ -505,7 +515,7 @@ public class ftmsorderbillscarsController extends BaseController {
|
|
|
/**
|
|
|
* 删除车队派车
|
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('fleet:ftmsorderbillscars:remove')")
|
|
|
+// @PreAuthorize("@ss.hasPermi('fleet:ftmsorderbillscars:remove')")
|
|
|
@Log(title = "车队派车", businessType = BusinessType.DELETE)
|
|
|
@DeleteMapping("/{ids}")
|
|
|
@RepeatSubmit
|