|
|
|
@ -11,6 +11,7 @@ import cn.estsh.impp.framework.boot.auth.AuthUtil;
|
|
|
|
|
import cn.estsh.impp.framework.boot.exception.ImppBusiException;
|
|
|
|
|
import cn.estsh.impp.framework.boot.exception.ImppExceptionBuilder;
|
|
|
|
|
import cn.estsh.impp.framework.boot.util.ResultBean;
|
|
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
|
|
import io.swagger.annotations.Api;
|
|
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
@ -70,4 +71,18 @@ public class JxCenterWorkingBoardController extends MesBaseController {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@PostMapping(value = "/ext/jx/center-working-board/get-cached-data")
|
|
|
|
|
@ApiOperation(value = "嘉兴产线运行看板缓存数据清除")
|
|
|
|
|
public ResultBean getCachedCenterWorkingBoardData(String organizeCode, String item) {
|
|
|
|
|
try {
|
|
|
|
|
if (StringUtils.isEmpty(organizeCode)) organizeCode = AuthUtil.getOrganize().getOrganizeCode();
|
|
|
|
|
Object obj = centerWorkingBoardService.execCachedCenterWorkingBoardData(organizeCode, MesExtConstWords.ZERO_STR, item, null);
|
|
|
|
|
return ResultBean.success("操作成功").setResultObject(null == obj ? null : JSONObject.toJSONString(obj)).setCode(ResourceEnumUtil.MESSAGE.SUCCESS.getCode());
|
|
|
|
|
} catch (ImppBusiException busExcep) {
|
|
|
|
|
return ResultBean.fail(busExcep);
|
|
|
|
|
} catch (Exception e) {
|
|
|
|
|
return ImppExceptionBuilder.newInstance().buildExceptionResult(e);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|