|
@@ -516,6 +516,11 @@ public class LongYanRepairStrategy extends AbstractRepairBaseStrategy {
|
|
|
*/
|
|
|
@Override
|
|
|
public RepairApplicationForm submitRepair(RepairApplicationFormDTO model) {
|
|
|
+ // 判断是否具有接单权限
|
|
|
+ String roles = getCurrentRoles();
|
|
|
+ if(!roles.contains(SysRoleCodeEnum.REPAIR_MANAGE.name()) && !roles.contains(SysRoleCodeEnum.MM.name())){
|
|
|
+ throw new DeniedException("对不起,您不具备接单权限");
|
|
|
+ }
|
|
|
RepairApplicationForm form = super.submitRepair(model);
|
|
|
// 添加状态跟踪
|
|
|
addRepairStatusRecord(form,"生产审核中");
|
|
@@ -534,6 +539,11 @@ public class LongYanRepairStrategy extends AbstractRepairBaseStrategy {
|
|
|
*/
|
|
|
@Override
|
|
|
public void verifyRepair(RepairApplicationFormDTO model) {
|
|
|
+ // 判断是否具有权限
|
|
|
+ String roles = getCurrentRoles();
|
|
|
+ if(!roles.contains(SysRoleCodeEnum.REPAIR_EXAMINE.name())){
|
|
|
+ throw new DeniedException("对不起,您不具有审核权限");
|
|
|
+ }
|
|
|
super.verifyRepair(model);
|
|
|
RepairApplicationForm form = repairApplicationFormMapper.selectById(model.getId());
|
|
|
// 添加跟踪状态
|